diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-10-19 22:00:59 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-12-15 21:56:25 -0500 |
commit | de75275fe54c5536c8238f0f3f88bb7ac2222942 (patch) | |
tree | 521af24ffa46304fd972b179d7af347329c1ddff /gdbserver | |
parent | f8631e5e04dbef678323e9be6b7329f39049d2c4 (diff) | |
download | gdb-de75275fe54c5536c8238f0f3f88bb7ac2222942.zip gdb-de75275fe54c5536c8238f0f3f88bb7ac2222942.tar.gz gdb-de75275fe54c5536c8238f0f3f88bb7ac2222942.tar.bz2 |
gdbsupport: change xml_escape_text_append's parameter from pointer to reference
The passed in string can't be nullptr, it makes more sense to pass in a
reference.
Change-Id: Idc8bd38abe1d6d9b44aa227d7856956848c233b3
Diffstat (limited to 'gdbserver')
-rw-r--r-- | gdbserver/linux-low.cc | 2 | ||||
-rw-r--r-- | gdbserver/netbsd-low.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc index 6f96e16..5e41231 100644 --- a/gdbserver/linux-low.cc +++ b/gdbserver/linux-low.cc @@ -6520,7 +6520,7 @@ read_link_map (std::string &document, CORE_ADDR lmid, CORE_ADDR lm_addr, if (libname[0] != '\0') { string_appendf (document, "<library name=\""); - xml_escape_text_append (&document, (char *) libname); + xml_escape_text_append (document, (char *) libname); string_appendf (document, "\" lm=\"0x%s\" l_addr=\"0x%s\" " "l_ld=\"0x%s\" lmid=\"0x%s\"/>", paddress (lm_addr), paddress (l_addr), diff --git a/gdbserver/netbsd-low.cc b/gdbserver/netbsd-low.cc index f05bcd4e..af2c6c8 100644 --- a/gdbserver/netbsd-low.cc +++ b/gdbserver/netbsd-low.cc @@ -1086,7 +1086,7 @@ netbsd_qxfer_libraries_svr4 (const pid_t pid, const char *annex, } string_appendf (document, "<library name=\""); - xml_escape_text_append (&document, (char *) libname); + xml_escape_text_append (document, (char *) libname); string_appendf (document, "\" lm=\"0x%lx\" " "l_addr=\"0x%lx\" l_ld=\"0x%lx\"/>", (unsigned long) lm_addr, (unsigned long) l_addr, |