mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 02:06:01 +02:00
Patch from Tanya for locale
This commit is contained in:
parent
0daa1a8b68
commit
86875f7871
4 changed files with 18 additions and 11 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2004-03-16 Tanya Wolff
|
||||||
|
|
||||||
|
Marked strings in src as non-translatable
|
||||||
|
* src/GDBServerDebugger.java
|
||||||
|
* src/GDBTypeParser.java
|
||||||
|
* src/RxThread.java
|
||||||
|
|
||||||
2004-03-14 Alain Magloire
|
2004-03-14 Alain Magloire
|
||||||
|
|
||||||
Break the ChangeLog file in two.
|
Break the ChangeLog file in two.
|
||||||
|
|
|
@ -63,18 +63,18 @@ public class GDBServerDebugger implements ICDebugger {
|
||||||
File cwd = exe.getProject().getLocation().toFile();
|
File cwd = exe.getProject().getLocation().toFile();
|
||||||
String gdbinit = config.getAttribute(IMILaunchConfigurationConstants.ATTR_GDB_INIT, ".gdbinit"); //$NON-NLS-1$
|
String gdbinit = config.getAttribute(IMILaunchConfigurationConstants.ATTR_GDB_INIT, ".gdbinit"); //$NON-NLS-1$
|
||||||
if (config.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_REMOTE_TCP, false)) {
|
if (config.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_REMOTE_TCP, false)) {
|
||||||
String remote = config.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_HOST, "invalid");
|
String remote = config.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_HOST, "invalid"); //$NON-NLS-1$
|
||||||
remote += ":"; //$NON-NLS-1$
|
remote += ":"; //$NON-NLS-1$
|
||||||
remote += config.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_PORT, "invalid");
|
remote += config.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_PORT, "invalid"); //$NON-NLS-1$
|
||||||
String[] args = new String[] {"remote", remote};
|
String[] args = new String[] {"remote", remote}; //$NON-NLS-1$
|
||||||
session = (Session)MIPlugin.getDefault().createCSession(gdb, exe.getLocation().toFile(), 0, args, cwd, gdbinit);
|
session = (Session)MIPlugin.getDefault().createCSession(gdb, exe.getLocation().toFile(), 0, args, cwd, gdbinit);
|
||||||
} else {
|
} else {
|
||||||
MIPlugin plugin = MIPlugin.getDefault();
|
MIPlugin plugin = MIPlugin.getDefault();
|
||||||
Preferences prefs = plugin.getPluginPreferences();
|
Preferences prefs = plugin.getPluginPreferences();
|
||||||
int launchTimeout = prefs.getInt(IMIConstants.PREF_REQUEST_LAUNCH_TIMEOUT);
|
int launchTimeout = prefs.getInt(IMIConstants.PREF_REQUEST_LAUNCH_TIMEOUT);
|
||||||
|
|
||||||
String remote = config.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_DEV, "invalid");
|
String remote = config.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_DEV, "invalid"); //$NON-NLS-1$
|
||||||
String remoteBaud = config.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_DEV_SPEED, "invalid");
|
String remoteBaud = config.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_DEV_SPEED, "invalid"); //$NON-NLS-1$
|
||||||
session = (Session)MIPlugin.getDefault().createCSession(gdb, exe.getLocation().toFile(), -1, null, cwd, gdbinit);
|
session = (Session)MIPlugin.getDefault().createCSession(gdb, exe.getLocation().toFile(), -1, null, cwd, gdbinit);
|
||||||
MISession miSession = session.getMISession();
|
MISession miSession = session.getMISession();
|
||||||
CommandFactory factory = miSession.getCommandFactory();
|
CommandFactory factory = miSession.getCommandFactory();
|
||||||
|
@ -85,7 +85,7 @@ public class GDBServerDebugger implements ICDebugger {
|
||||||
if (info == null) {
|
if (info == null) {
|
||||||
throw new MIException (MIPlugin.getResourceString("src.GDBServerDebugger.Can_not_set_Baud")); //$NON-NLS-1$
|
throw new MIException (MIPlugin.getResourceString("src.GDBServerDebugger.Can_not_set_Baud")); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
MITargetSelect select = factory.createMITargetSelect(new String[] {"remote", remote});
|
MITargetSelect select = factory.createMITargetSelect(new String[] {"remote", remote}); //$NON-NLS-1$
|
||||||
miSession.postCommand(select, launchTimeout);
|
miSession.postCommand(select, launchTimeout);
|
||||||
select.getMIInfo();
|
select.getMIInfo();
|
||||||
if (info == null) {
|
if (info == null) {
|
||||||
|
|
|
@ -178,16 +178,16 @@ public class GDBTypeParser {
|
||||||
StringBuffer sb = new StringBuffer();
|
StringBuffer sb = new StringBuffer();
|
||||||
switch (getType()) {
|
switch (getType()) {
|
||||||
case FUNCTION :
|
case FUNCTION :
|
||||||
sb.append(" function returning " + (hasChild() ? child.verbose() : "")); //$NON-NLS-2$
|
sb.append(" function returning " + (hasChild() ? child.verbose() : "")); //$NON-NLS-1$//$NON-NLS-2$
|
||||||
break;
|
break;
|
||||||
case ARRAY :
|
case ARRAY :
|
||||||
sb.append(" array[" + dimension + "]" + " of " + (hasChild() ? child.verbose() : "")); //$NON-NLS-2$ //$NON-NLS-4$
|
sb.append(" array[" + dimension + "]" + " of " + (hasChild() ? child.verbose() : "")); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
|
||||||
break;
|
break;
|
||||||
case REFERENCE :
|
case REFERENCE :
|
||||||
sb.append(" reference to " + (hasChild() ? child.verbose() : "")); //$NON-NLS-2$
|
sb.append(" reference to " + (hasChild() ? child.verbose() : "")); //$NON-NLS-1$//$NON-NLS-2$
|
||||||
break;
|
break;
|
||||||
case POINTER :
|
case POINTER :
|
||||||
sb.append(" pointer to " + (hasChild() ? child.verbose() : "")); //$NON-NLS-2$
|
sb.append(" pointer to " + (hasChild() ? child.verbose() : "")); //$NON-NLS-1$//$NON-NLS-2$
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
|
|
|
@ -243,7 +243,7 @@ public class RxThread extends Thread {
|
||||||
// any other alternatives.
|
// any other alternatives.
|
||||||
String[] logs = getStreamRecords();
|
String[] logs = getStreamRecords();
|
||||||
for (int i = 0; i < logs.length; i++) {
|
for (int i = 0; i < logs.length; i++) {
|
||||||
if (logs[i].equalsIgnoreCase("Stopped due to shared library event")) {
|
if (logs[i].equalsIgnoreCase("Stopped due to shared library event")) { //$NON-NLS-1$
|
||||||
session.getMIInferior().setSuspended();
|
session.getMIInferior().setSuspended();
|
||||||
e = new MISharedLibEvent(exec);
|
e = new MISharedLibEvent(exec);
|
||||||
list.add(e);
|
list.add(e);
|
||||||
|
|
Loading…
Add table
Reference in a new issue