Files
binutils-gdb/gdb/ada-tasks.c
Tom de Vries 5a43f7f040 [gdb] Don't create registry keys in destructor
Creating a registry key using emplace calls new:
...
      DATA *result = new DATA (std::forward<Args> (args)...);
...
which can throw a bad alloc, which will terminate gdb if called from a
destructor.

Fix this in a few places.

Tested on aarch64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
2024-10-26 08:40:07 +02:00

54 KiB