Skip to content
GitLab
Menu
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
b2849c30
Commit
b2849c30
authored
Nov 22, 2010
by
Arvid Ephraim Picciani
Browse files
Adapt IpcEngine to breakpoint handling changes
parent
9be36be9
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/lldb/ipcengineguest.cpp
View file @
b2849c30
...
...
@@ -274,27 +274,31 @@ void IPCEngineGuest::rpcCallback(quint64 f, QByteArray payload)
{
QDataStream
s
(
payload
);
SET_NATIVE_BYTE_ORDER
(
s
);
BreakpointId
id
;
BreakpointParameters
d
;
s
>>
id
;
s
>>
d
;
addBreakpoint
(
d
);
addBreakpoint
(
id
,
d
);
}
break
;
case
IPCEngineHost
::
RemoveBreakpoint
:
{
QDataStream
s
(
payload
);
SET_NATIVE_BYTE_ORDER
(
s
);
quint64
token
;
s
>>
token
;
removeBreakpoint
(
token
);
BreakpointId
id
;
s
>>
id
;
removeBreakpoint
(
id
);
}
break
;
case
IPCEngineHost
::
ChangeBreakpoint
:
{
QDataStream
s
(
payload
);
SET_NATIVE_BYTE_ORDER
(
s
);
BreakpointId
id
;
BreakpointParameters
d
;
s
>>
id
;
s
>>
d
;
changeBreakpoint
(
d
);
changeBreakpoint
(
id
,
d
);
}
break
;
case
IPCEngineHost
::
RequestUpdateWatchData
:
...
...
src/plugins/debugger/lldb/ipcengineguest.h
View file @
b2849c30
...
...
@@ -74,9 +74,9 @@ public:
virtual
void
activateFrame
(
qint64
token
)
=
0
;
virtual
void
selectThread
(
qint64
token
)
=
0
;
virtual
void
disassemble
(
quint64
pc
)
=
0
;
virtual
void
addBreakpoint
(
const
BreakpointParameters
&
bp
)
=
0
;
virtual
void
removeBreakpoint
(
qu
int
64
id
)
=
0
;
virtual
void
changeBreakpoint
(
const
BreakpointParameters
&
bp
)
=
0
;
virtual
void
addBreakpoint
(
BreakpointId
id
,
const
BreakpointParameters
&
bp
)
=
0
;
virtual
void
removeBreakpoint
(
Breakpo
int
Id
id
)
=
0
;
virtual
void
changeBreakpoint
(
BreakpointId
id
,
const
BreakpointParameters
&
bp
)
=
0
;
virtual
void
requestUpdateWatchData
(
const
WatchData
&
data
,
const
WatchUpdateFlags
&
flags
=
WatchUpdateFlags
())
=
0
;
...
...
src/plugins/debugger/lldb/ipcenginehost.cpp
View file @
b2849c30
...
...
@@ -241,20 +241,22 @@ void IPCEngineHost::fetchDisassembler(DisassemblerViewAgent *v)
rpcCall
(
Disassemble
,
p
);
}
void
IPCEngineHost
::
addBreakpoint
(
const
BreakpointParameters
&
bp
)
void
IPCEngineHost
::
insertBreakpoint
(
BreakpointId
id
)
{
breakHandler
()
->
notifyBreakpointInsertProceeding
(
id
);
QByteArray
p
;
{
QDataStream
s
(
&
p
,
QIODevice
::
WriteOnly
);
SET_NATIVE_BYTE_ORDER
(
s
);
s
<<
bp
;
s
<<
id
;
s
<<
breakHandler
()
->
breakpointData
(
id
);
}
rpcCall
(
AddBreakpoint
,
p
);
}
void
IPCEngineHost
::
removeBreakpoint
(
qu
int
64
id
)
void
IPCEngineHost
::
removeBreakpoint
(
Breakpo
int
Id
id
)
{
breakHandler
()
->
notifyBreakpointRemoveProceeding
(
id
);
QByteArray
p
;
{
QDataStream
s
(
&
p
,
QIODevice
::
WriteOnly
);
...
...
@@ -264,13 +266,15 @@ void IPCEngineHost::removeBreakpoint(quint64 id)
rpcCall
(
RemoveBreakpoint
,
p
);
}
void
IPCEngineHost
::
changeBreakpoint
(
const
Breakpoint
Parameters
&
bp
)
void
IPCEngineHost
::
changeBreakpoint
(
Breakpoint
Id
id
)
{
breakHandler
()
->
notifyBreakpointChangeProceeding
(
id
);
QByteArray
p
;
{
QDataStream
s
(
&
p
,
QIODevice
::
WriteOnly
);
SET_NATIVE_BYTE_ORDER
(
s
);
s
<<
bp
;
s
<<
id
;
s
<<
breakHandler
()
->
breakpointData
(
id
);
}
rpcCall
(
RemoveBreakpoint
,
p
);
}
...
...
src/plugins/debugger/lldb/ipcenginehost.h
View file @
b2849c30
...
...
@@ -104,9 +104,9 @@ public:
void
activateFrame
(
int
index
);
void
selectThread
(
int
index
);
void
fetchDisassembler
(
DisassemblerViewAgent
*
);
void
add
Breakpoint
(
const
Breakpoint
Parameters
&
bp
);
void
removeBreakpoint
(
qu
int
64
id
);
void
changeBreakpoint
(
const
Breakpoint
Parameters
&
bp
);
void
insert
Breakpoint
(
Breakpoint
Id
id
);
void
removeBreakpoint
(
Breakpo
int
Id
id
);
void
changeBreakpoint
(
Breakpoint
Id
id
);
void
updateWatchData
(
const
WatchData
&
data
,
const
WatchUpdateFlags
&
flags
=
WatchUpdateFlags
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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