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 gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
abbrev-cache.h
abbrev.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
abbrev.h
ada-imported.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
aranges.c Remove call to dwarf2_per_objfile::adjust from ranges readers 2024-05-04 09:30:30 -06:00
aranges.h
attribute.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
attribute.h
call-site.h
comp-unit-head.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
comp-unit-head.h
cooked-index.c gdb: remove unused includes in utils.h 2024-05-30 22:43:52 -04:00
cooked-index.h Move dwarf2_per_bfd::index_addrmap to mapped_gdb_index 2024-05-31 08:26:05 -06:00
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 gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
die.h gdb: don't include hashtab.h in defs.h 2024-04-22 21:34:19 -04:00
dwz.c gdb: ensure has dwarf info before reading DWZ file 2024-04-03 13:47:03 +01:00
dwz.h
expr.c gdb: move a bunch of quit-related things to event-top.{c,h} 2024-04-23 11:26:14 -04:00
expr.h
file-and-dir.h
frame-tailcall.c gdb: remove unused includes in utils.h 2024-05-30 22:43:52 -04:00
frame-tailcall.h
frame.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
frame.h
index-cache.c gdb: add overloads of gdb_abspath 2024-06-27 15:15:25 +01:00
index-cache.h Move the 'store' method to index_cache_store_context 2024-03-08 17:25:50 -07:00
index-common.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
index-common.h gdb: don't include hashtab.h in defs.h 2024-04-22 21:34:19 -04:00
index-write.c gdb: remove unused includes in utils.h 2024-05-30 22:43:52 -04:00
index-write.h
leb.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
leb.h
line-header.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
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 Move dwarf2_per_bfd::index_addrmap to mapped_gdb_index 2024-05-31 08:26:05 -06:00
parent-map.h Introduce class parent_map for DIE range map 2024-04-16 11:54:46 -06:00
public.h
read-debug-names.c Correctly handle DIE parent computations 2024-04-16 11:54:46 -06:00
read-debug-names.h
read-gdb-index.c Move dwarf2_per_bfd::index_addrmap to mapped_gdb_index 2024-05-31 08:26:05 -06:00
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 Move dwarf2_per_bfd::index_addrmap to mapped_gdb_index 2024-05-31 08:26:05 -06:00
sect-names.h
section.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
section.h
stringify.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
stringify.h
tag.h
types.h gdbsupport: constify some return values in print-utils.{h,cc} 2024-04-18 10:31:54 -04:00