Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2012-02-06 20:16:20 +0000
committerMarc Khouzam2012-02-07 14:20:10 +0000
commit8a73a23e9d27e3b2065394ef76c0e722226cf700 (patch)
tree5c26fb45de4e164ba1867e9db248142d27d8d44f
parent2e5c77c1ab91a033296cfab467d53c1c9a260e54 (diff)
downloadorg.eclipse.cdt-8a73a23e9d27e3b2065394ef76c0e722226cf700.tar.gz
org.eclipse.cdt-8a73a23e9d27e3b2065394ef76c0e722226cf700.tar.xz
org.eclipse.cdt-8a73a23e9d27e3b2065394ef76c0e722226cf700.zip
Bug 369594: GDB 7.4 now reports solib events in MI, but no longer in CLI
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/RxThread.java16
1 files changed, 10 insertions, 6 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/RxThread.java b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/RxThread.java
index 3eb0cc86c4b..d83a41a27e7 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/RxThread.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/RxThread.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2010 QNX Software Systems and others.
+ * Copyright (c) 2000, 2012 QNX Software 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 @@
* QNX Software Systems - Initial API and implementation
* Norbert Ploett, Siemens AG - fix for bug 119370
* Hewlett-Packard Development Company - fix for bug 109733 (null check in setPrompt)
+ * Marc Khouzam (Ericsson) - Bug 369594: GDB 7.4 now reports solib events in MI, but no longer in CLI
*******************************************************************************/
package org.eclipse.cdt.debug.mi.core;
@@ -306,7 +307,7 @@ public class RxThread extends Thread {
}
// GDB does not provide reason when stopping on a shared library
- // event or because of a catchpoint (in gdb < 7.0).
+ // event (gdb < 7.4) or because of a catchpoint (in gdb < 7.0).
// Hopefully this will be fixed in a future version. Meanwhile,
// we will use a hack to cope. On most platform we can detect by
// looking at the console stream for phrase. Although it is a
@@ -427,13 +428,13 @@ public class RxThread extends Thread {
}
}
}
- // GDB does not have reason when stopping on shared, hopefully
- // this will be fix in newer version meanwhile, we will use a hack
+ // GDB does not have reason when stopping on shared (gdb < 7.4)
+ // we will use a hack
// to cope. On most platform we can detect this state by looking at the
// console stream for the phrase:
// ~"Stopped due to shared library event\n"
//
- // Althought it is a _real_ bad idea to do this, we do not have
+ // Although it is a _real_ bad idea to do this, we do not have
// any other alternatives.
if (list.isEmpty()) {
String[] logs = getStreamRecords();
@@ -533,7 +534,10 @@ public class RxThread extends Thread {
event = new MIInferiorSignalExitEvent(session, rr);
}
session.getMIInferior().setTerminated(0,false);
- } else if ("shlib-event".equals(reason)) { //$NON-NLS-1$
+ } else if ("shlib-event".equals(reason) || //$NON-NLS-1$
+ // GDB 7.4 reports this event as "solib-event"
+ // Bug 369594
+ "solib-event".equals(reason)) {//$NON-NLS-1$
if (exec != null) {
event = new MISharedLibEvent(session, exec);
} else if (rr != null) {

Back to the top