Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » gdb issue
gdb issue [message #156486] Wed, 19 October 2005 15:00 Go to next message
Eclipse UserFriend
Originally posted by: pthornton_boss302.yahoo.com

I have a project with managed makefile that I am trying to debug. I can
execute the project and set breakpoints but I don't see any local
variables and the step buttons are disabled. I can see the variables
fine when running gdb directly from the command line. Also, the "add
global variables" command lists the global variables. Why can't I see
any local variables for single step thru the code? Is it really
stopping in main for failing earlier?


Randy

Here is the output from the debug section.

Warning: /home/pthornton/test/-r: No such file or directory.
info threads
No registers.
Stopped due to shared library event
info program
Using the running image of child process 16924.
Program stopped at 0xa132ca.
It stopped at a breakpoint that has since been deleted.
Type "info stack" or "info registers" for more information.
info sharedlibrary
No shared libraries loaded at this time.
Stopped due to shared library event
info sharedlibrary
From To Syms Read Shared Object Library
0x00833170 0x008afde4 Yes /usr/lib/libstdc++.so.6
0x00b56310 0x00b6f480 Yes /lib/libm.so.6
0x007b2680 0x007b9398 Yes /lib/libgcc_s.so.1
0x00a3bc00 0x00b2b1d8 Yes /lib/libc.so.6
0x00a057e0 0x00a1b18f Yes /lib/ld-linux.so.2
info threads
info sharedlibrary
From To Syms Read Shared Object Library
0x00833170 0x008afde4 Yes /usr/lib/libstdc++.so.6
0x00b56310 0x00b6f480 Yes /lib/libm.so.6
0x007b2680 0x007b9398 Yes /lib/libgcc_s.so.1
0x00a3bc00 0x00b2b1d8 Yes /lib/libc.so.6
0x00a057e0 0x00a1b18f Yes /lib/ld-linux.so.2
No breakpoint number 2.
Re: gdb issue [message #156494 is a reply to message #156486] Wed, 19 October 2005 17:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

What is your environment and gdb version?

<pthornton_boss302@yahoo.com> wrote in message
news:dj654c$6cn$1@news.eclipse.org...
>I have a project with managed makefile that I am trying to debug. I can
>execute the project and set breakpoints but I don't see any local variables
>and the step buttons are disabled. I can see the variables fine when
>running gdb directly from the command line. Also, the "add global
>variables" command lists the global variables. Why can't I see any local
>variables for single step thru the code? Is it really stopping in main for
>failing earlier?
>
>
> Randy
>
> Here is the output from the debug section.
>
> Warning: /home/pthornton/test/-r: No such file or directory.
> info threads
> No registers.
> Stopped due to shared library event
> info program
> Using the running image of child process 16924.
> Program stopped at 0xa132ca.
> It stopped at a breakpoint that has since been deleted.
> Type "info stack" or "info registers" for more information.
> info sharedlibrary
> No shared libraries loaded at this time.
> Stopped due to shared library event
> info sharedlibrary
> From To Syms Read Shared Object Library
> 0x00833170 0x008afde4 Yes /usr/lib/libstdc++.so.6
> 0x00b56310 0x00b6f480 Yes /lib/libm.so.6
> 0x007b2680 0x007b9398 Yes /lib/libgcc_s.so.1
> 0x00a3bc00 0x00b2b1d8 Yes /lib/libc.so.6
> 0x00a057e0 0x00a1b18f Yes /lib/ld-linux.so.2
> info threads
> info sharedlibrary
> From To Syms Read Shared Object Library
> 0x00833170 0x008afde4 Yes /usr/lib/libstdc++.so.6
> 0x00b56310 0x00b6f480 Yes /lib/libm.so.6
> 0x007b2680 0x007b9398 Yes /lib/libgcc_s.so.1
> 0x00a3bc00 0x00b2b1d8 Yes /lib/libc.so.6
> 0x00a057e0 0x00a1b18f Yes /lib/ld-linux.so.2
> No breakpoint number 2.
Re: gdb issue [message #156501 is a reply to message #156486] Thu, 20 October 2005 03:13 Go to previous messageGo to next message
Eclipse UserFriend
Dit you compile your project as a RELEASE or DEBUG version?? I think you
are trying
to debug the RELEASE version which of course won't work.

I don't know much about managed projects, but there should be somewhere
the possibility
to compile to DEBUG mode.

andrés

Am Wed, 19 Oct 2005 21:00:20 +0200 schrieb <pthornton_boss302@yahoo.com>:

> I have a project with managed makefile that I am trying to debug. I can
> execute the project and set breakpoints but I don't see any local
> variables and the step buttons are disabled. I can see the variables
> fine when running gdb directly from the command line. Also, the "add
> global variables" command lists the global variables. Why can't I see
> any local variables for single step thru the code? Is it really
> stopping in main for failing earlier?
>
>
> Randy
>
> Here is the output from the debug section.
>
> Warning: /home/pthornton/test/-r: No such file or directory.
> info threads
> No registers.
> Stopped due to shared library event
> info program
> Using the running image of child process 16924.
> Program stopped at 0xa132ca.
> It stopped at a breakpoint that has since been deleted.
> Type "info stack" or "info registers" for more information.
> info sharedlibrary
> No shared libraries loaded at this time.
> Stopped due to shared library event
> info sharedlibrary
> From To Syms Read Shared Object Library
> 0x00833170 0x008afde4 Yes /usr/lib/libstdc++.so.6
> 0x00b56310 0x00b6f480 Yes /lib/libm.so.6
> 0x007b2680 0x007b9398 Yes /lib/libgcc_s.so.1
> 0x00a3bc00 0x00b2b1d8 Yes /lib/libc.so.6
> 0x00a057e0 0x00a1b18f Yes /lib/ld-linux.so.2
> info threads
> info sharedlibrary
> From To Syms Read Shared Object Library
> 0x00833170 0x008afde4 Yes /usr/lib/libstdc++.so.6
> 0x00b56310 0x00b6f480 Yes /lib/libm.so.6
> 0x007b2680 0x007b9398 Yes /lib/libgcc_s.so.1
> 0x00a3bc00 0x00b2b1d8 Yes /lib/libc.so.6
> 0x00a057e0 0x00a1b18f Yes /lib/ld-linux.so.2
> No breakpoint number 2.



--
Written with Opera
Re: gdb issue [message #156508 is a reply to message #156494] Thu, 20 October 2005 09:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pthornton_boss302.yahoo.com

Fedora Core 4

gdb -v
GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
This GDB was configured as "i386-redhat-linux-gnu".

Yes, I am running Debug mode. Only the Debug sub-directory is compiled.

Everything works great from the gdb command line.

Mikhail Khodjaiants wrote:
> What is your environment and gdb version?
>
> <pthornton_boss302@yahoo.com> wrote in message
> news:dj654c$6cn$1@news.eclipse.org...
>
>>I have a project with managed makefile that I am trying to debug. I can
>>execute the project and set breakpoints but I don't see any local variables
>>and the step buttons are disabled. I can see the variables fine when
>>running gdb directly from the command line. Also, the "add global
>>variables" command lists the global variables. Why can't I see any local
>>variables for single step thru the code? Is it really stopping in main for
>>failing earlier?
>>
>>
>>Randy
>>
>>Here is the output from the debug section.
>>
>>Warning: /home/pthornton/test/-r: No such file or directory.
>>info threads
>>No registers.
>>Stopped due to shared library event
>>info program
>>Using the running image of child process 16924.
>>Program stopped at 0xa132ca.
>>It stopped at a breakpoint that has since been deleted.
>>Type "info stack" or "info registers" for more information.
>>info sharedlibrary
>>No shared libraries loaded at this time.
>>Stopped due to shared library event
>>info sharedlibrary
>>From To Syms Read Shared Object Library
>>0x00833170 0x008afde4 Yes /usr/lib/libstdc++.so.6
>>0x00b56310 0x00b6f480 Yes /lib/libm.so.6
>>0x007b2680 0x007b9398 Yes /lib/libgcc_s.so.1
>>0x00a3bc00 0x00b2b1d8 Yes /lib/libc.so.6
>>0x00a057e0 0x00a1b18f Yes /lib/ld-linux.so.2
>>info threads
>>info sharedlibrary
>>From To Syms Read Shared Object Library
>>0x00833170 0x008afde4 Yes /usr/lib/libstdc++.so.6
>>0x00b56310 0x00b6f480 Yes /lib/libm.so.6
>>0x007b2680 0x007b9398 Yes /lib/libgcc_s.so.1
>>0x00a3bc00 0x00b2b1d8 Yes /lib/libc.so.6
>>0x00a057e0 0x00a1b18f Yes /lib/ld-linux.so.2
>>No breakpoint number 2.
>
>
>
Re: gdb issue [message #156515 is a reply to message #156508] Thu, 20 October 2005 11:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

Switch to the mi2 protocol to get rid of the "Warning:
/home/pthornton/test/-r: No such file or directory." message. To do it go to
the "Debugger" page of the launch configuration dialog and press the
"Advanced" button.
But this is not going to solve the problem with local variables and
stepping. Can you post a snapshot of the debugger when the problem occurs?

<pthornton_boss302@yahoo.com> wrote in message
news:dj86n8$p9d$1@news.eclipse.org...
>
> Fedora Core 4
>
> gdb -v
> GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
> This GDB was configured as "i386-redhat-linux-gnu".
>
> Yes, I am running Debug mode. Only the Debug sub-directory is compiled.
>
> Everything works great from the gdb command line.
>
> Mikhail Khodjaiants wrote:
>> What is your environment and gdb version?
>>
>> <pthornton_boss302@yahoo.com> wrote in message
>> news:dj654c$6cn$1@news.eclipse.org...
>>
>>>I have a project with managed makefile that I am trying to debug. I can
>>>execute the project and set breakpoints but I don't see any local
>>>variables and the step buttons are disabled. I can see the variables
>>>fine when running gdb directly from the command line. Also, the "add
>>>global variables" command lists the global variables. Why can't I see
>>>any local variables for single step thru the code? Is it really stopping
>>>in main for failing earlier?
>>>
>>>
>>>Randy
>>>
>>>Here is the output from the debug section.
>>>
>>>Warning: /home/pthornton/test/-r: No such file or directory.
>>>info threads
>>>No registers.
>>>Stopped due to shared library event
>>>info program
>>>Using the running image of child process 16924.
>>>Program stopped at 0xa132ca.
>>>It stopped at a breakpoint that has since been deleted.
>>>Type "info stack" or "info registers" for more information.
>>>info sharedlibrary
>>>No shared libraries loaded at this time.
>>>Stopped due to shared library event
>>>info sharedlibrary
>>>From To Syms Read Shared Object Library
>>>0x00833170 0x008afde4 Yes /usr/lib/libstdc++.so.6
>>>0x00b56310 0x00b6f480 Yes /lib/libm.so.6
>>>0x007b2680 0x007b9398 Yes /lib/libgcc_s.so.1
>>>0x00a3bc00 0x00b2b1d8 Yes /lib/libc.so.6
>>>0x00a057e0 0x00a1b18f Yes /lib/ld-linux.so.2
>>>info threads
>>>info sharedlibrary
>>>From To Syms Read Shared Object Library
>>>0x00833170 0x008afde4 Yes /usr/lib/libstdc++.so.6
>>>0x00b56310 0x00b6f480 Yes /lib/libm.so.6
>>>0x007b2680 0x007b9398 Yes /lib/libgcc_s.so.1
>>>0x00a3bc00 0x00b2b1d8 Yes /lib/libc.so.6
>>>0x00a057e0 0x00a1b18f Yes /lib/ld-linux.so.2
>>>No breakpoint number 2.
>>
>>
Re: gdb issue [message #156522 is a reply to message #156515] Thu, 20 October 2005 12:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pthornton_boss302.yahoo.com

I don't have an option for mi2 on the advanced popup? Just a checkbox
each for variables and registers. Both are checked.

Screenshot: http://www.mysaleens.com/debug.bmp

Mikhail Khodjaiants wrote:
> Switch to the mi2 protocol to get rid of the "Warning:
> /home/pthornton/test/-r: No such file or directory." message. To do it go to
> the "Debugger" page of the launch configuration dialog and press the
> "Advanced" button.
> But this is not going to solve the problem with local variables and
> stepping. Can you post a snapshot of the debugger when the problem occurs?
>
Re: gdb issue [message #156554 is a reply to message #156522] Thu, 20 October 2005 16:18 Go to previous message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

I thought you were using CDT 3.0. Are there errors in the Error log?

<pthornton_boss302@yahoo.com> wrote in message
news:dj8fr0$7oc$1@news.eclipse.org...
>I don't have an option for mi2 on the advanced popup? Just a checkbox each
>for variables and registers. Both are checked.
>
> Screenshot: http://www.mysaleens.com/debug.bmp
>
> Mikhail Khodjaiants wrote:
>> Switch to the mi2 protocol to get rid of the "Warning:
>> /home/pthornton/test/-r: No such file or directory." message. To do it go
>> to the "Debugger" page of the launch configuration dialog and press the
>> "Advanced" button.
>> But this is not going to solve the problem with local variables and
>> stepping. Can you post a snapshot of the debugger when the problem
>> occurs?
>>
Previous Topic:mingw gdb exits immediately with cdt 3.0.0
Next Topic:How to execute Macro in standard Make C project?
Goto Forum:
  


Current Time: Sat Jul 26 01:48:18 EDT 2025

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

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

Back to the top