This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/4] Remove socket file at exit.
On 06/14/2012 03:43 PM, Yao Qi wrote:
> At first, I tried to avoid introducing a global variable, so I inlined that
> function. Forgot to revert change back. Fixed.
Thanks.
>
> gdb/gdbserver:
>
> 2012-06-14 Yao Qi <yao@codesourcery.com>
>
> * tracepoint.c (agent_socket_name): New static variable.
> (gdb_agent_socket_init): Replace local variable 'name' with
> 'agent_socket_name'.
> Include 'stdlib.h'.
> (gdb_agent_remove_socket): New.
> (gdb_agent_helper_thread): Install gdb_agent_remove_socket to
> atexit hook.
This is okay.
--
Pedro Alves