From c66fb220b1717fae73f32362c71194e244bf71a7 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 31 Oct 2012 14:29:10 +0000 Subject: [PATCH] * gdbarch.c: Rebuild. * gdbarch.sh: Remove references to gdbarch_swap. * corelow.c (core_open): Remove obsolete comment. --- gdb/ChangeLog | 6 ++++++ gdb/corelow.c | 6 ------ gdb/gdbarch.c | 7 ++----- gdb/gdbarch.sh | 7 ++----- 4 files changed, 10 insertions(+), 16 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d234e6f..4b84096 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2012-10-31 Tom Tromey + + * gdbarch.c: Rebuild. + * gdbarch.sh: Remove references to gdbarch_swap. + * corelow.c (core_open): Remove obsolete comment. + 2012-10-31 Andrew Burgess PR cli/14772 diff --git a/gdb/corelow.c b/gdb/corelow.c index 340b149..2080068 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -344,12 +344,6 @@ core_open (char *filename, int from_tty) core_bfd = temp_bfd; old_chain = make_cleanup (core_close_cleanup, 0 /*ignore*/); - /* FIXME: kettenis/20031023: This is very dangerous. The - CORE_GDBARCH that results from this call may very well be - different from CURRENT_GDBARCH. However, its methods may only - work if it is selected as the current architecture, because they - rely on swapped data (see gdbarch.c). We should get rid of that - swapped data. */ core_gdbarch = gdbarch_from_bfd (core_bfd); /* Find a suitable core file handler to munch on core_bfd */ diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index c920682..6bc57af 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -113,9 +113,6 @@ struct gdbarch unsigned nr_data; void **data; - /* per-architecture swap-regions. */ - struct gdbarch_swap *swap; - /* Multi-arch values. When extending this structure you must: @@ -308,8 +305,8 @@ struct gdbarch startup_gdbarch = 0, /* target_desc */ /* target specific vector and its dump routine. */ NULL, NULL, - /*per-architecture data-pointers and swap regions. */ - 0, NULL, NULL, + /*per-architecture data-pointers. */ + 0, NULL, /* Multi-arch values */ 1, /* bits_big_endian */ 8 * sizeof (short), /* short_bit */ diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index 95355f9..e3e6329 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -1479,9 +1479,6 @@ printf " /* per-architecture data-pointers. */\n" printf " unsigned nr_data;\n" printf " void **data;\n" printf "\n" -printf " /* per-architecture swap-regions. */\n" -printf " struct gdbarch_swap *swap;\n" -printf "\n" cat <