* hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove

gdbarch method to clear the 2 low bits of text addresses.
This commit is contained in:
Joel Brobecker 2003-08-13 17:09:09 +00:00
parent f22f5fcd02
commit b6fbdd1dbd
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-08-13 J. Brobecker <brobecker@gnat.com>
* 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 <cagney@redhat.com>
* Makefile.in (dsrec.o): Update dependencies.

View File

@ -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);