[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

806.0. "Typing "rerun" saves arguments in CLI, doesn't in GUI" by NOT2B::MJHANS (Matthew Hanselman, DEC C) Mon Feb 03 1997 12:05

Using ladebug 4.0-26:

Typing the "rerun" command behaves differently between the GUI and the CLI:

The CLI will keep all command-line arguments
The GUI will destroy all command-line arguments

The GUI should act like the CLI. Consider the online docuemntation ("help
rerun"):

"....as arguments. If the 'rerun' command is specified without 
arguments, the arguments entered with the previous 'run' 
command are used.  If the last modification time and/or ....."

Example:

#include <stdio.h>
main(int argc, char** argv) { printf ("argv[1] = '%s'\n", argv[1]); }

ladebug:

(ladebug) run foo
argv[1] = 'foo'
Process has exited with status 0
(ladebug) rerun
argv[1] = 'foo'
Process has exited with status 0

dxladebug output:
argv[1] = 'foo'
argv[1] = '(null)'


							- Matt
T.RTitleUserPersonal
Name
DateLines
806.1ADA9X::BRETTWed Feb 05 1997 14:176
This is a REAL pain.

Especially since it usually hangs dxladebug so badly that you have to blow
it away.

/Bevin
806.2TLE::MURRAYWanfang MurrayMon Feb 24 1997 07:3918
    
    There are at least three problems when issuing rerun from the gui.
    They are:
    
    	   a. argument text field are cleared whenever "run the same
              program" menu is selected
    
           b. run arguments are not saved when the rerun command is
              issued from the command/message view
    
           c. "run the same program" doesn't refresh the source display
              if the binary has changed.
    
    We are working on these problems right now, and hope to include
    in the next couple base level kits.
    
    Wanfang
    
806.3fixed in 4.0-33PACKED::ALLENChristopher Allen, Ladebug, dtn 381-0864Mon Mar 17 1997 10:260
806.4Thanks & a suggestionCXXC::MJHANSMatthew Hanselman, DEC C/C++Fri Apr 11 1997 16:5716
    This is fixed.  It's very nice to now have a "rerun" button that reruns
    everything & saves everything.
    
    However, a quick suggestion to improve usability:
    
    Is there any way for the GUI to query the engine for the current
    arguments?
    
    What I'm getting at:  If I'm running the GUI, but run the program by
    typing "run <arguments>" into the command-line portion, those arguments
    will not show up if I choose "File->Rerun Same Program...".  Yet if I
    click "OK" on this dialog, it issues "rerun" to the engine, which uses
    the arguments I had specified before.  So this, to me, looks like I'm
    running it the second time with no arguments, but I actually am.
                                                                      
    								- Matt
806.5PACKED::ALLENChristopher Allen, Ladebug, dtn 381-0864Mon Apr 14 1997 12:253
Thanks for this suggestion.  It's on our list.

-Chris