mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
Stop GDB mis-aligning the stack when doing inferior function calls.
This commit is contained in:
parent
ce808e9171
commit
489137c036
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user