From 8c2b9656fa3178519c007ed4c1a2a3da6b61bcaa Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Tue, 27 Nov 2012 08:11:59 +0000 Subject: gdb/ 2012-11-27 Daniel Jacobowitz Kazu Hirata Yao Qi * 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. --- gdb/symfile.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/symfile.c') 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 "); -- cgit v1.1