I want to thank you for the question, I am going over the thread, and I would like to know if anything was missing from my answers. Honestly, when I get excited about a situation, I skip steps. Maybe I missed something.
hi Matthew,
thanks for you proposal,
GDB support saving trace points, but the traces we are considering here are different. it is about btraces (branch traces)
https://sourceware.org/gdb/current/onlinedocs/gdb/Process-Record-and-Replay.html .
saving branch traces is not yet supported yet in GDB. I am trying to promote this feature too.
to get familiar to this feature you can do the following (you can use a linux os on an intel based pc):
make sure you have a pc with a recent processor supporting bts or ip processor traces and a linux running on it.
on linux make sure you have required privileges to get the traces
start gdb and load a sample program
type followings in GDB
break main
run
record btrace
break < function name or line number in you program>
continue
info record //check that GDb collected btraces for your program
set record function-call-history-size 0
set record instruction-history-size 0
record instruction-history /m 1 //you will get the instruction history
record function-call-history /ilc 1 //you will get the function history
Kind regards
Zied Guermazi
On 03.02.21 14:52, tracecompass developer discussions wrote:
Hi Zied,
May I suggest then latching onto the CTF flag?
It makes the trace visualization task much easier and makes decoupling GDB from trace compass easier (you can have the target in Australia and the host in Austria. 😉 )
Matthew
hi,
I am re-sending this message. I got initially a delivery failure notification
Hi Matthew,
I am glad to hear that,
yes, you are touching one very interesting feature to develop, namely extending the MI interface of GDB to cover exchanging branch tracing. to get the traces in a binary format and save text parsing and processing.
for the time being, and as a first step, I was wondering if It is possible to do a proof of concept. so that I can present the feature and get traction from the community.
FYI: I am extending gdb to support btraces using ARM etm, and the results are very promising so far.
Kind regards
/Zied
On 02.02.21 06:24, Mail Delivery System wrote:
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
tracecompass-dev@xxxxxxxxxxx
host mail.eclipse.org [198.41.30.200]
SMTP error from remote mail server after RCPT TO:<tracecompass-dev@xxxxxxxxxxx>:
554 5.7.1 Service unavailable; Client host [192.162.87.250] blocked using bl.spamcop.net
Reporting-MTA: dns; node02.secure-mailgate.com
Action: failed
Final-Recipient: rfc822;tracecompass-dev@xxxxxxxxxxx
Status: 5.0.0
Remote-MTA: dns; mail.eclipse.org
Diagnostic-Code: smtp; 554 5.7.1 Service unavailable; Client host [192.162.87.250] blocked using bl.spamcop.net
--
Zied Guermazi
founder
Trande UG
Leuschnerstraße 2
69469 Weinheim/Germany
Mobile: +491722645127
mailto:zied.guermazi@xxxxxxxxx
Trande UG
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.
_______________________________________________
tracecompass-dev mailing list
tracecompass-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tracecompass-dev
--
Zied Guermazi
founder
Trande UG
Leuschnerstraße 2
69469 Weinheim/Germany
Mobile: +491722645127
mailto:zied.guermazi@xxxxxxxxx
Trande UG
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.