[PATCH] gdb, configure: Add disable-formats option for configure
Tom Tromey
tom@tromey.com
Thu Sep 26 19:18:58 GMT 2024
>>>>> Guinevere Larsen <guinevere@redhat.com> writes:
> Ideally we'd like to be able to disable even those formats, in case a
> user wants to build GDB only to examine remote files for example, but
> the current infrastructure for the file format readers doesn't allow
> us to do it.
The goal seems totally fine to me.
> +enable-formats=[FORMAT,]...
I think this option name is too generic.
> +# If all targets were requested, this is all formats that should accompany
> +# them.
> +all_target_formats="elf xcoff mips coff"
I think it would be nicer if the full list only had to be written in one
spot. Right now it seems like it's both here and in the makefile? viz:
+# All files that relate to GDB's ability to read debug information.
+# Used with --enable-formats=all.
+ALL_FORMAT_OBS = \
I'd written some more stuff here about maybe just following BFD's lead.
But looking at my "minimal" build tree, I see a native Linux gdb seems
to have COFF and other junk in BFD, so following BFD doesn't seem really
possible.
Tom
More information about the Gdb-patches
mailing list