* alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large

constants.
	* amd64-tdep.c (amd64_skip_prologue): Likewise.
	* ia64-tdep.c (examine_prologue): Likewise.
	* ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
	* v850-tdep.c (v850_fix_call_dummy): Likewise.
This commit is contained in:
Daniel Jacobowitz 2004-05-18 21:20:28 +00:00
parent 7659f80a23
commit 594706e671
6 changed files with 13 additions and 52 deletions

View file

@ -1,3 +1,12 @@
2004-05-18 Daniel Jacobowitz <dan@debian.org>
* alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
constants.
* amd64-tdep.c (amd64_skip_prologue): Likewise.
* ia64-tdep.c (examine_prologue): Likewise.
* ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
* v850-tdep.c (v850_fix_call_dummy): Likewise.
2004-05-18 Mark Kettenis <kettenis@gnu.org>
* vax-tdep.c (vax_return_value): Implement

View file

@ -1499,7 +1499,7 @@ alpha_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Lowest text address. This is used by heuristic_proc_start()
to decide when to stop looking. */
tdep->vm_min_address = (CORE_ADDR) 0x120000000;
tdep->vm_min_address = (CORE_ADDR) 0x120000000LL;
tdep->dynamic_sigtramp_offset = NULL;
tdep->sigcontext_addr = NULL;

View file

@ -781,7 +781,7 @@ amd64_skip_prologue (CORE_ADDR start_pc)
struct amd64_frame_cache cache;
CORE_ADDR pc;
pc = amd64_analyze_prologue (start_pc, 0xffffffffffffffff, &cache);
pc = amd64_analyze_prologue (start_pc, 0xffffffffffffffffLL, &cache);
if (cache.frameless_p)
return start_pc;

View file

@ -1116,7 +1116,7 @@ examine_prologue (CORE_ADDR pc, CORE_ADDR lim_pc, struct frame_info *next_frame,
if (next_pc == 0)
break;
if (it == B && ((instr & 0x1e1f800003f) != 0x04000000000))
if (it == B && ((instr & 0x1e1f800003fLL) != 0x04000000000LL))
{
/* Exit loop upon hitting a non-nop branch instruction. */
if (trust_limit)
@ -1228,7 +1228,7 @@ examine_prologue (CORE_ADDR pc, CORE_ADDR lim_pc, struct frame_info *next_frame,
{
cache->saved_regs[IA64_FR0_REGNUM + fM] = spill_addr;
if ((instr & 0x1efc0000000) == 0x0eec0000000)
if ((instr & 0x1efc0000000LL) == 0x0eec0000000LL)
spill_addr += imm;
else
spill_addr = 0; /* last one; must be done */

View file

@ -419,33 +419,6 @@ ns32k_pop_frame (void)
flush_cached_frames ();
}
/* The NS32000 call dummy sequence:
enter 0xff,0 82 ff 00
jsr @0x00010203 7f ae c0 01 02 03
adjspd 0x69696969 7f a5 01 02 03 04
bpt f2
It is 16 bytes long. */
#define NS32K_CALL_DUMMY_ADDR 5
#define NS32K_CALL_DUMMY_NARGS 11
static void
ns32k_fix_call_dummy (char *dummy, CORE_ADDR pc, CORE_ADDR fun, int nargs,
struct value **args, struct type *type, int gcc_p)
{
int flipped;
flipped = fun | 0xc0000000;
flip_bytes (&flipped, 4);
store_unsigned_integer (dummy + NS32K_CALL_DUMMY_ADDR, 4, flipped);
flipped = - nargs * 4;
flip_bytes (&flipped, 4);
store_unsigned_integer (dummy + NS32K_CALL_DUMMY_NARGS, 4, flipped);
}
static void
ns32k_store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
{

View file

@ -1019,27 +1019,6 @@ v850_frame_saved_pc (struct frame_info *fi)
}
/* Function: fix_call_dummy
Pokes the callee function's address into the CALL_DUMMY assembly stub.
Assumes that the CALL_DUMMY looks like this:
jarl <offset24>, r31
trap
*/
static void
v850_fix_call_dummy (char *dummy, CORE_ADDR sp, CORE_ADDR fun, int nargs,
struct value **args, struct type *type, int gcc_p)
{
long offset24;
offset24 = (long) fun - (long) entry_point_address ();
offset24 &= 0x3fffff;
offset24 |= 0xff800000; /* jarl <offset24>, r31 */
store_unsigned_integer ((unsigned int *) &dummy[2], 2, offset24 & 0xffff);
store_unsigned_integer ((unsigned int *) &dummy[0], 2, offset24 >> 16);
}
static CORE_ADDR
v850_saved_pc_after_call (struct frame_info *ignore)
{