aboutsummaryrefslogtreecommitdiff
path: root/gdb/alphabsd-nat.c
diff options
context:
space:
mode:
authorTristan Gingold <tristan.gingold@adacore.com>2014-04-09 10:23:19 +0200
committerTristan Gingold <tristan.gingold@adacore.com>2014-04-09 10:23:19 +0200
commit15a9128a964499b78bd70ef3d2dc73edce56d825 (patch)
tree412d7e3af2e7b6a8793bf97065b9eeaa9f9323c4 /gdb/alphabsd-nat.c
parent19e1c431f72007f8a7a6a8e8b2511c74f3e8a000 (diff)
downloadgdb-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