* hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
authorJoel Brobecker <brobecker@gnat.com>
Wed, 13 Aug 2003 17:09:09 +0000 (17:09 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 13 Aug 2003 17:09:09 +0000 (17:09 +0000)
        gdbarch method to clear the 2 low bits of text addresses.

gdb/ChangeLog
gdb/hppa-tdep.c

index a68614f..5474300 100644 (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.
index fed6cb1..fb40481 100644 (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);