mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-19 13:53:29 +08:00
Rename sim_bfd -> exec_bfd for gdb compatibility
This commit is contained in:
@ -24,7 +24,7 @@ Wed Sep 18 09:13:25 1996 Michael Meissner <meissner@tiktok.cygnus.com>
|
|||||||
field.
|
field.
|
||||||
(init_text_p,text{,_start,_end}): New static variables for
|
(init_text_p,text{,_start,_end}): New static variables for
|
||||||
printing line number and function name.
|
printing line number and function name.
|
||||||
(sim_bfd): New external that run.c sets.
|
(exec_bfd): New external that run.c sets.
|
||||||
(trace_input_func): Print line number and function name if
|
(trace_input_func): Print line number and function name if
|
||||||
available and if desired.
|
available and if desired.
|
||||||
(OP_4E09): Don't print out DBT message.
|
(OP_4E09): Don't print out DBT message.
|
||||||
|
@ -49,7 +49,7 @@ static int init_text_p = 0;
|
|||||||
static asection *text;
|
static asection *text;
|
||||||
static bfd_vma text_start;
|
static bfd_vma text_start;
|
||||||
static bfd_vma text_end;
|
static bfd_vma text_end;
|
||||||
extern bfd *sim_bfd;
|
extern bfd *exec_bfd;
|
||||||
|
|
||||||
#ifndef SIZE_INSTRUCTION
|
#ifndef SIZE_INSTRUCTION
|
||||||
#define SIZE_INSTRUCTION 8
|
#define SIZE_INSTRUCTION 8
|
||||||
@ -113,12 +113,12 @@ trace_input_func (name, in1, in2, in3)
|
|||||||
if (!init_text_p)
|
if (!init_text_p)
|
||||||
{
|
{
|
||||||
init_text_p = 1;
|
init_text_p = 1;
|
||||||
for (s = sim_bfd->sections; s; s = s->next)
|
for (s = exec_bfd->sections; s; s = s->next)
|
||||||
if (strcmp (bfd_get_section_name (sim_bfd, s), ".text") == 0)
|
if (strcmp (bfd_get_section_name (exec_bfd, s), ".text") == 0)
|
||||||
{
|
{
|
||||||
text = s;
|
text = s;
|
||||||
text_start = bfd_get_section_vma (sim_bfd, s);
|
text_start = bfd_get_section_vma (exec_bfd, s);
|
||||||
text_end = text_start + bfd_section_size (sim_bfd, s);
|
text_end = text_start + bfd_section_size (exec_bfd, s);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -129,7 +129,7 @@ trace_input_func (name, in1, in2, in3)
|
|||||||
filename = (const char *)0;
|
filename = (const char *)0;
|
||||||
functionname = (const char *)0;
|
functionname = (const char *)0;
|
||||||
linenumber = 0;
|
linenumber = 0;
|
||||||
if (bfd_find_nearest_line (sim_bfd, text, (struct symbol_cache_entry **)0, byte_pc - text_start,
|
if (bfd_find_nearest_line (exec_bfd, text, (struct symbol_cache_entry **)0, byte_pc - text_start,
|
||||||
&filename, &functionname, &linenumber))
|
&filename, &functionname, &linenumber))
|
||||||
{
|
{
|
||||||
p = buf;
|
p = buf;
|
||||||
|
Reference in New Issue
Block a user