mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-26 06:02:29 +00:00
GP-0: Fixed issue preventing placement of breakpoints with GDB
This commit is contained in:
parent
9f5c98fe14
commit
6398db9587
@ -403,19 +403,15 @@ public class TraceObjectManager {
|
||||
|
||||
public void addBreakpointContainer(TargetObject added) {
|
||||
TargetObject obj = findThreadOrProcess(added);
|
||||
if (obj != null) {
|
||||
ManagedBreakpointRecorder breakpointRecorder = recorder.breakpointRecorder;
|
||||
if (obj instanceof TargetThread) {
|
||||
ManagedBreakpointRecorder rec =
|
||||
recorder.getThreadRecorderForSuccessor(added).getBreakpointRecorder();
|
||||
rec.offerBreakpointContainer((TargetBreakpointSpecContainer) added);
|
||||
return;
|
||||
}
|
||||
breakpointRecorder.offerBreakpointContainer((TargetBreakpointSpecContainer) added);
|
||||
}
|
||||
else {
|
||||
Msg.error(this, "Error recording breakpoint container " + added);
|
||||
// NB. obj can be null
|
||||
ManagedBreakpointRecorder breakpointRecorder = recorder.breakpointRecorder;
|
||||
if (obj instanceof TargetThread) {
|
||||
ManagedBreakpointRecorder rec =
|
||||
recorder.getThreadRecorderForSuccessor(added).getBreakpointRecorder();
|
||||
rec.offerBreakpointContainer((TargetBreakpointSpecContainer) added);
|
||||
return;
|
||||
}
|
||||
breakpointRecorder.offerBreakpointContainer((TargetBreakpointSpecContainer) added);
|
||||
}
|
||||
|
||||
public void removeBreakpointContainer(TargetObject removed) {
|
||||
|
Loading…
Reference in New Issue
Block a user