This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2328] _dl_debug_state() RT_CONSISTENT called too early
- From: "jreiser at BitWagon dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 21 Nov 2009 03:10:38 -0000
- Subject: [Bug libc/2328] _dl_debug_state() RT_CONSISTENT called too early
- References: <20060211192240.2328.jreiser@BitWagon.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jreiser at BitWagon dot com 2009-11-21 03:10 -------
"Nothing should prevent you inserting breakpoints before relocation, ..."
Except that in general, being subject to future relocation *does* prevent
inserting breakpoints. Particularly in the case of RISC with multi-byte
breakpoint opcode (such as SPARC), if the intended location of a breakpoint is
also relocated then it is essential to perform the relocation before inserting
the breakpoint. Even in the case of CISC with a single-byte breakpoint opcode
(such as x86 and x86_64), the "code" could be directly threaded (a list of
addresses), and inserting a breakpoint [by overwriting more than one byte] would
require changing something that is subject to later relocation.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=2328
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.