Bug 18707
| Summary: | Unable to inspect symbols | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Marius Kintel <kintel> |
| Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
| Status: | CLOSED RAWHIDE | QA Contact: | Aaron Brown <abrown> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.0 | CC: | 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: | --- | Target Upstream Version: | |
| Embargoed: | |||
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. 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. Looks like it... Jakub? Richard Henderson fixed this in http://gcc.gnu.org/ml/gcc-patches/2000-12/msg01445.html It will appear in gcc-2.96-70 |
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.