commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnumach] 10/56: ddb: cleanup db_command.c


From: Samuel Thibault
Subject: [gnumach] 10/56: ddb: cleanup db_command.c
Date: Sat, 28 Sep 2013 12:43:12 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch master
in repository gnumach.

commit 37a5965ed210cb0672ceae8292393a678a144415
Author: Marin Ramesa <address@hidden>
Date:   Wed Jul 10 13:32:32 2013 +0200

    ddb: cleanup db_command.c
    
    * ddb/db_command.c (_longjmp): Remove prototype.
    (vm_map_print): Likewise.
    (vm_object_print): Likewise.
    (vm_page_print): Likewise.
    (vm_map_copy_print): Likewise.
    (ipc_port_print): Likewise.
    (ipc_pset_print): Likewise.
    (db_show_all_slocks): Likewise.
    (ipc_kmsg_print): Likewise.
    (ipc_msg_print): Likewise.
    Include <vm/vm_print.h>.
    Include <ipc/ipc_print.h>.
    Include <kern/lock.h>.
    * i386/i386/setjmp.h [__GNUC__] (_longjmp): Add prototype.
---
 ddb/db_command.c   |   16 +++-------------
 i386/i386/setjmp.h |    4 ++++
 2 files changed, 7 insertions(+), 13 deletions(-)

diff --git a/ddb/db_command.c b/ddb/db_command.c
index 5e53b28..cb14da8 100644
--- a/ddb/db_command.c
+++ b/ddb/db_command.c
@@ -59,7 +59,9 @@
 #include <ipc/ipc_pset.h> /* 4proto */
 #include <ipc/ipc_port.h> /* 4proto */
 
-
+#include <vm/vm_print.h>
+#include <ipc/ipc_print.h>
+#include <kern/lock.h>
 
 /*
  * Exported global variables
@@ -303,14 +305,6 @@ db_command_list(last_cmdp, cmd_table)
        } while (db_read_token() == tSEMI_COLON && db_cmd_loop_done == 0);
 }
 
-/*
- * 'show' commands
- */
-extern void    vm_map_print(), vm_object_print(), vm_page_print();
-extern void    vm_map_copy_print();
-extern void    ipc_port_print(), ipc_pset_print(), db_show_all_slocks();
-extern void    ipc_kmsg_print(), ipc_msg_print();
-
 struct db_command db_show_all_cmds[] = {
        { "threads",    db_show_all_threads,    0,      0 },
        { "slocks",     db_show_all_slocks,     0,      0 },
@@ -463,10 +457,6 @@ db_exec_cmd_nest(cmd, size)
        return(db_cmd_loop_done == 0);
 }
 
-#ifdef __GNUC__
-extern __volatile__ void _longjmp();
-#endif
-
 void db_error(s)
        char *s;
 {
diff --git a/i386/i386/setjmp.h b/i386/i386/setjmp.h
index 162217a..667eecf 100644
--- a/i386/i386/setjmp.h
+++ b/i386/i386/setjmp.h
@@ -35,4 +35,8 @@ typedef       struct jmp_buf {
 
 extern int _setjmp(jmp_buf_t*);
 
+#ifdef __GNUC__
+extern __volatile__ void _longjmp(jmp_buf_t*, int);
+#endif
+
 #endif /* _I386_SETJMP_H_ */

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/gnumach.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]