mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
Use CORE_ADDR instead of ULONGEST on address.
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.
This commit is contained in:
@ -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>
|
2010-02-17 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* NEWS: Add C++ improvements section.
|
* NEWS: Add C++ improvements section.
|
||||||
|
@ -1459,9 +1459,9 @@ enable_break (struct svr4_info *info, int from_tty)
|
|||||||
invalid addresses like 0x101234567 for 32bit inferiors on 64bit
|
invalid addresses like 0x101234567 for 32bit inferiors on 64bit
|
||||||
GDB. */
|
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,
|
CORE_ADDR tmp_entry_point = exec_entry_point (tmp_bfd,
|
||||||
tmp_bfd_target);
|
tmp_bfd_target);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user