Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2002-10-07 13:18:39 -0400
committerAlain Magloire2002-10-07 13:18:39 -0400
commitc124fa1f18f1cb4f393d71801c8dce5506cc5d34 (patch)
tree99597d4563e7db87a06c2fdc5504c4cec38a8180
parent1f82bf446bb76afb4345f3dd1a6d07b0aa7e1a18 (diff)
downloadorg.eclipse.cdt-c124fa1f18f1cb4f393d71801c8dce5506cc5d34.tar.gz
org.eclipse.cdt-c124fa1f18f1cb4f393d71801c8dce5506cc5d34.tar.xz
org.eclipse.cdt-c124fa1f18f1cb4f393d71801c8dce5506cc5d34.zip
Gdb return the value in octal we have to decode() it.
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/event/MIInferiorExitEvent.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/event/MIInferiorExitEvent.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/event/MIInferiorExitEvent.java
index f0a418d12ca..a043af4f271 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/event/MIInferiorExitEvent.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/event/MIInferiorExitEvent.java
@@ -62,7 +62,7 @@ public class MIInferiorExitEvent extends MIEvent {
if (var.equals("exit-code")) {
try {
- code = Integer.parseInt(str.trim());
+ code = Integer.decode(str.trim()).intValue();
} catch (NumberFormatException e) {
}
}

Back to the top