aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-11-19 17:02:46 +0000
committerPedro Alves <palves@redhat.com>2009-11-19 17:02:46 +0000
commitc561c2760cb35c65d64aabe484e1ca960d51b573 (patch)
tree50d82e88f73c4b21be6d5692d4f5ef15da48ce3d
parent18d0c96eb96c5dc0d816b455671fbfb11defe3ba (diff)
downloadgdb-c561c2760cb35c65d64aabe484e1ca960d51b573.zip
gdb-c561c2760cb35c65d64aabe484e1ca960d51b573.tar.gz
gdb-c561c2760cb35c65d64aabe484e1ca960d51b573.tar.bz2
* breakpoint.c (breakpoint_address_bits): Visit all locations'
gdbarchs, not the breakpoint's gdbarch.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/breakpoint.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ecabb6c..1f4649a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-19 Pedro Alves <pedro@codesourcery.com>
+
+ * breakpoint.c (breakpoint_address_bits): Visit all locations'
+ gdbarchs, not the breakpoint's gdbarch.
+
2009-11-18 Vladimir Prus <vladimir@codesourcery.com>
* cli/cli-script.c (process_next_line): Recognize 'end'
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index c6140b0..7968068 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -4268,7 +4268,7 @@ breakpoint_address_bits (struct breakpoint *b)
for (loc = b->loc; loc; loc = loc->next)
{
- int addr_bit = gdbarch_addr_bit (b->gdbarch);
+ int addr_bit = gdbarch_addr_bit (loc->gdbarch);
if (addr_bit > print_address_bits)
print_address_bits = addr_bit;
}