Skip to content

Commit 3a657e6

Browse files
committed
gdbjtag: DebugUtils check not same key
1 parent cf18247 commit 3a657e6

File tree

1 file changed

+5
-3
lines changed
  • plugins/org.eclipse.embedcdt.debug.gdbjtag/src/org/eclipse/embedcdt/debug/gdbjtag

1 file changed

+5
-3
lines changed

plugins/org.eclipse.embedcdt.debug.gdbjtag/src/org/eclipse/embedcdt/debug/gdbjtag/DebugUtils.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -719,9 +719,11 @@ public static <V> V getAttribute(Map<String, ?> attributes, String key, V defaul
719719
return (V) value;
720720
}
721721
String compatKey = key.replace("org.eclipse.embedcdt.", "ilg.gnumcueclipse.");
722-
value = attributes.get(compatKey);
723-
if (defaultValue.getClass().isInstance(value)) {
724-
return (V) value;
722+
if (!compatKey.equals(key)) {
723+
value = attributes.get(compatKey);
724+
if (defaultValue.getClass().isInstance(value)) {
725+
return (V) value;
726+
}
725727
}
726728
return defaultValue;
727729
}

0 commit comments

Comments
 (0)