binutils-gdb/gdb/dwarf2
Tom de Vries 4e7b18de44 [gdb/symtab] Emit malformed macro definition complaint once
Add a test-case gdb.dwarf2/macro-complaints.exp, that checks complaints for the
.debug_macro section.

For one malformed macro definition, I get two identical complaints:
...
During symbol reading: macro debug info contains a malformed macro definition:^M
`M1_11_MALFORMED(ARG'^M
During symbol reading: macro debug info contains a malformed macro definition:^M
`M1_11_MALFORMED(ARG'^M
...

Fix this by bailing out after the first one.

Tested on aarch64-linux.

Reviewed-By: Alexandra Petlanova Hajkova <ahajkova@redhat.com>
2024-07-30 16:56:31 +02:00
..
abbrev-cache.c
abbrev-cache.h
abbrev.c
abbrev.h
ada-imported.c
aranges.c
aranges.h
attribute.c
attribute.h
call-site.h
comp-unit-head.c
comp-unit-head.h
cooked-index.c
cooked-index.h
cu.c Prefer htab_traverse_noresize 2024-06-24 09:11:30 -06:00
cu.h Don't obstack-allocate the call site hash table 2024-06-24 09:11:30 -06:00
die.c
die.h
dwz.c
dwz.h
expr.c
expr.h
file-and-dir.h
frame-tailcall.c
frame-tailcall.h
frame.c
frame.h
index-cache.c gdb: add overloads of gdb_abspath 2024-06-27 15:15:25 +01:00
index-cache.h
index-common.c
index-common.h
index-write.c
index-write.h
leb.c
leb.h
line-header.c
line-header.h
loc.c gdb, gdbserver, gdbsupport: use [[noreturn]] instead of ATTRIBUTE_NORETURN 2024-07-16 18:30:45 -04:00
loc.h
macro.c [gdb/symtab] Emit malformed macro definition complaint once 2024-07-30 16:56:31 +02:00
macro.h
mapped-index.h
parent-map.h
public.h
read-debug-names.c
read-debug-names.h
read-gdb-index.c
read-gdb-index.h
read.c gdb: use alternative for demangled name for non-demangeable linkage names 2024-06-25 12:42:29 +02:00
read.h
sect-names.h
section.c
section.h
stringify.c
stringify.h
tag.h
types.h