| Summary: | [multi-process][console] Process consoles are not named properly | ||||||
|---|---|---|---|---|---|---|---|
| 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, malaperle, pawel.1.piech | ||||
| Version: | 7.0 | Flags: | malaperle:
review+
|
||||
| Target Milestone: | 8.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Marc Khouzam
Created attachment 194785 [details]
Fix
This patch stores the name of the binary we are about to start into the attributes that are passed to StartOrRestartProcessSequence_7_0, which will create the console. When creating the console, it reads the name of the binary from those attributes instead of taking it from the GDBBackend service.
With multi-process, the GDBBackend service cannot be used as it used to. We will probably need to update it eventually to fit with multi-process better.
Note that for the Restart case, we re-use the label of the previous console, so we don't need to worry about properly setting the binary name in the attributes.
Committed to HEAD.
Marc-Andre, this is related to the console, which you've looked at with me before, so can you review this small fix? *** cdt cvs genie on behalf of mkhouzam *** Bug 342351: Process consoles are not named properly for multi-process [*] StartOrRestartProcessSequence_7_0.java 1.8 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/StartOrRestartProcessSequence_7_0.java?root=Tools_Project&r1=1.7&r2=1.8 [*] DebugNewProcessSequence.java 1.5 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.4&r2=1.5 Looks good, I tested with gdb 7.2 only. BTW, I still used the 'MultiProcessMenu' to attach a second process. Is there a way to do it right now without this extra plug-in/menu or using the 'Automatically debug forked' option? (In reply to comment #4) > BTW, I still used the > 'MultiProcessMenu' to attach a second process. Is there a way to do it right > now without this extra plug-in/menu or using the 'Automatically debug forked' > option? NVM, I was running in all-stop mode and I just saw bug 341406. (In reply to comment #5) > (In reply to comment #4) > > BTW, I still used the > > 'MultiProcessMenu' to attach a second process. Is there a way to do it right > > now without this extra plug-in/menu or using the 'Automatically debug forked' > > option? > > NVM, I was running in all-stop mode and I just saw bug 341406. No problem. I will soon be writing the New and Noteworthy about multi-process with those details. I just want to fix as many bugs as I can before it is too late :-) |