This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Breakpoint commands compiler
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Doug Evans <xdje42 at gmail dot com>
- Cc: Daniel Gutson <daniel dot gutson at tallertechnologies dot com>, gdb <gdb at sourceware dot org>
- Date: Fri, 17 Oct 2014 19:38:51 +0200
- Subject: Re: Breakpoint commands compiler
- Authentication-results: sourceware.org; auth=none
- References: <CAF5HaEVWapj-ZVTshW7aGdjFhmMohZqw9dCezwTrxH__FSEkLg at mail dot gmail dot com> <CAP9bCMQbQbvkHnoDY6oJbMOMVLZSJoxoyJ3DaGahtm_xyqjoJQ at mail dot gmail dot com>
On Fri, 17 Oct 2014 18:57:33 +0200, Doug Evans wrote:
> For reference sake a patch has been submitted by Red Hat to add a
> "compile" command.
https://sourceware.org/gdb/wiki/GCCCompileAndExecute
as written primarily by Phil recently mentions
Currently the project does not “patch in” the newly compiled bytes at
the program counter. That might be a viable solution in the future,
perhaps as we explore other avenues for this project (like “fast”
breakpoints).
There are such plans intended as fast breakpoint conditions evaluation similar
to current agent expressions but more general.
What Daniel Gutson mentions is IMO "fix-and-continue", this was implemented by
Apple in GDB-6.3 - Googled now its announcement:
https://www.sourceware.org/ml/gdb/2003-06/msg00500.html
It is one of the possible future goals of the "compile" project above although
currently it is considered as pretty far goal.
Jan