mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Bug 369622 - Move to line fails using MinGW GDB
This commit is contained in:
parent
406cabd6e7
commit
9634e0c57f
2 changed files with 11 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2011 Wind River Systems and others.
|
||||
* Copyright (c) 2006, 2012 Wind River Systems and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -8,6 +8,7 @@
|
|||
* Contributors:
|
||||
* Wind River Systems - initial API and implementation
|
||||
* Ericsson AB - Modified for handling of multiple threads
|
||||
* Indel AG - [369622] fixed moveToLine using MinGW
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.cdt.dsf.gdb.service;
|
||||
|
@ -1786,6 +1787,9 @@ public class GDBRunControl_7_0_NS extends AbstractDsfService implements IMIRunCo
|
|||
}
|
||||
else
|
||||
{
|
||||
// Hack around a MinGW bug; see 369622 (and also 196154 and 232415)
|
||||
sourceFile = adjustDebuggerPath(sourceFile);
|
||||
|
||||
String location = sourceFile + ":" + lineNumber; //$NON-NLS-1$
|
||||
if (resume)
|
||||
resumeAtLocation(context, location, rm);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2011 Wind River Systems and others.
|
||||
* Copyright (c) 2006, 2012 Wind River Systems and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -9,6 +9,7 @@
|
|||
* Wind River Systems - initial API and implementation
|
||||
* Ericsson AB - Modified for handling of multiple threads
|
||||
* Vladimir Prus (Mentor Graphics) - Add proper stop reason for step return (Bug 362274)
|
||||
* Indel AG - [369622] fixed moveToLine using MinGW
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.dsf.mi.service;
|
||||
|
||||
|
@ -1492,7 +1493,10 @@ public class MIRunControl extends AbstractDsfService implements IMIRunControl, I
|
|||
rm.done();
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
// Hack around a MinGW bug; see 369622 (and also 196154 and 232415)
|
||||
sourceFile = MIBreakpointsManager.adjustDebuggerPath(sourceFile);
|
||||
|
||||
String location = sourceFile + ":" + lineNumber; //$NON-NLS-1$
|
||||
if (resume)
|
||||
resumeAtLocation(context, location, rm);
|
||||
|
|
Loading…
Add table
Reference in a new issue