Re: Problem trying to get DDD to debug a simple assembly language program
shaunak saha <[email protected]> Thu, 4 Apr 2013 22:44:13 -0700
| Newsgroups | gmane.comp.debugging.ddd.general |
|---|---|
| Message-ID | <CAKw9LJmUY6VaN81EtZmcppwVfYZobBH2Hm_wqMSqchfCAY3-Gg@mail.gmail.com> |
Hi Zarko, Thanks for your reply. >I'm using ddd as a tool in assembly programming class, and I think I could help you, but I'll need the source files that you are trying to run through ddd (I >don't use nasm, but gcc's assembler), to see what's going on. I also use gcc's assembler and it works fine for me in DDD. I m trying to reproduce the same issue that "Rich" reported by using the nasm. >Regarding the fonts issue, it was reported and solved long time ago, but never got into the ddd source (http://permalink.gmane.org/** gmane.comp.debugging.ddd.**general/8238<http://permalink.gmane.org/gmane.comp.debugging.ddd.general/8238> , https://bugs.launchpad.net/**ddd/+bug/959664<https://bugs.launchpad.net/ddd/+bug/959664> ). The last release was on Feb 2009 version 3.3.12(Dale Head). After that many patched got submitted but no new version of DDD got released with those patches. We are planning to make a DDD release soon with all the proper patches submitted and also with few new features. In parallel, work is in progress to change the UI from Motif to a modern GUI toolkit(gtkmm,Qt). Regards, Shaunak On Thu, Apr 4, 2013 at 10:02 PM, Žarko Živanov <[email protected]> wrote: > Rich, > I'm using ddd as a tool in assembly programming class, and I think I could > help you, but I'll need the source files that you are trying to run through > ddd (I don't use nasm, but gcc's assembler), to see what's going on. > > Regarding the fonts issue, it was reported and solved long time ago, but > never got into the ddd source (http://permalink.gmane.org/** > gmane.comp.debugging.ddd.**general/8238<http://permalink.gmane.org/gmane.comp.debugging.ddd.general/8238>, > https://bugs.launchpad.net/**ddd/+bug/959664<https://bugs.launchpad.net/ddd/+bug/959664> > ). > > I have my own packages for ddd that are distributed to students, where > some of the bugs are fixed and the interface is tailored towards assembly > debugging, you may try it if you want (you'll need to rm -rf ~/.ddd/ and > install xfonts-100dpi package): > http://www.acs.uns.ac.rs/sr/**node/237/443<http://www.acs.uns.ac.rs/sr/node/237/443> > > Best regards, > Zarko > > > > On 03/04/13 22:11, Rich Loda wrote: > >> I have a Zareason 64 bit laptop running Ubuntu Linux 12.10 64 bit. Have >> been reading an "Assembly language step by step" book and have been >> attempting to use ddd >> to debug. Obtained ddd from Ubuntu software center download. >> Have compiled: nasm -f elf64 -g -F dwarf junk.asm >> Linked: ld -o junk junk.o >> The program from terminal successfully prints "Eat at Joe's!" as it >> should. >> >> However, when I try to load it into ddd the program hangs and I get a >> continuous hourglass. The code "displays", but I can't set breakpoints or >> do anything else. >> The only way I can get it to load is from the terminal, i.e ____$ddd junk. >> >> When I do the above. I note that the terminal lists several Warnings, e.g >> Warning: Cannot convert string "-*helvetica-medium-r .....and Warning: >> could not load font....." >> I believe leaving the cursor hung up also. >> >> I've tried the unzipped file from the book site (called "eatsyscall"), >> and also retyping in only the executable asm (no comments) to no avail. >> >> I can "debug" the (working) program with gdb from the terminal. Can set >> breaks, list, inspect registers as one should. >> >> I've tried web sites and reading the ddd manual, but am at a loss. I >> suspect I'm doing something silly, but would appreciate any feedback. Could >> it be ddd doesn't handle 64 bit code? Note the same >> thing happens, even if I use the 32-bit book version that was already >> compiled when unzipped?! >> >> Thanks in advance, >> Rich >> >> >> >> > >