| Summary: | Move to line fails using MinGW GDB | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Raphael Zulliger <zulliger> | ||||||||
| Component: | cdt-debug-dsf-gdb | Assignee: | Marc-André Laperle <malaperle> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | Marc Khouzam <marc.khouzam> | ||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | branko.drevensek, cdtdoug, malaperle, pawel.1.piech | ||||||||
| Version: | 8.0 | ||||||||||
| Target Milestone: | 8.1.0 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows 7 | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Raphael Zulliger
Created attachment 210030 [details] Proposed fix/workaround This patch applies the same fix/workaround as https://bugs.eclipse.org/bugs/show_bug.cgi?id=232415 did for runToLine. It's straight forward and has been tested with CDT 8.0.1 and "GNU gdb (GDB) 7.1" (MinGW) Created attachment 210034 [details]
Proposed fix/workaround
Previously added the wrong patch...
Created attachment 210035 [details]
Proposed fix/workaround
Same s... again. (The patch file on my disk did not contain the expected changes... sorry for all this trash).
This seems fine in indigo SR2. Probably this bug should be closed? (In reply to comment #4) > This seems fine in indigo SR2. Probably this bug should be closed? Was GDB was actually fixed? It works for me using GDB 7.4 and indigo SR0 (3.7.0 + CDT 8.0.0). I'll test with other versions of GDB. Maybe the patch should still be applied to deal with GDB < 7.4. Yes, it seems that it's gdb that was fixed. This works fine on (mingw) gdb 7.3.1, but results in same bug on gdb 6.7.1. The proposed fix looks good to me, although I cannot test it. If Marc-Andre can confirm it works ok, I think it is a good fix. Sorry, my previous comment was probably unclear. What I was trying to say was: Indigo SR2 + gdb (mingw) 7.3.1 works fine, so gdb seems to have been fixed. Indigo SR2 + gdb (our mingw based port) 6.7.1 results in same "source line not found" bug. Patch looks fine. When I get to my Windows machine I can test it. (In reply to comment #7) > The proposed fix looks good to me, although I cannot test it. > If Marc-Andre can confirm it works ok, I think it is a good fix. I tried with GDB 7.0.1 and I could reproduce the bug. After applying the patch it worked with both 7.0.1 and 7.4. Looks good. (In reply to comment #9) > (In reply to comment #7) > > The proposed fix looks good to me, although I cannot test it. > > If Marc-Andre can confirm it works ok, I think it is a good fix. > > I tried with GDB 7.0.1 and I could reproduce the bug. After applying the patch > it worked with both 7.0.1 and 7.4. Looks good. Thanks Marc-Andre, do you want to go ahead and commit, or do you prefer I do? (In reply to comment #10) > (In reply to comment #9) > > (In reply to comment #7) > > > The proposed fix looks good to me, although I cannot test it. > > > If Marc-Andre can confirm it works ok, I think it is a good fix. > > > > I tried with GDB 7.0.1 and I could reproduce the bug. After applying the patch > > it worked with both 7.0.1 and 7.4. Looks good. > > Thanks Marc-Andre, do you want to go ahead and commit, or do you prefer I do? I'll commit it. Committed to master, 8.1.0 > 2012-03-06 with a slight modification. In MIRunControl, I moved the line in the 'else' like for GDBRunControl. *** cdt git genie on behalf of Raphael Zulliger ***
Bug 369622 - Move to line fails using MinGW GDB
[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=9634e0c57f0f88605597e7768b2f9d6a06c89940
|