This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Modify gcc for use with gdb (issue5132047)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Lawrence Crowl <crowl at google dot com>
- Cc: reply at codereview dot appspotmail dot com, dnovillo at google dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 27 Sep 2011 09:14:47 +0200
- Subject: Re: Modify gcc for use with gdb (issue5132047)
- References: <20110926220500.9254022266A@jade.mtv.corp.google.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Sep 26, 2011 at 03:05:00PM -0700, Lawrence Crowl wrote:
> There a non-transparent change in behavior that may affect some users.
> The inline functions will introduce additional lines in a sequence of
> gdb 'step' commands. Use 'next' instead.
That is IMHO a serious obstackle. If anything, the inlines should
use always_inline, artificial attributes, but don't know if GDB treats them
already specially and doesn't step into them with step.
Also, I'm afraid it will significantly grow cc1plus/cc1 debug info.
The .gdbinit macro redefinition Paolo posted sounds to be a better approach.
Jakub