OSDN Git Service

2011-05-20 Pedro Alves <pedro@codesourcery.com>
authorpalves <palves>
Fri, 20 May 2011 14:41:12 +0000 (14:41 +0000)
committerpalves <palves>
Fri, 20 May 2011 14:41:12 +0000 (14:41 +0000)
commitb9bce5c2b701f019638f33b5378dbb6a4544adee
tree8e82a6bc375195334eb29e35f8019edef1cdc237
parentfd7324cd5b4804d081ff11111a80fa789357cc87
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