Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3/gdb/dist/gdb gdb now checks the size of the co...



details:   https://anonhg.NetBSD.org/src/rev/df42ec482899
branches:  trunk
changeset: 344018:df42ec482899
user:      uwe <uwe%NetBSD.org@localhost>
date:      Wed Mar 09 20:55:22 2016 +0000

description:
gdb now checks the size of the core register section, so pacify the
warning in corelow.c by providing the expected size.

diffstat:

 external/gpl3/gdb/dist/gdb/shnbsd-tdep.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (18 lines):

diff -r f338d4a23013 -r df42ec482899 external/gpl3/gdb/dist/gdb/shnbsd-tdep.c
--- a/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c  Wed Mar 09 20:18:17 2016 +0000
+++ b/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c  Wed Mar 09 20:55:22 2016 +0000
@@ -203,11 +203,10 @@
   struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
 
   tdep->core_gregmap = (struct sh_corefile_regmap *)gregs_table;
+  tdep->sizeof_gregset = 88;
+
   tdep->core_fpregmap = (struct sh_corefile_regmap *)fpregs_table;
-#if 0
-  tdep->core_gregmap = (struct sh_corefile_regmap *)regmap;
-  tdep->sizeof_gregset = 84;
-#endif
+  tdep->sizeof_fpregset = 0;   /* XXX */
 
   set_solib_svr4_fetch_link_map_offsets
     (gdbarch, nbsd_ilp32_solib_svr4_fetch_link_map_offsets);



Home | Main Index | Thread Index | Old Index