| Ladebug 4.0-37:
I'm noticing weird behavior with enums. Namely, this source program
will originally tell me the enum is "not visible from current scope",
but with a little prodding, it is.
The command sequence I am using is:
stop in main
run
whatis zero # zero will be "not visible" here
whatis tag # look at the enum list
whatis zero # zero will be visible this time
The sources:
----------------------
// tmp.h
enum tag {zero, one} var;
----------------------
// tmp.cxx
extern "C" {
#include "tmp.h"
}
main() {}
----------------------
Welcome to the Ladebug Debugger Version 4.0-37
------------------
object file name: a.out
Reading symbolic information ...done
Directory search path for source files:
. /usr/proj/gemproj/auau/bl36-970502/gem/src
(ladebug) stop in main
[#1: stop in int main(void) ]
(ladebug) run
[1] stopped at [int main(void):6 0x120002120]
6 main() {}
(ladebug) whatis zero # zero will be "not visible" here
Symbol "zero" is not visible from the current scope.
(ladebug) whatis tag # look at the enum list
enum {zero, one}
(ladebug) whatis zero # zero will be visible this time
enumeration constant zero, value 0
- Matt
|