Home » Language IDEs » C / C++ IDE (CDT) » CDT Debugging
CDT Debugging [message #56939] |
Tue, 07 January 2003 06:11  |
Eclipse User |
|
|
|
Originally posted by: erwin.de.ley.tuple.be
Hi,
I am using CDT 1.0.1 org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
in combination with eclipse 2.1 (eclipse-SDK-N20021115-win32.zip) on
Win2K, which is not an officially supported combination. I use
cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
Editing and building works fine (after changing the build command in the
C-project-properties screen to something like
"C:\ProgramFiles\cygwin\bin\make.exe -f makefile").
Plain execution also works fine, even when referring to an executable in a
bin folder of the C project (e.g. putting "bin/dbc_ecs.exe" in the C/C++
application field of the "main" tab in the run configuration), and even
using a non-default working directory (e.g. referring to the bin project
sub-folder in the workspace).
The only thing I can't manage to get working is debugging, and apparently
many users have this same problem, also when using eclipse 2.0.x. I get
the same behaviour as mentioned in previous postings:
- when using the default debug settings:
cygwin GDB Debugger;
Run program in debugger
Stop at main() in startup
MI debugger: gdb
Load shared library ... NOT checked
=> result is alert :
"Unable to set temporary breakpoint in main.
Reason: No symbol table is loaded. Use the "file" command.
Continue?"
Log file info:
!SESSION Jan 07, 2003 12:20:38.387
---------------------------------------------
java.version=1.3.1_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
Command-line arguments: -os win32 -ws win32 -arch x86 -install
file:C:/ProgramFiles/eclipse/
!ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003 12:20:38.387
!MESSAGE Error logged from Debug UI:
!STACK 1
org.eclipse.debug.core.DebugException: No symbol table is loaded. Use the
"file" command.
at org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
at
org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
at
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(LocalCLaunchConfigurationDelegate.java:101)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:144)
at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog$11.run(LaunchConfigurationDialog.java:2283)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:95)
!ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07, 2003 12:20:38.417
!MESSAGE No symbol table is loaded. Use the "file" command.
- when trying the commands specified by Mikhael below straight in cygwin,
I get the same response as Michael (see below).
HEEELP!
Erwin.
Related postings:
Subject: Re: problem with step over debugging
From: bangham@neocera.com (Michael)
Newsgroups: eclipse.tools.cdt
Organization: EclipseCorner
Date: Jan 02 2003 19:20:43
The response is:
&"Not symbol table is loaded. Use the \"file\" command. \n"
"Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
news:av27gu$rob$1@rogue.oti.com...
> Please, try this:
> 1. start gdb with '-i mi' option
> 2. type '-gdb-set auto-solib-add off' and press Enter
>
|
|
|
Re: CDT Debugging [message #56996 is a reply to message #56939] |
Tue, 07 January 2003 10:01   |
Eclipse User |
|
|
|
Originally posted by: bangham.neocera.com
I've been struggling against this issue for about 2 weeks - would love to
get this working as Eclipse is a really nice environment. I'm sure someone
out there has gotten this to work, but perhaps they have not seen these
recent postings/pleas on the subject.
Michael
"Erwin" <erwin.de.ley@tuple.be> wrote in message
news:aveclq$phl$1@rogue.oti.com...
> Hi,
>
> I am using CDT 1.0.1 org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> in combination with eclipse 2.1 (eclipse-SDK-N20021115-win32.zip) on
> Win2K, which is not an officially supported combination. I use
> cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
>
> Editing and building works fine (after changing the build command in the
> C-project-properties screen to something like
> "C:\ProgramFiles\cygwin\bin\make.exe -f makefile").
>
> Plain execution also works fine, even when referring to an executable in a
> bin folder of the C project (e.g. putting "bin/dbc_ecs.exe" in the C/C++
> application field of the "main" tab in the run configuration), and even
> using a non-default working directory (e.g. referring to the bin project
> sub-folder in the workspace).
>
> The only thing I can't manage to get working is debugging, and apparently
> many users have this same problem, also when using eclipse 2.0.x. I get
> the same behaviour as mentioned in previous postings:
> - when using the default debug settings:
> cygwin GDB Debugger;
> Run program in debugger
> Stop at main() in startup
> MI debugger: gdb
> Load shared library ... NOT checked
> => result is alert :
> "Unable to set temporary breakpoint in main.
> Reason: No symbol table is loaded. Use the "file" command.
> Continue?"
>
> Log file info:
> !SESSION Jan 07, 2003 12:20:38.387
> ---------------------------------------------
> java.version=1.3.1_05
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
> Command-line arguments: -os win32 -ws win32 -arch x86 -install
> file:C:/ProgramFiles/eclipse/
> !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003 12:20:38.387
> !MESSAGE Error logged from Debug UI:
> !STACK 1
> org.eclipse.debug.core.DebugException: No symbol table is loaded. Use the
> "file" command.
> at org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> at
>
org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> at
>
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
alCLaunchConfigurationDelegate.java:101)
> at
>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
on.java:144)
> at
>
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
$11.run(LaunchConfigurationDialog.java:2283)
> at
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
..java:95)
> !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07, 2003 12:20:38.417
> !MESSAGE No symbol table is loaded. Use the "file" command.
>
> - when trying the commands specified by Mikhael below straight in cygwin,
> I get the same response as Michael (see below).
>
> HEEELP!
>
> Erwin.
>
> Related postings:
>
> Subject: Re: problem with step over debugging
> From: bangham@neocera.com (Michael)
> Newsgroups: eclipse.tools.cdt
> Organization: EclipseCorner
> Date: Jan 02 2003 19:20:43
>
> The response is:
> &"Not symbol table is loaded. Use the \"file\" command. \n"
>
>
> "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> news:av27gu$rob$1@rogue.oti.com...
> > Please, try this:
> > 1. start gdb with '-i mi' option
> > 2. type '-gdb-set auto-solib-add off' and press Enter
> >
>
>
>
|
|
|
Re: CDT Debugging [message #57022 is a reply to message #56939] |
Tue, 07 January 2003 11:23   |
Eclipse User |
|
|
|
Originally posted by: mikhailk.qnx.com
Did you compile your executable with '-g' option?
"Erwin" <erwin.de.ley@tuple.be> wrote in message
news:aveclq$phl$1@rogue.oti.com...
> Hi,
>
> I am using CDT 1.0.1 org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> in combination with eclipse 2.1 (eclipse-SDK-N20021115-win32.zip) on
> Win2K, which is not an officially supported combination. I use
> cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
>
> Editing and building works fine (after changing the build command in the
> C-project-properties screen to something like
> "C:\ProgramFiles\cygwin\bin\make.exe -f makefile").
>
> Plain execution also works fine, even when referring to an executable in a
> bin folder of the C project (e.g. putting "bin/dbc_ecs.exe" in the C/C++
> application field of the "main" tab in the run configuration), and even
> using a non-default working directory (e.g. referring to the bin project
> sub-folder in the workspace).
>
> The only thing I can't manage to get working is debugging, and apparently
> many users have this same problem, also when using eclipse 2.0.x. I get
> the same behaviour as mentioned in previous postings:
> - when using the default debug settings:
> cygwin GDB Debugger;
> Run program in debugger
> Stop at main() in startup
> MI debugger: gdb
> Load shared library ... NOT checked
> => result is alert :
> "Unable to set temporary breakpoint in main.
> Reason: No symbol table is loaded. Use the "file" command.
> Continue?"
>
> Log file info:
> !SESSION Jan 07, 2003 12:20:38.387
> ---------------------------------------------
> java.version=1.3.1_05
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
> Command-line arguments: -os win32 -ws win32 -arch x86 -install
> file:C:/ProgramFiles/eclipse/
> !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003 12:20:38.387
> !MESSAGE Error logged from Debug UI:
> !STACK 1
> org.eclipse.debug.core.DebugException: No symbol table is loaded. Use the
> "file" command.
> at org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> at
>
org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> at
>
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
alCLaunchConfigurationDelegate.java:101)
> at
>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
on.java:144)
> at
>
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
$11.run(LaunchConfigurationDialog.java:2283)
> at
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
..java:95)
> !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07, 2003 12:20:38.417
> !MESSAGE No symbol table is loaded. Use the "file" command.
>
> - when trying the commands specified by Mikhael below straight in cygwin,
> I get the same response as Michael (see below).
>
> HEEELP!
>
> Erwin.
>
> Related postings:
>
> Subject: Re: problem with step over debugging
> From: bangham@neocera.com (Michael)
> Newsgroups: eclipse.tools.cdt
> Organization: EclipseCorner
> Date: Jan 02 2003 19:20:43
>
> The response is:
> &"Not symbol table is loaded. Use the \"file\" command. \n"
>
>
> "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> news:av27gu$rob$1@rogue.oti.com...
> > Please, try this:
> > 1. start gdb with '-i mi' option
> > 2. type '-gdb-set auto-solib-add off' and press Enter
> >
>
>
>
|
|
|
Re: CDT Debugging [message #57049 is a reply to message #56996] |
Tue, 07 January 2003 11:33   |
Eclipse User |
|
|
|
Originally posted by: mikhailk.qnx.com
Please, create a new simple project, compile it with '-g' and try to debug
it. Use 'Cygwin GDB debugger' and don't check the 'Automatically load shared
libraries' option. If this doesn't work post your project and I'll check it.
Thanks,
Mikhail
"Michael" <bangham@neocera.com> wrote in message
news:avep9s$3bm$1@rogue.oti.com...
> I've been struggling against this issue for about 2 weeks - would love to
> get this working as Eclipse is a really nice environment. I'm sure
someone
> out there has gotten this to work, but perhaps they have not seen these
> recent postings/pleas on the subject.
>
> Michael
>
>
> "Erwin" <erwin.de.ley@tuple.be> wrote in message
> news:aveclq$phl$1@rogue.oti.com...
> > Hi,
> >
> > I am using CDT 1.0.1
org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> > in combination with eclipse 2.1 (eclipse-SDK-N20021115-win32.zip) on
> > Win2K, which is not an officially supported combination. I use
> > cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
> >
> > Editing and building works fine (after changing the build command in the
> > C-project-properties screen to something like
> > "C:\ProgramFiles\cygwin\bin\make.exe -f makefile").
> >
> > Plain execution also works fine, even when referring to an executable in
a
> > bin folder of the C project (e.g. putting "bin/dbc_ecs.exe" in the C/C++
> > application field of the "main" tab in the run configuration), and even
> > using a non-default working directory (e.g. referring to the bin project
> > sub-folder in the workspace).
> >
> > The only thing I can't manage to get working is debugging, and
apparently
> > many users have this same problem, also when using eclipse 2.0.x. I get
> > the same behaviour as mentioned in previous postings:
> > - when using the default debug settings:
> > cygwin GDB Debugger;
> > Run program in debugger
> > Stop at main() in startup
> > MI debugger: gdb
> > Load shared library ... NOT checked
> > => result is alert :
> > "Unable to set temporary breakpoint in main.
> > Reason: No symbol table is loaded. Use the "file" command.
> > Continue?"
> >
> > Log file info:
> > !SESSION Jan 07, 2003 12:20:38.387
> > ---------------------------------------------
> > java.version=1.3.1_05
> > java.vendor=Sun Microsystems Inc.
> > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
> > Command-line arguments: -os win32 -ws win32 -arch x86 -install
> > file:C:/ProgramFiles/eclipse/
> > !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003 12:20:38.387
> > !MESSAGE Error logged from Debug UI:
> > !STACK 1
> > org.eclipse.debug.core.DebugException: No symbol table is loaded. Use
the
> > "file" command.
> > at
org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> > at
> >
>
org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> > at
> >
>
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> alCLaunchConfigurationDelegate.java:101)
> > at
> >
>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> on.java:144)
> > at
> >
>
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> $11.run(LaunchConfigurationDialog.java:2283)
> > at
> >
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> .java:95)
> > !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07, 2003 12:20:38.417
> > !MESSAGE No symbol table is loaded. Use the "file" command.
> >
> > - when trying the commands specified by Mikhael below straight in
cygwin,
> > I get the same response as Michael (see below).
> >
> > HEEELP!
> >
> > Erwin.
> >
> > Related postings:
> >
> > Subject: Re: problem with step over debugging
> > From: bangham@neocera.com (Michael)
> > Newsgroups: eclipse.tools.cdt
> > Organization: EclipseCorner
> > Date: Jan 02 2003 19:20:43
> >
> > The response is:
> > &"Not symbol table is loaded. Use the \"file\" command. \n"
> >
> >
> > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > news:av27gu$rob$1@rogue.oti.com...
> > > Please, try this:
> > > 1. start gdb with '-i mi' option
> > > 2. type '-gdb-set auto-solib-add off' and press Enter
> > >
> >
> >
> >
>
>
|
|
|
Re: CDT Debugging [message #57077 is a reply to message #57049] |
Tue, 07 January 2003 13:28   |
Eclipse User |
|
|
|
Originally posted by: bangham.neocera.com
Thank you very much! I am using the Cygwin GDB debugger as specified below.
I included a screen shot of my launch config.
"Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
news:aveulg$81a$1@rogue.oti.com...
> Please, create a new simple project, compile it with '-g' and try to debug
> it. Use 'Cygwin GDB debugger' and don't check the 'Automatically load
shared
> libraries' option. If this doesn't work post your project and I'll check
it.
>
> Thanks,
> Mikhail
>
> "Michael" <bangham@neocera.com> wrote in message
> news:avep9s$3bm$1@rogue.oti.com...
> > I've been struggling against this issue for about 2 weeks - would love
to
> > get this working as Eclipse is a really nice environment. I'm sure
> someone
> > out there has gotten this to work, but perhaps they have not seen these
> > recent postings/pleas on the subject.
> >
> > Michael
> >
> >
> > "Erwin" <erwin.de.ley@tuple.be> wrote in message
> > news:aveclq$phl$1@rogue.oti.com...
> > > Hi,
> > >
> > > I am using CDT 1.0.1
> org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> > > in combination with eclipse 2.1 (eclipse-SDK-N20021115-win32.zip) on
> > > Win2K, which is not an officially supported combination. I use
> > > cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
> > >
> > > Editing and building works fine (after changing the build command in
the
> > > C-project-properties screen to something like
> > > "C:\ProgramFiles\cygwin\bin\make.exe -f makefile").
> > >
> > > Plain execution also works fine, even when referring to an executable
in
> a
> > > bin folder of the C project (e.g. putting "bin/dbc_ecs.exe" in the
C/C++
> > > application field of the "main" tab in the run configuration), and
even
> > > using a non-default working directory (e.g. referring to the bin
project
> > > sub-folder in the workspace).
> > >
> > > The only thing I can't manage to get working is debugging, and
> apparently
> > > many users have this same problem, also when using eclipse 2.0.x. I
get
> > > the same behaviour as mentioned in previous postings:
> > > - when using the default debug settings:
> > > cygwin GDB Debugger;
> > > Run program in debugger
> > > Stop at main() in startup
> > > MI debugger: gdb
> > > Load shared library ... NOT checked
> > > => result is alert :
> > > "Unable to set temporary breakpoint in main.
> > > Reason: No symbol table is loaded. Use the "file" command.
> > > Continue?"
> > >
> > > Log file info:
> > > !SESSION Jan 07, 2003 12:20:38.387
> > > ---------------------------------------------
> > > java.version=1.3.1_05
> > > java.vendor=Sun Microsystems Inc.
> > > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
> > > Command-line arguments: -os win32 -ws win32 -arch x86 -install
> > > file:C:/ProgramFiles/eclipse/
> > > !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003 12:20:38.387
> > > !MESSAGE Error logged from Debug UI:
> > > !STACK 1
> > > org.eclipse.debug.core.DebugException: No symbol table is loaded. Use
> the
> > > "file" command.
> > > at
> org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> > > at
> > >
> >
>
org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> > > at
> > >
> >
>
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> > alCLaunchConfigurationDelegate.java:101)
> > > at
> > >
> >
>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> > on.java:144)
> > > at
> > >
> >
>
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> > $11.run(LaunchConfigurationDialog.java:2283)
> > > at
> > >
> >
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> > .java:95)
> > > !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07, 2003 12:20:38.417
> > > !MESSAGE No symbol table is loaded. Use the "file" command.
> > >
> > > - when trying the commands specified by Mikhael below straight in
> cygwin,
> > > I get the same response as Michael (see below).
> > >
> > > HEEELP!
> > >
> > > Erwin.
> > >
> > > Related postings:
> > >
> > > Subject: Re: problem with step over debugging
> > > From: bangham@neocera.com (Michael)
> > > Newsgroups: eclipse.tools.cdt
> > > Organization: EclipseCorner
> > > Date: Jan 02 2003 19:20:43
> > >
> > > The response is:
> > > &"Not symbol table is loaded. Use the \"file\" command. \n"
> > >
> > >
> > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > news:av27gu$rob$1@rogue.oti.com...
> > > > Please, try this:
> > > > 1. start gdb with '-i mi' option
> > > > 2. type '-gdb-set auto-solib-add off' and press Enter
> > > >
> > >
> > >
> > >
> >
> >
>
>
Attachment: proj.zip
(Size: 167.33KB, Downloaded 218 times)
|
|
|
Re: CDT Debugging [message #57129 is a reply to message #56996] |
Tue, 07 January 2003 20:54   |
Eclipse User |
|
|
|
Originally posted by: javacard.hotmail.com
Hi Michael,
appreciate your work very much :)
actually I've the same feeling as you,I would like to see Eclipse platform
will fulfill all my development requirement someday in future.That's great
environment although it's buggy now.
xusoo
Michael wrote:
> I've been struggling against this issue for about 2 weeks - would love to
> get this working as Eclipse is a really nice environment. I'm sure someone
> out there has gotten this to work, but perhaps they have not seen these
> recent postings/pleas on the subject.
> Michael
> "Erwin" <erwin.de.ley@tuple.be> wrote in message
> news:aveclq$phl$1@rogue.oti.com...
> > Hi,
> >
> > I am using CDT 1.0.1 org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> > in combination with eclipse 2.1 (eclipse-SDK-N20021115-win32.zip) on
> > Win2K, which is not an officially supported combination. I use
> > cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
> >
> > Editing and building works fine (after changing the build command in the
> > C-project-properties screen to something like
> > "C:\ProgramFiles\cygwin\bin\make.exe -f makefile").
> >
> > Plain execution also works fine, even when referring to an executable in a
> > bin folder of the C project (e.g. putting "bin/dbc_ecs.exe" in the C/C++
> > application field of the "main" tab in the run configuration), and even
> > using a non-default working directory (e.g. referring to the bin project
> > sub-folder in the workspace).
> >
> > The only thing I can't manage to get working is debugging, and apparently
> > many users have this same problem, also when using eclipse 2.0.x. I get
> > the same behaviour as mentioned in previous postings:
> > - when using the default debug settings:
> > cygwin GDB Debugger;
> > Run program in debugger
> > Stop at main() in startup
> > MI debugger: gdb
> > Load shared library ... NOT checked
> > => result is alert :
> > "Unable to set temporary breakpoint in main.
> > Reason: No symbol table is loaded. Use the "file" command.
> > Continue?"
> >
> > Log file info:
> > !SESSION Jan 07, 2003 12:20:38.387
> > ---------------------------------------------
> > java.version=1.3.1_05
> > java.vendor=Sun Microsystems Inc.
> > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
> > Command-line arguments: -os win32 -ws win32 -arch x86 -install
> > file:C:/ProgramFiles/eclipse/
> > !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003 12:20:38.387
> > !MESSAGE Error logged from Debug UI:
> > !STACK 1
> > org.eclipse.debug.core.DebugException: No symbol table is loaded. Use the
> > "file" command.
> > at org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> > at
> >
> org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> > at
> >
> org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> alCLaunchConfigurationDelegate.java:101)
> > at
> >
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> on.java:144)
> > at
> >
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> $11.run(LaunchConfigurationDialog.java:2283)
> > at
> >
> org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> ..java:95)
> > !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07, 2003 12:20:38.417
> > !MESSAGE No symbol table is loaded. Use the "file" command.
> >
> > - when trying the commands specified by Mikhael below straight in cygwin,
> > I get the same response as Michael (see below).
> >
> > HEEELP!
> >
> > Erwin.
> >
> > Related postings:
> >
> > Subject: Re: problem with step over debugging
> > From: bangham@neocera.com (Michael)
> > Newsgroups: eclipse.tools.cdt
> > Organization: EclipseCorner
> > Date: Jan 02 2003 19:20:43
> >
> > The response is:
> > &"Not symbol table is loaded. Use the \"file\" command. \n"
> >
> >
> > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > news:av27gu$rob$1@rogue.oti.com...
> > > Please, try this:
> > > 1. start gdb with '-i mi' option
> > > 2. type '-gdb-set auto-solib-add off' and press Enter
> > >
> >
> >
> >
|
|
|
Re: CDT Debugging [message #57157 is a reply to message #57049] |
Wed, 08 January 2003 04:07   |
Eclipse User |
|
|
|
Originally posted by: erwin.de.ley.tuple.be
Hi Mikhael,
I\'ve created a simple HelloWorld project, very similar to the one in the
CDT FAQ. I use -g for compiling and linking and still get the same problem.
I\'ve sent you a mail with a zip file containing my project and the launch
configuration.
Thanks for the work on this plugin!
Regards,
Erwin
Mikhail Khodjaiants wrote:
> Please, create a new simple project, compile it with \'-g\' and try to debug
> it. Use \'Cygwin GDB debugger\' and don\'t check the \'Automatically load
shared
> libraries\' option. If this doesn\'t work post your project and I\'ll check
it.
> Thanks,
> Mikhail
> \"Michael\" <bangham@neocera.com> wrote in message
> news:avep9s$3bm$1@rogue.oti.com...
> > I\'ve been struggling against this issue for about 2 weeks - would love to
> > get this working as Eclipse is a really nice environment. I\'m sure
> someone
> > out there has gotten this to work, but perhaps they have not seen these
> > recent postings/pleas on the subject.
> >
> > Michael
> >
> >
> > \"Erwin\" <erwin.de.ley@tuple.be> wrote in message
> > news:aveclq$phl$1@rogue.oti.com...
> > > Hi,
> > >
> > > I am using CDT 1.0.1
> org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> > > in combination with eclipse 2.1 (eclipse-SDK-N20021115-win32.zip) on
> > > Win2K, which is not an officially supported combination. I use
> > > cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
> > >
> > > Editing and building works fine (after changing the build command in the
> > > C-project-properties screen to something like
> > > \"C:\\ProgramFiles\\cygwin\\bin\\make.exe -f makefile\").
> > >
> > > Plain execution also works fine, even when referring to an executable in
> a
> > > bin folder of the C project (e.g. putting \"bin/dbc_ecs.exe\" in the
C/C++
> > > application field of the \"main\" tab in the run configuration), and even
> > > using a non-default working directory (e.g. referring to the bin project
> > > sub-folder in the workspace).
> > >
> > > The only thing I can\'t manage to get working is debugging, and
> apparently
> > > many users have this same problem, also when using eclipse 2.0.x. I get
> > > the same behaviour as mentioned in previous postings:
> > > - when using the default debug settings:
> > > cygwin GDB Debugger;
> > > Run program in debugger
> > > Stop at main() in startup
> > > MI debugger: gdb
> > > Load shared library ... NOT checked
> > > => result is alert :
> > > \"Unable to set temporary breakpoint in main.
> > > Reason: No symbol table is loaded. Use the \"file\" command.
> > > Continue?\"
> > >
> > > Log file info:
> > > !SESSION Jan 07, 2003 12:20:38.387
> > > ---------------------------------------------
> > > java.version=1.3.1_05
> > > java.vendor=Sun Microsystems Inc.
> > > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
> > > Command-line arguments: -os win32 -ws win32 -arch x86 -install
> > > file:C:/ProgramFiles/eclipse/
> > > !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003 12:20:38.387
> > > !MESSAGE Error logged from Debug UI:
> > > !STACK 1
> > > org.eclipse.debug.core.DebugException: No symbol table is loaded. Use
> the
> > > \"file\" command.
> > > at
> org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> > > at
> > >
> >
> org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> > > at
> > >
> >
> org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> > alCLaunchConfigurationDelegate.java:101)
> > > at
> > >
> >
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> > on.java:144)
> > > at
> > >
> >
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> > $11.run(LaunchConfigurationDialog.java:2283)
> > > at
> > >
> >
> org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> > .java:95)
> > > !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07, 2003 12:20:38.417
> > > !MESSAGE No symbol table is loaded. Use the \"file\" command.
> > >
> > > - when trying the commands specified by Mikhael below straight in
> cygwin,
> > > I get the same response as Michael (see below).
> > >
> > > HEEELP!
> > >
> > > Erwin.
> > >
> > > Related postings:
> > >
> > > Subject: Re: problem with step over debugging
> > > From: bangham@neocera.com (Michael)
> > > Newsgroups: eclipse.tools.cdt
> > > Organization: EclipseCorner
> > > Date: Jan 02 2003 19:20:43
> > >
> > > The response is:
> > > &\"Not symbol table is loaded. Use the \\\"file\\\" command. \\n\"
> > >
> > >
> > > \"Mikhail Khodjaiants\" <mikhailk@qnx.com> wrote in message
> > > news:av27gu$rob$1@rogue.oti.com...
> > > > Please, try this:
> > > > 1. start gdb with \'-i mi\' option
> > > > 2. type \'-gdb-set auto-solib-add off\' and press Enter
> > > >
> > >
> > >
> > >
> >
> >
|
|
|
Re: CDT Debugging [message #57182 is a reply to message #57077] |
Wed, 08 January 2003 11:55   |
Eclipse User |
|
|
|
Originally posted by: mikhailk.qnx.com
Your makefile is incorrect. You inserted the '-g' option between '-o' and
the output file name. As a result the executable you are trying to debug
doesn't exist in the local file system. The debugger should verify this but
there is a bug in our code.
Fix your makefile and let me know if it works.
Mikhail
"Michael" <bangham@neocera.com> wrote in message
news:avf5eb$crt$1@rogue.oti.com...
> Thank you very much! I am using the Cygwin GDB debugger as specified
below.
> I included a screen shot of my launch config.
>
> "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> news:aveulg$81a$1@rogue.oti.com...
> > Please, create a new simple project, compile it with '-g' and try to
debug
> > it. Use 'Cygwin GDB debugger' and don't check the 'Automatically load
> shared
> > libraries' option. If this doesn't work post your project and I'll check
> it.
> >
> > Thanks,
> > Mikhail
> >
> > "Michael" <bangham@neocera.com> wrote in message
> > news:avep9s$3bm$1@rogue.oti.com...
> > > I've been struggling against this issue for about 2 weeks - would love
> to
> > > get this working as Eclipse is a really nice environment. I'm sure
> > someone
> > > out there has gotten this to work, but perhaps they have not seen
these
> > > recent postings/pleas on the subject.
> > >
> > > Michael
> > >
> > >
> > > "Erwin" <erwin.de.ley@tuple.be> wrote in message
> > > news:aveclq$phl$1@rogue.oti.com...
> > > > Hi,
> > > >
> > > > I am using CDT 1.0.1
> > org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> > > > in combination with eclipse 2.1 (eclipse-SDK-N20021115-win32.zip) on
> > > > Win2K, which is not an officially supported combination. I use
> > > > cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
> > > >
> > > > Editing and building works fine (after changing the build command in
> the
> > > > C-project-properties screen to something like
> > > > "C:\ProgramFiles\cygwin\bin\make.exe -f makefile").
> > > >
> > > > Plain execution also works fine, even when referring to an
executable
> in
> > a
> > > > bin folder of the C project (e.g. putting "bin/dbc_ecs.exe" in the
> C/C++
> > > > application field of the "main" tab in the run configuration), and
> even
> > > > using a non-default working directory (e.g. referring to the bin
> project
> > > > sub-folder in the workspace).
> > > >
> > > > The only thing I can't manage to get working is debugging, and
> > apparently
> > > > many users have this same problem, also when using eclipse 2.0.x. I
> get
> > > > the same behaviour as mentioned in previous postings:
> > > > - when using the default debug settings:
> > > > cygwin GDB Debugger;
> > > > Run program in debugger
> > > > Stop at main() in startup
> > > > MI debugger: gdb
> > > > Load shared library ... NOT checked
> > > > => result is alert :
> > > > "Unable to set temporary breakpoint in main.
> > > > Reason: No symbol table is loaded. Use the "file" command.
> > > > Continue?"
> > > >
> > > > Log file info:
> > > > !SESSION Jan 07, 2003 12:20:38.387
> > > > ---------------------------------------------
> > > > java.version=1.3.1_05
> > > > java.vendor=Sun Microsystems Inc.
> > > > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
> > > > Command-line arguments: -os win32 -ws win32 -arch x86 -install
> > > > file:C:/ProgramFiles/eclipse/
> > > > !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003 12:20:38.387
> > > > !MESSAGE Error logged from Debug UI:
> > > > !STACK 1
> > > > org.eclipse.debug.core.DebugException: No symbol table is loaded.
Use
> > the
> > > > "file" command.
> > > > at
> > org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> > > > at
> > > >
> > >
> >
>
org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> > > > at
> > > >
> > >
> >
>
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> > > alCLaunchConfigurationDelegate.java:101)
> > > > at
> > > >
> > >
> >
>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> > > on.java:144)
> > > > at
> > > >
> > >
> >
>
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> > > $11.run(LaunchConfigurationDialog.java:2283)
> > > > at
> > > >
> > >
> >
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> > > .java:95)
> > > > !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07, 2003 12:20:38.417
> > > > !MESSAGE No symbol table is loaded. Use the "file" command.
> > > >
> > > > - when trying the commands specified by Mikhael below straight in
> > cygwin,
> > > > I get the same response as Michael (see below).
> > > >
> > > > HEEELP!
> > > >
> > > > Erwin.
> > > >
> > > > Related postings:
> > > >
> > > > Subject: Re: problem with step over debugging
> > > > From: bangham@neocera.com (Michael)
> > > > Newsgroups: eclipse.tools.cdt
> > > > Organization: EclipseCorner
> > > > Date: Jan 02 2003 19:20:43
> > > >
> > > > The response is:
> > > > &"Not symbol table is loaded. Use the \"file\" command. \n"
> > > >
> > > >
> > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > news:av27gu$rob$1@rogue.oti.com...
> > > > > Please, try this:
> > > > > 1. start gdb with '-i mi' option
> > > > > 2. type '-gdb-set auto-solib-add off' and press Enter
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
>
|
|
|
Re: CDT Debugging [message #57207 is a reply to message #57182] |
Wed, 08 January 2003 13:14   |
Eclipse User |
|
|
|
Originally posted by: bangham.neocera.com
The selections on the run menu are still not enabled. I modified the
makefile per your instructions to be:
objects = hello.o
hello : $(objects)
C:/cygwin/bin/g++ -g -o "C:\eclipse\workspace\HelloWorldWithMake\hello"
$(objects)
$(objects) : hello.cpp
C:/cygwin/bin/g++.exe -g -c
"C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
hello.cpp :
C:/cygwin/bin/g++.exe -g -c
"C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
all :
${MAKE} objects
..PHONY : clean
clean :
-del hello.exe $(objects)
"Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
news:avhkb4$sm7$1@rogue.oti.com...
> Your makefile is incorrect. You inserted the '-g' option between '-o' and
> the output file name. As a result the executable you are trying to debug
> doesn't exist in the local file system. The debugger should verify this
but
> there is a bug in our code.
> Fix your makefile and let me know if it works.
>
> Mikhail
>
> "Michael" <bangham@neocera.com> wrote in message
> news:avf5eb$crt$1@rogue.oti.com...
> > Thank you very much! I am using the Cygwin GDB debugger as specified
> below.
> > I included a screen shot of my launch config.
> >
> > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > news:aveulg$81a$1@rogue.oti.com...
> > > Please, create a new simple project, compile it with '-g' and try to
> debug
> > > it. Use 'Cygwin GDB debugger' and don't check the 'Automatically load
> > shared
> > > libraries' option. If this doesn't work post your project and I'll
check
> > it.
> > >
> > > Thanks,
> > > Mikhail
> > >
> > > "Michael" <bangham@neocera.com> wrote in message
> > > news:avep9s$3bm$1@rogue.oti.com...
> > > > I've been struggling against this issue for about 2 weeks - would
love
> > to
> > > > get this working as Eclipse is a really nice environment. I'm sure
> > > someone
> > > > out there has gotten this to work, but perhaps they have not seen
> these
> > > > recent postings/pleas on the subject.
> > > >
> > > > Michael
> > > >
> > > >
> > > > "Erwin" <erwin.de.ley@tuple.be> wrote in message
> > > > news:aveclq$phl$1@rogue.oti.com...
> > > > > Hi,
> > > > >
> > > > > I am using CDT 1.0.1
> > > org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> > > > > in combination with eclipse 2.1 (eclipse-SDK-N20021115-win32.zip)
on
> > > > > Win2K, which is not an officially supported combination. I use
> > > > > cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
> > > > >
> > > > > Editing and building works fine (after changing the build command
in
> > the
> > > > > C-project-properties screen to something like
> > > > > "C:\ProgramFiles\cygwin\bin\make.exe -f makefile").
> > > > >
> > > > > Plain execution also works fine, even when referring to an
> executable
> > in
> > > a
> > > > > bin folder of the C project (e.g. putting "bin/dbc_ecs.exe" in the
> > C/C++
> > > > > application field of the "main" tab in the run configuration), and
> > even
> > > > > using a non-default working directory (e.g. referring to the bin
> > project
> > > > > sub-folder in the workspace).
> > > > >
> > > > > The only thing I can't manage to get working is debugging, and
> > > apparently
> > > > > many users have this same problem, also when using eclipse 2.0.x.
I
> > get
> > > > > the same behaviour as mentioned in previous postings:
> > > > > - when using the default debug settings:
> > > > > cygwin GDB Debugger;
> > > > > Run program in debugger
> > > > > Stop at main() in startup
> > > > > MI debugger: gdb
> > > > > Load shared library ... NOT checked
> > > > > => result is alert :
> > > > > "Unable to set temporary breakpoint in main.
> > > > > Reason: No symbol table is loaded. Use the "file" command.
> > > > > Continue?"
> > > > >
> > > > > Log file info:
> > > > > !SESSION Jan 07, 2003 12:20:38.387
> > > > > ---------------------------------------------
> > > > > java.version=1.3.1_05
> > > > > java.vendor=Sun Microsystems Inc.
> > > > > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
> > > > > Command-line arguments: -os win32 -ws win32 -arch x86 -install
> > > > > file:C:/ProgramFiles/eclipse/
> > > > > !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003 12:20:38.387
> > > > > !MESSAGE Error logged from Debug UI:
> > > > > !STACK 1
> > > > > org.eclipse.debug.core.DebugException: No symbol table is loaded.
> Use
> > > the
> > > > > "file" command.
> > > > > at
> > >
org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> > > > alCLaunchConfigurationDelegate.java:101)
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> > > > on.java:144)
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> > > > $11.run(LaunchConfigurationDialog.java:2283)
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> > > > .java:95)
> > > > > !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07, 2003 12:20:38.417
> > > > > !MESSAGE No symbol table is loaded. Use the "file" command.
> > > > >
> > > > > - when trying the commands specified by Mikhael below straight in
> > > cygwin,
> > > > > I get the same response as Michael (see below).
> > > > >
> > > > > HEEELP!
> > > > >
> > > > > Erwin.
> > > > >
> > > > > Related postings:
> > > > >
> > > > > Subject: Re: problem with step over debugging
> > > > > From: bangham@neocera.com (Michael)
> > > > > Newsgroups: eclipse.tools.cdt
> > > > > Organization: EclipseCorner
> > > > > Date: Jan 02 2003 19:20:43
> > > > >
> > > > > The response is:
> > > > > &"Not symbol table is loaded. Use the \"file\" command. \n"
> > > > >
> > > > >
> > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > > news:av27gu$rob$1@rogue.oti.com...
> > > > > > Please, try this:
> > > > > > 1. start gdb with '-i mi' option
> > > > > > 2. type '-gdb-set auto-solib-add off' and press Enter
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
> >
>
>
|
|
|
Re: CDT Debugging [message #57235 is a reply to message #57207] |
Wed, 08 January 2003 14:09   |
Eclipse User |
|
|
|
Originally posted by: mikhailk.qnx.com
What do you mean by 'The selections on the run menu are still not enabled'?
Did you check if the make was successful?
Can you you send me the .launch file? It is in the
'eclipse\workspace\.metadata\.plugins\org.eclipse.debug.core ' directory.
"Michael" <bangham@neocera.com> wrote in message
news:avhp0n$vuv$1@rogue.oti.com...
> The selections on the run menu are still not enabled. I modified the
> makefile per your instructions to be:
> objects = hello.o
>
> hello : $(objects)
> C:/cygwin/bin/g++ -g -o "C:\eclipse\workspace\HelloWorldWithMake\hello"
> $(objects)
>
> $(objects) : hello.cpp
> C:/cygwin/bin/g++.exe -g -c
> "C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
>
> hello.cpp :
> C:/cygwin/bin/g++.exe -g -c
> "C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
>
> all :
> ${MAKE} objects
>
> .PHONY : clean
> clean :
> -del hello.exe $(objects)
>
>
> "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> news:avhkb4$sm7$1@rogue.oti.com...
> > Your makefile is incorrect. You inserted the '-g' option between '-o'
and
> > the output file name. As a result the executable you are trying to debug
> > doesn't exist in the local file system. The debugger should verify this
> but
> > there is a bug in our code.
> > Fix your makefile and let me know if it works.
> >
> > Mikhail
> >
> > "Michael" <bangham@neocera.com> wrote in message
> > news:avf5eb$crt$1@rogue.oti.com...
> > > Thank you very much! I am using the Cygwin GDB debugger as specified
> > below.
> > > I included a screen shot of my launch config.
> > >
> > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > news:aveulg$81a$1@rogue.oti.com...
> > > > Please, create a new simple project, compile it with '-g' and try to
> > debug
> > > > it. Use 'Cygwin GDB debugger' and don't check the 'Automatically
load
> > > shared
> > > > libraries' option. If this doesn't work post your project and I'll
> check
> > > it.
> > > >
> > > > Thanks,
> > > > Mikhail
> > > >
> > > > "Michael" <bangham@neocera.com> wrote in message
> > > > news:avep9s$3bm$1@rogue.oti.com...
> > > > > I've been struggling against this issue for about 2 weeks - would
> love
> > > to
> > > > > get this working as Eclipse is a really nice environment. I'm
sure
> > > > someone
> > > > > out there has gotten this to work, but perhaps they have not seen
> > these
> > > > > recent postings/pleas on the subject.
> > > > >
> > > > > Michael
> > > > >
> > > > >
> > > > > "Erwin" <erwin.de.ley@tuple.be> wrote in message
> > > > > news:aveclq$phl$1@rogue.oti.com...
> > > > > > Hi,
> > > > > >
> > > > > > I am using CDT 1.0.1
> > > > org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> > > > > > in combination with eclipse 2.1
(eclipse-SDK-N20021115-win32.zip)
> on
> > > > > > Win2K, which is not an officially supported combination. I use
> > > > > > cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
> > > > > >
> > > > > > Editing and building works fine (after changing the build
command
> in
> > > the
> > > > > > C-project-properties screen to something like
> > > > > > "C:\ProgramFiles\cygwin\bin\make.exe -f makefile").
> > > > > >
> > > > > > Plain execution also works fine, even when referring to an
> > executable
> > > in
> > > > a
> > > > > > bin folder of the C project (e.g. putting "bin/dbc_ecs.exe" in
the
> > > C/C++
> > > > > > application field of the "main" tab in the run configuration),
and
> > > even
> > > > > > using a non-default working directory (e.g. referring to the bin
> > > project
> > > > > > sub-folder in the workspace).
> > > > > >
> > > > > > The only thing I can't manage to get working is debugging, and
> > > > apparently
> > > > > > many users have this same problem, also when using eclipse
2.0.x.
> I
> > > get
> > > > > > the same behaviour as mentioned in previous postings:
> > > > > > - when using the default debug settings:
> > > > > > cygwin GDB Debugger;
> > > > > > Run program in debugger
> > > > > > Stop at main() in startup
> > > > > > MI debugger: gdb
> > > > > > Load shared library ... NOT checked
> > > > > > => result is alert :
> > > > > > "Unable to set temporary breakpoint in main.
> > > > > > Reason: No symbol table is loaded. Use the "file" command.
> > > > > > Continue?"
> > > > > >
> > > > > > Log file info:
> > > > > > !SESSION Jan 07, 2003 12:20:38.387
> > > > > > ---------------------------------------------
> > > > > > java.version=1.3.1_05
> > > > > > java.vendor=Sun Microsystems Inc.
> > > > > > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
> > > > > > Command-line arguments: -os win32 -ws win32 -arch x86 -install
> > > > > > file:C:/ProgramFiles/eclipse/
> > > > > > !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003 12:20:38.387
> > > > > > !MESSAGE Error logged from Debug UI:
> > > > > > !STACK 1
> > > > > > org.eclipse.debug.core.DebugException: No symbol table is
loaded.
> > Use
> > > > the
> > > > > > "file" command.
> > > > > > at
> > > >
> org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> > > > > alCLaunchConfigurationDelegate.java:101)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> > > > > on.java:144)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> > > > > $11.run(LaunchConfigurationDialog.java:2283)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> > > > > .java:95)
> > > > > > !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07, 2003
12:20:38.417
> > > > > > !MESSAGE No symbol table is loaded. Use the "file" command.
> > > > > >
> > > > > > - when trying the commands specified by Mikhael below straight
in
> > > > cygwin,
> > > > > > I get the same response as Michael (see below).
> > > > > >
> > > > > > HEEELP!
> > > > > >
> > > > > > Erwin.
> > > > > >
> > > > > > Related postings:
> > > > > >
> > > > > > Subject: Re: problem with step over debugging
> > > > > > From: bangham@neocera.com (Michael)
> > > > > > Newsgroups: eclipse.tools.cdt
> > > > > > Organization: EclipseCorner
> > > > > > Date: Jan 02 2003 19:20:43
> > > > > >
> > > > > > The response is:
> > > > > > &"Not symbol table is loaded. Use the \"file\" command. \n"
> > > > > >
> > > > > >
> > > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > > > news:av27gu$rob$1@rogue.oti.com...
> > > > > > > Please, try this:
> > > > > > > 1. start gdb with '-i mi' option
> > > > > > > 2. type '-gdb-set auto-solib-add off' and press Enter
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
>
>
|
|
|
Re: CDT Debugging [message #57287 is a reply to message #57235] |
Wed, 08 January 2003 15:49   |
Eclipse User |
|
|
|
Originally posted by: bangham.neocera.com
I deleted the .exe and .o file before I rebuilt. Launch file is attached.
In the debug perspective the run menu has selections like "Step Into", "Step
Over", etc., to control the debugger.
"Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
news:avhs6b$2kh$1@rogue.oti.com...
> What do you mean by 'The selections on the run menu are still not
enabled'?
> Did you check if the make was successful?
> Can you you send me the .launch file? It is in the
> 'eclipse\workspace\.metadata\.plugins\org.eclipse.debug.core ' directory.
>
> "Michael" <bangham@neocera.com> wrote in message
> news:avhp0n$vuv$1@rogue.oti.com...
> > The selections on the run menu are still not enabled. I modified the
> > makefile per your instructions to be:
> > objects = hello.o
> >
> > hello : $(objects)
> > C:/cygwin/bin/g++ -g -o
"C:\eclipse\workspace\HelloWorldWithMake\hello"
> > $(objects)
> >
> > $(objects) : hello.cpp
> > C:/cygwin/bin/g++.exe -g -c
> > "C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
> >
> > hello.cpp :
> > C:/cygwin/bin/g++.exe -g -c
> > "C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
> >
> > all :
> > ${MAKE} objects
> >
> > .PHONY : clean
> > clean :
> > -del hello.exe $(objects)
> >
> >
> > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > news:avhkb4$sm7$1@rogue.oti.com...
> > > Your makefile is incorrect. You inserted the '-g' option between '-o'
> and
> > > the output file name. As a result the executable you are trying to
debug
> > > doesn't exist in the local file system. The debugger should verify
this
> > but
> > > there is a bug in our code.
> > > Fix your makefile and let me know if it works.
> > >
> > > Mikhail
> > >
> > > "Michael" <bangham@neocera.com> wrote in message
> > > news:avf5eb$crt$1@rogue.oti.com...
> > > > Thank you very much! I am using the Cygwin GDB debugger as specified
> > > below.
> > > > I included a screen shot of my launch config.
> > > >
> > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > news:aveulg$81a$1@rogue.oti.com...
> > > > > Please, create a new simple project, compile it with '-g' and try
to
> > > debug
> > > > > it. Use 'Cygwin GDB debugger' and don't check the 'Automatically
> load
> > > > shared
> > > > > libraries' option. If this doesn't work post your project and I'll
> > check
> > > > it.
> > > > >
> > > > > Thanks,
> > > > > Mikhail
> > > > >
> > > > > "Michael" <bangham@neocera.com> wrote in message
> > > > > news:avep9s$3bm$1@rogue.oti.com...
> > > > > > I've been struggling against this issue for about 2 weeks -
would
> > love
> > > > to
> > > > > > get this working as Eclipse is a really nice environment. I'm
> sure
> > > > > someone
> > > > > > out there has gotten this to work, but perhaps they have not
seen
> > > these
> > > > > > recent postings/pleas on the subject.
> > > > > >
> > > > > > Michael
> > > > > >
> > > > > >
> > > > > > "Erwin" <erwin.de.ley@tuple.be> wrote in message
> > > > > > news:aveclq$phl$1@rogue.oti.com...
> > > > > > > Hi,
> > > > > > >
> > > > > > > I am using CDT 1.0.1
> > > > > org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> > > > > > > in combination with eclipse 2.1
> (eclipse-SDK-N20021115-win32.zip)
> > on
> > > > > > > Win2K, which is not an officially supported combination. I use
> > > > > > > cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
> > > > > > >
> > > > > > > Editing and building works fine (after changing the build
> command
> > in
> > > > the
> > > > > > > C-project-properties screen to something like
> > > > > > > "C:\ProgramFiles\cygwin\bin\make.exe -f makefile").
> > > > > > >
> > > > > > > Plain execution also works fine, even when referring to an
> > > executable
> > > > in
> > > > > a
> > > > > > > bin folder of the C project (e.g. putting "bin/dbc_ecs.exe" in
> the
> > > > C/C++
> > > > > > > application field of the "main" tab in the run configuration),
> and
> > > > even
> > > > > > > using a non-default working directory (e.g. referring to the
bin
> > > > project
> > > > > > > sub-folder in the workspace).
> > > > > > >
> > > > > > > The only thing I can't manage to get working is debugging, and
> > > > > apparently
> > > > > > > many users have this same problem, also when using eclipse
> 2.0.x.
> > I
> > > > get
> > > > > > > the same behaviour as mentioned in previous postings:
> > > > > > > - when using the default debug settings:
> > > > > > > cygwin GDB Debugger;
> > > > > > > Run program in debugger
> > > > > > > Stop at main() in startup
> > > > > > > MI debugger: gdb
> > > > > > > Load shared library ... NOT checked
> > > > > > > => result is alert :
> > > > > > > "Unable to set temporary breakpoint in main.
> > > > > > > Reason: No symbol table is loaded. Use the "file"
command.
> > > > > > > Continue?"
> > > > > > >
> > > > > > > Log file info:
> > > > > > > !SESSION Jan 07, 2003 12:20:38.387
> > > > > > > ---------------------------------------------
> > > > > > > java.version=1.3.1_05
> > > > > > > java.vendor=Sun Microsystems Inc.
> > > > > > > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
> > > > > > > Command-line arguments: -os win32 -ws win32 -arch x86 -install
> > > > > > > file:C:/ProgramFiles/eclipse/
> > > > > > > !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003 12:20:38.387
> > > > > > > !MESSAGE Error logged from Debug UI:
> > > > > > > !STACK 1
> > > > > > > org.eclipse.debug.core.DebugException: No symbol table is
> loaded.
> > > Use
> > > > > the
> > > > > > > "file" command.
> > > > > > > at
> > > > >
> > org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> > > > > > > at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> > > > > > > at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> > > > > > alCLaunchConfigurationDelegate.java:101)
> > > > > > > at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> > > > > > on.java:144)
> > > > > > > at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> > > > > > $11.run(LaunchConfigurationDialog.java:2283)
> > > > > > > at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> > > > > > .java:95)
> > > > > > > !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07, 2003
> 12:20:38.417
> > > > > > > !MESSAGE No symbol table is loaded. Use the "file" command.
> > > > > > >
> > > > > > > - when trying the commands specified by Mikhael below straight
> in
> > > > > cygwin,
> > > > > > > I get the same response as Michael (see below).
> > > > > > >
> > > > > > > HEEELP!
> > > > > > >
> > > > > > > Erwin.
> > > > > > >
> > > > > > > Related postings:
> > > > > > >
> > > > > > > Subject: Re: problem with step over debugging
> > > > > > > From: bangham@neocera.com (Michael)
> > > > > > > Newsgroups: eclipse.tools.cdt
> > > > > > > Organization: EclipseCorner
> > > > > > > Date: Jan 02 2003 19:20:43
> > > > > > >
> > > > > > > The response is:
> > > > > > > &"Not symbol table is loaded. Use the \"file\" command. \n"
> > > > > > >
> > > > > > >
> > > > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > > > > news:av27gu$rob$1@rogue.oti.com...
> > > > > > > > Please, try this:
> > > > > > > > 1. start gdb with '-i mi' option
> > > > > > > > 2. type '-gdb-set auto-solib-add off' and press Enter
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
|
|
|
Re: CDT Debugging [message #57399 is a reply to message #57157] |
Wed, 08 January 2003 23:00   |
Eclipse User |
|
|
|
Originally posted by: mikhailkhod.rogers.com
Hi Erwin,
The path of your project contains space character ('HelloWorld C++'). When
CDT starts gdb it passes the full path of the executable as an argument. If
path contains space characters it should be put in quotes, otherwise gdb
accepts only the first part of the path. I will submit bug for this.
Thank you,
Mikhail
"Erwin" <erwin.de.ley@tuple.be> wrote in message
news:avgpo1$9tj$1@rogue.oti.com...
> Hi Mikhael,
>
> I\'ve created a simple HelloWorld project, very similar to the one in the
> CDT FAQ. I use -g for compiling and linking and still get the same
problem.
>
> I\'ve sent you a mail with a zip file containing my project and the launch
> configuration.
>
> Thanks for the work on this plugin!
>
> Regards,
>
> Erwin
>
> Mikhail Khodjaiants wrote:
>
> > Please, create a new simple project, compile it with \'-g\' and try to
debug
> > it. Use \'Cygwin GDB debugger\' and don\'t check the \'Automatically
load
> shared
> > libraries\' option. If this doesn\'t work post your project and I\'ll
check
> it.
>
> > Thanks,
> > Mikhail
>
> > \"Michael\" <bangham@neocera.com> wrote in message
> > news:avep9s$3bm$1@rogue.oti.com...
> > > I\'ve been struggling against this issue for about 2 weeks - would
love to
> > > get this working as Eclipse is a really nice environment. I\'m sure
> > someone
> > > out there has gotten this to work, but perhaps they have not seen
these
> > > recent postings/pleas on the subject.
> > >
> > > Michael
> > >
> > >
> > > \"Erwin\" <erwin.de.ley@tuple.be> wrote in message
> > > news:aveclq$phl$1@rogue.oti.com...
> > > > Hi,
> > > >
> > > > I am using CDT 1.0.1
> > org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> > > > in combination with eclipse 2.1 (eclipse-SDK-N20021115-win32.zip) on
> > > > Win2K, which is not an officially supported combination. I use
> > > > cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
> > > >
> > > > Editing and building works fine (after changing the build command in
the
> > > > C-project-properties screen to something like
> > > > \"C:\\ProgramFiles\\cygwin\\bin\\make.exe -f makefile\").
> > > >
> > > > Plain execution also works fine, even when referring to an
executable in
> > a
> > > > bin folder of the C project (e.g. putting \"bin/dbc_ecs.exe\" in the
> C/C++
> > > > application field of the \"main\" tab in the run configuration), and
even
> > > > using a non-default working directory (e.g. referring to the bin
project
> > > > sub-folder in the workspace).
> > > >
> > > > The only thing I can\'t manage to get working is debugging, and
> > apparently
> > > > many users have this same problem, also when using eclipse 2.0.x. I
get
> > > > the same behaviour as mentioned in previous postings:
> > > > - when using the default debug settings:
> > > > cygwin GDB Debugger;
> > > > Run program in debugger
> > > > Stop at main() in startup
> > > > MI debugger: gdb
> > > > Load shared library ... NOT checked
> > > > => result is alert :
> > > > \"Unable to set temporary breakpoint in main.
> > > > Reason: No symbol table is loaded. Use the \"file\" command.
> > > > Continue?\"
> > > >
> > > > Log file info:
> > > > !SESSION Jan 07, 2003 12:20:38.387
> > > > ---------------------------------------------
> > > > java.version=1.3.1_05
> > > > java.vendor=Sun Microsystems Inc.
> > > > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
> > > > Command-line arguments: -os win32 -ws win32 -arch x86 -install
> > > > file:C:/ProgramFiles/eclipse/
> > > > !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003 12:20:38.387
> > > > !MESSAGE Error logged from Debug UI:
> > > > !STACK 1
> > > > org.eclipse.debug.core.DebugException: No symbol table is loaded.
Use
> > the
> > > > \"file\" command.
> > > > at
> > org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> > > > at
> > > >
> > >
> >
org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> > > > at
> > > >
> > >
> >
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> > > alCLaunchConfigurationDelegate.java:101)
> > > > at
> > > >
> > >
> >
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> > > on.java:144)
> > > > at
> > > >
> > >
> >
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> > > $11.run(LaunchConfigurationDialog.java:2283)
> > > > at
> > > >
> > >
> >
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> > > .java:95)
> > > > !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07, 2003 12:20:38.417
> > > > !MESSAGE No symbol table is loaded. Use the \"file\" command.
> > > >
> > > > - when trying the commands specified by Mikhael below straight in
> > cygwin,
> > > > I get the same response as Michael (see below).
> > > >
> > > > HEEELP!
> > > >
> > > > Erwin.
> > > >
> > > > Related postings:
> > > >
> > > > Subject: Re: problem with step over debugging
> > > > From: bangham@neocera.com (Michael)
> > > > Newsgroups: eclipse.tools.cdt
> > > > Organization: EclipseCorner
> > > > Date: Jan 02 2003 19:20:43
> > > >
> > > > The response is:
> > > > &\"Not symbol table is loaded. Use the \\\"file\\\" command. \\n\"
> > > >
> > > >
> > > > \"Mikhail Khodjaiants\" <mikhailk@qnx.com> wrote in message
> > > > news:av27gu$rob$1@rogue.oti.com...
> > > > > Please, try this:
> > > > > 1. start gdb with \'-i mi\' option
> > > > > 2. type \'-gdb-set auto-solib-add off\' and press Enter
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
>
>
>
>
>
|
|
|
Re: CDT Debugging [message #57425 is a reply to message #57399] |
Thu, 09 January 2003 03:34   |
Eclipse User |
|
|
|
Originally posted by: erwin.de.ley.tuple.be
Mikhael,
Indeed it works fine now, without the space in the project name.
Thanks for the fast diagnosis!
Erwin
Mikhail Khodjaiants wrote:
> Hi Erwin,
> The path of your project contains space character ('HelloWorld C++'). When
> CDT starts gdb it passes the full path of the executable as an argument. If
> path contains space characters it should be put in quotes, otherwise gdb
> accepts only the first part of the path. I will submit bug for this.
> Thank you,
> Mikhail
> "Erwin" <erwin.de.ley@tuple.be> wrote in message
> news:avgpo1$9tj$1@rogue.oti.com...
> > Hi Mikhael,
> >
> > I\'ve created a simple HelloWorld project, very similar to the one in the
> > CDT FAQ. I use -g for compiling and linking and still get the same
> problem.
> >
> > I\'ve sent you a mail with a zip file containing my project and the launch
> > configuration.
> >
> > Thanks for the work on this plugin!
> >
> > Regards,
> >
> > Erwin
> >
> > Mikhail Khodjaiants wrote:
> >
> > > Please, create a new simple project, compile it with \'-g\' and try to
> debug
> > > it. Use \'Cygwin GDB debugger\' and don\'t check the \'Automatically
> load
> > shared
> > > libraries\' option. If this doesn\'t work post your project and I\'ll
> check
> > it.
> >
> > > Thanks,
> > > Mikhail
> >
> > > \"Michael\" <bangham@neocera.com> wrote in message
> > > news:avep9s$3bm$1@rogue.oti.com...
> > > > I\'ve been struggling against this issue for about 2 weeks - would
> love to
> > > > get this working as Eclipse is a really nice environment. I\'m sure
> > > someone
> > > > out there has gotten this to work, but perhaps they have not seen
> these
> > > > recent postings/pleas on the subject.
> > > >
> > > > Michael
> > > >
> > > >
> > > > \"Erwin\" <erwin.de.ley@tuple.be> wrote in message
> > > > news:aveclq$phl$1@rogue.oti.com...
> > > > > Hi,
> > > > >
> > > > > I am using CDT 1.0.1
> > > org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> > > > > in combination with eclipse 2.1 (eclipse-SDK-N20021115-win32.zip) on
> > > > > Win2K, which is not an officially supported combination. I use
> > > > > cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
> > > > >
> > > > > Editing and building works fine (after changing the build command in
> the
> > > > > C-project-properties screen to something like
> > > > > \"C:\\ProgramFiles\\cygwin\\bin\\make.exe -f makefile\").
> > > > >
> > > > > Plain execution also works fine, even when referring to an
> executable in
> > > a
> > > > > bin folder of the C project (e.g. putting \"bin/dbc_ecs.exe\" in the
> > C/C++
> > > > > application field of the \"main\" tab in the run configuration), and
> even
> > > > > using a non-default working directory (e.g. referring to the bin
> project
> > > > > sub-folder in the workspace).
> > > > >
> > > > > The only thing I can\'t manage to get working is debugging, and
> > > apparently
> > > > > many users have this same problem, also when using eclipse 2.0.x. I
> get
> > > > > the same behaviour as mentioned in previous postings:
> > > > > - when using the default debug settings:
> > > > > cygwin GDB Debugger;
> > > > > Run program in debugger
> > > > > Stop at main() in startup
> > > > > MI debugger: gdb
> > > > > Load shared library ... NOT checked
> > > > > => result is alert :
> > > > > \"Unable to set temporary breakpoint in main.
> > > > > Reason: No symbol table is loaded. Use the \"file\" command.
> > > > > Continue?\"
> > > > >
> > > > > Log file info:
> > > > > !SESSION Jan 07, 2003 12:20:38.387
> > > > > ---------------------------------------------
> > > > > java.version=1.3.1_05
> > > > > java.vendor=Sun Microsystems Inc.
> > > > > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
> > > > > Command-line arguments: -os win32 -ws win32 -arch x86 -install
> > > > > file:C:/ProgramFiles/eclipse/
> > > > > !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003 12:20:38.387
> > > > > !MESSAGE Error logged from Debug UI:
> > > > > !STACK 1
> > > > > org.eclipse.debug.core.DebugException: No symbol table is loaded.
> Use
> > > the
> > > > > \"file\" command.
> > > > > at
> > > org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> > > > > at
> > > > >
> > > >
> > >
> org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> > > > > at
> > > > >
> > > >
> > >
> org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> > > > alCLaunchConfigurationDelegate.java:101)
> > > > > at
> > > > >
> > > >
> > >
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> > > > on.java:144)
> > > > > at
> > > > >
> > > >
> > >
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> > > > $11.run(LaunchConfigurationDialog.java:2283)
> > > > > at
> > > > >
> > > >
> > >
> org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> > > > .java:95)
> > > > > !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07, 2003 12:20:38.417
> > > > > !MESSAGE No symbol table is loaded. Use the \"file\" command.
> > > > >
> > > > > - when trying the commands specified by Mikhael below straight in
> > > cygwin,
> > > > > I get the same response as Michael (see below).
> > > > >
> > > > > HEEELP!
> > > > >
> > > > > Erwin.
> > > > >
> > > > > Related postings:
> > > > >
> > > > > Subject: Re: problem with step over debugging
> > > > > From: bangham@neocera.com (Michael)
> > > > > Newsgroups: eclipse.tools.cdt
> > > > > Organization: EclipseCorner
> > > > > Date: Jan 02 2003 19:20:43
> > > > >
> > > > > The response is:
> > > > > &\"Not symbol table is loaded. Use the \\\"file\\\" command. \\n\"
> > > > >
> > > > >
> > > > > \"Mikhail Khodjaiants\" <mikhailk@qnx.com> wrote in message
> > > > > news:av27gu$rob$1@rogue.oti.com...
> > > > > > Please, try this:
> > > > > > 1. start gdb with \'-i mi\' option
> > > > > > 2. type \'-gdb-set auto-solib-add off\' and press Enter
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> >
> >
> >
> >
> >
|
|
|
Re: CDT Debugging [message #57579 is a reply to message #57287] |
Thu, 09 January 2003 13:42   |
Eclipse User |
|
|
|
Originally posted by: mikhailk.qnx.com
What is in your .log file? It is in the 'workspace\.metadata' directory.
Delete it, start your session again and send me the '.log' file.
Thanks,
Mikhail
"Michael" <bangham@neocera.com> wrote in message
news:avi21f$6pt$1@rogue.oti.com...
> I deleted the .exe and .o file before I rebuilt. Launch file is attached.
>
> In the debug perspective the run menu has selections like "Step Into",
"Step
> Over", etc., to control the debugger.
>
> "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> news:avhs6b$2kh$1@rogue.oti.com...
> > What do you mean by 'The selections on the run menu are still not
> enabled'?
> > Did you check if the make was successful?
> > Can you you send me the .launch file? It is in the
> > 'eclipse\workspace\.metadata\.plugins\org.eclipse.debug.core ' directory.
> >
> > "Michael" <bangham@neocera.com> wrote in message
> > news:avhp0n$vuv$1@rogue.oti.com...
> > > The selections on the run menu are still not enabled. I modified the
> > > makefile per your instructions to be:
> > > objects = hello.o
> > >
> > > hello : $(objects)
> > > C:/cygwin/bin/g++ -g -o
> "C:\eclipse\workspace\HelloWorldWithMake\hello"
> > > $(objects)
> > >
> > > $(objects) : hello.cpp
> > > C:/cygwin/bin/g++.exe -g -c
> > > "C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
> > >
> > > hello.cpp :
> > > C:/cygwin/bin/g++.exe -g -c
> > > "C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
> > >
> > > all :
> > > ${MAKE} objects
> > >
> > > .PHONY : clean
> > > clean :
> > > -del hello.exe $(objects)
> > >
> > >
> > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > news:avhkb4$sm7$1@rogue.oti.com...
> > > > Your makefile is incorrect. You inserted the '-g' option between
'-o'
> > and
> > > > the output file name. As a result the executable you are trying to
> debug
> > > > doesn't exist in the local file system. The debugger should verify
> this
> > > but
> > > > there is a bug in our code.
> > > > Fix your makefile and let me know if it works.
> > > >
> > > > Mikhail
> > > >
> > > > "Michael" <bangham@neocera.com> wrote in message
> > > > news:avf5eb$crt$1@rogue.oti.com...
> > > > > Thank you very much! I am using the Cygwin GDB debugger as
specified
> > > > below.
> > > > > I included a screen shot of my launch config.
> > > > >
> > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > > news:aveulg$81a$1@rogue.oti.com...
> > > > > > Please, create a new simple project, compile it with '-g' and
try
> to
> > > > debug
> > > > > > it. Use 'Cygwin GDB debugger' and don't check the 'Automatically
> > load
> > > > > shared
> > > > > > libraries' option. If this doesn't work post your project and
I'll
> > > check
> > > > > it.
> > > > > >
> > > > > > Thanks,
> > > > > > Mikhail
> > > > > >
> > > > > > "Michael" <bangham@neocera.com> wrote in message
> > > > > > news:avep9s$3bm$1@rogue.oti.com...
> > > > > > > I've been struggling against this issue for about 2 weeks -
> would
> > > love
> > > > > to
> > > > > > > get this working as Eclipse is a really nice environment. I'm
> > sure
> > > > > > someone
> > > > > > > out there has gotten this to work, but perhaps they have not
> seen
> > > > these
> > > > > > > recent postings/pleas on the subject.
> > > > > > >
> > > > > > > Michael
> > > > > > >
> > > > > > >
> > > > > > > "Erwin" <erwin.de.ley@tuple.be> wrote in message
> > > > > > > news:aveclq$phl$1@rogue.oti.com...
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > I am using CDT 1.0.1
> > > > > > org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> > > > > > > > in combination with eclipse 2.1
> > (eclipse-SDK-N20021115-win32.zip)
> > > on
> > > > > > > > Win2K, which is not an officially supported combination. I
use
> > > > > > > > cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
> > > > > > > >
> > > > > > > > Editing and building works fine (after changing the build
> > command
> > > in
> > > > > the
> > > > > > > > C-project-properties screen to something like
> > > > > > > > "C:\ProgramFiles\cygwin\bin\make.exe -f makefile").
> > > > > > > >
> > > > > > > > Plain execution also works fine, even when referring to an
> > > > executable
> > > > > in
> > > > > > a
> > > > > > > > bin folder of the C project (e.g. putting "bin/dbc_ecs.exe"
in
> > the
> > > > > C/C++
> > > > > > > > application field of the "main" tab in the run
configuration),
> > and
> > > > > even
> > > > > > > > using a non-default working directory (e.g. referring to the
> bin
> > > > > project
> > > > > > > > sub-folder in the workspace).
> > > > > > > >
> > > > > > > > The only thing I can't manage to get working is debugging,
and
> > > > > > apparently
> > > > > > > > many users have this same problem, also when using eclipse
> > 2.0.x.
> > > I
> > > > > get
> > > > > > > > the same behaviour as mentioned in previous postings:
> > > > > > > > - when using the default debug settings:
> > > > > > > > cygwin GDB Debugger;
> > > > > > > > Run program in debugger
> > > > > > > > Stop at main() in startup
> > > > > > > > MI debugger: gdb
> > > > > > > > Load shared library ... NOT checked
> > > > > > > > => result is alert :
> > > > > > > > "Unable to set temporary breakpoint in main.
> > > > > > > > Reason: No symbol table is loaded. Use the "file"
> command.
> > > > > > > > Continue?"
> > > > > > > >
> > > > > > > > Log file info:
> > > > > > > > !SESSION Jan 07, 2003 12:20:38.387
> > > > > > > > ---------------------------------------------
> > > > > > > > java.version=1.3.1_05
> > > > > > > > java.vendor=Sun Microsystems Inc.
> > > > > > > > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
> > > > > > > > Command-line arguments: -os win32 -ws win32 -arch
x86 -install
> > > > > > > > file:C:/ProgramFiles/eclipse/
> > > > > > > > !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003 12:20:38.387
> > > > > > > > !MESSAGE Error logged from Debug UI:
> > > > > > > > !STACK 1
> > > > > > > > org.eclipse.debug.core.DebugException: No symbol table is
> > loaded.
> > > > Use
> > > > > > the
> > > > > > > > "file" command.
> > > > > > > > at
> > > > > >
> > >
org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> > > > > > > > at
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> > > > > > > > at
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> > > > > > > alCLaunchConfigurationDelegate.java:101)
> > > > > > > > at
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> > > > > > > on.java:144)
> > > > > > > > at
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> > > > > > > $11.run(LaunchConfigurationDialog.java:2283)
> > > > > > > > at
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> > > > > > > .java:95)
> > > > > > > > !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07, 2003
> > 12:20:38.417
> > > > > > > > !MESSAGE No symbol table is loaded. Use the "file" command.
> > > > > > > >
> > > > > > > > - when trying the commands specified by Mikhael below
straight
> > in
> > > > > > cygwin,
> > > > > > > > I get the same response as Michael (see below).
> > > > > > > >
> > > > > > > > HEEELP!
> > > > > > > >
> > > > > > > > Erwin.
> > > > > > > >
> > > > > > > > Related postings:
> > > > > > > >
> > > > > > > > Subject: Re: problem with step over debugging
> > > > > > > > From: bangham@neocera.com (Michael)
> > > > > > > > Newsgroups: eclipse.tools.cdt
> > > > > > > > Organization: EclipseCorner
> > > > > > > > Date: Jan 02 2003 19:20:43
> > > > > > > >
> > > > > > > > The response is:
> > > > > > > > &"Not symbol table is loaded. Use the \"file\" command. \n"
> > > > > > > >
> > > > > > > >
> > > > > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > > > > > news:av27gu$rob$1@rogue.oti.com...
> > > > > > > > > Please, try this:
> > > > > > > > > 1. start gdb with '-i mi' option
> > > > > > > > > 2. type '-gdb-set auto-solib-add off' and press Enter
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
>
|
|
|
Re: CDT Debugging [message #57603 is a reply to message #57579] |
Thu, 09 January 2003 16:00   |
Eclipse User |
|
|
|
Originally posted by: bangham.neocera.com
Log file attached. Erwin sent me his project w/ launch config. I created a
new project, imported his files ver batum and copied his launch file into my
C:\eclipse\workspace\.metadata\.plugins\org.eclipse.debug.co re\.launches
folder. I still have the same problem - none of the debug menu selections
are enabled.
Thank you for your patience.
"Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
news:avkeue$muj$1@rogue.oti.com...
> What is in your .log file? It is in the 'workspace\.metadata' directory.
> Delete it, start your session again and send me the '.log' file.
>
> Thanks,
> Mikhail
>
> "Michael" <bangham@neocera.com> wrote in message
> news:avi21f$6pt$1@rogue.oti.com...
> > I deleted the .exe and .o file before I rebuilt. Launch file is
attached.
> >
> > In the debug perspective the run menu has selections like "Step Into",
> "Step
> > Over", etc., to control the debugger.
> >
> > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > news:avhs6b$2kh$1@rogue.oti.com...
> > > What do you mean by 'The selections on the run menu are still not
> > enabled'?
> > > Did you check if the make was successful?
> > > Can you you send me the .launch file? It is in the
> > > 'eclipse\workspace\.metadata\.plugins\org.eclipse.debug.core '
directory.
> > >
> > > "Michael" <bangham@neocera.com> wrote in message
> > > news:avhp0n$vuv$1@rogue.oti.com...
> > > > The selections on the run menu are still not enabled. I modified
the
> > > > makefile per your instructions to be:
> > > > objects = hello.o
> > > >
> > > > hello : $(objects)
> > > > C:/cygwin/bin/g++ -g -o
> > "C:\eclipse\workspace\HelloWorldWithMake\hello"
> > > > $(objects)
> > > >
> > > > $(objects) : hello.cpp
> > > > C:/cygwin/bin/g++.exe -g -c
> > > > "C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
> > > >
> > > > hello.cpp :
> > > > C:/cygwin/bin/g++.exe -g -c
> > > > "C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
> > > >
> > > > all :
> > > > ${MAKE} objects
> > > >
> > > > .PHONY : clean
> > > > clean :
> > > > -del hello.exe $(objects)
> > > >
> > > >
> > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > news:avhkb4$sm7$1@rogue.oti.com...
> > > > > Your makefile is incorrect. You inserted the '-g' option between
> '-o'
> > > and
> > > > > the output file name. As a result the executable you are trying to
> > debug
> > > > > doesn't exist in the local file system. The debugger should verify
> > this
> > > > but
> > > > > there is a bug in our code.
> > > > > Fix your makefile and let me know if it works.
> > > > >
> > > > > Mikhail
> > > > >
> > > > > "Michael" <bangham@neocera.com> wrote in message
> > > > > news:avf5eb$crt$1@rogue.oti.com...
> > > > > > Thank you very much! I am using the Cygwin GDB debugger as
> specified
> > > > > below.
> > > > > > I included a screen shot of my launch config.
> > > > > >
> > > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > > > news:aveulg$81a$1@rogue.oti.com...
> > > > > > > Please, create a new simple project, compile it with '-g' and
> try
> > to
> > > > > debug
> > > > > > > it. Use 'Cygwin GDB debugger' and don't check the
'Automatically
> > > load
> > > > > > shared
> > > > > > > libraries' option. If this doesn't work post your project and
> I'll
> > > > check
> > > > > > it.
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Mikhail
> > > > > > >
> > > > > > > "Michael" <bangham@neocera.com> wrote in message
> > > > > > > news:avep9s$3bm$1@rogue.oti.com...
> > > > > > > > I've been struggling against this issue for about 2 weeks -
> > would
> > > > love
> > > > > > to
> > > > > > > > get this working as Eclipse is a really nice environment.
I'm
> > > sure
> > > > > > > someone
> > > > > > > > out there has gotten this to work, but perhaps they have not
> > seen
> > > > > these
> > > > > > > > recent postings/pleas on the subject.
> > > > > > > >
> > > > > > > > Michael
> > > > > > > >
> > > > > > > >
> > > > > > > > "Erwin" <erwin.de.ley@tuple.be> wrote in message
> > > > > > > > news:aveclq$phl$1@rogue.oti.com...
> > > > > > > > > Hi,
> > > > > > > > >
> > > > > > > > > I am using CDT 1.0.1
> > > > > > > org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> > > > > > > > > in combination with eclipse 2.1
> > > (eclipse-SDK-N20021115-win32.zip)
> > > > on
> > > > > > > > > Win2K, which is not an officially supported combination. I
> use
> > > > > > > > > cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
> > > > > > > > >
> > > > > > > > > Editing and building works fine (after changing the build
> > > command
> > > > in
> > > > > > the
> > > > > > > > > C-project-properties screen to something like
> > > > > > > > > "C:\ProgramFiles\cygwin\bin\make.exe -f makefile").
> > > > > > > > >
> > > > > > > > > Plain execution also works fine, even when referring to an
> > > > > executable
> > > > > > in
> > > > > > > a
> > > > > > > > > bin folder of the C project (e.g. putting
"bin/dbc_ecs.exe"
> in
> > > the
> > > > > > C/C++
> > > > > > > > > application field of the "main" tab in the run
> configuration),
> > > and
> > > > > > even
> > > > > > > > > using a non-default working directory (e.g. referring to
the
> > bin
> > > > > > project
> > > > > > > > > sub-folder in the workspace).
> > > > > > > > >
> > > > > > > > > The only thing I can't manage to get working is debugging,
> and
> > > > > > > apparently
> > > > > > > > > many users have this same problem, also when using eclipse
> > > 2.0.x.
> > > > I
> > > > > > get
> > > > > > > > > the same behaviour as mentioned in previous postings:
> > > > > > > > > - when using the default debug settings:
> > > > > > > > > cygwin GDB Debugger;
> > > > > > > > > Run program in debugger
> > > > > > > > > Stop at main() in startup
> > > > > > > > > MI debugger: gdb
> > > > > > > > > Load shared library ... NOT checked
> > > > > > > > > => result is alert :
> > > > > > > > > "Unable to set temporary breakpoint in main.
> > > > > > > > > Reason: No symbol table is loaded. Use the "file"
> > command.
> > > > > > > > > Continue?"
> > > > > > > > >
> > > > > > > > > Log file info:
> > > > > > > > > !SESSION Jan 07, 2003 12:20:38.387
> > > > > > > > > ---------------------------------------------
> > > > > > > > > java.version=1.3.1_05
> > > > > > > > > java.vendor=Sun Microsystems Inc.
> > > > > > > > > BootLoader constants: OS=win32, ARCH=x86, WS=win32,
NL=en_GB
> > > > > > > > > Command-line arguments: -os win32 -ws win32 -arch
> x86 -install
> > > > > > > > > file:C:/ProgramFiles/eclipse/
> > > > > > > > > !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003
12:20:38.387
> > > > > > > > > !MESSAGE Error logged from Debug UI:
> > > > > > > > > !STACK 1
> > > > > > > > > org.eclipse.debug.core.DebugException: No symbol table is
> > > loaded.
> > > > > Use
> > > > > > > the
> > > > > > > > > "file" command.
> > > > > > > > > at
> > > > > > >
> > > >
> org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> > > > > > > > > at
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> > > > > > > > > at
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> > > > > > > > alCLaunchConfigurationDelegate.java:101)
> > > > > > > > > at
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> > > > > > > > on.java:144)
> > > > > > > > > at
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> > > > > > > > $11.run(LaunchConfigurationDialog.java:2283)
> > > > > > > > > at
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> > > > > > > > .java:95)
> > > > > > > > > !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07, 2003
> > > 12:20:38.417
> > > > > > > > > !MESSAGE No symbol table is loaded. Use the "file"
command.
> > > > > > > > >
> > > > > > > > > - when trying the commands specified by Mikhael below
> straight
> > > in
> > > > > > > cygwin,
> > > > > > > > > I get the same response as Michael (see below).
> > > > > > > > >
> > > > > > > > > HEEELP!
> > > > > > > > >
> > > > > > > > > Erwin.
> > > > > > > > >
> > > > > > > > > Related postings:
> > > > > > > > >
> > > > > > > > > Subject: Re: problem with step over debugging
> > > > > > > > > From: bangham@neocera.com (Michael)
> > > > > > > > > Newsgroups: eclipse.tools.cdt
> > > > > > > > > Organization: EclipseCorner
> > > > > > > > > Date: Jan 02 2003 19:20:43
> > > > > > > > >
> > > > > > > > > The response is:
> > > > > > > > > &"Not symbol table is loaded. Use the \"file\" command.
\n"
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > > > > > > news:av27gu$rob$1@rogue.oti.com...
> > > > > > > > > > Please, try this:
> > > > > > > > > > 1. start gdb with '-i mi' option
> > > > > > > > > > 2. type '-gdb-set auto-solib-add off' and press Enter
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
> >
>
>
Attachment: .log
(Size: 1.64KB, Downloaded 254 times)
|
|
|
Re: CDT Debugging [message #57630 is a reply to message #57603] |
Thu, 09 January 2003 18:37   |
Eclipse User |
|
|
|
Originally posted by: mikhailk.qnx.com
It looks like gdb dies. Can you check if it is running or not when you get
this error?
"Michael" <bangham@neocera.com> wrote in message
news:avkn2h$sg8$1@rogue.oti.com...
> Log file attached. Erwin sent me his project w/ launch config. I created
a
> new project, imported his files ver batum and copied his launch file into
my
> C:\eclipse\workspace\.metadata\.plugins\org.eclipse.debug.co re\.launches
> folder. I still have the same problem - none of the debug menu selections
> are enabled.
>
> Thank you for your patience.
>
>
> "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> news:avkeue$muj$1@rogue.oti.com...
> > What is in your .log file? It is in the 'workspace\.metadata' directory.
> > Delete it, start your session again and send me the '.log' file.
> >
> > Thanks,
> > Mikhail
> >
> > "Michael" <bangham@neocera.com> wrote in message
> > news:avi21f$6pt$1@rogue.oti.com...
> > > I deleted the .exe and .o file before I rebuilt. Launch file is
> attached.
> > >
> > > In the debug perspective the run menu has selections like "Step Into",
> > "Step
> > > Over", etc., to control the debugger.
> > >
> > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > news:avhs6b$2kh$1@rogue.oti.com...
> > > > What do you mean by 'The selections on the run menu are still not
> > > enabled'?
> > > > Did you check if the make was successful?
> > > > Can you you send me the .launch file? It is in the
> > > > 'eclipse\workspace\.metadata\.plugins\org.eclipse.debug.core '
> directory.
> > > >
> > > > "Michael" <bangham@neocera.com> wrote in message
> > > > news:avhp0n$vuv$1@rogue.oti.com...
> > > > > The selections on the run menu are still not enabled. I modified
> the
> > > > > makefile per your instructions to be:
> > > > > objects = hello.o
> > > > >
> > > > > hello : $(objects)
> > > > > C:/cygwin/bin/g++ -g -o
> > > "C:\eclipse\workspace\HelloWorldWithMake\hello"
> > > > > $(objects)
> > > > >
> > > > > $(objects) : hello.cpp
> > > > > C:/cygwin/bin/g++.exe -g -c
> > > > > "C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
> > > > >
> > > > > hello.cpp :
> > > > > C:/cygwin/bin/g++.exe -g -c
> > > > > "C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
> > > > >
> > > > > all :
> > > > > ${MAKE} objects
> > > > >
> > > > > .PHONY : clean
> > > > > clean :
> > > > > -del hello.exe $(objects)
> > > > >
> > > > >
> > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > > news:avhkb4$sm7$1@rogue.oti.com...
> > > > > > Your makefile is incorrect. You inserted the '-g' option between
> > '-o'
> > > > and
> > > > > > the output file name. As a result the executable you are trying
to
> > > debug
> > > > > > doesn't exist in the local file system. The debugger should
verify
> > > this
> > > > > but
> > > > > > there is a bug in our code.
> > > > > > Fix your makefile and let me know if it works.
> > > > > >
> > > > > > Mikhail
> > > > > >
> > > > > > "Michael" <bangham@neocera.com> wrote in message
> > > > > > news:avf5eb$crt$1@rogue.oti.com...
> > > > > > > Thank you very much! I am using the Cygwin GDB debugger as
> > specified
> > > > > > below.
> > > > > > > I included a screen shot of my launch config.
> > > > > > >
> > > > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > > > > news:aveulg$81a$1@rogue.oti.com...
> > > > > > > > Please, create a new simple project, compile it with '-g'
and
> > try
> > > to
> > > > > > debug
> > > > > > > > it. Use 'Cygwin GDB debugger' and don't check the
> 'Automatically
> > > > load
> > > > > > > shared
> > > > > > > > libraries' option. If this doesn't work post your project
and
> > I'll
> > > > > check
> > > > > > > it.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > Mikhail
> > > > > > > >
> > > > > > > > "Michael" <bangham@neocera.com> wrote in message
> > > > > > > > news:avep9s$3bm$1@rogue.oti.com...
> > > > > > > > > I've been struggling against this issue for about 2
weeks -
> > > would
> > > > > love
> > > > > > > to
> > > > > > > > > get this working as Eclipse is a really nice environment.
> I'm
> > > > sure
> > > > > > > > someone
> > > > > > > > > out there has gotten this to work, but perhaps they have
not
> > > seen
> > > > > > these
> > > > > > > > > recent postings/pleas on the subject.
> > > > > > > > >
> > > > > > > > > Michael
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > "Erwin" <erwin.de.ley@tuple.be> wrote in message
> > > > > > > > > news:aveclq$phl$1@rogue.oti.com...
> > > > > > > > > > Hi,
> > > > > > > > > >
> > > > > > > > > > I am using CDT 1.0.1
> > > > > > > > org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> > > > > > > > > > in combination with eclipse 2.1
> > > > (eclipse-SDK-N20021115-win32.zip)
> > > > > on
> > > > > > > > > > Win2K, which is not an officially supported combination.
I
> > use
> > > > > > > > > > cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
> > > > > > > > > >
> > > > > > > > > > Editing and building works fine (after changing the
build
> > > > command
> > > > > in
> > > > > > > the
> > > > > > > > > > C-project-properties screen to something like
> > > > > > > > > > "C:\ProgramFiles\cygwin\bin\make.exe -f makefile").
> > > > > > > > > >
> > > > > > > > > > Plain execution also works fine, even when referring to
an
> > > > > > executable
> > > > > > > in
> > > > > > > > a
> > > > > > > > > > bin folder of the C project (e.g. putting
> "bin/dbc_ecs.exe"
> > in
> > > > the
> > > > > > > C/C++
> > > > > > > > > > application field of the "main" tab in the run
> > configuration),
> > > > and
> > > > > > > even
> > > > > > > > > > using a non-default working directory (e.g. referring to
> the
> > > bin
> > > > > > > project
> > > > > > > > > > sub-folder in the workspace).
> > > > > > > > > >
> > > > > > > > > > The only thing I can't manage to get working is
debugging,
> > and
> > > > > > > > apparently
> > > > > > > > > > many users have this same problem, also when using
eclipse
> > > > 2.0.x.
> > > > > I
> > > > > > > get
> > > > > > > > > > the same behaviour as mentioned in previous postings:
> > > > > > > > > > - when using the default debug settings:
> > > > > > > > > > cygwin GDB Debugger;
> > > > > > > > > > Run program in debugger
> > > > > > > > > > Stop at main() in startup
> > > > > > > > > > MI debugger: gdb
> > > > > > > > > > Load shared library ... NOT checked
> > > > > > > > > > => result is alert :
> > > > > > > > > > "Unable to set temporary breakpoint in main.
> > > > > > > > > > Reason: No symbol table is loaded. Use the "file"
> > > command.
> > > > > > > > > > Continue?"
> > > > > > > > > >
> > > > > > > > > > Log file info:
> > > > > > > > > > !SESSION Jan 07, 2003 12:20:38.387
> > > > > > > > > > ---------------------------------------------
> > > > > > > > > > java.version=1.3.1_05
> > > > > > > > > > java.vendor=Sun Microsystems Inc.
> > > > > > > > > > BootLoader constants: OS=win32, ARCH=x86, WS=win32,
> NL=en_GB
> > > > > > > > > > Command-line arguments: -os win32 -ws win32 -arch
> > x86 -install
> > > > > > > > > > file:C:/ProgramFiles/eclipse/
> > > > > > > > > > !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003
> 12:20:38.387
> > > > > > > > > > !MESSAGE Error logged from Debug UI:
> > > > > > > > > > !STACK 1
> > > > > > > > > > org.eclipse.debug.core.DebugException: No symbol table
is
> > > > loaded.
> > > > > > Use
> > > > > > > > the
> > > > > > > > > > "file" command.
> > > > > > > > > > at
> > > > > > > >
> > > > >
> > org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> > > > > > > > > > at
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> > > > > > > > > > at
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> > > > > > > > > alCLaunchConfigurationDelegate.java:101)
> > > > > > > > > > at
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> > > > > > > > > on.java:144)
> > > > > > > > > > at
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> > > > > > > > > $11.run(LaunchConfigurationDialog.java:2283)
> > > > > > > > > > at
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> > > > > > > > > .java:95)
> > > > > > > > > > !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07, 2003
> > > > 12:20:38.417
> > > > > > > > > > !MESSAGE No symbol table is loaded. Use the "file"
> command.
> > > > > > > > > >
> > > > > > > > > > - when trying the commands specified by Mikhael below
> > straight
> > > > in
> > > > > > > > cygwin,
> > > > > > > > > > I get the same response as Michael (see below).
> > > > > > > > > >
> > > > > > > > > > HEEELP!
> > > > > > > > > >
> > > > > > > > > > Erwin.
> > > > > > > > > >
> > > > > > > > > > Related postings:
> > > > > > > > > >
> > > > > > > > > > Subject: Re: problem with step over debugging
> > > > > > > > > > From: bangham@neocera.com (Michael)
> > > > > > > > > > Newsgroups: eclipse.tools.cdt
> > > > > > > > > > Organization: EclipseCorner
> > > > > > > > > > Date: Jan 02 2003 19:20:43
> > > > > > > > > >
> > > > > > > > > > The response is:
> > > > > > > > > > &"Not symbol table is loaded. Use the \"file\" command.
> \n"
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in
message
> > > > > > > > > > news:av27gu$rob$1@rogue.oti.com...
> > > > > > > > > > > Please, try this:
> > > > > > > > > > > 1. start gdb with '-i mi' option
> > > > > > > > > > > 2. type '-gdb-set auto-solib-add off' and press Enter
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
>
>
>
|
|
|
Re: CDT Debugging [message #57702 is a reply to message #57630] |
Fri, 10 January 2003 09:00   |
Eclipse User |
|
|
|
Originally posted by: bangham.neocera.com
gdb only dies because I have to exit eclipse while gdb is still under
eclipse's control. Eclipse starts gdb fine, then gdb hits the breakpoint
and stops. Because all of the debug runtime menus are not enabled, there is
no way for me to tell gdb to continue. So, effectively eclipse is locked up
with gdb at the first breakpoint and I have to kill eclipse.
I attached a zip file with bitmaps of the applications and tasks running in
Task Manager when gdb hits the breakpoint. So, the Task Manager shows
everything thats running when the first breakpoint is hit, i.e., just before
I shutdown eclipse.
"Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
news:avl08i$3d5$1@rogue.oti.com...
> It looks like gdb dies. Can you check if it is running or not when you get
> this error?
>
> "Michael" <bangham@neocera.com> wrote in message
> news:avkn2h$sg8$1@rogue.oti.com...
> > Log file attached. Erwin sent me his project w/ launch config. I
created
> a
> > new project, imported his files ver batum and copied his launch file
into
> my
> > C:\eclipse\workspace\.metadata\.plugins\org.eclipse.debug.co re\.launches
> > folder. I still have the same problem - none of the debug menu
selections
> > are enabled.
> >
> > Thank you for your patience.
> >
> >
> > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > news:avkeue$muj$1@rogue.oti.com...
> > > What is in your .log file? It is in the 'workspace\.metadata'
directory.
> > > Delete it, start your session again and send me the '.log' file.
> > >
> > > Thanks,
> > > Mikhail
> > >
> > > "Michael" <bangham@neocera.com> wrote in message
> > > news:avi21f$6pt$1@rogue.oti.com...
> > > > I deleted the .exe and .o file before I rebuilt. Launch file is
> > attached.
> > > >
> > > > In the debug perspective the run menu has selections like "Step
Into",
> > > "Step
> > > > Over", etc., to control the debugger.
> > > >
> > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > news:avhs6b$2kh$1@rogue.oti.com...
> > > > > What do you mean by 'The selections on the run menu are still not
> > > > enabled'?
> > > > > Did you check if the make was successful?
> > > > > Can you you send me the .launch file? It is in the
> > > > > 'eclipse\workspace\.metadata\.plugins\org.eclipse.debug.core '
> > directory.
> > > > >
> > > > > "Michael" <bangham@neocera.com> wrote in message
> > > > > news:avhp0n$vuv$1@rogue.oti.com...
> > > > > > The selections on the run menu are still not enabled. I
modified
> > the
> > > > > > makefile per your instructions to be:
> > > > > > objects = hello.o
> > > > > >
> > > > > > hello : $(objects)
> > > > > > C:/cygwin/bin/g++ -g -o
> > > > "C:\eclipse\workspace\HelloWorldWithMake\hello"
> > > > > > $(objects)
> > > > > >
> > > > > > $(objects) : hello.cpp
> > > > > > C:/cygwin/bin/g++.exe -g -c
> > > > > > "C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
> > > > > >
> > > > > > hello.cpp :
> > > > > > C:/cygwin/bin/g++.exe -g -c
> > > > > > "C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
> > > > > >
> > > > > > all :
> > > > > > ${MAKE} objects
> > > > > >
> > > > > > .PHONY : clean
> > > > > > clean :
> > > > > > -del hello.exe $(objects)
> > > > > >
> > > > > >
> > > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > > > news:avhkb4$sm7$1@rogue.oti.com...
> > > > > > > Your makefile is incorrect. You inserted the '-g' option
between
> > > '-o'
> > > > > and
> > > > > > > the output file name. As a result the executable you are
trying
> to
> > > > debug
> > > > > > > doesn't exist in the local file system. The debugger should
> verify
> > > > this
> > > > > > but
> > > > > > > there is a bug in our code.
> > > > > > > Fix your makefile and let me know if it works.
> > > > > > >
> > > > > > > Mikhail
> > > > > > >
> > > > > > > "Michael" <bangham@neocera.com> wrote in message
> > > > > > > news:avf5eb$crt$1@rogue.oti.com...
> > > > > > > > Thank you very much! I am using the Cygwin GDB debugger as
> > > specified
> > > > > > > below.
> > > > > > > > I included a screen shot of my launch config.
> > > > > > > >
> > > > > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > > > > > news:aveulg$81a$1@rogue.oti.com...
> > > > > > > > > Please, create a new simple project, compile it with '-g'
> and
> > > try
> > > > to
> > > > > > > debug
> > > > > > > > > it. Use 'Cygwin GDB debugger' and don't check the
> > 'Automatically
> > > > > load
> > > > > > > > shared
> > > > > > > > > libraries' option. If this doesn't work post your project
> and
> > > I'll
> > > > > > check
> > > > > > > > it.
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > > Mikhail
> > > > > > > > >
> > > > > > > > > "Michael" <bangham@neocera.com> wrote in message
> > > > > > > > > news:avep9s$3bm$1@rogue.oti.com...
> > > > > > > > > > I've been struggling against this issue for about 2
> weeks -
> > > > would
> > > > > > love
> > > > > > > > to
> > > > > > > > > > get this working as Eclipse is a really nice
environment.
> > I'm
> > > > > sure
> > > > > > > > > someone
> > > > > > > > > > out there has gotten this to work, but perhaps they have
> not
> > > > seen
> > > > > > > these
> > > > > > > > > > recent postings/pleas on the subject.
> > > > > > > > > >
> > > > > > > > > > Michael
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > "Erwin" <erwin.de.ley@tuple.be> wrote in message
> > > > > > > > > > news:aveclq$phl$1@rogue.oti.com...
> > > > > > > > > > > Hi,
> > > > > > > > > > >
> > > > > > > > > > > I am using CDT 1.0.1
> > > > > > > > > org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> > > > > > > > > > > in combination with eclipse 2.1
> > > > > (eclipse-SDK-N20021115-win32.zip)
> > > > > > on
> > > > > > > > > > > Win2K, which is not an officially supported
combination.
> I
> > > use
> > > > > > > > > > > cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
> > > > > > > > > > >
> > > > > > > > > > > Editing and building works fine (after changing the
> build
> > > > > command
> > > > > > in
> > > > > > > > the
> > > > > > > > > > > C-project-properties screen to something like
> > > > > > > > > > > "C:\ProgramFiles\cygwin\bin\make.exe -f makefile").
> > > > > > > > > > >
> > > > > > > > > > > Plain execution also works fine, even when referring
to
> an
> > > > > > > executable
> > > > > > > > in
> > > > > > > > > a
> > > > > > > > > > > bin folder of the C project (e.g. putting
> > "bin/dbc_ecs.exe"
> > > in
> > > > > the
> > > > > > > > C/C++
> > > > > > > > > > > application field of the "main" tab in the run
> > > configuration),
> > > > > and
> > > > > > > > even
> > > > > > > > > > > using a non-default working directory (e.g. referring
to
> > the
> > > > bin
> > > > > > > > project
> > > > > > > > > > > sub-folder in the workspace).
> > > > > > > > > > >
> > > > > > > > > > > The only thing I can't manage to get working is
> debugging,
> > > and
> > > > > > > > > apparently
> > > > > > > > > > > many users have this same problem, also when using
> eclipse
> > > > > 2.0.x.
> > > > > > I
> > > > > > > > get
> > > > > > > > > > > the same behaviour as mentioned in previous postings:
> > > > > > > > > > > - when using the default debug settings:
> > > > > > > > > > > cygwin GDB Debugger;
> > > > > > > > > > > Run program in debugger
> > > > > > > > > > > Stop at main() in startup
> > > > > > > > > > > MI debugger: gdb
> > > > > > > > > > > Load shared library ... NOT checked
> > > > > > > > > > > => result is alert :
> > > > > > > > > > > "Unable to set temporary breakpoint in main.
> > > > > > > > > > > Reason: No symbol table is loaded. Use the
"file"
> > > > command.
> > > > > > > > > > > Continue?"
> > > > > > > > > > >
> > > > > > > > > > > Log file info:
> > > > > > > > > > > !SESSION Jan 07, 2003 12:20:38.387
> > > > > > > > > > > ---------------------------------------------
> > > > > > > > > > > java.version=1.3.1_05
> > > > > > > > > > > java.vendor=Sun Microsystems Inc.
> > > > > > > > > > > BootLoader constants: OS=win32, ARCH=x86, WS=win32,
> > NL=en_GB
> > > > > > > > > > > Command-line arguments: -os win32 -ws win32 -arch
> > > x86 -install
> > > > > > > > > > > file:C:/ProgramFiles/eclipse/
> > > > > > > > > > > !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003
> > 12:20:38.387
> > > > > > > > > > > !MESSAGE Error logged from Debug UI:
> > > > > > > > > > > !STACK 1
> > > > > > > > > > > org.eclipse.debug.core.DebugException: No symbol table
> is
> > > > > loaded.
> > > > > > > Use
> > > > > > > > > the
> > > > > > > > > > > "file" command.
> > > > > > > > > > > at
> > > > > > > > >
> > > > > >
> > >
org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> > > > > > > > > > > at
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> > > > > > > > > > > at
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> > > > > > > > > > alCLaunchConfigurationDelegate.java:101)
> > > > > > > > > > > at
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> > > > > > > > > > on.java:144)
> > > > > > > > > > > at
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> > > > > > > > > > $11.run(LaunchConfigurationDialog.java:2283)
> > > > > > > > > > > at
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> > > > > > > > > > .java:95)
> > > > > > > > > > > !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07, 2003
> > > > > 12:20:38.417
> > > > > > > > > > > !MESSAGE No symbol table is loaded. Use the "file"
> > command.
> > > > > > > > > > >
> > > > > > > > > > > - when trying the commands specified by Mikhael below
> > > straight
> > > > > in
> > > > > > > > > cygwin,
> > > > > > > > > > > I get the same response as Michael (see below).
> > > > > > > > > > >
> > > > > > > > > > > HEEELP!
> > > > > > > > > > >
> > > > > > > > > > > Erwin.
> > > > > > > > > > >
> > > > > > > > > > > Related postings:
> > > > > > > > > > >
> > > > > > > > > > > Subject: Re: problem with step over debugging
> > > > > > > > > > > From: bangham@neocera.com (Michael)
> > > > > > > > > > > Newsgroups: eclipse.tools.cdt
> > > > > > > > > > > Organization: EclipseCorner
> > > > > > > > > > > Date: Jan 02 2003 19:20:43
> > > > > > > > > > >
> > > > > > > > > > > The response is:
> > > > > > > > > > > &"Not symbol table is loaded. Use the \"file\"
command.
> > \n"
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in
> message
> > > > > > > > > > > news:av27gu$rob$1@rogue.oti.com...
> > > > > > > > > > > > Please, try this:
> > > > > > > > > > > > 1. start gdb with '-i mi' option
> > > > > > > > > > > > 2. type '-gdb-set auto-solib-add off' and press
Enter
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
> >
>
>
|
|
|
Re: CDT Debugging [message #57731 is a reply to message #57702] |
Fri, 10 January 2003 13:53   |
Eclipse User |
|
|
|
Originally posted by: mikhailk.qnx.com
Copy this file to your file system and start eclipse with
-debug "file:<path>\.options", where path is the directory of .options.
This sets the gdb/mi tracing on and you will the trace in the Windows
console. Please, copy the content of the console and send it to me.
Thank you,
Mikhail
"Michael" <bangham@neocera.com> wrote in message
news:avmir7$10n$1@rogue.oti.com...
> gdb only dies because I have to exit eclipse while gdb is still under
> eclipse's control. Eclipse starts gdb fine, then gdb hits the breakpoint
> and stops. Because all of the debug runtime menus are not enabled, there
is
> no way for me to tell gdb to continue. So, effectively eclipse is locked
up
> with gdb at the first breakpoint and I have to kill eclipse.
>
> I attached a zip file with bitmaps of the applications and tasks running
in
> Task Manager when gdb hits the breakpoint. So, the Task Manager shows
> everything thats running when the first breakpoint is hit, i.e., just
before
> I shutdown eclipse.
>
>
>
> "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> news:avl08i$3d5$1@rogue.oti.com...
> > It looks like gdb dies. Can you check if it is running or not when you
get
> > this error?
> >
> > "Michael" <bangham@neocera.com> wrote in message
> > news:avkn2h$sg8$1@rogue.oti.com...
> > > Log file attached. Erwin sent me his project w/ launch config. I
> created
> > a
> > > new project, imported his files ver batum and copied his launch file
> into
> > my
> > >
C:\eclipse\workspace\.metadata\.plugins\org.eclipse.debug.co re\.launches
> > > folder. I still have the same problem - none of the debug menu
> selections
> > > are enabled.
> > >
> > > Thank you for your patience.
> > >
> > >
> > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > news:avkeue$muj$1@rogue.oti.com...
> > > > What is in your .log file? It is in the 'workspace\.metadata'
> directory.
> > > > Delete it, start your session again and send me the '.log' file.
> > > >
> > > > Thanks,
> > > > Mikhail
> > > >
> > > > "Michael" <bangham@neocera.com> wrote in message
> > > > news:avi21f$6pt$1@rogue.oti.com...
> > > > > I deleted the .exe and .o file before I rebuilt. Launch file is
> > > attached.
> > > > >
> > > > > In the debug perspective the run menu has selections like "Step
> Into",
> > > > "Step
> > > > > Over", etc., to control the debugger.
> > > > >
> > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > > news:avhs6b$2kh$1@rogue.oti.com...
> > > > > > What do you mean by 'The selections on the run menu are still
not
> > > > > enabled'?
> > > > > > Did you check if the make was successful?
> > > > > > Can you you send me the .launch file? It is in the
> > > > > > 'eclipse\workspace\.metadata\.plugins\org.eclipse.debug.core '
> > > directory.
> > > > > >
> > > > > > "Michael" <bangham@neocera.com> wrote in message
> > > > > > news:avhp0n$vuv$1@rogue.oti.com...
> > > > > > > The selections on the run menu are still not enabled. I
> modified
> > > the
> > > > > > > makefile per your instructions to be:
> > > > > > > objects = hello.o
> > > > > > >
> > > > > > > hello : $(objects)
> > > > > > > C:/cygwin/bin/g++ -g -o
> > > > > "C:\eclipse\workspace\HelloWorldWithMake\hello"
> > > > > > > $(objects)
> > > > > > >
> > > > > > > $(objects) : hello.cpp
> > > > > > > C:/cygwin/bin/g++.exe -g -c
> > > > > > > "C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
> > > > > > >
> > > > > > > hello.cpp :
> > > > > > > C:/cygwin/bin/g++.exe -g -c
> > > > > > > "C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
> > > > > > >
> > > > > > > all :
> > > > > > > ${MAKE} objects
> > > > > > >
> > > > > > > .PHONY : clean
> > > > > > > clean :
> > > > > > > -del hello.exe $(objects)
> > > > > > >
> > > > > > >
> > > > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > > > > news:avhkb4$sm7$1@rogue.oti.com...
> > > > > > > > Your makefile is incorrect. You inserted the '-g' option
> between
> > > > '-o'
> > > > > > and
> > > > > > > > the output file name. As a result the executable you are
> trying
> > to
> > > > > debug
> > > > > > > > doesn't exist in the local file system. The debugger should
> > verify
> > > > > this
> > > > > > > but
> > > > > > > > there is a bug in our code.
> > > > > > > > Fix your makefile and let me know if it works.
> > > > > > > >
> > > > > > > > Mikhail
> > > > > > > >
> > > > > > > > "Michael" <bangham@neocera.com> wrote in message
> > > > > > > > news:avf5eb$crt$1@rogue.oti.com...
> > > > > > > > > Thank you very much! I am using the Cygwin GDB debugger as
> > > > specified
> > > > > > > > below.
> > > > > > > > > I included a screen shot of my launch config.
> > > > > > > > >
> > > > > > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > > > > > > news:aveulg$81a$1@rogue.oti.com...
> > > > > > > > > > Please, create a new simple project, compile it with
'-g'
> > and
> > > > try
> > > > > to
> > > > > > > > debug
> > > > > > > > > > it. Use 'Cygwin GDB debugger' and don't check the
> > > 'Automatically
> > > > > > load
> > > > > > > > > shared
> > > > > > > > > > libraries' option. If this doesn't work post your
project
> > and
> > > > I'll
> > > > > > > check
> > > > > > > > > it.
> > > > > > > > > >
> > > > > > > > > > Thanks,
> > > > > > > > > > Mikhail
> > > > > > > > > >
> > > > > > > > > > "Michael" <bangham@neocera.com> wrote in message
> > > > > > > > > > news:avep9s$3bm$1@rogue.oti.com...
> > > > > > > > > > > I've been struggling against this issue for about 2
> > weeks -
> > > > > would
> > > > > > > love
> > > > > > > > > to
> > > > > > > > > > > get this working as Eclipse is a really nice
> environment.
> > > I'm
> > > > > > sure
> > > > > > > > > > someone
> > > > > > > > > > > out there has gotten this to work, but perhaps they
have
> > not
> > > > > seen
> > > > > > > > these
> > > > > > > > > > > recent postings/pleas on the subject.
> > > > > > > > > > >
> > > > > > > > > > > Michael
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > "Erwin" <erwin.de.ley@tuple.be> wrote in message
> > > > > > > > > > > news:aveclq$phl$1@rogue.oti.com...
> > > > > > > > > > > > Hi,
> > > > > > > > > > > >
> > > > > > > > > > > > I am using CDT 1.0.1
> > > > > > > > > > org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> > > > > > > > > > > > in combination with eclipse 2.1
> > > > > > (eclipse-SDK-N20021115-win32.zip)
> > > > > > > on
> > > > > > > > > > > > Win2K, which is not an officially supported
> combination.
> > I
> > > > use
> > > > > > > > > > > > cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
> > > > > > > > > > > >
> > > > > > > > > > > > Editing and building works fine (after changing the
> > build
> > > > > > command
> > > > > > > in
> > > > > > > > > the
> > > > > > > > > > > > C-project-properties screen to something like
> > > > > > > > > > > > "C:\ProgramFiles\cygwin\bin\make.exe -f makefile").
> > > > > > > > > > > >
> > > > > > > > > > > > Plain execution also works fine, even when referring
> to
> > an
> > > > > > > > executable
> > > > > > > > > in
> > > > > > > > > > a
> > > > > > > > > > > > bin folder of the C project (e.g. putting
> > > "bin/dbc_ecs.exe"
> > > > in
> > > > > > the
> > > > > > > > > C/C++
> > > > > > > > > > > > application field of the "main" tab in the run
> > > > configuration),
> > > > > > and
> > > > > > > > > even
> > > > > > > > > > > > using a non-default working directory (e.g.
referring
> to
> > > the
> > > > > bin
> > > > > > > > > project
> > > > > > > > > > > > sub-folder in the workspace).
> > > > > > > > > > > >
> > > > > > > > > > > > The only thing I can't manage to get working is
> > debugging,
> > > > and
> > > > > > > > > > apparently
> > > > > > > > > > > > many users have this same problem, also when using
> > eclipse
> > > > > > 2.0.x.
> > > > > > > I
> > > > > > > > > get
> > > > > > > > > > > > the same behaviour as mentioned in previous
postings:
> > > > > > > > > > > > - when using the default debug settings:
> > > > > > > > > > > > cygwin GDB Debugger;
> > > > > > > > > > > > Run program in debugger
> > > > > > > > > > > > Stop at main() in startup
> > > > > > > > > > > > MI debugger: gdb
> > > > > > > > > > > > Load shared library ... NOT checked
> > > > > > > > > > > > => result is alert :
> > > > > > > > > > > > "Unable to set temporary breakpoint in main.
> > > > > > > > > > > > Reason: No symbol table is loaded. Use the
> "file"
> > > > > command.
> > > > > > > > > > > > Continue?"
> > > > > > > > > > > >
> > > > > > > > > > > > Log file info:
> > > > > > > > > > > > !SESSION Jan 07, 2003 12:20:38.387
> > > > > > > > > > > > ---------------------------------------------
> > > > > > > > > > > > java.version=1.3.1_05
> > > > > > > > > > > > java.vendor=Sun Microsystems Inc.
> > > > > > > > > > > > BootLoader constants: OS=win32, ARCH=x86, WS=win32,
> > > NL=en_GB
> > > > > > > > > > > > Command-line arguments: -os win32 -ws win32 -arch
> > > > x86 -install
> > > > > > > > > > > > file:C:/ProgramFiles/eclipse/
> > > > > > > > > > > > !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003
> > > 12:20:38.387
> > > > > > > > > > > > !MESSAGE Error logged from Debug UI:
> > > > > > > > > > > > !STACK 1
> > > > > > > > > > > > org.eclipse.debug.core.DebugException: No symbol
table
> > is
> > > > > > loaded.
> > > > > > > > Use
> > > > > > > > > > the
> > > > > > > > > > > > "file" command.
> > > > > > > > > > > > at
> > > > > > > > > >
> > > > > > >
> > > >
> org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> > > > > > > > > > > > at
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> > > > > > > > > > > > at
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> > > > > > > > > > > alCLaunchConfigurationDelegate.java:101)
> > > > > > > > > > > > at
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> > > > > > > > > > > on.java:144)
> > > > > > > > > > > > at
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> > > > > > > > > > > $11.run(LaunchConfigurationDialog.java:2283)
> > > > > > > > > > > > at
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> > > > > > > > > > > .java:95)
> > > > > > > > > > > > !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07,
2003
> > > > > > 12:20:38.417
> > > > > > > > > > > > !MESSAGE No symbol table is loaded. Use the "file"
> > > command.
> > > > > > > > > > > >
> > > > > > > > > > > > - when trying the commands specified by Mikhael
below
> > > > straight
> > > > > > in
> > > > > > > > > > cygwin,
> > > > > > > > > > > > I get the same response as Michael (see below).
> > > > > > > > > > > >
> > > > > > > > > > > > HEEELP!
> > > > > > > > > > > >
> > > > > > > > > > > > Erwin.
> > > > > > > > > > > >
> > > > > > > > > > > > Related postings:
> > > > > > > > > > > >
> > > > > > > > > > > > Subject: Re: problem with step over debugging
> > > > > > > > > > > > From: bangham@neocera.com (Michael)
> > > > > > > > > > > > Newsgroups: eclipse.tools.cdt
> > > > > > > > > > > > Organization: EclipseCorner
> > > > > > > > > > > > Date: Jan 02 2003 19:20:43
> > > > > > > > > > > >
> > > > > > > > > > > > The response is:
> > > > > > > > > > > > &"Not symbol table is loaded. Use the \"file\"
> command.
> > > \n"
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in
> > message
> > > > > > > > > > > > news:av27gu$rob$1@rogue.oti.com...
> > > > > > > > > > > > > Please, try this:
> > > > > > > > > > > > > 1. start gdb with '-i mi' option
> > > > > > > > > > > > > 2. type '-gdb-set auto-solib-add off' and press
> Enter
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
>
>
>
Attachment: .options
(Size: 0.04KB, Downloaded 109 times)
|
|
|
Re: CDT Debugging [message #57758 is a reply to message #57731] |
Fri, 10 January 2003 15:47  |
Eclipse User |
|
|
|
Originally posted by: bangham.neocera.com
file attached
"Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
news:avn3vk$ekt$1@rogue.oti.com...
> Copy this file to your file system and start eclipse with
> -debug "file:<path>\.options", where path is the directory of .options.
> This sets the gdb/mi tracing on and you will the trace in the Windows
> console. Please, copy the content of the console and send it to me.
>
> Thank you,
> Mikhail
>
> "Michael" <bangham@neocera.com> wrote in message
> news:avmir7$10n$1@rogue.oti.com...
> > gdb only dies because I have to exit eclipse while gdb is still under
> > eclipse's control. Eclipse starts gdb fine, then gdb hits the
breakpoint
> > and stops. Because all of the debug runtime menus are not enabled,
there
> is
> > no way for me to tell gdb to continue. So, effectively eclipse is
locked
> up
> > with gdb at the first breakpoint and I have to kill eclipse.
> >
> > I attached a zip file with bitmaps of the applications and tasks running
> in
> > Task Manager when gdb hits the breakpoint. So, the Task Manager shows
> > everything thats running when the first breakpoint is hit, i.e., just
> before
> > I shutdown eclipse.
> >
> >
> >
> > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > news:avl08i$3d5$1@rogue.oti.com...
> > > It looks like gdb dies. Can you check if it is running or not when you
> get
> > > this error?
> > >
> > > "Michael" <bangham@neocera.com> wrote in message
> > > news:avkn2h$sg8$1@rogue.oti.com...
> > > > Log file attached. Erwin sent me his project w/ launch config. I
> > created
> > > a
> > > > new project, imported his files ver batum and copied his launch file
> > into
> > > my
> > > >
> C:\eclipse\workspace\.metadata\.plugins\org.eclipse.debug.co re\.launches
> > > > folder. I still have the same problem - none of the debug menu
> > selections
> > > > are enabled.
> > > >
> > > > Thank you for your patience.
> > > >
> > > >
> > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > news:avkeue$muj$1@rogue.oti.com...
> > > > > What is in your .log file? It is in the 'workspace\.metadata'
> > directory.
> > > > > Delete it, start your session again and send me the '.log' file.
> > > > >
> > > > > Thanks,
> > > > > Mikhail
> > > > >
> > > > > "Michael" <bangham@neocera.com> wrote in message
> > > > > news:avi21f$6pt$1@rogue.oti.com...
> > > > > > I deleted the .exe and .o file before I rebuilt. Launch file is
> > > > attached.
> > > > > >
> > > > > > In the debug perspective the run menu has selections like "Step
> > Into",
> > > > > "Step
> > > > > > Over", etc., to control the debugger.
> > > > > >
> > > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > > > news:avhs6b$2kh$1@rogue.oti.com...
> > > > > > > What do you mean by 'The selections on the run menu are still
> not
> > > > > > enabled'?
> > > > > > > Did you check if the make was successful?
> > > > > > > Can you you send me the .launch file? It is in the
> > > > > > > 'eclipse\workspace\.metadata\.plugins\org.eclipse.debug.core '
> > > > directory.
> > > > > > >
> > > > > > > "Michael" <bangham@neocera.com> wrote in message
> > > > > > > news:avhp0n$vuv$1@rogue.oti.com...
> > > > > > > > The selections on the run menu are still not enabled. I
> > modified
> > > > the
> > > > > > > > makefile per your instructions to be:
> > > > > > > > objects = hello.o
> > > > > > > >
> > > > > > > > hello : $(objects)
> > > > > > > > C:/cygwin/bin/g++ -g -o
> > > > > > "C:\eclipse\workspace\HelloWorldWithMake\hello"
> > > > > > > > $(objects)
> > > > > > > >
> > > > > > > > $(objects) : hello.cpp
> > > > > > > > C:/cygwin/bin/g++.exe -g -c
> > > > > > > > "C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
> > > > > > > >
> > > > > > > > hello.cpp :
> > > > > > > > C:/cygwin/bin/g++.exe -g -c
> > > > > > > > "C:\eclipse\workspace\HelloWorldWithMake\hello.cpp"
> > > > > > > >
> > > > > > > > all :
> > > > > > > > ${MAKE} objects
> > > > > > > >
> > > > > > > > .PHONY : clean
> > > > > > > > clean :
> > > > > > > > -del hello.exe $(objects)
> > > > > > > >
> > > > > > > >
> > > > > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
> > > > > > > > news:avhkb4$sm7$1@rogue.oti.com...
> > > > > > > > > Your makefile is incorrect. You inserted the '-g' option
> > between
> > > > > '-o'
> > > > > > > and
> > > > > > > > > the output file name. As a result the executable you are
> > trying
> > > to
> > > > > > debug
> > > > > > > > > doesn't exist in the local file system. The debugger
should
> > > verify
> > > > > > this
> > > > > > > > but
> > > > > > > > > there is a bug in our code.
> > > > > > > > > Fix your makefile and let me know if it works.
> > > > > > > > >
> > > > > > > > > Mikhail
> > > > > > > > >
> > > > > > > > > "Michael" <bangham@neocera.com> wrote in message
> > > > > > > > > news:avf5eb$crt$1@rogue.oti.com...
> > > > > > > > > > Thank you very much! I am using the Cygwin GDB debugger
as
> > > > > specified
> > > > > > > > > below.
> > > > > > > > > > I included a screen shot of my launch config.
> > > > > > > > > >
> > > > > > > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in
message
> > > > > > > > > > news:aveulg$81a$1@rogue.oti.com...
> > > > > > > > > > > Please, create a new simple project, compile it with
> '-g'
> > > and
> > > > > try
> > > > > > to
> > > > > > > > > debug
> > > > > > > > > > > it. Use 'Cygwin GDB debugger' and don't check the
> > > > 'Automatically
> > > > > > > load
> > > > > > > > > > shared
> > > > > > > > > > > libraries' option. If this doesn't work post your
> project
> > > and
> > > > > I'll
> > > > > > > > check
> > > > > > > > > > it.
> > > > > > > > > > >
> > > > > > > > > > > Thanks,
> > > > > > > > > > > Mikhail
> > > > > > > > > > >
> > > > > > > > > > > "Michael" <bangham@neocera.com> wrote in message
> > > > > > > > > > > news:avep9s$3bm$1@rogue.oti.com...
> > > > > > > > > > > > I've been struggling against this issue for about 2
> > > weeks -
> > > > > > would
> > > > > > > > love
> > > > > > > > > > to
> > > > > > > > > > > > get this working as Eclipse is a really nice
> > environment.
> > > > I'm
> > > > > > > sure
> > > > > > > > > > > someone
> > > > > > > > > > > > out there has gotten this to work, but perhaps they
> have
> > > not
> > > > > > seen
> > > > > > > > > these
> > > > > > > > > > > > recent postings/pleas on the subject.
> > > > > > > > > > > >
> > > > > > > > > > > > Michael
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > "Erwin" <erwin.de.ley@tuple.be> wrote in message
> > > > > > > > > > > > news:aveclq$phl$1@rogue.oti.com...
> > > > > > > > > > > > > Hi,
> > > > > > > > > > > > >
> > > > > > > > > > > > > I am using CDT 1.0.1
> > > > > > > > > > > org.eclipse.cdt-200212181146-win32_1.0.1.bin.dist.zip
> > > > > > > > > > > > > in combination with eclipse 2.1
> > > > > > > (eclipse-SDK-N20021115-win32.zip)
> > > > > > > > on
> > > > > > > > > > > > > Win2K, which is not an officially supported
> > combination.
> > > I
> > > > > use
> > > > > > > > > > > > > cygwin-1.3.18-1 with gcc-3.2-3 and gdb-20021218-1.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Editing and building works fine (after changing
the
> > > build
> > > > > > > command
> > > > > > > > in
> > > > > > > > > > the
> > > > > > > > > > > > > C-project-properties screen to something like
> > > > > > > > > > > > > "C:\ProgramFiles\cygwin\bin\make.exe -f
makefile").
> > > > > > > > > > > > >
> > > > > > > > > > > > > Plain execution also works fine, even when
referring
> > to
> > > an
> > > > > > > > > executable
> > > > > > > > > > in
> > > > > > > > > > > a
> > > > > > > > > > > > > bin folder of the C project (e.g. putting
> > > > "bin/dbc_ecs.exe"
> > > > > in
> > > > > > > the
> > > > > > > > > > C/C++
> > > > > > > > > > > > > application field of the "main" tab in the run
> > > > > configuration),
> > > > > > > and
> > > > > > > > > > even
> > > > > > > > > > > > > using a non-default working directory (e.g.
> referring
> > to
> > > > the
> > > > > > bin
> > > > > > > > > > project
> > > > > > > > > > > > > sub-folder in the workspace).
> > > > > > > > > > > > >
> > > > > > > > > > > > > The only thing I can't manage to get working is
> > > debugging,
> > > > > and
> > > > > > > > > > > apparently
> > > > > > > > > > > > > many users have this same problem, also when using
> > > eclipse
> > > > > > > 2.0.x.
> > > > > > > > I
> > > > > > > > > > get
> > > > > > > > > > > > > the same behaviour as mentioned in previous
> postings:
> > > > > > > > > > > > > - when using the default debug settings:
> > > > > > > > > > > > > cygwin GDB Debugger;
> > > > > > > > > > > > > Run program in debugger
> > > > > > > > > > > > > Stop at main() in startup
> > > > > > > > > > > > > MI debugger: gdb
> > > > > > > > > > > > > Load shared library ... NOT checked
> > > > > > > > > > > > > => result is alert :
> > > > > > > > > > > > > "Unable to set temporary breakpoint in main.
> > > > > > > > > > > > > Reason: No symbol table is loaded. Use the
> > "file"
> > > > > > command.
> > > > > > > > > > > > > Continue?"
> > > > > > > > > > > > >
> > > > > > > > > > > > > Log file info:
> > > > > > > > > > > > > !SESSION Jan 07, 2003 12:20:38.387
> > > > > > > > > > > > > ---------------------------------------------
> > > > > > > > > > > > > java.version=1.3.1_05
> > > > > > > > > > > > > java.vendor=Sun Microsystems Inc.
> > > > > > > > > > > > > BootLoader constants: OS=win32, ARCH=x86,
WS=win32,
> > > > NL=en_GB
> > > > > > > > > > > > > Command-line arguments: -os win32 -ws win32 -arch
> > > > > x86 -install
> > > > > > > > > > > > > file:C:/ProgramFiles/eclipse/
> > > > > > > > > > > > > !ENTRY org.eclipse.debug.ui 4 120 Jan 07, 2003
> > > > 12:20:38.387
> > > > > > > > > > > > > !MESSAGE Error logged from Debug UI:
> > > > > > > > > > > > > !STACK 1
> > > > > > > > > > > > > org.eclipse.debug.core.DebugException: No symbol
> table
> > > is
> > > > > > > loaded.
> > > > > > > > > Use
> > > > > > > > > > > the
> > > > > > > > > > > > > "file" command.
> > > > > > > > > > > > > at
> > > > > > > > > > >
> > > > > > > >
> > > > >
> > org.eclipse.cdt.debug.core.CDebugModel.stopInMain(CDebugMode l.java:468)
> > > > > > > > > > > > > at
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.debug.core.CDebugModel.newDebugTarget(CDebug Model.java:142)
> > > > > > > > > > > > > at
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> > > > > > > > > > > > alCLaunchConfigurationDelegate.java:101)
> > > > > > > > > > > > > at
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> > > > > > > > > > > > on.java:144)
> > > > > > > > > > > > > at
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> > > > > > > > > > > > $11.run(LaunchConfigurationDialog.java:2283)
> > > > > > > > > > > > > at
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> > > > > > > > > > > > .java:95)
> > > > > > > > > > > > > !ENTRY org.eclipse.cdt.debug.core 0 5010 Jan 07,
> 2003
> > > > > > > 12:20:38.417
> > > > > > > > > > > > > !MESSAGE No symbol table is loaded. Use the
"file"
> > > > command.
> > > > > > > > > > > > >
> > > > > > > > > > > > > - when trying the commands specified by Mikhael
> below
> > > > > straight
> > > > > > > in
> > > > > > > > > > > cygwin,
> > > > > > > > > > > > > I get the same response as Michael (see below).
> > > > > > > > > > > > >
> > > > > > > > > > > > > HEEELP!
> > > > > > > > > > > > >
> > > > > > > > > > > > > Erwin.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Related postings:
> > > > > > > > > > > > >
> > > > > > > > > > > > > Subject: Re: problem with step over debugging
> > > > > > > > > > > > > From: bangham@neocera.com (Michael)
> > > > > > > > > > > > > Newsgroups: eclipse.tools.cdt
> > > > > > > > > > > > > Organization: EclipseCorner
> > > > > > > > > > > > > Date: Jan 02 2003 19:20:43
> > > > > > > > > > > > >
> > > > > > > > > > > > > The response is:
> > > > > > > > > > > > > &"Not symbol table is loaded. Use the \"file\"
> > command.
> > > > \n"
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > "Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in
> > > message
> > > > > > > > > > > > > news:av27gu$rob$1@rogue.oti.com...
> > > > > > > > > > > > > > Please, try this:
> > > > > > > > > > > > > > 1. start gdb with '-i mi' option
> > > > > > > > > > > > > > 2. type '-gdb-set auto-solib-add off' and press
> > Enter
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
> >
>
>
>
Attachment: debug.txt
(Size: 1.93KB, Downloaded 306 times)
|
|
|
Goto Forum:
Current Time: Sun Jun 01 11:13:48 EDT 2025
Powered by FUDForum. Page generated in 0.06143 seconds
|