diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2025-07-23 11:33:59 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2025-08-22 10:45:47 -0400 |
commit | 7f554749455b363af16be91f3c879664d1b8709c (patch) | |
tree | a4339502f0c7a5e8b269f561f6de079c25d955fb | |
parent | 33b761b201573a6e945b1148d5e965a580f129b1 (diff) | |
download | binutils-7f554749455b363af16be91f3c879664d1b8709c.zip binutils-7f554749455b363af16be91f3c879664d1b8709c.tar.gz binutils-7f554749455b363af16be91f3c879664d1b8709c.tar.bz2 |
gdb/solib-svr4: make "lmid" XML attribute optional
When connecting to a GDBserver 12, which doesn't have support for
non-default linker namespaces and the "lmid" attribute in the
qxfer:libraries-svr4:read response, I get:
(gdb) c
Continuing.
⚠️ warning: while parsing target library list (at line 1): Required attribute "lmid" of <library> not specified
Given the code in library_list_start_library, I understand that the
"lmid" attribute is meant to be optional. Mark it as optional in the
attribute descriptions, to avoid this warning.
Change-Id: Ieb10ee16e36bf8a771f944006e7ada1c10f6fbdc
Reviewed-By: Guinevere Larsen <guinevere@redhat.com>
-rw-r--r-- | gdb/solib-svr4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index f907571..e61aeaa 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -1115,7 +1115,7 @@ static const struct gdb_xml_attribute svr4_library_attributes[] = { "lm", GDB_XML_AF_NONE, gdb_xml_parse_attr_ulongest, NULL }, { "l_addr", GDB_XML_AF_NONE, gdb_xml_parse_attr_ulongest, NULL }, { "l_ld", GDB_XML_AF_NONE, gdb_xml_parse_attr_ulongest, NULL }, - { "lmid", GDB_XML_AF_NONE, gdb_xml_parse_attr_ulongest, NULL }, + { "lmid", GDB_XML_AF_OPTIONAL, gdb_xml_parse_attr_ulongest, NULL }, { NULL, GDB_XML_AF_NONE, NULL, NULL } }; |