aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2024-01-18 16:45:10 +0000
committerDavid Spickett <david.spickett@linaro.org>2024-01-18 16:46:38 +0000
commitb75b9d82f576fecbdec98f7cd076be7a72f70dbf (patch)
tree6cb9291e86604234b0ff544c68379b477c9a9754 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parent2b804f875579995b1588f1a079e265929163d0e4 (diff)
downloadllvm-b75b9d82f576fecbdec98f7cd076be7a72f70dbf.zip
llvm-b75b9d82f576fecbdec98f7cd076be7a72f70dbf.tar.gz
llvm-b75b9d82f576fecbdec98f7cd076be7a72f70dbf.tar.bz2
[lldb] Correct function names in ProcessGDBRemote::ParseFlagsFields log messages
This has to be specified in the string because otherwise we'd get the lambda's name, and I incorrectly used the name of the calling function here.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp62
1 files changed, 33 insertions, 29 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 316be47..23834d4 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -4189,52 +4189,55 @@ static std::vector<RegisterFlags::Field> ParseFlagsFields(XMLNode flags_node,
// Note that XML in general requires that each of these attributes only
// appears once, so we don't have to handle that here.
if (attr_name == "name") {
- LLDB_LOG(log,
- "ProcessGDBRemote::ParseFlags Found field node name \"{0}\"",
- attr_value.data());
+ LLDB_LOG(
+ log,
+ "ProcessGDBRemote::ParseFlagsFields Found field node name \"{0}\"",
+ attr_value.data());
name = attr_value;
} else if (attr_name == "start") {
unsigned parsed_start = 0;
if (llvm::to_integer(attr_value, parsed_start)) {
if (parsed_start > max_start_bit) {
- LLDB_LOG(
- log,
- "ProcessGDBRemote::ParseFlags Invalid start {0} in field node, "
- "cannot be > {1}",
- parsed_start, max_start_bit);
+ LLDB_LOG(log,
+ "ProcessGDBRemote::ParseFlagsFields Invalid start {0} in "
+ "field node, "
+ "cannot be > {1}",
+ parsed_start, max_start_bit);
} else
start = parsed_start;
} else {
- LLDB_LOG(log,
- "ProcessGDBRemote::ParseFlags Invalid start \"{0}\" in "
- "field node",
- attr_value.data());
+ LLDB_LOG(
+ log,
+ "ProcessGDBRemote::ParseFlagsFields Invalid start \"{0}\" in "
+ "field node",
+ attr_value.data());
}
} else if (attr_name == "end") {
unsigned parsed_end = 0;
if (llvm::to_integer(attr_value, parsed_end))
if (parsed_end > max_start_bit) {
- LLDB_LOG(
- log,
- "ProcessGDBRemote::ParseFlags Invalid end {0} in field node, "
- "cannot be > {1}",
- parsed_end, max_start_bit);
+ LLDB_LOG(log,
+ "ProcessGDBRemote::ParseFlagsFields Invalid end {0} in "
+ "field node, "
+ "cannot be > {1}",
+ parsed_end, max_start_bit);
} else
end = parsed_end;
else {
- LLDB_LOG(
- log,
- "ProcessGDBRemote::ParseFlags Invalid end \"{0}\" in field node",
- attr_value.data());
+ LLDB_LOG(log,
+ "ProcessGDBRemote::ParseFlagsFields Invalid end \"{0}\" in "
+ "field node",
+ attr_value.data());
}
} else if (attr_name == "type") {
// Type is a known attribute but we do not currently use it and it is
// not required.
} else {
- LLDB_LOG(log,
- "ProcessGDBRemote::ParseFlags Ignoring unknown attribute "
- "\"{0}\" in field node",
- attr_name.data());
+ LLDB_LOG(
+ log,
+ "ProcessGDBRemote::ParseFlagsFields Ignoring unknown attribute "
+ "\"{0}\" in field node",
+ attr_name.data());
}
return true; // Walk all attributes of the field.
@@ -4242,10 +4245,11 @@ static std::vector<RegisterFlags::Field> ParseFlagsFields(XMLNode flags_node,
if (name && start && end) {
if (*start > *end) {
- LLDB_LOG(log,
- "ProcessGDBRemote::ParseFlags Start {0} > end {1} in field "
- "\"{2}\", ignoring",
- *start, *end, name->data());
+ LLDB_LOG(
+ log,
+ "ProcessGDBRemote::ParseFlagsFields Start {0} > end {1} in field "
+ "\"{2}\", ignoring",
+ *start, *end, name->data());
} else {
fields.push_back(RegisterFlags::Field(name->str(), *start, *end));
}