* 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:
Yao Qi
2012-03-03 04:34:52 +00:00
parent 8ffcbaaf40
commit 58b4daa56a
9 changed files with 49 additions and 32 deletions

View File

@ -28,6 +28,7 @@
#include "elf/common.h"
#include "gdb_proc_service.h"
#include "agent.h"
/* Defined in auto-generated file i386-linux.c. */
void init_registers_i386_linux (void);
@ -1586,7 +1587,7 @@ x86_get_min_fast_tracepoint_insn_len (void)
return 5;
#endif
if (in_process_agent_loaded ())
if (agent_loaded_p ())
{
char errbuf[IPA_BUFSIZ];