diff options
author | Stan Shebs <shebs@codesourcery.com> | 2011-09-27 13:09:37 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 2011-09-27 13:09:37 +0000 |
commit | 6710bf39b7c037de481a4b351fb69cec6b48b138 (patch) | |
tree | 49c698293333f96658a7f2859051a433cdf21d7f /gdb/doc | |
parent | 21eb9156ec61765732abe5e2b8b0e717452bf7f1 (diff) | |
download | gdb-6710bf39b7c037de481a4b351fb69cec6b48b138.zip gdb-6710bf39b7c037de481a4b351fb69cec6b48b138.tar.gz gdb-6710bf39b7c037de481a4b351fb69cec6b48b138.tar.bz2 |
Add return address collection for tracepoints.
* tracepoint.c (encode_actions_1): Add case for $_ret.
(validate_actionline): Check for $_ret.
(trace_dump_actions): Ditto.
* ax-gdb.h (gen_trace_for_return_address): Declare.
* ax-gdb.c: Include arch-utils.h.
(gen_trace_for_return_address): New function.
(agent_command): Add return address special case.
* amd64-tdep.c: Include ax.h and ax-gdb.h.
(amd64_gen_return_address): New function.
(amd64_init_abi): Call it.
* i386-tdep.c: Include ax.h and ax-gdb.h.
(i386_gen_return_address): New function.
(i386_init_abi): Call it.
* arch-utils.h (default_gen_return_address): Declare.
* arch-utils.c (default_gen_return_address): New function.
* gdbarch.sh (gen_return_address): New method.
* gdbarch.h, gdbarch.c: Regenerate.
* gdb.texinfo (Tracepoint Action Lists): Document $_ret.
* gdb.trace/collection.exp: Test collection of $_ret.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 7d1e0d4..2983196 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2011-09-27 Stan Shebs <stan@codesourcery.com> + + * gdb.texinfo (Tracepoint Action Lists): Document $_ret. + 2011-09-16 Hui Zhu <teawater@gmail.com> * gdb.texinfo (Tracepoint Restrictions): Change *$esp@300 diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 051377d..c8bb006 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -10284,6 +10284,10 @@ Collect all function arguments. @item $locals Collect all local variables. +@item $_ret +Collect the return address. This is helpful if you want to see more +of a backtrace. + @item $_sdata @vindex $_sdata@r{, collect} Collect static tracepoint marker specific data. Only available for |