mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Remove unused argument
This commit is contained in:
parent
3ab52b92d7
commit
1e5198e7ca
1 changed files with 4 additions and 5 deletions
|
@ -136,7 +136,7 @@ public class MIPlugin extends Plugin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Process pgdb = getGDBProcess(args, program);
|
Process pgdb = getGDBProcess(args);
|
||||||
|
|
||||||
MISession session;
|
MISession session;
|
||||||
try {
|
try {
|
||||||
|
@ -187,7 +187,7 @@ public class MIPlugin extends Plugin {
|
||||||
} else {
|
} else {
|
||||||
args = new String[] {gdb, "--cd="+cwd.getAbsolutePath(), "--command="+gdbinit, "--quiet", "-nw", "-i", "mi1", "-c", core.getAbsolutePath(), program.getAbsolutePath()};
|
args = new String[] {gdb, "--cd="+cwd.getAbsolutePath(), "--command="+gdbinit, "--quiet", "-nw", "-i", "mi1", "-c", core.getAbsolutePath(), program.getAbsolutePath()};
|
||||||
}
|
}
|
||||||
Process pgdb = getGDBProcess(args, program);
|
Process pgdb = getGDBProcess(args);
|
||||||
MISession session;
|
MISession session;
|
||||||
try {
|
try {
|
||||||
session = createMISession(pgdb, null, MISession.CORE);
|
session = createMISession(pgdb, null, MISession.CORE);
|
||||||
|
@ -220,7 +220,7 @@ public class MIPlugin extends Plugin {
|
||||||
} else {
|
} else {
|
||||||
args = new String[] {gdb, "--cd="+cwd.getAbsolutePath(), "--command="+gdbinit, "--quiet", "-nw", "-i", "mi1", program.getAbsolutePath()};
|
args = new String[] {gdb, "--cd="+cwd.getAbsolutePath(), "--command="+gdbinit, "--quiet", "-nw", "-i", "mi1", program.getAbsolutePath()};
|
||||||
}
|
}
|
||||||
Process pgdb = getGDBProcess(args, program);
|
Process pgdb = getGDBProcess(args);
|
||||||
MISession session;
|
MISession session;
|
||||||
try {
|
try {
|
||||||
session = createMISession(pgdb, null, MISession.ATTACH);
|
session = createMISession(pgdb, null, MISession.ATTACH);
|
||||||
|
@ -293,11 +293,10 @@ public class MIPlugin extends Plugin {
|
||||||
* Do some basic synchronisation, gdb make take some time to load
|
* Do some basic synchronisation, gdb make take some time to load
|
||||||
* for whatever reasons.
|
* for whatever reasons.
|
||||||
* @param args
|
* @param args
|
||||||
* @param program
|
|
||||||
* @return Process
|
* @return Process
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
protected Process getGDBProcess(String[] args, File program) throws IOException {
|
protected Process getGDBProcess(String[] args) throws IOException {
|
||||||
final Process pgdb = ProcessFactory.getFactory().exec(args);
|
final Process pgdb = ProcessFactory.getFactory().exec(args);
|
||||||
Thread syncStartup = new Thread("GDB Start") {
|
Thread syncStartup = new Thread("GDB Start") {
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue