This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/22223] New: python event.new_thread does not exist but described in online document


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]