diff options
author | Martin Hunt <hunt@redhat.com> | 1996-11-21 03:19:37 +0000 |
---|---|---|
committer | Martin Hunt <hunt@redhat.com> | 1996-11-21 03:19:37 +0000 |
commit | d716b33d85ee84e8b69f395977c479b8e66474d5 (patch) | |
tree | abf91e0683cf330d3ba28da76bfede91a2ed90d1 /gdb/d10v-tdep.c | |
parent | 24cbf0a4166c6066a3070ed987108b5babfb1ff7 (diff) | |
download | gdb-d716b33d85ee84e8b69f395977c479b8e66474d5.zip gdb-d716b33d85ee84e8b69f395977c479b8e66474d5.tar.gz gdb-d716b33d85ee84e8b69f395977c479b8e66474d5.tar.bz2 |
Wed Nov 20 19:09:16 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* infcmd.c (do_registers_info): Call val_print with the
virtual buf instead of the raw buf. Needed for REGISTER_CONVERT
to work with non-floating point regs.
start-sanitize-d10v
* d10v-tdep.c (d10v_skip_prologue): If we have line debugging
information, then the end of the prologue should the first
assembly instruction of the first source line.
* values.c (value_from_longest): Put in D10V call to
fix up address pointers.
* config/d10v/tm-d10v.h (REGISTER_VIRTUAL_SIZE): Modified.
(REGISTER_VIRTUAL_TYPE): Modified for PC_REGNUM and SP_REGNUM.
(REGISTER_CONVERTIBLE): Make PC and SP convertible.
(REGISTER_CONVERT_TO_VIRTUAL): Define.
(REGISTER_CONVERT_TO_RAW): Define.
(D10V_MAKE_DADDR): Define.
(D10V_MAKE_IADDR): Define.
end-sanitize-d10v
Diffstat (limited to 'gdb/d10v-tdep.c')
-rw-r--r-- | gdb/d10v-tdep.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c index 7920c4f..3ac0572 100644 --- a/gdb/d10v-tdep.c +++ b/gdb/d10v-tdep.c @@ -123,7 +123,18 @@ d10v_skip_prologue (pc) { unsigned long op; unsigned short op1, op2; + CORE_ADDR func_addr, func_end; + struct symtab_and_line sal; + /* If we have line debugging information, then the end of the */ + /* prologue should the first assembly instruction of the first source line */ + if (find_pc_partial_function (pc, NULL, &func_addr, &func_end)) + { + sal = find_pc_line (func_addr, 0); + if (sal.end < func_end) + return sal.end; + } + if (target_read_memory (pc, (char *)&op, 4)) return pc; /* Can't access it -- assume no prologue. */ |