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 breakpoints/14446] New: breakpoints may not work on jitted code


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.


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