Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
69e00d8f
Commit
69e00d8f
authored
Oct 01, 2009
by
hjk
Browse files
debugger: fix thumb mode breakpoint setting in trk adapter
parent
54e022a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/trkgdbadapter.cpp
View file @
69e00d8f
...
...
@@ -750,7 +750,7 @@ void TrkGdbAdapter::handleGdbServerCommand(const QByteArray &cmd)
//qDebug() << "ADDR: " << hexNumber(addr) << " LEN: " << len;
logMessage
(
QString
::
fromLatin1
(
"Inserting breakpoint at 0x%1, %2"
)
.
arg
(
addr
,
0
,
16
).
arg
(
len
));
const
QByteArray
ba
=
trkBreakpointMessage
(
addr
,
len
,
m_session
.
pid
);
const
QByteArray
ba
=
trkBreakpointMessage
(
addr
,
len
,
len
==
4
);
sendTrkMessage
(
0x1B
,
TrkCB
(
handleAndReportSetBreakpoint
),
ba
,
addr
);
}
...
...
@@ -1266,6 +1266,10 @@ void TrkGdbAdapter::handleAndReportSetBreakpoint(const TrkResult &result)
// Command: 0x80 Acknowledge
// Error: 0x00
// [80 09 00 00 00 00 0A]
if
(
result
.
errorCode
())
{
logMessage
(
"ERROR: "
+
result
.
errorString
());
return
;
}
uint
bpnr
=
extractInt
(
result
.
data
.
data
()
+
1
);
uint
addr
=
result
.
cookie
.
toUInt
();
m_session
.
addressToBP
[
addr
]
=
bpnr
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment