diff options
author | Michael Meissner <gnu@the-meissners.org> | 1996-10-30 22:43:02 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1996-10-30 22:43:02 +0000 |
commit | b30cdd35653c3ad1ffb93a465972ea9a89928c03 (patch) | |
tree | 0b3e0d5b0da8268687f158e5af4e34db072c8dfd /sim/d10v/simops.c | |
parent | 193e41979c76e8e4c5793924158cbce854ae4f5c (diff) | |
download | gdb-b30cdd35653c3ad1ffb93a465972ea9a89928c03.zip gdb-b30cdd35653c3ad1ffb93a465972ea9a89928c03.tar.gz gdb-b30cdd35653c3ad1ffb93a465972ea9a89928c03.tar.bz2 |
Fix -t option to work with memory mapping; Print PC in some error messages
Diffstat (limited to 'sim/d10v/simops.c')
-rw-r--r-- | sim/d10v/simops.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/sim/d10v/simops.c b/sim/d10v/simops.c index a7da24f..ff59b0d 100644 --- a/sim/d10v/simops.c +++ b/sim/d10v/simops.c @@ -7,7 +7,6 @@ #include "d10v_sim.h" #include "simops.h" #include "sys/syscall.h" -#include "bfd.h" extern char *strrchr (); @@ -52,12 +51,6 @@ static void trace_output_func PARAMS ((enum op_types result)); #define trace_output(result) do { if (d10v_debug) trace_output_func (result); } while (0) -static int init_text_p = 0; -static asection *text; -static bfd_vma text_start; -static bfd_vma text_end; -extern bfd *exec_bfd; - #ifndef SIZE_INSTRUCTION #define SIZE_INSTRUCTION 8 #endif @@ -96,7 +89,6 @@ trace_input_func (name, in1, in2, in3) char *p; long tmp; char *type; - asection *s; const char *filename; const char *functionname; unsigned int linenumber; @@ -129,21 +121,8 @@ trace_input_func (name, in1, in2, in3) else { - if (!init_text_p) - { - init_text_p = 1; - for (s = exec_bfd->sections; s; s = s->next) - if (strcmp (bfd_get_section_name (exec_bfd, s), ".text") == 0) - { - text = s; - text_start = bfd_get_section_vma (exec_bfd, s); - text_end = text_start + bfd_section_size (exec_bfd, s); - break; - } - } - buf[0] = '\0'; - byte_pc = (bfd_vma)PC << 2; + byte_pc = decode_pc (); if (text && byte_pc >= text_start && byte_pc < text_end) { filename = (const char *)0; |