[PATCH 2/2] Ada: Remove debug line number for DECL_IGNORED_P functions

Eric Botcazou botcazou@adacore.com
Wed Aug 4 14:33:02 GMT 2021


> The location of these ignored Ada decls looks completely sane to me.
> However, it was an unintentional side effect of the patch to allow
> minimal debugging of ignored decls.  This means we can now step into
> those functions or set line breakpoints there, while previously that
> was not possible.  And I guess it could be considered an improvement.
> 
> So it's your choice, how you want these functions to be debugged.

The requirement on the GDB side is that these functions *cannot* be stepped 
into, i.e. that they be completely transparent for the GDB user.  But we still 
want to have location information in the compiler itself to debug it.

-- 
Eric Botcazou




More information about the Gcc-patches mailing list