Community
Participate
Working Groups
For multi-process I reworked the launch sequence to modularize behavior. From what I had tested, with postmortem debugging, GDB allowed to set the binary after the core/trace file. Trying it in more detail for a trace file, I saw that GDB couldn't not locate the source code unless we specify the binary first. At least with GDB 7.2 I'll have to try it with a core file also.
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