Re: gdb cannot call help function in replay mode

Jan Kratochvil <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On Tue, 25 Jun 2013 06:11:26 +0200, jian shen wrote:
> In below example, when I try to call function getA1() in replay mode, gdb give
> warning that it will write memory and make the execution log unusable, although
> this function does not write memory, only read memory.

The function writes to stack and registers.


> In real project, I have some helper function to dump what a handle is.  But in
> replay mode, I could not call such functions.  This limitation makes the replay
> mode almost unusable to me.  Any suggestion?

You should use Python Pretty Printer instead.  This will also work for core
file analysis where you also cannot call inferior functions.


Jan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.