This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 2/3] Display names of remote threads

Simon Marchi <> writes:

> +  attr = xml_find_attribute (attributes, "name");
> + = attr != NULL ? xstrdup (attr->value) : NULL;
> +

This breaks the C++ build,

/home/yao/SourceCode/gnu/gdb/git/gdb/remote.c: In function âvoid start_thread(gdb_xml_parser*, const gdb_xml_element*, void*, VEC_gdb_xml_value_s*)â:
/home/yao/SourceCode/gnu/gdb/git/gdb/remote.c:2975:50: error: invalid conversion from âvoid*â to âconst char*â [-fpermissive] = attr != NULL ? xstrdup (attr->value) : NULL;
In file included from /home/yao/SourceCode/gnu/gdb/git/gdb/common/common-defs.h:64:0,
                 from /home/yao/SourceCode/gnu/gdb/git/gdb/defs.h:28,
                 from /home/yao/SourceCode/gnu/gdb/git/gdb/remote.c:22:
/home/yao/SourceCode/gnu/gdb/git/gdb/../include/libiberty.h:323:14: note: initializing argument 1 of âchar* xstrdup(const char*)â
 extern char *xstrdup (const char *) ATTRIBUTE_MALLOC ATTRIBUTE_RETURNS_NONNULL;

and I think you've already received the mail from buildbot.

Yao (éå)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]