diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-06-17 18:49:37 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-06-17 18:49:37 +0000 |
commit | 1fac167a7619ad8291064db597b1884adfcbdf4a (patch) | |
tree | 23ed0083678d6de258c1cbfb1b373ac84aa30bc8 /gdb/utils.c | |
parent | a78c2d625ffe6bf34934991e815db484d3393a76 (diff) | |
download | gdb-1fac167a7619ad8291064db597b1884adfcbdf4a.zip gdb-1fac167a7619ad8291064db597b1884adfcbdf4a.tar.gz gdb-1fac167a7619ad8291064db597b1884adfcbdf4a.tar.bz2 |
ChangeLog:
* printcmd.c (print_scalar_formatted): Always truncate
unsigned data types.
* cli-dump.c (struct callback_data): Change type of load_offset
to CORE_ADDR.
(restore_binary_file): Update type casts.
(restore_command): Parse load_offset as address, not long.
* utils.c (string_to_core_addr): Do not sign-extend value.
* varobj.c (find_frame_addr_in_frame_chain): Truncate frame_base
before comparing against requested frame address.
testsuite/ChangeLog:
* gdb.base/dump.exp: Handle SPU like 64-bit platforms.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 4396d14..0508159 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -3154,7 +3154,6 @@ core_addr_to_string_nz (const CORE_ADDR addr) CORE_ADDR string_to_core_addr (const char *my_string) { - int addr_bit = gdbarch_addr_bit (current_gdbarch); CORE_ADDR addr = 0; if (my_string[0] == '0' && tolower (my_string[1]) == 'x') @@ -3170,17 +3169,6 @@ string_to_core_addr (const char *my_string) else error (_("invalid hex \"%s\""), my_string); } - - /* Not very modular, but if the executable format expects - addresses to be sign-extended, then do so if the address was - specified with only 32 significant bits. Really this should - be determined by the target architecture, not by the object - file. */ - if (i - 2 == addr_bit / 4 - && exec_bfd - && bfd_get_sign_extend_vma (exec_bfd)) - addr = (addr ^ ((CORE_ADDR) 1 << (addr_bit - 1))) - - ((CORE_ADDR) 1 << (addr_bit - 1)); } else { |