mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +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
|
||||
|
||||
Break the ChangeLog file in two.
|
||||
|
|
|
@ -63,18 +63,18 @@ public class GDBServerDebugger implements ICDebugger {
|
|||
File cwd = exe.getProject().getLocation().toFile();
|
||||
String gdbinit = config.getAttribute(IMILaunchConfigurationConstants.ATTR_GDB_INIT, ".gdbinit"); //$NON-NLS-1$
|
||||
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 += config.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_PORT, "invalid");
|
||||
String[] args = new String[] {"remote", remote};
|
||||
remote += config.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_PORT, "invalid"); //$NON-NLS-1$
|
||||
String[] args = new String[] {"remote", remote}; //$NON-NLS-1$
|
||||
session = (Session)MIPlugin.getDefault().createCSession(gdb, exe.getLocation().toFile(), 0, args, cwd, gdbinit);
|
||||
} else {
|
||||
MIPlugin plugin = MIPlugin.getDefault();
|
||||
Preferences prefs = plugin.getPluginPreferences();
|
||||
int launchTimeout = prefs.getInt(IMIConstants.PREF_REQUEST_LAUNCH_TIMEOUT);
|
||||
|
||||
String remote = config.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_DEV, "invalid");
|
||||
String remoteBaud = config.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_DEV_SPEED, "invalid");
|
||||
String remote = config.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_DEV, "invalid"); //$NON-NLS-1$
|
||||
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);
|
||||
MISession miSession = session.getMISession();
|
||||
CommandFactory factory = miSession.getCommandFactory();
|
||||
|
@ -85,7 +85,7 @@ public class GDBServerDebugger implements ICDebugger {
|
|||
if (info == null) {
|
||||
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);
|
||||
select.getMIInfo();
|
||||
if (info == null) {
|
||||
|
|
|
@ -178,16 +178,16 @@ public class GDBTypeParser {
|
|||
StringBuffer sb = new StringBuffer();
|
||||
switch (getType()) {
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
}
|
||||
return sb.toString();
|
||||
|
|
|
@ -243,7 +243,7 @@ public class RxThread extends Thread {
|
|||
// any other alternatives.
|
||||
String[] logs = getStreamRecords();
|
||||
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();
|
||||
e = new MISharedLibEvent(exec);
|
||||
list.add(e);
|
||||
|
|
Loading…
Add table
Reference in a new issue