svn commit: r298363 - head/gnu/usr.bin/gdb/kgdb
Wojciech Macek
wma at FreeBSD.org
Wed Apr 20 20:22:50 UTC 2016
Author: wma
Date: Wed Apr 20 20:22:48 2016
New Revision: 298363
URL: https://svnweb.freebsd.org/changeset/base/298363
Log:
Add missing function prototypes in KGDB
This fixes the build broken by r298358
Modified:
head/gnu/usr.bin/gdb/kgdb/main.c
head/gnu/usr.bin/gdb/kgdb/trgt_amd64.c
head/gnu/usr.bin/gdb/kgdb/trgt_i386.c
head/gnu/usr.bin/gdb/kgdb/trgt_mips.c
head/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c
head/gnu/usr.bin/gdb/kgdb/trgt_powerpc64.c
head/gnu/usr.bin/gdb/kgdb/trgt_sparc64.c
Modified: head/gnu/usr.bin/gdb/kgdb/main.c
==============================================================================
--- head/gnu/usr.bin/gdb/kgdb/main.c Wed Apr 20 19:21:26 2016 (r298362)
+++ head/gnu/usr.bin/gdb/kgdb/main.c Wed Apr 20 20:22:48 2016 (r298363)
@@ -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));
Modified: head/gnu/usr.bin/gdb/kgdb/trgt_amd64.c
==============================================================================
--- head/gnu/usr.bin/gdb/kgdb/trgt_amd64.c Wed Apr 20 19:21:26 2016 (r298362)
+++ head/gnu/usr.bin/gdb/kgdb/trgt_amd64.c Wed Apr 20 20:22:48 2016 (r298363)
@@ -195,3 +195,16 @@ kgdb_trgt_trapframe_sniffer(struct 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);
+}
Modified: head/gnu/usr.bin/gdb/kgdb/trgt_i386.c
==============================================================================
--- head/gnu/usr.bin/gdb/kgdb/trgt_i386.c Wed Apr 20 19:21:26 2016 (r298362)
+++ head/gnu/usr.bin/gdb/kgdb/trgt_i386.c Wed Apr 20 20:22:48 2016 (r298363)
@@ -385,3 +385,16 @@ kgdb_trgt_trapframe_sniffer(struct 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);
+}
Modified: head/gnu/usr.bin/gdb/kgdb/trgt_mips.c
==============================================================================
--- head/gnu/usr.bin/gdb/kgdb/trgt_mips.c Wed Apr 20 19:21:26 2016 (r298362)
+++ head/gnu/usr.bin/gdb/kgdb/trgt_mips.c Wed Apr 20 20:22:48 2016 (r298363)
@@ -238,3 +238,16 @@ kgdb_trgt_trapframe_sniffer(struct 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);
+}
Modified: head/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c
==============================================================================
--- head/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c Wed Apr 20 19:21:26 2016 (r298362)
+++ head/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c Wed Apr 20 20:22:48 2016 (r298363)
@@ -199,3 +199,16 @@ kgdb_trgt_trapframe_sniffer(struct 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);
+}
Modified: head/gnu/usr.bin/gdb/kgdb/trgt_powerpc64.c
==============================================================================
--- head/gnu/usr.bin/gdb/kgdb/trgt_powerpc64.c Wed Apr 20 19:21:26 2016 (r298362)
+++ head/gnu/usr.bin/gdb/kgdb/trgt_powerpc64.c Wed Apr 20 20:22:48 2016 (r298363)
@@ -196,3 +196,16 @@ kgdb_trgt_trapframe_sniffer(struct 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);
+}
Modified: head/gnu/usr.bin/gdb/kgdb/trgt_sparc64.c
==============================================================================
--- head/gnu/usr.bin/gdb/kgdb/trgt_sparc64.c Wed Apr 20 19:21:26 2016 (r298362)
+++ head/gnu/usr.bin/gdb/kgdb/trgt_sparc64.c Wed Apr 20 20:22:48 2016 (r298363)
@@ -203,3 +203,16 @@ kgdb_trgt_trapframe_sniffer(struct 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);
+}
More information about the svn-src-head
mailing list