This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Tracepoints (and python)
- From: Tom Tromey <tromey at redhat dot com>
- To: Hui Zhu <teawater at gmail dot com>
- Cc: Marc BrÃnink <marc at nus dot edu dot sg>, gdb at sourceware dot org
- Date: Wed, 02 Jan 2013 10:27:06 -0700
- Subject: Re: Tracepoints (and python)
- References: <464A745A-AA80-4485-820E-64C4D01A270C@nus.edu.sg> <87k3scn69b.fsf@fleche.redhat.com> <CANFwon17zRnhfFWG7t9=z8ZY_4AcpsW+6KeXQkM1=H_tG_fr0w@mail.gmail.com>
>>>>> "Hui" == Hui Zhu <teawater@gmail.com> writes:
Hui> I have 3 issues with it:
Hui> 1. Not sure about upstream, but when I use it, it is hard to setup
Hui> tracepoint action with python. How I handle it is write tracepoint
Hui> and action to a GDB source file and call soure command in python
Hui> script.
Yeah, I think you would be better off writing a new Python API to make
tracepoints directly.
Tom