summaryrefslogtreecommitdiff
path: root/gdb/tm-hppa.h
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1993-01-10 04:23:06 +0000
committerStu Grossman <grossman@cygnus>1993-01-10 04:23:06 +0000
commit0213d96f60271cf310420f1eb62019f944b13dec (patch)
tree60261a87831a9662939528531758037ac6ad6d20 /gdb/tm-hppa.h
parentd0a650a475360b00fb0f83dac522f672c98d1593 (diff)
downloadbinutils-gdb-0213d96f60271cf310420f1eb62019f944b13dec.tar.gz
* blockframe.c (frameless_look_for_prologue): Correct the
comment. * gdbtypes.h, gdbtypes.c: Use const in decl of cplus_struct_default, now that pa-gas assembler has been fixed. * hppah-nat.c: Formatting. * hppah-tdep.c: Remove lots of useless externs for variables we don't use. * (find_unwind_entry): Speed up by using binary search, and a one entry cache. * (rp_saved): New routine to see what unwind info says about RP being saved on the stack frame. * (frame_saved_pc): Look for prologue to see if we need to examine the stack for the saved RP or not. * (init_extra_frame_info): Check for prologue, instead of framesize to determine if we are frameless or not. * (frame_chain_valid): Stop backtraces when we run into _start. * (push_dummy_frame): Reformat to make more readable. * (find_dummy_frame_regs): ditto. * (hp_pop_frame): ditto. * (hp_restore_pc_queue): small cleanup. * (hp_push_arguments): ditto. * (pa_do_registers_info): ditto. * (skip_prologue): New routine created from SKIP_PROLOGUE macro. * tm-hppa.h: Move contents of SKIP_PROLOGUE into hppah-tdep.c. * Define FRAME_CHAIN_VALID. * Turn on BELIEVE_PCC_PROMOTION so that we can access char args passed to functions. * paread.c (pa_symtab_read): Use new bfd conventions for accessing linker symbol table. * (pa_symfile_init): Access embedded STAB info via BFD section mechanism and related macros.
Diffstat (limited to 'gdb/tm-hppa.h')
-rw-r--r--gdb/tm-hppa.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/gdb/tm-hppa.h b/gdb/tm-hppa.h
index c9baee58055..15be0036457 100644
--- a/gdb/tm-hppa.h
+++ b/gdb/tm-hppa.h
@@ -61,16 +61,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* skip (stw rp, -20(0,sp)); copy 4,1; copy sp, 4; stwm 1,framesize(sp)
for gcc, or (stw rp, -20(0,sp); stwm 1, framesize(sp) for hcc */
-#define SKIP_PROLOGUE(pc) \
-{ if (read_memory_integer ((pc), 4) == 0x6BC23FD9) \
- { if (read_memory_integer ((pc) + 4, 4) == 0x8040241) \
- (pc) += 16; \
- else if ((read_memory_integer (pc + 4, 4) & ~MASK_14) == 0x68810000) \
- (pc) += 8;} \
- else if (read_memory_integer ((pc), 4) == 0x8040241) \
- (pc) += 12; \
- else if ((read_memory_integer (pc, 4) & ~MASK_14) == 0x68810000) \
- (pc) += 4;}
+#define SKIP_PROLOGUE(pc) pc = skip_prologue (pc)
/* If PC is in some function-call trampoline code, return the PC
where the function itself actually starts. If not, return NULL. */
@@ -311,10 +302,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define FRAME_CHAIN(thisframe) frame_chain (thisframe)
-#if 0
#define FRAME_CHAIN_VALID(chain, thisframe) \
frame_chain_valid (chain, thisframe)
-#endif
#define FRAME_CHAIN_COMBINE(chain, thisframe) (chain)
@@ -547,6 +536,8 @@ text_space ; Otherwise, go through _sr4export,
#define GDB_TARGET_IS_HPPA
+#define BELIEVE_PCC_PROMOTION 1
+
/*
* Unwind table and descriptor.
*/