forked from Imagelibrary/binutils-gdb
gdb:
* common/agent.c (agent_loaded_p): New.
(agent_look_up_symbols): New global.
* common/agent.h: Declare agent_loaded_p.
gdb/gdbserver:
* Makefile.in (linux-low.o): Keep dependence on agent.h.
(linux-x86-low.o): Likewise.
* server.h: Remove in_process_agent_loaded.
* tracepoint.c (in_process_agent_loaded): Removed. Moved it
common/agent.c.
Update callers.
This commit is contained in:
@@ -71,6 +71,14 @@ static struct
|
||||
|
||||
static struct ipa_sym_addresses ipa_sym_addrs;
|
||||
|
||||
static int all_agent_symbols_looked_up = 0;
|
||||
|
||||
int
|
||||
agent_loaded_p (void)
|
||||
{
|
||||
return all_agent_symbols_looked_up;
|
||||
}
|
||||
|
||||
/* Look up all symbols needed by agent. Return 0 if all the symbols are
|
||||
found, return non-zero otherwise. */
|
||||
|
||||
@@ -79,6 +87,8 @@ agent_look_up_symbols (void)
|
||||
{
|
||||
int i;
|
||||
|
||||
all_agent_symbols_looked_up = 0;
|
||||
|
||||
for (i = 0; i < sizeof (symbol_list) / sizeof (symbol_list[0]); i++)
|
||||
{
|
||||
CORE_ADDR *addrp =
|
||||
@@ -100,6 +110,7 @@ agent_look_up_symbols (void)
|
||||
}
|
||||
}
|
||||
|
||||
all_agent_symbols_looked_up = 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,6 +33,8 @@ int agent_look_up_symbols (void);
|
||||
thread. */
|
||||
#define IPA_CMD_BUF_SIZE 1024
|
||||
|
||||
int agent_loaded_p (void);
|
||||
|
||||
extern int debug_agent;
|
||||
|
||||
extern int use_agent;
|
||||
|
||||
Reference in New Issue
Block a user