[mythtv] Dump stack

Jean-Yves Avenard jyavenard at gmail.com
Mon Jul 5 00:31:54 UTC 2010


Hi

On 4 July 2010 23:09, James Courtier-Dutton <james.dutton at gmail.com> wrote:
> Hi,
>
> I am trying to find out what called a function.
> Does the myth source code have the equivalent of "dump_stack()".
>
> It would be useful to narrow down which instance called a particular
> instance of a method.
> I.e. I have places a log statement. (VERBOSE ....) in the code.
> If that log statement is in method X.
> I would like to find out which method Y called the method that
> contains the log statement.

If you use gdb and put a breakpoint to that particular function, you
can check the call stack there and see the arguments passed to each
function in the stack


More information about the mythtv-dev mailing list