Stop GDB mis-aligning the stack when doing inferior function calls.

This commit is contained in:
Andrew Cagney 2000-02-09 04:46:47 +00:00
parent ce808e9171
commit 489137c036
3 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,10 @@
Wed Feb 9 01:14:54 2000 Andrew Cagney <cagney@amy.cygnus.com>
* config/d10v/tm-d10v.h (NO_EXTRA_ALIGNMENT_NEEDED): Define.
* config/d10v/tm-d10v.h (STACK_ALIGN): Define.
(d10v_stack_align): Declare.
* d10v-tdep.c (d10v_stack_align): Define.
1999-08-23 J.T. Conklin <jtc@redback.com>
* top.c (remote_timeout): Change default to 2. Add comment

View File

@ -24,3 +24,8 @@
extern int d10v_register_sim_regno (int reg);
#define REGISTER_SIM_REGNO(NR) d10v_register_sim_regno((NR))
extern CORE_ADDR d10v_stack_align (CORE_ADDR size);
#define STACK_ALIGN(SIZE) (d10v_stack_align (SIZE))
#define NO_EXTRA_ALIGNMENT_NEEDED 1

View File

@ -104,6 +104,11 @@ d10v_frame_chain_valid (chain, frame)
return ((chain) != 0 && (frame) != 0 && (frame)->pc > IMEM_START);
}
CORE_ADDR
d10v_stack_align (CORE_ADDR len)
{
return (len + 1) & ~1;
}
/* Should we use EXTRACT_STRUCT_VALUE_ADDRESS instead of
EXTRACT_RETURN_VALUE? GCC_P is true if compiled with gcc