* breakpoint.c (breakpoint_address_bits): Visit all locations'
authorPedro Alves <palves@redhat.com>
Thu, 19 Nov 2009 17:02:46 +0000 (17:02 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 19 Nov 2009 17:02:46 +0000 (17:02 +0000)
gdbarchs, not the breakpoint's gdbarch.

gdb/ChangeLog
gdb/breakpoint.c

index ecabb6c13320cde6b742c259ddac9b985df52048..1f4649a4957db091ea1b19ab107888a6bf0f071b 100644 (file)
@@ -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'
index c6140b0cfbc37311f777c064d676153bf5e031c3..7968068a4afa0dda4e95e9abcc6a02671eaec505 100644 (file)
@@ -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;
     }
This page took 0.034566 seconds and 4 git commands to generate.