Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* How do I patch my binary
@ 2010-11-23 21:31 Marc Khouzam
  2010-11-23 21:50 ` Baurzhan Ismagulov
  2010-11-23 21:53 ` Pedro Alves
  0 siblings, 2 replies; 9+ messages in thread
From: Marc Khouzam @ 2010-11-23 21:31 UTC (permalink / raw)
  To: 'gdb@sourceware.org'

Hi,

There is doc section "Patching Programs".  This got me hoping I could somehow 
patch my binary while I was debugging.

My hope was that I could modify the source code (outside of GDB), recompile 
the binary and have GDB load and use the new binary, without having to restart 
the program.  I couldn't get this to work (using 'set write on' and reloading
the new binary).

When the doc says "Patching" does it mean I actually have to modify the memory
where the code is written, using GDB commands?  Or can I do it high-level
like I originally hoped.

Thanks

Marc





 


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-11-30 23:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-23 21:31 How do I patch my binary Marc Khouzam
2010-11-23 21:50 ` Baurzhan Ismagulov
2010-11-24 15:01   ` Marc Khouzam
2010-11-24 15:15     ` Baurzhan Ismagulov
2010-11-25 10:51     ` Jan Kratochvil
2010-11-25 14:16       ` Marc Khouzam
2010-11-25 14:42         ` Jonas Maebe
2010-11-30 23:54           ` Stan Shebs
2010-11-23 21:53 ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox