Hi gdb gurus.
Well, I'm a total gdb newbie, so sorry if the question sounds
stupid...
I failed to find a forum on which I could post it, so... Here is it!
I try to define a user-defined macro, to display parameters used when
a
specific function is called.
IE there a the following function:
void dosomething (long theValue, char *theString) {...}
I want to put a breakpoint on that function and display a line like
that:
"dosomething(10, "coucou");\n"
each time that function is called.
Of course, that function is not in my code, and the caller is not
either.
I tried the following:
define DisplayFunctionCall
echo dosomething(
output $r3
output , \"
output $r4
echo \");\n
end