From: Daniel Jacobowitz Date: Tue, 18 May 2004 21:20:28 +0000 (+0000) Subject: * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=594706e671e52600644e4f348dd355eab247f0d4;p=binutils-gdb.git * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a3efd1e850c..86fbdd9ce7b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2004-05-18 Daniel Jacobowitz + + * 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 * vax-tdep.c (vax_return_value): Implement diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c index 378b652feef..24f1b04c2b3 100644 --- a/gdb/alpha-tdep.c +++ b/gdb/alpha-tdep.c @@ -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; diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index 2b56776dac2..0a85a236e1e 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -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; diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index 06c8a4db213..04e4f1b9095 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -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 */ diff --git a/gdb/ns32k-tdep.c b/gdb/ns32k-tdep.c index a37bc6f718a..71d4e401596 100644 --- a/gdb/ns32k-tdep.c +++ b/gdb/ns32k-tdep.c @@ -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) { diff --git a/gdb/v850-tdep.c b/gdb/v850-tdep.c index 4ba78e85e48..862ebb3c1c1 100644 --- a/gdb/v850-tdep.c +++ b/gdb/v850-tdep.c @@ -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 , 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 , 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) {