diff options
author | Yao Qi <yao@codesourcery.com> | 2012-11-27 08:11:59 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2012-11-27 08:11:59 +0000 |
commit | 8c2b9656fa3178519c007ed4c1a2a3da6b61bcaa (patch) | |
tree | 2babdacb1bb99e1ca27bc9590cee581e1033a5d5 /gdb/symfile.c | |
parent | 5edf51feeade2be8b6ab6d49507a6023a6d9a176 (diff) | |
download | gdb-8c2b9656fa3178519c007ed4c1a2a3da6b61bcaa.zip gdb-8c2b9656fa3178519c007ed4c1a2a3da6b61bcaa.tar.gz gdb-8c2b9656fa3178519c007ed4c1a2a3da6b61bcaa.tar.bz2 |
gdb/
2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
Kazu Hirata <kazu@codesourcery.com>
Yao Qi <yao@codesourcery.com>
* objfiles.c (init_entry_point_info): Call
gdbarch_convert_from_func_ptr_addr and
gdbarch_addr_bits_remove here ...
(entry_point_address_query): ... instead of here.
* solib-svr4.c (exec_entry_point): Call
gdbarch_addr_bits_remove.
* symfile.c (generic_load): Call gdbarch_addr_bits_remove on
the entry address.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 6a2fc89..1d3278b 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -2150,6 +2150,7 @@ generic_load (char *args, int from_tty) gettimeofday (&end_time, NULL); entry = bfd_get_start_address (loadfile_bfd); + entry = gdbarch_addr_bits_remove (target_gdbarch (), entry); ui_out_text (uiout, "Start address "); ui_out_field_fmt (uiout, "address", "%s", paddress (target_gdbarch (), entry)); ui_out_text (uiout, ", load size "); |