This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/14446] New: breakpoints may not work on jitted code
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 09 Aug 2012 19:11:09 +0000
- Subject: [Bug breakpoints/14446] New: breakpoints may not work on jitted code
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14446
Bug #: 14446
Summary: breakpoints may not work on jitted code
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: breakpoints
AssignedTo: unassigned@sourceware.org
ReportedBy: hjl.tools@gmail.com
Classification: Unclassified
What happens are
1. V8 initializes memory for code with 0xdeadbeef.
2. When you set breakpoint in GDB, gdb saves and replaces one byte,
which happens to be 0xef in 0xdeadbeef, with 0xcc.
3. V8 writes out real instructions in memory.
4. When breakpoint is hit, GDB replaces 0xcc with 0xef.
5. V8 crashes due to 0xef.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.