Use CORE_ADDR instead of ULONGEST on address.
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 17 Feb 2010 20:47:08 +0000 (20:47 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 17 Feb 2010 20:47:08 +0000 (20:47 +0000)
2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>

PR shlibs/11293
* solib-svr4.c (enable_break): Check size of CORE_ADDR instead
of ULONGEST for address size.

gdb/ChangeLog
gdb/solib-svr4.c

index 6ac10311a923492ed5486920f27eb5a0b0c8b25d..4605fc1b7ff199864e2d4e71202fb00467d94966 100644 (file)
@@ -1,3 +1,9 @@
+2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR shlibs/11293
+       * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
+       of ULONGEST for address size.
+
 2010-02-17  Tom Tromey  <tromey@redhat.com>
 
        * NEWS: Add C++ improvements section.
index b3b9e00bde1ceb6df526d94c00b143b7aa0aa8a1..8edc8891ac141d2ad764dd21352561e2c1e96c79 100644 (file)
@@ -1459,9 +1459,9 @@ enable_break (struct svr4_info *info, int from_tty)
               invalid addresses like 0x101234567 for 32bit inferiors on 64bit
               GDB.  */
 
-           if (addr_bit < (sizeof (ULONGEST) * HOST_CHAR_BIT))
+           if (addr_bit < (sizeof (CORE_ADDR) * HOST_CHAR_BIT))
              {
-               CORE_ADDR space_size = (ULONGEST) 1 << addr_bit;
+               CORE_ADDR space_size = (CORE_ADDR) 1 << addr_bit;
                CORE_ADDR tmp_entry_point = exec_entry_point (tmp_bfd,
                                                              tmp_bfd_target);