[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::decladebug

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

709.0. "Failures to understand enumerals in C,C++" by ADA9X::BRETT () Tue Nov 05 1996 10:53

T.RTitleUserPersonal
Name
DateLines
709.1ADA9X::BRETTTue Nov 05 1996 15:056
709.2TLE::MURRAYWanfang MurrayThu Nov 07 1996 12:006
709.3Can understand nowTLE::SUBIRWed May 07 1997 02:534
    This support has been added in -36. If there are further
     problems, please inform.
    
    Subir
709.4Still some problems....CXXC::MJHANSMatthew Hanselman, DEC C/C++Wed May 07 1997 17:0149
    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
    
709.5TLE::SHAMIMWed May 07 1997 18:107
This is a side effect of how symbols are read and processed in the debugger.

we will investigate further and report.

shamim