- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- termination of options in the ladebug command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 12:39 AM
01-13-2004 12:39 AM
termination of options in the ladebug command
I work on TRU64 and want to start the ladebug with the following command
%ladebug myprog.out -myoption
where -myoption ist a option for myprog.out .
In the above command ladebug reads -myoption and terminates with the error message
unrecognized option: -myoption
Usage:
ladebug [-c file ] [-emacs] ...
Please can anyone point me to the solution where I can prevent that ladebug reads -myoption.
Thank you in advance.
dino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 01:04 AM
01-13-2004 01:04 AM
Re: termination of options in the ladebug command
according to man ladebug:
-P Specifies the arguments used by the program you are debugging.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 01:31 AM
01-13-2004 01:31 AM
Re: termination of options in the ladebug command
# ladebug myprg
(ladebug) run -myoption
PS: -P doesn't work with all versions of ladebug.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 01:50 AM
01-13-2004 01:50 AM
Re: termination of options in the ladebug command
I use Ladebug Debugger Version 66 and I cannot find an option -P in the man ladebug.
Further, the problem is a little more complex. Since the command is generated by a binary module for which I have no source, I cannot change -myoption. The command should be used in the following form
myprog.out -myoption ...
But it is only permitted to add a prefix to the command. Since I want to debug myprog I add the prefix ladebug and get
ladebug myprog.out -myoption
So I thought I should use a terminator for the options, i.e. "--" to define that -myoption is part of myprog. Is there somewhat available?
regards,
dino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 01:53 AM
01-13-2004 01:53 AM
Re: termination of options in the ladebug command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 02:08 AM
01-13-2004 02:08 AM
Re: termination of options in the ladebug command
what about Ralf's suggestion with the run command from within ladebug?
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 02:27 AM
01-13-2004 02:27 AM
Re: termination of options in the ladebug command
thank you for your suggestions, but its all not possible.
I use a scientific program for structure analysis which was started with a command. The program than generates a script and processes the script. So I have no chance to edit the script. It is allowed to add a prefix to the command, thats all. The script runs several programs sequentielly, i.e. a preprocessor, the main programm, ..., so I have also no chance to attach the running process.
Imho, the only way is to terminate the reading of options in the ladebug command. In unix it is common to terminate the options with "--". Why does this not work for ladebug e.g.
ladebug -- myprog.out -myoption
regards,
dino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 02:57 AM
01-13-2004 02:57 AM
Re: termination of options in the ladebug command
it's not that easy. What the shell is concerned, who starts ladebug, everything after ladebug are parameters for ladebug. So who should feed the programme to debug with the parameters?
Do you know in advance the names of the scripts and their location and do they remain after execution or are they deleted?
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 03:18 AM
01-13-2004 03:18 AM
Re: termination of options in the ladebug command
when the execution starts, a working directory becomes created in a random place and when the job terminates the result files are copied in the user directory and then the working directory gets deleted.
regards,
dino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 05:07 AM
01-13-2004 05:07 AM
Re: termination of options in the ladebug command
Why do you need to debug it?
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 07:26 PM
01-13-2004 07:26 PM
Re: termination of options in the ladebug command
So if the script will be started you know the directory, the commandline. Now you can start the ladebug with the real program and parameters.
Life could be so easy....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 07:41 PM
01-13-2004 07:41 PM
Re: termination of options in the ladebug command
I use a structural mechanics program. This program can be extended by user subroutines to fit for the users need. As usual the program is licensed for binary version. I have implemented several fortran subroutines (more than 3000 lines). When the program starts, it generates a script, compiles and links the user routines with the main program by using some librarys etc. Earlier I have the chance to debug my routines, if I compile my routines with option -g and use a prefix ladebug to call the ladebug. Now in a new version the command were changed and I have some trouble with the additional options. As an example for the prefix the program developer uses the time command i.e.
time myprog.out -myoption
This functions properly, but the ladebug command doesnt.
regards,
dino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 07:48 PM
01-13-2004 07:48 PM
Re: termination of options in the ladebug command
I cannot replace the second executable with a script. Since the program generates automatically a script that compiles, links, runs and deletes itself, I have no chance to edit the script and replace the second executable.
regards,
dino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 08:25 PM
01-13-2004 08:25 PM
Re: termination of options in the ladebug command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 08:44 PM
01-13-2004 08:44 PM
Re: termination of options in the ladebug command
I have to debug my routines from the first entry to check for formal parameters etc. Therefore attaching the runnning process is probably to late. The program crashes before I have determined the pid and attached the process.
I think the only solution for my problem is debugging manually with write-statements in my routines.
regards,
dino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 10:10 PM
01-13-2004 10:10 PM
Re: termination of options in the ladebug command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 10:30 PM
01-13-2004 10:30 PM
Re: termination of options in the ladebug command
On the other hand I would also like to debug the program to verify the program flow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 10:40 PM
01-13-2004 10:40 PM
Re: termination of options in the ladebug command
Can you replace the compiler command with a script, that does the compiling, linking and then start the ladebug?
You still did not comment on Ralfs suggestion to supply the parameters for the programme via run.
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 12:17 AM
01-14-2004 12:17 AM
Re: termination of options in the ladebug command
Maybe if using the trace utility you will get closer informations during startup and runtime (if it is not a multithreading application). Maybe this will solve some mystics problems without deeper knowledge of debugging....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 01:40 AM
01-14-2004 01:40 AM
Re: termination of options in the ladebug command
I start the program with the prefix ladebug #. The script generates symbols, directories, options etc. and so I get
dxladebug # myprog.out -myoption ...
If the script reaches this command, dxladebug starts its GUI and waits for input. At this time I am in the place of the working directory. Now I can examine the log-file and cut and paste the executable, options and parameters in the GUI and set a breakpoint. Finally I click on run and I can debug my routines, see the source and all works fine.
It is a little long winded, but obviously there isnt another a smart solution available, like "--" or -exec{...}.
regards,
dino