Bug 18707

Summary: Unable to inspect symbols
Product: [Retired] Red Hat Linux Reporter: Marius Kintel <kintel>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Aaron Brown <abrown>
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: dberlin, jakub, rutger.noot
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-12-31 11:14:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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. ***