Re: The DDD is consuming my application's command line args

Michael Eager <[email protected]> Thu, 10 Jul 2025 07:22:33 -0700
Newsgroups gmane.comp.debugging.ddd.general
Message-ID <[email protected]>
On 7/9/25 7:30 AM, Peter Spierenburg wrote:
> I am trying to use DDD to debug a C++ application that requires a 
> command line argument.
> 
> I am running Ubuntu 22.04 and
> 
> ```
> $ ddd --version
> GNU DDD 3.3.12 (x86_64-pc-linux-gnu)
> Copyright (C) 1995-1999 Technische Universit�t Braunschweig, Germany.
> Copyright (C) 1999-2001 Universit�t Passau, Germany.
> Copyright (C) 2001 Universit�t des Saarlandes, Germany.
> Copyright (C) 2001-2009 Free Software Foundation, Inc.
> ```
> 
> When I run ddd with --args it insists on interpreting my arg as a coredump:
> 
> $ ddd --args a.out -c /tmp/tmp2j428akr/config.db
> 
> GNU DDD 3.3.12 (x86_64-pc-linux-gnu), by Dorothea LReading symbols from 
> <redacted>...
> "/tmp/tmp2j428akr/config.db" is not a core dump: file format not recognized
> (gdb)
> 
> Do you know why that happens?
> 
> Peter.

DDD 3.3.12 is no longer supported.  Please upgrade to DDD 3.4.0.
See https://savannah.gnu.org/projects/ddd/
(Ubuntu appears to be distributing ddd-3.3.12 although ddd-3.4.0 was
released in 2023.)

Try putting the entire argument within quotes:
$ ddd --args "a.out -c /tmp/tmp2j428akr/config.db"

If that does not correct the issue, please submit a bug report at
https://savannah.gnu.org/bugs/?group=ddd&func=additem

-- 
Michael Eager