aboutsummaryrefslogtreecommitdiff
path: root/sim/v850
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-09-27 23:41:12 +0000
committerJeff Law <law@redhat.com>1996-09-27 23:41:12 +0000
commitda86a4fa81801332379f5fb5395a5dba02521515 (patch)
treef8f049574f845467f09eeaf73898b004301afda5 /sim/v850
parentbe23e5a4953faa346023e74a2aac345a1e836e16 (diff)
downloadgdb-da86a4fa81801332379f5fb5395a5dba02521515.zip
gdb-da86a4fa81801332379f5fb5395a5dba02521515.tar.gz
gdb-da86a4fa81801332379f5fb5395a5dba02521515.tar.bz2
* simops.c (trace_input): Fix thinko.
Diffstat (limited to 'sim/v850')
-rw-r--r--sim/v850/ChangeLog9
-rw-r--r--sim/v850/simops.c14
2 files changed, 16 insertions, 7 deletions
diff --git a/sim/v850/ChangeLog b/sim/v850/ChangeLog
index b5ecdd3..e26b49c 100644
--- a/sim/v850/ChangeLog
+++ b/sim/v850/ChangeLog
@@ -1,3 +1,12 @@
+Fri Sep 27 17:42:37 1996 Jeffrey A Law (law@cygnus.com)
+
+ * simops.c (trace_input): Fix thinko.
+
+Wed Sep 18 09:54:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
+
+ * simops.c (exec_bfd): Rename from sim_bfd.
+ (trace_input): Ditto.
+
Thu Sep 12 12:03:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* simops.c (trace_input): Use find_nearest_line to print line
diff --git a/sim/v850/simops.c b/sim/v850/simops.c
index e8fd489..07d9ae2 100644
--- a/sim/v850/simops.c
+++ b/sim/v850/simops.c
@@ -37,7 +37,7 @@ static int init_text_p = 0;
static asection *text;
static bfd_vma text_start;
static bfd_vma text_end;
-extern bfd *sim_bfd;
+extern bfd *exec_bfd;
#ifndef SIZE_INSTRUCTION
#define SIZE_INSTRUCTION 6
@@ -78,12 +78,12 @@ trace_input (name, type, size)
if (!init_text_p)
{
init_text_p = 1;
- for (s = sim_bfd->sections; s; s = s->next)
- if (strcmp (bfd_get_section_name (sim_bfd, s), ".text") == 0)
+ 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 (sim_bfd, s);
- text_end = text_start + bfd_section_size (sim_bfd, s);
+ text_start = bfd_get_section_vma (exec_bfd, s);
+ text_end = text_start + bfd_section_size (exec_bfd, s);
break;
}
}
@@ -93,7 +93,7 @@ trace_input (name, type, size)
filename = (const char *)0;
functionname = (const char *)0;
linenumber = 0;
- if (bfd_find_nearest_line (sim_bfd, text, (struct symbol_cache_entry **)0, PC - text_start,
+ if (bfd_find_nearest_line (exec_bfd, text, (struct symbol_cache_entry **)0, PC - text_start,
&filename, &functionname, &linenumber))
{
p = buf;
@@ -408,7 +408,7 @@ trace_output (result)
}
#else
-#define trace_input(NAME, IN1, IN2, IN3)
+#define trace_input(NAME, IN1, IN2)
#define trace_output(RESULT)
#endif