diff options
Diffstat (limited to 'gdb/common/agent.c')
-rw-r--r-- | gdb/common/agent.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/common/agent.c b/gdb/common/agent.c index f3bdafc..70a6de7 100644 --- a/gdb/common/agent.c +++ b/gdb/common/agent.c @@ -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; } |