* exec.c: #include "arch-utils.h"

(print_section_info): Use gdbarch_from_bfd to get at the
	current architecture. Replace current_gdbarch. Fix indention.
	Replace deprecated_print_address_numeric by paddress.
	* Makefile.in (exec.o) Add dependency to arch-utils.h.

	* valprint.c (val_print_string): Replace
	deprecated_print_address_numeric.
	* tracepoint.c (trace_mention, scope_info): Likewise.
	* symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
	(print_symbol, print_partial_symbols, maintenance_info_psymtabs)
	(maintenance_check_symtabs): Likewise.
	* symfile.c (list_overlays_command): Likewise.
	* stack.c (frame_info, print_block_frame_labels): Likewise.
	* printcmd.c (print_address, print_address_demangle)
	(address_info): Likewise.
	* corefile.c (memory_error): Likewise.
	* infcmd.c (jump_command): Likewise.
	* breakpoint.c (insert_bp_location, describe_other_breakpoints)
	(mention, delete_breakpoint): Likewise.
	* c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
	* dwarf2read.c (dump_die): Likewise.
	* ada-valprint.c (ada_val_print_1): Likewise.
	* f-valprint.c (f_val_print): Likewise.
	* linux-fork.c (info_forks_command): Likewise.
	* m32r-com.c (m32r_load_section, m32r_load)
	(m32r_upload_command): Likewise.

	* ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
This commit is contained in:
Markus Deuling 2008-01-11 13:34:15 +00:00
parent 6093d2eb3a
commit ed49a04fe1
19 changed files with 124 additions and 103 deletions

View file

@ -31,6 +31,7 @@
#include "value.h"
#include "exec.h"
#include "observer.h"
#include "arch-utils.c"
#include <fcntl.h>
#include "readline/readline.h"
@ -532,7 +533,7 @@ print_section_info (struct target_ops *t, bfd *abfd)
{
struct section_table *p;
/* FIXME: 16 is not wide enough when gdbarch_addr_bit > 64. */
int wid = gdbarch_addr_bit (current_gdbarch) <= 32 ? 8 : 16;
int wid = gdbarch_addr_bit (gdbarch_from_bfd (abfd)) <= 32 ? 8 : 16;
printf_filtered ("\t`%s', ", bfd_get_filename (abfd));
wrap_here (" ");
@ -540,8 +541,7 @@ print_section_info (struct target_ops *t, bfd *abfd)
if (abfd == exec_bfd)
{
printf_filtered (_("\tEntry point: "));
deprecated_print_address_numeric (bfd_get_start_address (abfd), 1, gdb_stdout);
printf_filtered ("\n");
fputs_filtered (paddress (bfd_get_start_address (abfd)), gdb_stdout);
}
for (p = t->to_sections; p < t->to_sections_end; p++)
{