Bug 18707 - Unable to inspect symbols
Summary: Unable to inspect symbols
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gcc
Version: 7.0
Hardware: i386
OS: Linux
high
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Aaron Brown
URL:
Whiteboard:
: 22671 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-10-09 12:59 UTC by Marius Kintel
Modified: 2005-10-31 22:00 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2000-12-31 11:14:56 UTC
Embargoed:


Attachments (Terms of Use)

Description Marius Kintel 2000-10-09 12:59:05 UTC
Compile the following program: g++ -g test.cpp -o test

#include <stdio.h>

int main(int argc, char *argv[])
{
  for (int i=0;i<10;i++) {
    int test = i;
    printf("%d\n",test);
  }

}

Try running the program in gdb, break it at the printf-line.
Try inspecting the variables i and test. This does not work on my
plain RH7.0-box.

Comment 1 Trond Eivind Glomsrxd 2000-10-09 14:19:39 UTC
Daniel, could you take a look at this? I've confirmed the problem...

I'm not sure that gdb tries to handle locally instatiated variables, though.

Comment 2 Marius Kintel 2000-10-09 14:40:42 UTC
I compiled the same program on a RH6.2-box (using egcs-2.91.66).
Debugging that executable under RH7.0 works fine, so it looks like
it's g++'s fault.


Comment 3 Trond Eivind Glomsrxd 2000-10-09 14:52:27 UTC
Looks like it... Jakub?

Comment 4 Jakub Jelinek 2000-12-31 11:08:14 UTC
Richard Henderson fixed this in
http://gcc.gnu.org/ml/gcc-patches/2000-12/msg01445.html
It will appear in gcc-2.96-70

Comment 5 Jakub Jelinek 2000-12-31 11:14:52 UTC
*** Bug 22671 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.