placing a breakpoint at a physical address on x86 with gdb
Mathieu Lacage
Mathieu.Lacage@sophia.inria.fr
Fri Jan 12 12:48:00 GMT 2007
On Fri, 2007-01-12 at 12:41 +0100, Mathieu Lacage wrote:
> Yet another alternative would be to create a shared memory segment with
> shm_open, copy the code of my function in there, create multiple memory
> mappings with mmap (MAP_SHARED) on that shared memory segment and insert
> an int3 in the shared memory segment whenever needed.
and the attached test code demonstrates this.
Mathieu
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-mmap.c
Type: text/x-csrc
Size: 2046 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20070112/737ccc27/attachment.bin>
More information about the Gdb
mailing list