<div dir="ltr"><div>Dear Marc,</div><div><br></div><div>How do I actually run "___print_ctrl_flow_history" from a GDB prompt such as the one below?</div><div><br></div><div>I have access to global vars, can I pick up the needed ___ps argument from there, or do I need to make an own facility for knowing what ___ps value to use here?<br><br>E.g. "call ___print_ctrl_flow_history(123456 )"</div><div><br></div><div>Thanks!</div><div><br></div><div><div><font face="monospace, monospace">$ gdb ./gsc/gsc</font></div><div><font face="monospace, monospace">GNU gdb (GDB) 7.4.1-debian</font></div><div><font face="monospace, monospace">Copyright (C) 2012 Free Software Foundation, Inc.</font></div><div><font face="monospace, monospace">License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>></font></div><div><font face="monospace, monospace">This is free software: you are free to change and redistribute it.</font></div><div><font face="monospace, monospace">There is NO WARRANTY, to the extent permitted by law.  Type "show copying"</font></div><div><font face="monospace, monospace">and "show warranty" for details.</font></div><div><font face="monospace, monospace">This GDB was configured as "x86_64-linux-gnu".</font></div><div><font face="monospace, monospace">For bug reporting instructions, please see:</font></div><div><font face="monospace, monospace"><<a href="http://www.gnu.org/software/gdb/bugs/">http://www.gnu.org/software/gdb/bugs/</a>>...</font></div><div><font face="monospace, monospace">Reading symbols from /tmp/gambit/gsc/gsc...done.</font></div><div><font face="monospace, monospace">(gdb) run</font></div><div><font face="monospace, monospace">Starting program: /tmp/gambit/gsc/gsc</font></div><div><font face="monospace, monospace">Gambit v4.8.3</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">> 1 2 3</font></div><div><font face="monospace, monospace">1</font></div><div><font face="monospace, monospace">> 2</font></div><div><font face="monospace, monospace">> 3</font></div><div><font face="monospace, monospace">></font></div><div><font face="monospace, monospace">Program received signal SIGINT, Interrupt.</font></div><div><font face="monospace, monospace">0x00007ffff6f81433 in select () from /lib/x86_64-linux-gnu/libc.so.6</font></div><div><font face="monospace, monospace">(gdb)</font></div></div><div><br></div></div>