quan-xie / goclipse

Automatically exported from code.google.com/p/goclipse
0 stars 0 forks source link

Command line arguments from run-configuration passed to gdb instead of executable #112

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create new project with hello world file (aka. something that compiles to an 
executable)
2. Create run-configuration and add some command line arguments
3. Start the run-configuration using the debug button

What is the expected output? What do you see instead?
The specified command line argument should be passed to the written program.

Instead of this the arguments are passed to the gdb executable leading to the 
following error output:
usr/bin/gdb: unrecognized option '-foo'
Use `/usr/bin/gdb --help' for a complete list of options.

What version of the product are you using? On what operating system?
- eclipse 3.7.2 (CDT for linux)
- goclipse 0.7.1.v385

Please provide any additional information below.
If the run mode is used instead of the debug mode, the arguments are passed to 
the executable. This is the expected behavior and should work for debugging in 
the same way. 

Original issue reported on code.google.com by dustin.f...@gmail.com on 20 Jun 2012 at 1:32

GoogleCodeExporter commented 9 years ago
I forgot to mention I'm using gdb 7.4.1

Adding --args to the gdb command before the command to execute seems to help.

Original comment by dustin.f...@gmail.com on 20 Jun 2012 at 1:40

GoogleCodeExporter commented 9 years ago

Original comment by devonca...@gmail.com on 23 Nov 2012 at 10:56