This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug macros/16855] Backtrace stopped: frame did not save the PC


https://sourceware.org/bugzilla/show_bug.cgi?id=16855

Peter Schauer <peter.schauer at mytum dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |peter.schauer at mytum dot de

--- Comment #3 from Peter Schauer <peter.schauer at mytum dot de> ---
I am pretty sure that the following line in your macro is the culprit:
    set $pc  = (bfr_pendcmd_t*)$elem
in which you are assigning to the current program counter of your
program, thus messing up the stack backtrace.

Please try to change it to
    set $my_pc  = (bfr_pendcmd_t*)$elem
#    set $cmd = (SFctlGenTagCmd*)&(((struct bfr_pendcmd*)$my_pc)->bfrpc_cmd)
or comment it out altogether, as it seems not to be used anyway.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]