[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

869.0. "watch (address) is great..." by ADA9X::BRETT () Fri Mar 07 1997 08:00

watch (address) is great!

It might be a simple 1+ to output the changed values in hex as well.

[3] The contents at address range 0x14017460 to 0x14017467
    was accessed by instruction 0x245e04b8
        Old value = 336136408	0x140908d8
        New value = 0           0x00000000

/Bevin
T.RTitleUserPersonal
Name
DateLines
869.1ADA9X::BRETTFri Mar 07 1997 08:0511
another 1+ would be to echo the original expression instead of the quickly
boring boilerplate...

watch (&current_needed_db)

[3] Contents of 0x14017460..0x14017467 (&current_needed_db)
    written at $pc 0x245e04b8
        Old value = 336136408   0x140908d8
        New value = 0           0x00000000

               
869.2Thanks for adding "watch" - it's wonderful!WIDTH::MDAVISMark Davis - compiler maniacFri Mar 07 1997 13:590
869.3TLE::MURRAYWanfang MurrayFri Mar 07 1997 17:345

The suggestions sound good.  We will add them for future enhancement.

Wanfang
869.4RDGENG::HAQUEShaheed R. Haque, 830-3531, reo2-f/b3Fri Mar 07 1997 18:224
>watch (address) is great!

Is this supposed to be in 4.0-30?
869.5DECCXL::OUELLETTEcrunchFri Mar 07 1997 18:442
Hallway scuttlebutt is that it's in 4.0-31.
Bevin gets an early copy since he's working on dst info with the ladebug team.
869.6Can "stopi var" also use new implementation?STEVEN::hobbsSteven HobbsTue Mar 11 1997 14:0125
I do not yet have access to a decladebug with the new watch command
but I am interested in why we chose a new command name.  On other Unix
systems that I have used, I have executed the dbx command
    stopi current_need_db
where decladebug requires
    watch (&current_need_db)

Or I have used
    stopi *(long*)(0x14017460)
where decladebug is using the slightly better syntax of
    watch (0x14017460)

Now I know that different Unix dbx systems choose differing
implementation techniques for stopi and I know that decladebug's
choice for a stopi implementation has not been useful for my debugging.
I.e., Other Unix systems have conditioned me to use stopi to find
memory corruptions because this command works on other systems but my
conditioning has not helped me when I migrated to decladebug. Is there
any reason why decladebug cannot use the more standard stopi command
to access the better implementation techniques used by the nonstandard
watch command?

Having the standard stopi command work as well or better than that
command on competing systems would make it easy for Unix programmers
to migrate their debugging skills to Digital Unix.
869.7TLE::MURRAYWanfang MurrayTue Mar 11 1997 17:209

Well, there is no statndard dbx commands.  Sun's uses stop watch command.   

The current stopi command has its own purpose even though it's a slow
implementation.  We have the similiar discussion among ourselves during
the spec time too.  We chose to go with watch command for clarity.

Wanfang
869.8DECC::MJHANSMatthew Hanselman, DEC C/C++Fri Mar 14 1997 17:318
    I remember seeing a sign in an Ann Arbor post office
    
    "Everybody remembers when I'm wrong,
     but nobody remembers when I'm right"
    
    The watch command is extremely useful.  Tons of thanks for adding it.
    
    								- Matt