Remove alloca from osabi.c
authorTom Tromey <tom@tromey.com>
Sun, 13 Aug 2023 16:37:00 +0000 (10:37 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 14 Aug 2023 20:12:29 +0000 (14:12 -0600)
commitdad9ed2f252dc286d33e9e73d180eb348062e5dd
tree3a4232a30ea032c79245623dc555cc583863c5ca
parente72b937dddaf24d99ec1bf3beda4d8ecf3cd368c
Remove alloca from osabi.c

I noticed that the call to alloca in osabi.c can be replaced with a
statically-sized buffer, because some code just before the declaration
ensures that the length is bounded.

Reviewed-by: John Baldwin <jhb@FreeBSD.org>
gdb/osabi.c