Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » debug problem using cygwin
debug problem using cygwin [message #140379] Wed, 09 March 2005 04:13 Go to next message
Eclipse UserFriend
hello.

i am using cdt2.1 with eclipse3.01 and cygwin (gcc, gdb, ..). I've
created a configuration for running a console-application. it works fine
(output appears in the Console-Window).

But if i try to debug it, a popup appears:

"Unable to set temporary breakpoint in main.
target request failed: no symbol table is loaded.
Use the "file" command..
Continue?"

what could be the reason for that? if i choose "Yes" to continue, the
output appears in a little external shell-window. i've compiled using -g3
flag. In the settings i've chosen "Cygwin gdb" as debugger and set "Stop
at main() on startup".

with kind regards,
watzlaw
Re: debug problem using cygwin [message #140386 is a reply to message #140379] Wed, 09 March 2005 05:38 Go to previous messageGo to next message
Eclipse UserFriend
watzlaw wutz wrote:

> hello.

> i am using cdt2.1 with eclipse3.01 and cygwin (gcc, gdb, ..). I've
> created a configuration for running a console-application. it works fine
> (output appears in the Console-Window).

> But if i try to debug it, a popup appears:

> "Unable to set temporary breakpoint in main.
> target request failed: no symbol table is loaded.
> Use the "file" command..
> Continue?"

> what could be the reason for that? if i choose "Yes" to continue, the
> output appears in a little external shell-window. i've compiled using -g3
> flag. In the settings i've chosen "Cygwin gdb" as debugger and set "Stop
> at main() on startup".

> with kind regards,
> watzlaw

Did you also linked with -g3 ?
Re: debug problem using cygwin [message #140410 is a reply to message #140386] Wed, 09 March 2005 10:14 Go to previous messageGo to next message
Eclipse UserFriend
Cavit Cahit VURAL wrote:
> watzlaw wutz wrote:
>
>> hello.
>
>
>> i am using cdt2.1 with eclipse3.01 and cygwin (gcc, gdb, ..). I've
>> created a configuration for running a console-application. it works
>> fine (output appears in the Console-Window).
>
>
>> But if i try to debug it, a popup appears:
>
>
>> "Unable to set temporary breakpoint in main.
>> target request failed: no symbol table is loaded.
>> Use the "file" command..
>> Continue?"
>
>
>> what could be the reason for that? if i choose "Yes" to continue, the
>> output appears in a little external shell-window. i've compiled using
>> -g3 flag. In the settings i've chosen "Cygwin gdb" as debugger and set
>> "Stop at main() on startup".
>
>
>> with kind regards,
>> watzlaw
>
>
> Did you also linked with -g3 ?
>
yes. debugging using command-line gdb works fine. its seems to be cdt
which can not communicate with gdb. other hints?
Re: debug problem using cygwin [message #140415 is a reply to message #140410] Wed, 09 March 2005 11:20 Go to previous messageGo to next message
Eclipse UserFriend
watzlaw wutz wrote:

> Cavit Cahit VURAL wrote:
>> watzlaw wutz wrote:
>>
>>> hello.
>>
>>
>>> i am using cdt2.1 with eclipse3.01 and cygwin (gcc, gdb, ..). I've
>>> created a configuration for running a console-application. it works
>>> fine (output appears in the Console-Window).
>>
>>
>>> But if i try to debug it, a popup appears:
>>
>>
>>> "Unable to set temporary breakpoint in main.
>>> target request failed: no symbol table is loaded.
>>> Use the "file" command..
>>> Continue?"
>>
>>
>>> what could be the reason for that? if i choose "Yes" to continue, the
>>> output appears in a little external shell-window. i've compiled using
>>> -g3 flag. In the settings i've chosen "Cygwin gdb" as debugger and set
>>> "Stop at main() on startup".
>>
>>
>>> with kind regards,
>>> watzlaw
>>
>>
>> Did you also linked with -g3 ?
>>
> yes. debugging using command-line gdb works fine. its seems to be cdt
> which can not communicate with gdb. other hints?

What's your GDB version.
(You can learn by 'gdb --version')
It must be 5.2.1 at least. 6.3 is preferred.

CC Vural
Re: debug problem using cygwin [message #140483 is a reply to message #140415] Thu, 10 March 2005 01:38 Go to previous messageGo to next message
Eclipse UserFriend
Cavit Cahit VURAL wrote:
> watzlaw wutz wrote:
>
>> Cavit Cahit VURAL wrote:
>>
>>> watzlaw wutz wrote:
>>>
>>>> hello.
>>>
>>>
>>>
>>>> i am using cdt2.1 with eclipse3.01 and cygwin (gcc, gdb, ..). I've
>>>> created a configuration for running a console-application. it works
>>>> fine (output appears in the Console-Window).
>>>
>>>
>>>
>>>> But if i try to debug it, a popup appears:
>>>
>>>
>>>
>>>> "Unable to set temporary breakpoint in main.
>>>> target request failed: no symbol table is loaded.
>>>> Use the "file" command..
>>>> Continue?"
>>>
>>>
>>>
>>>> what could be the reason for that? if i choose "Yes" to continue,
>>>> the output appears in a little external shell-window. i've compiled
>>>> using -g3 flag. In the settings i've chosen "Cygwin gdb" as debugger
>>>> and set "Stop at main() on startup".
>>>
>>>
>>>
>>>> with kind regards,
>>>> watzlaw
>>>
>>>
>>>
>>> Did you also linked with -g3 ?
>>>
>> yes. debugging using command-line gdb works fine. its seems to be cdt
>> which can not communicate with gdb. other hints?
>
>
> What's your GDB version. (You can learn by 'gdb --version')
> It must be 5.2.1 at least. 6.3 is preferred.
GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special).
Re: debug problem using cygwin [message #140525 is a reply to message #140379] Thu, 10 March 2005 11:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

This also may happen if a wrong executable is passed to gdb. Check the
executable name in the launch configuration dialog.

"watzlaw wutz" <watzlawwutz@gmx.net> wrote in message
news:d0menh$917$1@www.eclipse.org...
> hello.
>
> i am using cdt2.1 with eclipse3.01 and cygwin (gcc, gdb, ..). I've created
> a configuration for running a console-application. it works fine (output
> appears in the Console-Window).
>
> But if i try to debug it, a popup appears:
>
> "Unable to set temporary breakpoint in main.
> target request failed: no symbol table is loaded.
> Use the "file" command..
> Continue?"
>
> what could be the reason for that? if i choose "Yes" to continue, the
> output appears in a little external shell-window. i've compiled using -g3
> flag. In the settings i've chosen "Cygwin gdb" as debugger and set "Stop
> at main() on startup".
>
> with kind regards,
> watzlaw
Re: debug problem using cygwin [message #140563 is a reply to message #140379] Fri, 11 March 2005 17:41 Go to previous message
Eclipse UserFriend
hi.

it was no cdt-bug, but my nonability to write a makefile: A little
"install -s" stripped all my symbol tables away.

thank you for your friendly and fast help.

with kind regards,
watzlaw wutz
Previous Topic:Can't get C/C++ reference-declaration search to work.
Next Topic:add new keywords to cdt editor
Goto Forum:
  


Current Time: Sun May 11 00:13:07 EDT 2025

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

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

Back to the top