gdb:
authorYao Qi <yao@codesourcery.com>
Sat, 3 Mar 2012 03:08:36 +0000 (03:08 +0000)
committerYao Qi <yao@codesourcery.com>
Sat, 3 Mar 2012 03:08:36 +0000 (03:08 +0000)
commit2fa291aca43cb851ba4e108cb64c7844a257df4f
tree98c7337c1c8c94b12c56066dab3ffcb5e500faef
parent9fc056857823ff58f0f41eb857f65f53ce43e5b5
gdb:

* common/agent.c: New.
* common/agent.h: New.
* configure.ac: Add `sys/socket.h' and `sys/un.h' to
AC_CHECK_HEADERS.
* configure, configh.in: Regenerated.

gdb/gdbserver:

* Makefile.in (OBS): Add agent.o.
Add new rule for agent.o.
Track dependence of tracepoint.c on agent.h.
* tracepoint.c (run_inferior_command_1):
(run_inferior_command): Call agent_run_command.
(gdb_ust_connect_sync_socket): Deleted.  Move it to
common/agent.c.
(resume_thread, stop_thread): Likewise.
(gdb_ust_socket_init): Renamed to ...
(gdb_agent_socket_init): ... New.
(gdb_ust_thread): Renamed to ...
(gdb_agent_helper_thread): ... New.
(gdb_ust_init): Move some code to ...
(gdb_agent_init): ... here.  New.
[HAVE_UST]: Call gdb_ust_init.
(initialize_tracepoint_ftlib):  Call gdb_agent_init.
* configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
* config.in, configure: Regenerated.
12 files changed:
gdb/ChangeLog
gdb/common/agent.c [new file with mode: 0644]
gdb/common/agent.h [new file with mode: 0644]
gdb/config.in
gdb/configure
gdb/configure.ac
gdb/gdbserver/ChangeLog
gdb/gdbserver/Makefile.in
gdb/gdbserver/config.in
gdb/gdbserver/configure
gdb/gdbserver/configure.ac
gdb/gdbserver/tracepoint.c