Found it! This is the late Chuck Crayne's ".gdbinit":
------------------------------------------------------------------
* From: Chuck Crayne <ccrayne@xxxxxxxxxx>
* Date: Tue, 26 Aug 2008 14:22:37 -0700
On Tue, 26 Aug 2008 12:27:09 -0400
Frank Kotler <fbkotler@xxxxxxxxxxx> wrote:
gdb is a lot happier if we include debugging
symbols - "-g", or better yet "-Fdwarf".
Indeed so, but, with only a trivial effort, gdb can also be made more
asm friendly, even for programs which do not have debug info. All one
has to do is to add some command sequences to ".gdbinit" in ones
home directory. [Note the leading dot].
Since I use gdb with both 32 and 64 bit programs, I picked a naming
convention which includes the bit size. Thus, I define:
a32i execute the next instruction
a32n same as a32i but skip over subroutines
a32r display registers without executing an instruction.
and the equivalent a64 commands (a64i, a64n, and a64r).
For example:
(gdb) a32n
_start () at test32.asm:10
10 mov eax,0
0x8048109 <_start+9>: mov eax,0x0
eax=0x001b1deb ebx=0xffff002b ecx=0xffcbca74 edx=0x001a93d0
esi=0xffcbca7c edi=0x08048100 ebp=0x00000000 esp=0xffcbca70
The definition of a32 is:
define a32n
ni
x /i $pc
printf "eax=0x%.8x ebx=0x%.8x ecx=0x%.8x edx=0x%.8x\n",$eax,$ebx,$ecx,$edx
printf "esi=0x%.8x edi=0x%.8x ebp=0x%.8x esp=0x%.8x\n",$esi,$edi,$ebp,$esp
end
[Note that you may have to unwrap the printf lines]
a32i is identical except ni is replaced with si, and a32r omits the
ni/si line.
The a64 definitions follow the same pattern, but require four printf
lines to display all of the 64-bit registers.
--
Chuck
http://www.pacificsites.com/~ccrayne/charles.html------------------------------------------------------------
Okay... it wasn't exactly the one I was looking for (can't believe I didn't save that when he posted it!), and it isn't exactly what you want, S Mahen, but permit me to post it here, since I've found it. Although Chuck's gone, his web page still works, and there are some gems on there!
As for "ddd", if that's what you want to use, install the libraries that it wants. I thought "termcaps" was a very common one, but perhaps not. Looks like "ddd"'s "./configure" is looking for other things, too. As dogman says, just keep resolving dependencies until done. It's a PITA! Why does "ddd" need "connect" and "gethostbyname"? Planning to phone home? I may just be paranoid, but that looks weird to me. Well, the source is there, if you're worried about it.
Lessee... FEDORA's RedHat, right? So it probably uses the "rpm" package management system? I don't know how to use that. Never even got Nasm to install from an .rpm. SlackWare was not an early adopter.
That may help you if you can learn how to use it...
As for other debuggers, there's "minibug" in that package from Jeff Owens. I think there's "asmbug" too, but I can't get that to work at the moment.
What I actually use, in most cases, is something from Terry Loveall. He pasted some Nasm code into Patrick Alken's "ald" to give it the "a"(ssemble) capability - just like DEBUG!
His page seems to have disappeared, so I put it here:
http://home.myfairpoint.net/fbkotler/debug-0.0.21.tgz"Like DEBUG" is pretty faint praise, but I'm used to it. I suggest you learn to use gdb, with or without a "front end" - I think it's a more powerful debugger.
Best,
Frank