diff options
author | Daniel Jacobowitz <drow@false.org> | 2004-05-18 21:20:28 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2004-05-18 21:20:28 +0000 |
commit | 594706e671e52600644e4f348dd355eab247f0d4 (patch) | |
tree | fbbebd5e216677a456e5d6b12869d3450b415014 /gdb | |
parent | 7659f80a232ff3d770cee9d968c6f4bab49b666d (diff) | |
download | gdb-594706e671e52600644e4f348dd355eab247f0d4.zip gdb-594706e671e52600644e4f348dd355eab247f0d4.tar.gz gdb-594706e671e52600644e4f348dd355eab247f0d4.tar.bz2 |
* 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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/alpha-tdep.c | 2 | ||||
-rw-r--r-- | gdb/amd64-tdep.c | 2 | ||||
-rw-r--r-- | gdb/ia64-tdep.c | 4 | ||||
-rw-r--r-- | gdb/ns32k-tdep.c | 27 | ||||
-rw-r--r-- | gdb/v850-tdep.c | 21 |
6 files changed, 13 insertions, 52 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a3efd1e..86fbdd9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c index 378b652..24f1b04 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 2b56776..0a85a23 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 06c8a4d..04e4f1b 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 a37bc6f..71d4e40 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 4ba78e8..862ebb3 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 <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) { |