]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
2011-05-20 Pedro Alves <pedro@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Fri, 20 May 2011 14:37:42 +0000 (14:37 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 20 May 2011 14:37:42 +0000 (14:37 +0000)
commitb955f431e7ab4ee66bb3faecea8dd4c9822971cd
tree25e7e2c32124750e36766623976ba93903adccb7
parentbe66d7618eebf8c3e6e0ab9bac42d05c5214a66a
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