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
27279c36
Commit
27279c36
authored
Dec 02, 2010
by
Arvid Ephraim Picciani
Browse files
lldb: change startup sequence to preload the binary
parent
c39d7cf1
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/lldb/guest/lldbengineguest.cpp
View file @
27279c36
...
...
@@ -147,11 +147,6 @@ void LldbEngineGuest::setupInferior(const QString &executable,
notifyInferiorSetupFailed
();
return
;
}
notifyInferiorSetupOk
();
}
void
LldbEngineGuest
::
runEngine
()
{
DEBUG_FUNC_ENTER
;
const
char
**
argp
=
new
const
char
*
[
m_arguments
.
count
()
+
1
];
...
...
@@ -166,13 +161,12 @@ void LldbEngineGuest::runEngine()
envp
[
i
]
=
m_environment
[
i
].
data
();
}
lldb
::
SBError
err
;
*
m_process
=
m_target
->
Launch
(
argp
,
envp
,
NULL
,
NULL
,
false
,
err
);
*
m_process
=
m_target
->
Launch
(
argp
,
envp
,
NULL
,
NULL
,
true
,
err
);
if
(
!
err
.
Success
())
{
showMessage
(
QString
::
fromLocal8Bit
(
err
.
GetCString
()));
qDebug
()
<<
err
.
GetCString
();
notify
EngineRun
Failed
();
notify
InferiorSetup
Failed
();
}
/*
...
...
@@ -187,6 +181,13 @@ void LldbEngineGuest::runEngine()
m_listener
->
StartListeningForEvents
(
m_process
->
GetBroadcaster
(),
UINT32_MAX
);
QMetaObject
::
invokeMethod
(
m_worker
,
"listen"
,
Qt
::
QueuedConnection
,
Q_ARG
(
lldb
::
SBListener
*
,
m_listener
));
notifyInferiorSetupOk
();
}
void
LldbEngineGuest
::
runEngine
()
{
DEBUG_FUNC_ENTER
;
m_process
->
Continue
();
}
void
LldbEngineGuest
::
shutdownInferior
()
...
...
@@ -430,10 +431,13 @@ void LldbEngineGuest::addBreakpoint(BreakpointId id,
bp
.
lineNumber
=
bp
.
lineNumber
;
bp
.
fileName
=
bp
.
fileName
;
notifyAddBreakpointOk
(
id
);
showMessage
(
QLatin1String
(
"[BB] ok."
));
notifyBreakpointAdjusted
(
id
,
bp
);
}
else
{
m_breakpoints
.
take
(
id
);
notifyAddBreakpointFailed
(
id
);
showMessage
(
QLatin1String
(
"[BB] failed. cant resolve yet"
));
// notifyAddBreakpointFailed(id);
// notifyAddBreakpointOk(id);
}
}
else
{
showMessage
(
QLatin1String
(
"[BB] failed. dunno."
));
...
...
src/plugins/debugger/lldb/ipcenginehost.cpp
View file @
27279c36
...
...
@@ -494,6 +494,7 @@ void IPCEngineHost::rpcCallback(quint64 f, QByteArray payload)
break
;
case
IPCEngineGuest
::
NotifyAddBreakpointOk
:
{
attemptBreakpointSynchronization
();
QDataStream
s
(
payload
);
SET_NATIVE_BYTE_ORDER
(
s
);
BreakpointId
id
;
...
...
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