diff options
author | jhb <jhb@FreeBSD.org> | 2000-10-06 05:20:02 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-10-06 05:20:02 +0000 |
commit | 607266b371c9a5c22e74940956b42c5f5e26e9c2 (patch) | |
tree | 8093dba74f487e0405622cd554cf7c7799dbea57 /sys/kern/link_elf_obj.c | |
parent | 1cc3d5d7b74546d67cdf228f04b3fc2d5dc6dfb4 (diff) | |
download | FreeBSD-src-607266b371c9a5c22e74940956b42c5f5e26e9c2.zip FreeBSD-src-607266b371c9a5c22e74940956b42c5f5e26e9c2.tar.gz |
Correct a warning where the r_debug_state() dummy function used to trigger
a breakpoint in the kernel didn't use the proper argument list. To avoid
having to include the userland link.h header everyhwere that sys/linker.h
is used, make r_debug_state() a static function in link_elf.c as well.
Diffstat (limited to 'sys/kern/link_elf_obj.c')
-rw-r--r-- | sys/kern/link_elf_obj.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/kern/link_elf_obj.c b/sys/kern/link_elf_obj.c index 813ebb9..f812bfd 100644 --- a/sys/kern/link_elf_obj.c +++ b/sys/kern/link_elf_obj.c @@ -128,19 +128,22 @@ static int relocate_file(elf_file_t ef); static int link_elf_preload_parse_symbols(elf_file_t ef); #ifdef DDB +static void r_debug_state(struct r_debug *dummy_one, + struct link_map *dummy_two); /* * A list of loaded modules for GDB to use for loading symbols. */ struct r_debug r_debug; -#define GDB_STATE(s) r_debug.r_state = s; r_debug_state(); +#define GDB_STATE(s) r_debug.r_state = s; r_debug_state(NULL, NULL); /* * Function for the debugger to set a breakpoint on to gain control. */ void -r_debug_state(void) +r_debug_state(struct r_debug *dummy_one __unused, + struct link_map *dummy_two __unused) { } @@ -216,7 +219,7 @@ link_elf_init(void* arg) r_debug.r_brk = r_debug_state; r_debug.r_state = RT_CONSISTENT; - r_debug_state(); /* say hello to gdb! */ + r_debug_state(NULL, NULL); /* say hello to gdb! */ #endif } |