This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/22223] New: python event.new_thread does not exist but described in online document
- From: "vivi00791 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 27 Sep 2017 16:02:07 +0000
- Subject: [Bug python/22223] New: python event.new_thread does not exist but described in online document
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=22223
Bug ID: 22223
Summary: python event.new_thread does not exist but described
in online document
Product: gdb
Version: 8.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: vivi00791 at gmail dot com
Target Milestone: ---
gdb-mi output:
&"source ./Command/new_thread_trigger.py\n"
&"Traceback (most recent call last):\n"
&" File \"./Command/new_thread_trigger.py\", line 9, in <module>\n"
&" gdb.events.new_thread.connect (new_thread_handler)\n"
&"AttributeError: 'module' object has no attribute 'new_thread'\n"
source file(new_thread_trigger.py):
import gdb
def new_thread_handler (event):
print("NEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEW Thread!!!!!")
gdb.events.new_thread.connect (new_thread_handler)
event document:
https://sourceware.org/gdb/current/onlinedocs/gdb/Events-In-Python.html#Events-In-Python
--
You are receiving this mail because:
You are on the CC list for the bug.