[PATCH 3/3] Add missing stdlib.h includes to sim

Tom Tromey tromey@adacore.com
Tue May 4 19:17:39 GMT 2021


>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> writes:

Mike> On 04 May 2021 08:58, Tom Tromey wrote:
>> This updates the various "mloop.in" files to emit an include of
>> stdlib.h, to avoid warnings about 'abort' being undeclared.

Mike> i was debating how to approach this.  the mloop code that gets inserted here
Mike> is in the middle of the file, so there's a couple of funcs defined before this
Mike> include is hit.  things are generally namespaced, so maybe it's not a big deal,
Mike> but still felt a bit off which is why i was sitting on it.  the alternative is
Mike> to add a new callback point just for early headers and then the script would
Mike> emit stdlib.h and such then.

Or it could just unconditionally emit <stdlib.h>.

Mike> but maybe i'm being too ornery and your fix is fine.  feel free to merge.

I guess I'll just do it.  It can always be changed again, easy enough to
do.

Tom


More information about the Gdb-patches mailing list