diff options
author | Tristan Gingold <tristan.gingold@adacore.com> | 2014-04-09 10:23:19 +0200 |
---|---|---|
committer | Tristan Gingold <tristan.gingold@adacore.com> | 2014-04-09 10:23:19 +0200 |
commit | 15a9128a964499b78bd70ef3d2dc73edce56d825 (patch) | |
tree | 412d7e3af2e7b6a8793bf97065b9eeaa9f9323c4 /gdb/alphabsd-nat.c | |
parent | 19e1c431f72007f8a7a6a8e8b2511c74f3e8a000 (diff) | |
download | gdb-15a9128a964499b78bd70ef3d2dc73edce56d825.zip gdb-15a9128a964499b78bd70ef3d2dc73edce56d825.tar.gz gdb-15a9128a964499b78bd70ef3d2dc73edce56d825.tar.bz2 |
darwin: fix thinko (free thread port after threads are discovered).
Due to a thinko, a message could be not understood and ignored. The result
was a dead-lock (gdb is waiting for an event that never happen). The port
of the thread was deallocated before new threads are discovered. As a
consequence, the origin of the message was unknown (instead of being
linked to the newly created thread).
gdb/
* darwin-nat.c (darwin_check_new_threads): Fix port leak, add
comments.
(darwin_decode_exception_message): Free port only after use.
Diffstat (limited to 'gdb/alphabsd-nat.c')
0 files changed, 0 insertions, 0 deletions