IDE behaviour for Debug As and Run As commands

Added series of popup windows, that will make user make choices on what to use (nSIM, OpenOCD or Opella) and in case of HW, also to configure COM port

1: Add a new dialog class for popup windows
2: Change Launch.java. So in this latest codes, default gdbserver is not
only openocd but changing with "The first time launch popup window"
3: Change RemoteGDBDebuggerPage.java. So users can save the Debug/Run
configurations from previous settings (including the first setting by
Debug As/Run As)
Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>

Conflicts:
	com.arc.embeddedcdt/src/com/arc/embeddedcdt/launch/Launch.java
Popup window class for Debug As and Run As

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
9000720979 Missing label on Empty project for EM4 from template

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
9000720978 EM4/EM6 empty template projects for C++

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
9000723305 Support ARC600/700 in compiler plugin

Support for 600 and 700 was returned back, this is supposed for '4.8-R4', but it
is also very useful for testing options enablement in this release.

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Fix the problem of default Run/Debug As for nSIM

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Fix the problem of Debug/Run as for OpenOCD

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
9000723303 Missing hardware options for EM and HS

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>

Haven't fixed this STAR yet, setOption doesn't work as expected.
Fix application of default values to options
Test EM/HS options default values on Windows/Linux

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>

1: Option -mbarrel-shifter/-mcode-density/-mswap all are checked for HS
and also disabled, it is always present in HS
2: Set the HS present options to uncheck if change core back to EM
Add generic gdbserver GUI

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>

Undone part:

1:The default value for port/IP address
2:The proper behaivor for arc-elf32-gdb when using "Generic gdbserver"
Release COM port at the end of debugging

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Add missing options for EM/HS

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>

18:28:43 **** Build of configuration Debug for project hi ****
make all
Building file: ../src/crt0.S
Invoking: ARC Linux ELF32 GCC Assembler
arc-elf32-gcc -x assembler-with-cpp -Wall -Wa,-adhlns="src/crt0.o.lst" -c -fmessage-length=0 -MMD -MP -MF"src/crt0.d" -MT"src/crt0.d" -mcpu=ARCv2EM -mlittle-endian -g3 -gdwarf-2 -mbarrel-shifter -mcode-density -mnorm -mswap -mspfp -mshift-assist -mdiv-rem -matomic -mdpfp -o "src/crt0.o" "../src/crt0.S"
Finished building: ../src/crt0.S

Building file: ../src/hi.c
Invoking: ARC Linux ELF32 GCC C Compiler
arc-elf32-gcc -O0 -Wall -Wa,-adhlns="src/hi.o.lst" -c -fmessage-length=0 -MMD -MP -MF"src/hi.d" -MT"src/hi.d" -mcpu=ARCv2EM -mlittle-endian -g3 -gdwarf-2 -mbarrel-shifter -mcode-density -mnorm -mswap -mspfp -mshift-assist -mdiv-rem -matomic -mdpfp -o "src/hi.o" "../src/hi.c"
Finished building: ../src/hi.c

Building target: hi.elf
Invoking: ARC Linux ELF32 GCC C Linker
arc-elf32-gcc -T"/home/yunluz/runtime-EclipseApplication/hi/lds/arcelf.lds" -nostartfiles -Wl,-Map,hi.map -mcpu=ARCv2EM -mlittle-endian -g3 -gdwarf-2 -mbarrel-shifter -mcode-density -mnorm -mswap -mspfp -mshift-assist -mdiv-rem -matomic -mdpfp -o "hi.elf"  ./src/crt0.o ./src/hi.o
Finished building target: hi.elf

Invoking: ARC Linux ELF32  Print Size
arc-elf32-size  --format=berkeley hi.elf
   text	   data	    bss	    dec	    hex	filename
    896	      0	  18432	  19328	   4b80	hi.elf
Finished building: hi.siz

18:28:43 Build Finished (took 246ms)
Add Multiplier option and New FPU option

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>

20:56:57 **** Build of configuration Debug for project hic ****
make all
Building file: ../src/crt0.S
Invoking: ARC Linux ELF32 GCC Assembler
arc-elf32-gcc -x assembler-with-cpp -Wall -Wa,-adhlns="src/crt0.o.lst" -c -fmessage-length=0 -MMD -MP -MF"src/crt0.d" -MT"src/crt0.d" -mcpu=ARCv2EM -mlittle-endian -mfpu=fpus -mmpy_option=1 -g3 -gdwarf-2 -o "src/crt0.o" "../src/crt0.S"
arc-elf32-gcc: error: unrecognized command line option -mfpu=fpus
make: *** [src/crt0.o] Error 1
1:-mmpy_option works
2:-mfpu unrecognized
3: haven't done those two option optional depending on the core type
Fix two new bugs for Debug As, also tested on nSIM

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>

On previous version, there are two hidden bugs for Debug AS behavior: if
user choose different shortcuts to launch Debug As, COM port etc..may get
null value.

Also test on nSIM

This is for STAR 9000687710
Situatuions that terminal window won't be launched

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>

In this patch terminal won't be launched if user leaves value as an empty
string for COM port, and also won't be launched if user choose "Generic
gdbserver".
Fix the problem of CommandTab when typing command

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Greyout FPU/Multiplier options for EM/HS

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Ensure that terminal window will be closed in some cases

For some reason original implementation to close Terminal connection was working
only in some cases. There was at least one case where it wasn't closing terminal
connections: Windows host and OpenOCD server is disabled. As a result
p.canTerminate() was returning `false` thus termination of terminal connection
was skipped.

Signed-off-by: Anton Kolesov <anton.kolesov@synopsys.com>
Ensure that proper hostname is used to connect during the lanch

In some occasions instead of the hostname set in configuration default
"localhost" was used, this patch fixes this: launch() will read value from the
configuration, instead of relying on UI page to be initialized.

Signed-off-by: Anton Kolesov <anton.kolesov@synopsys.com>