| Summary: | [tracepoints][postmortem] GDB does not like that we set the binary after we set the trace file | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Marc Khouzam <marc.khouzam> | ||||||
| Component: | cdt-debug-dsf-gdb | Assignee: | Marc Khouzam <marc.khouzam> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Marc Khouzam <marc.khouzam> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | cdtdoug, fchouinard, pawel.1.piech | ||||||
| Version: | 8.0 | Flags: | marc.khouzam:
review?
(pawel.1.piech) |
||||||
| Target Milestone: | 8.0 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Marc Khouzam
After trying it again, what I see is that for the first tracepoint that we look at, GDB does not show the stack details so we don't see the source code. However, when we look at the next tracepoint, things are ok, and when we go back to the first tracepoint, things are still ok. Created attachment 195984 [details]
Fix that does not remove old API
I think it is safer to set the executable before setting the core/trace file in a postmortem situation. That seems to be what GDB expects.
Created attachment 195985 [details]
Fix that removes old API
This is the same solution but it removes the API that won't be used. I prefer this solution but it is late in the cycle, so I've emailed the list for opinions.
(In reply to comment #3) > Created attachment 195985 [details] > Fix that removes old API > > This is the same solution but it removes the API that won't be used. I prefer > this solution but it is late in the cycle, so I've emailed the list for > opinions. No objection from the list, so I committed this patch. Pawel, can you review? It is just a move of code from one file to another. *** cdt cvs genie on behalf of mkhouzam *** Bug 338730: GDB does not like that we set the binary after we set the trace file [*] DebugNewProcessSequence.java 1.7 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/DebugNewProcessSequence.java?root=Tools_Project&r1=1.6&r2=1.7 [*] FinalLaunchSequence.java 1.24 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/FinalLaunchSequence.java?root=Tools_Project&r1=1.23&r2=1.24 |