Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to specify executable as argument for gdb?
How to specify executable as argument for gdb? [message #645350] Thu, 16 December 2010 17:23 Go to next message
Jim Johnsons is currently offline Jim JohnsonsFriend
Messages: 3
Registered: December 2010
Junior Member
I want to debug an ARM microcontroller system using Eclipse 3.6.0. When I launch gdb from within Eclipse, the gdb load command fails because Eclipse did not specify the executable. The command line for gdb seems to be this:

arm-none-eabi-gdb -q -nw -i mi

How can I add the name of the executable to it?

I know I can add the command "file executable" to the window on the Startup tab page, but nobody else seems to have to do that.

BTW, my gdb does not know -nw or -i. Why are these arguments specified?

Thanks,
Jim
Re: How to specify executable as argument for gdb? [message #645559 is a reply to message #645350] Fri, 17 December 2010 23:34 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3245
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2010.12.16 10:23, Jim Johnsons wrote:
> I want to debug an ARM microcontroller system using Eclipse 3.6.0. When
> I launch gdb from within Eclipse, the gdb load command fails because
> Eclipse did not specify the executable. The command line for gdb seems
> to be this:
>
> arm-none-eabi-gdb -q -nw -i mi
>
> How can I add the name of the executable to it?
>
> I know I can add the command "file executable" to the window on the
> Startup tab page, but nobody else seems to have to do that.
>
> BTW, my gdb does not know -nw or -i. Why are these arguments specified?
>
> Thanks,
> Jim

Did you not see the sticky post at the top of the forum about asking
C++-related questions?

http://www.eclipse.org/forums/index.php?t=msg&th=161206& amp;start=0&S=92d35593c05fa3ab8152c95abf21fbad
Re: How to specify executable as argument for gdb? [message #645560 is a reply to message #645350] Fri, 17 December 2010 23:39 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3245
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2010.12.16 10:23, Jim Johnsons wrote:
> I want to debug an ARM microcontroller system using Eclipse 3.6.0. When
> I launch gdb from within Eclipse, the gdb load command fails because
> Eclipse did not specify the executable. The command line for gdb seems
> to be this:
>
> arm-none-eabi-gdb -q -nw -i mi
>
> How can I add the name of the executable to it?
>
> I know I can add the command "file executable" to the window on the
> Startup tab page, but nobody else seems to have to do that.
>
> BTW, my gdb does not know -nw or -i. Why are these arguments specified?
>
> Thanks,
> Jim
Did you see the sticky post at the top of the forum about asking
C++-related questions?

http://www.eclipse.org/forums/index.php?t=msg&th=161206& amp;start=0&S=92d35593c05fa3ab8152c95abf21fbad
Re: How to specify executable as argument for gdb? [message #645637 is a reply to message #645560] Sun, 19 December 2010 10:34 Go to previous messageGo to next message
Jim Johnsons is currently offline Jim JohnsonsFriend
Messages: 3
Registered: December 2010
Junior Member
Thank you for your answer.

No, I did not see the sticky subject, sorry. Also my question is not about C/C++ but about launching GDB from Eclipse. Being a newcomer to Eclipse and this forum, I thought that this would be the right place for my question.

I will try again in the C/C++ forum.

Thanks,
Jim
Re: How to specify executable as argument for gdb? [message #645675 is a reply to message #645637] Sun, 19 December 2010 17:59 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3245
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2010.12.19 3:34, Jim Johnsons wrote:
> Thank you for your answer.
>
> No, I did not see the sticky subject, sorry. Also my question is not
> about C/C++ but about launching GDB from Eclipse. Being a newcomer to
> Eclipse and this forum, I thought that this would be the right place for
> my question.
>
> I will try again in the C/C++ forum.
>
> Thanks,
> Jim

Yea, launching gdb from Eclipse is nevertheless an Eclipse CDT skill and
better asked about in that forum.
Previous Topic:Auto complete not working
Next Topic:Runnable JAR resources fail to zip
Goto Forum:
  


Current Time: Wed Nov 26 04:40:00 GMT 2014

Powered by FUDForum. Page generated in 0.02079 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software