aboutsummaryrefslogtreecommitdiff
path: root/gdb/h8300-tdep.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-03-03 07:05:23 +0000
committerSteve Chamberlain <sac@cygnus>1992-03-03 07:05:23 +0000
commit96743d3c3033705c391308b45e61686b10dba1d5 (patch)
tree0849cb4d8597111f54dcb0f977e2350704447d9d /gdb/h8300-tdep.c
parentbff1c97a6634f6a8dfde48f22bfbd9b85b2e7170 (diff)
downloadgdb-96743d3c3033705c391308b45e61686b10dba1d5.zip
gdb-96743d3c3033705c391308b45e61686b10dba1d5.tar.gz
gdb-96743d3c3033705c391308b45e61686b10dba1d5.tar.bz2
* gdbtypes.c (lookup_pointer_type): initialize the TYPE_LENGTH of
a ptype to reflect the setting of TARGET_PTR_BIT. Set the TYPE_FLAGS of a ptype to TYPE_FLAG_UNSIGNED. * tm-h8300.h, h8300-tdep.c, remote-hms.c: personal checkpoint * printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use it before printing out the hex shape of an address.
Diffstat (limited to 'gdb/h8300-tdep.c')
-rw-r--r--gdb/h8300-tdep.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c
index 4983e34..0ef703d 100644
--- a/gdb/h8300-tdep.c
+++ b/gdb/h8300-tdep.c
@@ -55,17 +55,17 @@ CORE_ADDR start_pc;
/* Skip past all push insns */
short int w;
- w = read_memory_integer(start_pc, 2);
+ w = read_memory_short(start_pc);
while (IS_PUSH(w))
{
start_pc+=2;
- w = read_memory_integer(start_pc, 2);
+ w = read_memory_short(start_pc);
}
/* Skip past a move to FP */
if (IS_MOVE_FP(w)) {
start_pc +=2 ;
- w = read_memory_integer(start_pc, 2);
+ w = read_memory_short(start_pc);
}
return start_pc;
@@ -287,7 +287,7 @@ examine_prologue (ip, limit, after_prolog_fp, fsr, fi)
/* Locals are always reffed based from the fp */
fi->locals_pointer = after_prolog_fp ;
/* The PC is at a known place */
- fi->from_pc = read_memory_integer(after_prolog_fp + reg_save_depth-2 , 2);
+ fi->from_pc = read_memory_short(after_prolog_fp + reg_save_depth-2 );
/* Rememeber any others too */
@@ -307,7 +307,7 @@ examine_prologue (ip, limit, after_prolog_fp, fsr, fi)
}
if (have_fp)
/* We keep the old FP in the SP spot */
- fsr->regs[SP_REGNUM] = read_memory_integer(fsr->regs[6],2);
+ fsr->regs[SP_REGNUM] = (read_memory_short(fsr->regs[6])) ;
else
fsr->regs[SP_REGNUM] = after_prolog_fp + reg_save_depth;
@@ -384,7 +384,7 @@ void h8300_pop_frame()
{
if(fsr.regs[regnum])
{
- write_register(regnum, read_memory_integer (fsr.regs[regnum], 2));
+ write_register(regnum, read_memory_short (fsr.regs[regnum]));
}
flush_cached_frames();