2011-05-20 Pedro Alves <pedro@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Fri, 20 May 2011 14:41:12 +0000 (14:41 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 20 May 2011 14:41:12 +0000 (14:41 +0000)
commite93a69ed93f9632d77480073990efea47d69f2b0
tree935c9780ccda13cad89f4d880f8138aa9429d066
parent6823e2b15fda7db14e4a8c85ed105024ce5ada21
2011-05-20  Pedro Alves  <pedro@codesourcery.com>

gdb/
* tracepoint.c: Include exceptions.h.
(TFILE_PID): Move higher in file.
(tfile_open): Delay pushing the tfile target until we're assured
the tfile header is present in the file.  Wrap reading the initial
newline-terminated lines in TRY_CATCH.  Pop the target if the
initial setup failed.  Add the tfile's thread immediately
aftwards, before any non-essential setup.  Don't skip
post_create_inferior if there are no traceframes present in the
file.
(tfile_close): Remove redundant check for null before xfree call.
(tfile_thread_alive): New function.
(init_tfile_ops): Register it as to_thread_alive callback.
gdb/ChangeLog
gdb/tracepoint.c