Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Breakpoint commands compiler
@ 2014-10-17 15:42 Daniel Gutson
  2014-10-17 16:12 ` Daniel Gutson
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Daniel Gutson @ 2014-10-17 15:42 UTC (permalink / raw)
  To: gdb

Hi,

    gdb is sometimes used for changing the runtime behavior of a program.
That is, suppose there is a program that has a bug,
it is spotted with gdb, then I create a set of non-stopping breakpoints that
"fix" the runtime behavior by altering memory and registers.
It does work, but it's slow.

I was thinking to start a project to add a "breakpoint commands compiler"
to gdb, which basically generates C code from the breakpoint commands
(one function per breakpoint),
which in turns calls a C API (similar to the python api), invokes the compiler
(user-specified), loads it as a shared object, and finally replaces the commands
of the breakpoints by calls to the compiled breakpoint-functions.

Any comment/suggestion? Would this be accepted within gdb?

Thanks,

    Daniel.

-- 

Daniel F. Gutson
Chief Engineering Officer, SPD


San Lorenzo 47, 3rd Floor, Office 5

Córdoba, Argentina


Phone: +54 351 4217888 / +54 351 4218211

Skype: dgutson


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

end of thread, other threads:[~2014-10-23 15:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-17 15:42 Breakpoint commands compiler Daniel Gutson
2014-10-17 16:12 ` Daniel Gutson
2014-10-17 16:57 ` Doug Evans
2014-10-17 17:38   ` Phil Muldoon
2014-10-17 17:39   ` Jan Kratochvil
2014-10-23 15:35 ` David Taylor

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