any gdb script to parse string?
how can i get the addr following "saved eip" and "Arglist at" from the output of "info f" in gdb?
Code:
(gdb) info f |
Quote:
$name1 = value1 $name2 = value2 to the file, source this file to gdb and use those variables. Tricky and ugly but doable. You can have a look for something resembling here: http://statifier.sf.net Statifier is a program that convert dynamically linked executable to pseudo-static. It uses gdb to dump process memory and registers to the files as part of statifying process Files src/gdb_runner.gdb and src/statifier.gdb are examples of such tricks. PLease notes, that those files are preprocessed with sed before be used, but anyway you should get idea. EDIT: Statifier don't use gdb any more, but files mentioned above still can be found in the release < 1.7.0 or in SVN - tag 1.6.15 |
It's very useful to me,
thanks a lot. |
Quote:
|
All times are GMT -5. The time now is 08:02 AM. |