diff options
author | Tom de Vries <tdevries@suse.de> | 2021-09-22 14:11:09 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-09-22 14:11:09 +0200 |
commit | 378f6478ce57a62b1ce4b3a568aca47ef1ebb293 (patch) | |
tree | fbd6e0f607288fdd92cd8e33ef42952c259f3c2a /gdb/python/py-infthread.c | |
parent | 479209dd4ff90c0bc66d80ebdcb1f21ea8fbb62d (diff) | |
download | binutils-378f6478ce57a62b1ce4b3a568aca47ef1ebb293.zip binutils-378f6478ce57a62b1ce4b3a568aca47ef1ebb293.tar.gz binutils-378f6478ce57a62b1ce4b3a568aca47ef1ebb293.tar.bz2 |
[gdb/testsuite] Fix gdb.python/py-events.exp
With test-case gdb.python/py-events.exp on ubuntu 18.04.5 we run into:
...
(gdb) info threads^M
Id Target Id Frame ^M
* 1 Thread 0x7ffff7fc3740 (LWP 31467) "py-events" do_nothing () at \
src/gdb/testsuite/gdb.python/py-events-shlib.c:19^M
(gdb) FAIL: gdb.python/py-events.exp: get current thread
...
The info thread commands uses "Thread" instead of "process" because
libpthread is already loaded:
...
new objfile name: /lib/x86_64-linux-gnu/libdl.so.2^M
[Thread debugging using libthread_db enabled]^M
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".^M
event type: new_objfile^M
new objfile name: /lib/x86_64-linux-gnu/libpthread.so.0^M
...
and consequently thread_db_target::pid_to_str is used.
Fix this by parsing the "Thread" expression.
Tested on x86_64-linux.
Diffstat (limited to 'gdb/python/py-infthread.c')
0 files changed, 0 insertions, 0 deletions