]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do not unwind past a zero PC frame.
authoremaste <emaste@FreeBSD.org>
Tue, 13 Nov 2012 03:05:28 +0000 (03:05 +0000)
committeremaste <emaste@FreeBSD.org>
Tue, 13 Nov 2012 03:05:28 +0000 (03:05 +0000)
commit8ec2223d5f26a8b21c79696a9b36ea01aca4ef57
treecd71e982c2718a953e7f5ae5050c1733ebbbeca6
parentff7333d33fdab4dc0e6809f8e70bdf82e2ed4637
Do not unwind past a zero PC frame.

This improves GDB usability when debugging code compiled with
optimization.

Upstream GDB revision f0031b6d3ae9b164b3747986ab898190bd4dcf8c (prior
to GDB's switch to GPLv3), with frame_debug_got_null_frame expanded
inline.

| 2004-12-12  Andrew Cagney  <cagney@gnu.org>
|
| * frame.c (get_prev_frame): When unwinding normal frames, check
| that the PC isn't zero.

Sponsored by: ADARA Networks
MFC After: 1 month
contrib/gdb/gdb/frame.c