* user functions and tracepoint actions
@ 2015-03-09 18:12 David Taylor
0 siblings, 0 replies; only message in thread
From: David Taylor @ 2015-03-09 18:12 UTC (permalink / raw)
To: gdb
User functions and tracepoint actions do not 'play well together'.
Suppose you want to write something like:
define user_func
trace some_function
actions
collect some_variable
collect something_else
end
<some other GDB commands>
end
This will not work as the 'define' command does not recognize that the
'actions' command is terminated with an 'end'.
When the first 'end' is seen, it terminates the 'define' command.
Aside: part of my motivation for the above is an attempt to 'automate'
at least part of the testing of our GDB stub. Currently, big sigh, it
is 100% manual. It is difficult to download programs, ruling out (for
now) the standard GDB testsuite. But, there is an operating system on
the machine with a GDB stub that supports a bunch of standard GDB remote
protocol stuff including tracepoints and some vendor specific
extensions.
I actually want to define an entire trace experiment and execute it in
the user function.
What I'm having to resort to is to put the trace and actions commands as
top level commands in a separate file and then have the user function
source it and then run the experiment. Ugly.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-09 18:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-09 18:12 user functions and tracepoint actions David Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).