[PATCH 1/3] debugedit: skip .debug_types tests if compiler doesn't generate section

Mark Wielaard mark@klomp.org
Tue Mar 28 11:24:58 GMT 2023


Hi Dmitry,

On Sat, 2023-03-25 at 14:30 +0300, Dmitry V. Levin wrote:
> On Sat, Mar 25, 2023 at 12:58:05AM +0100, Mark Wielaard wrote:
> > Some compilers don't generate a .debug_types section even when compiling
> > with -fdebug-types-section. Skip testing the .debug_types tests in that
> > case.
> > 
> >  DEBUGEDIT_SETUP([-fdebug-types-section -gdwarf-4])
> > +AT_SKIP_IF([! $READELF -S ./foo.o ./subdir_bar/bar.o ./baz.o | grep -q '.debug_types'])
> 
> Should it rather be grep -F -q?

Yes, that (--fixed-strings) would indeed be better.
Fixed in 3 places.

Thanks,

Mark


More information about the Debugedit mailing list