summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2015-04-16 18:44:35 +0000
committerDavide Italiano <davide@freebsd.org>2015-04-16 18:44:35 +0000
commit90356501f54dd6eebcb053a3206d5a4afc3bebb9 (patch)
tree107b52935ef0dd0ae1d7186573f1aeb1df0373c6 /lldb/source/Plugins/Process
parentfedecc40a540bfc0304d59ed5941c53e78e942bb (diff)
downloadbcm5719-llvm-90356501f54dd6eebcb053a3206d5a4afc3bebb9.tar.gz
bcm5719-llvm-90356501f54dd6eebcb053a3206d5a4afc3bebb9.zip
Surround assignments w/ parenthesis to avoid mistakes.
This also silences a warning. llvm-svn: 235131
Diffstat (limited to 'lldb/source/Plugins/Process')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 5d03c4edd71..6f363100a77 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -3682,18 +3682,18 @@ parseRegisters (xmlDocPtr doc, GDBServerRegisterVec & regList) {
GdbServerRegisterInfo reg;
reg.clear( );
- if ( attr = xmlExFindAttribute( regs[i], "name" ) ) {
+ if ( ( attr = xmlExFindAttribute( regs[i], "name" ) ) ) {
reg.m_name = xmlExGetTextContent( attr ).c_str();
reg.m_flags.m_has_name = true;
}
- if ( attr = xmlExFindAttribute( regs[i], "bitsize" ) ) {
+ if ( ( attr = xmlExFindAttribute( regs[i], "bitsize" ) ) ) {
const std::string v = xmlExGetTextContent( attr );
reg.m_bitSize = atoi( v.c_str( ) );
reg.m_flags.m_has_bitSize = true;
}
- if ( attr = xmlExFindAttribute( regs[i], "type" ) ) {
+ if ( ( attr = xmlExFindAttribute( regs[i], "type" ) ) ) {
const std::string v = xmlExGetTextContent( attr );
reg.m_type = GdbServerRegisterInfo::eUnknown;
@@ -3708,12 +3708,12 @@ parseRegisters (xmlDocPtr doc, GDBServerRegisterVec & regList) {
reg.m_flags.m_has_type = (reg.m_type != GdbServerRegisterInfo::eUnknown);
}
- if ( attr = xmlExFindAttribute( regs[i], "group" ) ) {
+ if ( ( attr = xmlExFindAttribute( regs[i], "group" ) ) ) {
reg.m_group = xmlExGetTextContent( attr );
reg.m_flags.m_has_group = true;
}
- if ( attr = xmlExFindAttribute( regs[i], "regnum" ) ) {
+ if ( ( attr = xmlExFindAttribute( regs[i], "regnum" ) ) ) {
const std::string v = xmlExGetTextContent( attr );
reg.m_regNum = atoi( v.c_str( ) );
reg.m_flags.m_has_regNum = true;
OpenPOWER on IntegriCloud