Files
binutils-gdb/gdb/dwarf2
Tom Tromey 8bbc7f91fc Fix test in anonymous_struct_prefix
I noticed a bad test in dwarf2/read.c:anonymous_struct_prefix:

   attr = dw2_linkage_name_attr (die, cu);
   const char *attr_name = attr->as_string ();
  if (attr == NULL || attr_name == NULL)
    return NULL;

Here, if attr==NULL, this will crash before the test can be executed.

This patch fixes the problem by hoisting the test.  I'm checking this
in as obvious.
2025-09-20 14:08:19 -06:00
..
2025-09-10 16:05:27 -06:00
2025-09-10 16:05:27 -06:00
2025-09-10 16:07:58 -06:00
2025-09-08 18:52:48 -06:00
2025-09-10 16:05:28 -06:00
2025-09-10 16:05:28 -06:00
2025-09-20 14:08:19 -06:00
2025-09-10 16:07:58 -06:00
2025-09-10 16:05:28 -06:00
2025-09-10 16:05:28 -06:00