public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/10754] New: breakpoints referring to JITted code should be disabled between runs
@ 2009-10-10 23:51 vargaz at gmail dot com
  2009-10-10 23:51 ` [Bug breakpoints/10754] " vargaz at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: vargaz at gmail dot com @ 2009-10-10 23:51 UTC (permalink / raw)
  To: gdb-prs

When a breakpoint is placed on a location which is described by a symbol file
registered using the new JIT interface in gdb 7.0, and the program is restarted,
it will fail with a message like:
Warning:                                                                       
                         
Cannot insert breakpoint 1.                                                    
                         
Error accessing memory address 0x40010200: Input/output error.       

This is because the breakpoint is resolved to the address of a JITted function
which doesn't exist at the start of the next run.

The attached patch fixes this by disabling breakpoint locations referring to
JITted code between runs. Its against the gdb 7.0 sources. I hope its of 
acceptable quality.

-- 
           Summary: breakpoints referring to JITted code should be disabled
                    between runs
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: vargaz at gmail dot com
                CC: gdb-prs at sourceware dot org
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=10754

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <bug-10754-4717@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2012-08-09 19:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-10 23:51 [Bug breakpoints/10754] New: breakpoints referring to JITted code should be disabled between runs vargaz at gmail dot com
2009-10-10 23:51 ` [Bug breakpoints/10754] " vargaz at gmail dot com
2010-02-04 19:37 ` tromey at redhat dot com
2010-07-13 20:14 ` reid dot kleckner at gmail dot com
     [not found] <bug-10754-4717@http.sourceware.org/bugzilla/>
2012-08-09 19:08 ` hjl.tools at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).