Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Error creating session in when launch the debug
Error creating session in when launch the debug [message #159505] Wed, 30 November 2005 14:05 Go to next message
Eclipse UserFriend
Originally posted by: yszhao.ac-tech.com

Hello,

When I tried to debug my code with gdb, I got the following error:

Launching:
Error creating session: Target is not responding (time out)

Anyone know what happened and how to fix it? Thanks in advance.

Regards
Yongsheng Zhao
Re: Error creating session in when launch the debug [message #159521 is a reply to message #159505] Wed, 30 November 2005 14:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

Check if gdb is in your path.

"Yongsheng Zhao" <yszhao@ac-tech.com> wrote in message
news:b6efa443f3fd0cdcba4ed77666988da0$1@www.eclipse.org...
> Hello,
>
> When I tried to debug my code with gdb, I got the following error:
>
> Launching:
> Error creating session: Target is not responding (time out)
>
> Anyone know what happened and how to fix it? Thanks in advance.
>
> Regards
> Yongsheng Zhao
>
>
Re: Error creating session in when launch the debug [message #159535 is a reply to message #159521] Wed, 30 November 2005 14:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yszhao.ac-tech.com

Yes, it is. I can run it anywhere in command line. And I can get "which
gdb" as
"/usr/bin/gdb". By the way, my system is SuSE Linux.

One thing I realized is that I have to choose "GDB Server" option in the
DEBUGGER tab. If I choose "GDB Debugger", it shows that "This CPU is not
supported by the selected debugger". I am not sure if this is the reason.

Thanks.

Yongsheng
Re: Error creating session in when launch the debug [message #159543 is a reply to message #159535] Wed, 30 November 2005 15:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

Are you trying to debug a local Linux application?

"Yongsheng Zhao" <yszhao@ac-tech.com> wrote in message
news:0ee882d66b342c2e4182dfaa754a4f2b$1@www.eclipse.org...
> Yes, it is. I can run it anywhere in command line. And I can get "which
> gdb" as
> "/usr/bin/gdb". By the way, my system is SuSE Linux.
>
> One thing I realized is that I have to choose "GDB Server" option in the
> DEBUGGER tab. If I choose "GDB Debugger", it shows that "This CPU is not
> supported by the selected debugger". I am not sure if this is the reason.
>
> Thanks.
>
> Yongsheng
>
Re: Error creating session in when launch the debug [message #159550 is a reply to message #159543] Wed, 30 November 2005 16:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yszhao.ac-tech.com

Yes.

Yongsheng Zhao
Re: Error creating session in when launch the debug [message #159558 is a reply to message #159550] Wed, 30 November 2005 17:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

You have to select a proper binary parser for your project. Right click on
the project and select "C/C++ Build". Than open the "Binary Parser" tab and
choose Elf Parser or GNU Elf Parser.
Use GDB Debugger it should work now.

"Yongsheng Zhao" <yszhao@ac-tech.com> wrote in message
news:47d1cde0133f07fa382b9cc1b8f13dd8$1@www.eclipse.org...
> Yes.
>
> Yongsheng Zhao
>
Re: Error creating session in when launch the debug [message #159565 is a reply to message #159558] Wed, 30 November 2005 17:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

Correction: Right click on the project and select "Properties". Go to the
"C/C++ Build" page and select a parser.

"Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
news:dml8qg$30b$1@news.eclipse.org...
> You have to select a proper binary parser for your project. Right click on
> the project and select "C/C++ Build". Than open the "Binary Parser" tab
> and choose Elf Parser or GNU Elf Parser.
> Use GDB Debugger it should work now.
>
> "Yongsheng Zhao" <yszhao@ac-tech.com> wrote in message
> news:47d1cde0133f07fa382b9cc1b8f13dd8$1@www.eclipse.org...
>> Yes.
>>
>> Yongsheng Zhao
>>
>
>
Re: Error creating session in when launch the debug [message #159676 is a reply to message #159565] Thu, 01 December 2005 10:07 Go to previous message
Eclipse UserFriend
Originally posted by: yszhao.ac-tech.com

It works. Thanks for your time.

Yongsheng Zhao
Previous Topic:Is it work with Linux kernel source?
Next Topic:Debugging with CDT and Cygwin GDB
Goto Forum:
  


Current Time: Mon May 12 13:05:23 EDT 2025

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

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

Back to the top