DMD 1.004 release

Thomas Kuehne thomas-dloop at kuehne.cn
Sun Jan 28 01:47:18 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Walter Bright schrieb am 2007-01-28:
> Thomas Kuehne wrote:
>> Walter Bright schrieb am 2007-01-28:
>> [...]
>>> But the worst thing about linux development is gdb. gdb's user interface 
>>> seems stuck in 1983 era thinking.
>> 
>> Have you tried "insight" or "ddd"? 
>
> No, I've never heard of them. Insight isn't on my machine. ddd is, and 
> looks interesting. I'll try it.
>
>>> I can't even get the thing to display the register contents.
>> 
>> print $ebp
>> print $eax
>
> There are a bunch of registers, I have to list them one at a time. It's 
> pretty miserable if you're single stepping trying to keep an eye on the 
> register contents. Every other debugger I've ever used, going back to 
> the 70's, could either dump all regs with a shorter command, or had a 
> window where the reg values were continuously updated.

info registers
info float
info vector

>>> It won't pick up the program arguments from the command line.
>> 
>> run what ever argument
>
> Where this falls down is when you've a long list of arguments to the 
> program. I'll write a simple .bat file like:
> 	windbg program arg arg arg ...
> to run the debugger with the args. Doesn't work with gdb, because gdb 
> doesn't pick up debuggee args from the command line, making gdb very 
> tedious to use.

run `cat file_containing_all_your_arguments`

or start GDB with

gdb --args your_binary some argument

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFFvH2ILK5blCcjpWoRAtrIAJwMIuzjCCWSTp+dZEhReHZr2XPGMACaA5GL
WFKOb6fu7u3HhbbkofAltBs=
=sKof
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-announce mailing list