This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/19286] New: crash when requesting "pc" from pending frame object
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 24 Nov 2015 17:02:33 +0000
- Subject: [Bug python/19286] New: crash when requesting "pc" from pending frame object
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=19286
Bug ID: 19286
Summary: crash when requesting "pc" from pending frame object
Product: gdb
Version: unknown
Status: NEW
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---
I'm writing an unwinder in Python.
If I try to get the register "pc" from the pending frame object
that is passed to my unwinder, gdb crashes:
../../binutils-gdb/gdb/regcache.c:796: internal-error:
regcache_cooked_read_value: Assertion `regnum <
regcache->descr->nr_cooked_registers' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) [answered Y; input not from terminal]
This is a bug, please report it. For instructions, see:
<http://www.gnu.org/software/gdb/bugs/>.
../../binutils-gdb/gdb/regcache.c:796: internal-error:
regcache_cooked_read_value: Assertion `regnum <
regcache->descr->nr_cooked_registers' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) [answered Y; input not from terminal]
I think either this should work, or it should throw a python exception.
--
You are receiving this mail because:
You are on the CC list for the bug.