bug-ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Add]: ddd 3.3 - source sometimes not appearing]


From: Andreas Zeller
Subject: Re: [Add]: ddd 3.3 - source sometimes not appearing]
Date: 23 Feb 2001 11:38:55 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)

Hi!

Zdenek Sekera <zs@sgi.com> writes:

> Sorry, forgot to attach the log file to my previous bug report.
> It's attached now.
> 
> I have tested it more: the source always appears after restart,
> but never whe I start ddd.

It seems DBX does not open the program given as argument, but only
when a `givenfile myprogram' command is used.

When you start DDD with, say, `ddd --dbx myprogram', DDD invokes `dbx
myprogram' and later uses `givenfile' and `list' to retrieve the file
name and line number of the current location and to display the
source.  

Unfortunately, it seems this doesn't work with DBX: only after opening
a program with the explicit `givenfile myprogram' command does DBX
list the current file.

When you _restart_ DDD after having opened a file, DDD already knows
the name `myprogram' of the executable and thus can send a `givenfile
myprogram' to DBX, which obviously makes DBX open the program.

This DBX problem cannot be worked around easily by DDD.  Right now,
DDD simply passes all arguments to DBX; it would have to interpret the
DBX arguments by itself to issue an appropriate `givenfile' command.
Having DDD interpret DBX arguments would also break transparency.

Fortunately, there's a work-around: Try saving the current session in,
say, `mysession', and invoke DDD as `ddd =mysession'.

Good luck,

Andreas

-- 
Andreas Zeller     Universitaet Passau
                   http://www.fmi.uni-passau.de/st/staff/zeller/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]