it was a misunderstanding of the parentRequestMonitor in RequestMonitor. The issue is now solved.
hi
I am extending eclipse to handle gdb record btrace, and display and navigate in instructions and function-calls histories.
I would like to inform the user about the status of the recording and therefore I need to issue the gdb command 'info record'
here is the implementation of the command
public void infoRecord(ICommandControlDMContext context, RequestMonitor rm) {
if (fReverseTraceMethod != ReverseDebugMethod.OFF) {
getConnection().queueCommand(fCommandFactory.createCLIInfoRecord(context),
new DataRequestMonitor<CLIInfoRecordInfo>(getExecutor(), rm) {
@Override
public void handleFailure() {
setResumePending(false);
getCache().setContextAvailable(context, true);
}
@Override
protected void handleSuccess() {
Integer count = getData().getFunctionsCount();
System.out.println("Recording " + getData().getIsRecording() + ", icount "
+ getData().getInstructionsCount() + ", fcount " + getData().getFunctionsCount()
+ ", Replaying " + getData().getIsReplaying() + ", replaying at: "
+ getData().getReplyingInstruction() + " <==================");
System.out.println("GDBRunControl.handleSuccess DataRequestMonitor");
System.out.println("getDate(): " + getData() + ", " + count);
rm.done();
}
});
} else {
rm.done();
}
}
the command is issued properly but I am not able to get the data back.
the only location where the command is additionally consumed is
public void eventReceived(Object output) {
defined in GDBRunControl_7_10.java.
this function was introduced on
01.03.2016 to fix bug 488660.
can this method lead to the consumption
of the output and therefore preventing the CLIInfoRecordInfo
from getting and processing the output properly?
do you have a suggestion to overcome
this issue?
Kind Regards
Zied Guermazi
--
Zied
Guermazi
founder
Trande
GmbH
Leuschnerstraße
2
69469
Weinheim/Germany
Mobile:
+491722645127
mailto:zied.guermazi@xxxxxxxxx
Trande
GmbH
Leuschnerstraße
2, D-69469 Weinheim; Telefon: +491722645127
Sitz der Gesellschaft:
Weinheim- Registergericht: AG Mannheim HRB 736209 -
Geschäftsführung: Zied Guermazi
Confidentiality
Note
This
message is intended only for the use of the named recipient(s) and
may contain confidential and/or privileged information. If you are
not the intended recipient, please contact the sender and delete the
message. Any unauthorized use of the information contained in this
message is prohibited.
--
Zied
Guermazi
founder
Trande
GmbH
Leuschnerstraße
2
69469
Weinheim/Germany
Mobile:
+491722645127
mailto:zied.guermazi@xxxxxxxxx
Trande
GmbH
Leuschnerstraße
2, D-69469 Weinheim; Telefon: +491722645127
Sitz der Gesellschaft:
Weinheim- Registergericht: AG Mannheim HRB 736209 -
Geschäftsführung: Zied Guermazi
Confidentiality
Note
This
message is intended only for the use of the named recipient(s) and
may contain confidential and/or privileged information. If you are
not the intended recipient, please contact the sender and delete the
message. Any unauthorized use of the information contained in this
message is prohibited.