[PATCH 1/3] debugedit: skip .debug_types tests if compiler doesn't generate section
Mark Wielaard
mark@klomp.org
Fri Apr 21 12:46:35 GMT 2023
Hi,
On Tue, 2023-03-28 at 13:24 +0200, Mark Wielaard wrote:
> 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.
Pushed all 3 patches, with the above fix to patch 1.
Cheers,
Mark
More information about the Debugedit
mailing list