[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | Digital Ladebug debugger |
|
Moderator: | TLE::LUCIA |
|
Created: | Fri Feb 28 1992 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 969 |
Total number of notes: | 3959 |
880.0. "func fails with function scopes" by CXXC::MJHANS (Matthew Hanselman, DEC C) Tue Mar 11 1997 13:23
You cannot use the "func" command to return to a function scope if the
class scope is within the function scope.
In the provided example, "D" is in the file scope, but "C" is within
main()'s scope. If you "class D", you can successfully "func main".
But trying "class C ; func main" fails.
+++++++++++++++++++++
// tmp.cxx
class D {
char a;
} d;
main()
{
float a;
class C {
int a;
} c;
return 0;
}
+++++++++++++++++++++
Welcome to the Ladebug Debugger Version 4.0-30
------------------
object file name: a.out
Reading symbolic information ...done
(ladebug) stop in main
[#1: stop in int main(void) ]
(ladebug) run
[1] stopped at [int main(void):14 0x120002120]
14 return 0;
(ladebug) class C
class C {
int a;
}
(ladebug) func main
Symbol main not visible in current scope.
(ladebug) class D
class D {
char a;
}
(ladebug) func main
int main(void) in tmp.cxx line No. 14:
14 return 0;
- Matt
T.R | Title | User | Personal Name | Date | Lines |
---|
880.1 | added to list | TLE::MERRITT | Steve Merritt, Ladebug Team | Fri Apr 18 1997 14:44 | 3 |
| I've added this report to the C++ bugs list.
-Steve
|