diff options
author | wma <wma@FreeBSD.org> | 2016-04-20 20:22:48 +0000 |
---|---|---|
committer | wma <wma@FreeBSD.org> | 2016-04-20 20:22:48 +0000 |
commit | f66c183d912276d92f08d14f653697f2b4ea4fe5 (patch) | |
tree | 3009fea595a5ef173175216f8a9473be65e6409f /gnu | |
parent | dd33af115f6b7a788e857b727731e531012494d6 (diff) | |
download | FreeBSD-src-f66c183d912276d92f08d14f653697f2b4ea4fe5.zip FreeBSD-src-f66c183d912276d92f08d14f653697f2b4ea4fe5.tar.gz |
Add missing function prototypes in KGDB
This fixes the build broken by r298358
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/gdb/kgdb/main.c | 2 | ||||
-rw-r--r-- | gnu/usr.bin/gdb/kgdb/trgt_amd64.c | 13 | ||||
-rw-r--r-- | gnu/usr.bin/gdb/kgdb/trgt_i386.c | 13 | ||||
-rw-r--r-- | gnu/usr.bin/gdb/kgdb/trgt_mips.c | 13 | ||||
-rw-r--r-- | gnu/usr.bin/gdb/kgdb/trgt_powerpc.c | 13 | ||||
-rw-r--r-- | gnu/usr.bin/gdb/kgdb/trgt_powerpc64.c | 13 | ||||
-rw-r--r-- | gnu/usr.bin/gdb/kgdb/trgt_sparc64.c | 13 |
7 files changed, 78 insertions, 2 deletions
diff --git a/gnu/usr.bin/gdb/kgdb/main.c b/gnu/usr.bin/gdb/kgdb/main.c index ce45c78..a1da893 100644 --- a/gnu/usr.bin/gdb/kgdb/main.c +++ b/gnu/usr.bin/gdb/kgdb/main.c @@ -474,9 +474,7 @@ main(int argc, char *argv[]) add_arg(&args, NULL); init_ui_hook = kgdb_init; -#if TARGET_CPUARCH == arm frame_tdep_pc_fixup = kgdb_trgt_pc_fixup; -#endif kgdb_sniffer_kluge = kgdb_trgt_trapframe_sniffer; return (gdb_main(&args)); diff --git a/gnu/usr.bin/gdb/kgdb/trgt_amd64.c b/gnu/usr.bin/gdb/kgdb/trgt_amd64.c index 104d8c5..0be0f02 100644 --- a/gnu/usr.bin/gdb/kgdb/trgt_amd64.c +++ b/gnu/usr.bin/gdb/kgdb/trgt_amd64.c @@ -195,3 +195,16 @@ kgdb_trgt_trapframe_sniffer(struct frame_info *next_frame) /* printf("%s: %lx =%s\n", __func__, pc, pname); */ return (NULL); } + +/* + * This function ensures, that the PC is inside the + * function section which is understood by GDB. + * + * Return 0 when fixup is necessary, -1 otherwise. + */ +int +kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused) +{ + + return (-1); +} diff --git a/gnu/usr.bin/gdb/kgdb/trgt_i386.c b/gnu/usr.bin/gdb/kgdb/trgt_i386.c index 6d206d5..cd0d32b 100644 --- a/gnu/usr.bin/gdb/kgdb/trgt_i386.c +++ b/gnu/usr.bin/gdb/kgdb/trgt_i386.c @@ -385,3 +385,16 @@ kgdb_trgt_trapframe_sniffer(struct frame_info *next_frame) /* printf("%s: %llx =%s\n", __func__, pc, pname); */ return (NULL); } + +/* + * This function ensures, that the PC is inside the + * function section which is understood by GDB. + * + * Return 0 when fixup is necessary, -1 otherwise. + */ +int +kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused) +{ + + return (-1); +} diff --git a/gnu/usr.bin/gdb/kgdb/trgt_mips.c b/gnu/usr.bin/gdb/kgdb/trgt_mips.c index aadf095..17ea6fe 100644 --- a/gnu/usr.bin/gdb/kgdb/trgt_mips.c +++ b/gnu/usr.bin/gdb/kgdb/trgt_mips.c @@ -238,3 +238,16 @@ kgdb_trgt_trapframe_sniffer(struct frame_info *next_frame) #endif return (NULL); } + +/* + * This function ensures, that the PC is inside the + * function section which is understood by GDB. + * + * Return 0 when fixup is necessary, -1 otherwise. + */ +int +kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused) +{ + + return (-1); +} diff --git a/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c b/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c index ef8d7f1..703cc0f 100644 --- a/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c +++ b/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c @@ -199,3 +199,16 @@ kgdb_trgt_trapframe_sniffer(struct frame_info *next_frame) /* printf("%s: %llx =%s\n", __func__, pc, pname); */ return (NULL); } + +/* + * This function ensures, that the PC is inside the + * function section which is understood by GDB. + * + * Return 0 when fixup is necessary, -1 otherwise. + */ +int +kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused) +{ + + return (-1); +} diff --git a/gnu/usr.bin/gdb/kgdb/trgt_powerpc64.c b/gnu/usr.bin/gdb/kgdb/trgt_powerpc64.c index 65f7ab5..bfb0d7e 100644 --- a/gnu/usr.bin/gdb/kgdb/trgt_powerpc64.c +++ b/gnu/usr.bin/gdb/kgdb/trgt_powerpc64.c @@ -196,3 +196,16 @@ kgdb_trgt_trapframe_sniffer(struct frame_info *next_frame) /* printf("%s: %llx =%s\n", __func__, pc, pname); */ return (NULL); } + +/* + * This function ensures, that the PC is inside the + * function section which is understood by GDB. + * + * Return 0 when fixup is necessary, -1 otherwise. + */ +int +kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused) +{ + + return (-1); +} diff --git a/gnu/usr.bin/gdb/kgdb/trgt_sparc64.c b/gnu/usr.bin/gdb/kgdb/trgt_sparc64.c index 070194a..b39299f 100644 --- a/gnu/usr.bin/gdb/kgdb/trgt_sparc64.c +++ b/gnu/usr.bin/gdb/kgdb/trgt_sparc64.c @@ -203,3 +203,16 @@ kgdb_trgt_trapframe_sniffer(struct frame_info *next_frame) /* printf("%s: %lx =%s\n", __func__, pc, pname); */ return (NULL); } + +/* + * This function ensures, that the PC is inside the + * function section which is understood by GDB. + * + * Return 0 when fixup is necessary, -1 otherwise. + */ +int +kgdb_trgt_pc_fixup(CORE_ADDR *pc __unused) +{ + + return (-1); +} |