From: Joel Brobecker Date: Wed, 13 Aug 2003 17:09:09 +0000 (+0000) Subject: * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6fbdd1dbd3fc51820618ba044e81eaac6205f19;p=binutils-gdb.git * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove gdbarch method to clear the 2 low bits of text addresses. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a68614f225d..54743000fbd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-08-13 J. Brobecker + + * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove + gdbarch method to clear the 2 low bits of text addresses. + 2003-08-12 Andrew Cagney * Makefile.in (dsrec.o): Update dependencies. diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index fed6cb181f8..fb40481c6a1 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -5046,6 +5046,7 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_deprecated_call_dummy_length (gdbarch, INSTRUCTION_SIZE * 28); /* set_gdbarch_deprecated_fix_call_dummy (gdbarch, hppa_fix_call_dummy); */ set_gdbarch_deprecated_push_arguments (gdbarch, hppa_push_arguments); + set_gdbarch_addr_bits_remove (gdbarch, hppa_smash_text_address); set_gdbarch_smash_text_address (gdbarch, hppa_smash_text_address); set_gdbarch_believe_pcc_promotion (gdbarch, 1); set_gdbarch_read_pc (gdbarch, hppa_target_read_pc);