[SOLVED] DDD Newbie Setup Issue


 
Thread Tools Search this Thread
Top Forums Programming [SOLVED] DDD Newbie Setup Issue
# 1  
Old 10-01-2012
[SOLVED] DDD Newbie Setup Issue

(Ubuntu 11.04)
I've just installed the debugger DDD, and I'm literally testing a 'hello world' program, but whilst breakpoints are being hit, the (next to) execute line is not highlighted, and when I click 'Next' the code runs to the end?
# 2  
Old 10-01-2012
It sounds like you may not have compiled with debugging information - did you pass the -g flag to gcc?
# 3  
Old 10-01-2012
Thanks for helping me. To be honest I'm following the Duntemann Step/Step TY Assembly book and I copied the compile line straight from the pdf which I'm pretty sure had the debug symbols switch set (its the Nasm compiler)

---------- Post updated at 09:38 AM ---------- Previous update was at 09:27 AM ----------

I just redid the compile in a different folder, this is the compile line i used:

nasm -f elf -g -F stabs eatsyscall.asm -o eatdemo.o

and definitely the same problem.
# 4  
Old 10-01-2012
Could you post the code you're using?
This User Gave Thanks to JohnGraham For This Post:
# 5  
Old 10-01-2012
I can if you think it'd help, but it really is just a 'hello world' app taken from the book and it is running ok.
I'm compiling with :
Code:
 nasm -f elf -g -F stabs eatsyscall.asm -o eatdemo.o

and linking with
Code:
ld -o eatsyscall eatsyscall.o

I guess it must be something to do with the way I installed DDD, or a setting...maybe...
I'm starting to realise these assembly debuggers are becoming a thing of the past and they all seem to have been abandoned by their developers.

---------- Post updated at 01:21 PM ---------- Previous update was at 12:51 PM ----------

Do you think it might be something to do with the compiler (nasm) version?
# 6  
Old 10-01-2012
nasm isn't a compiler, it's an assembler. I'm not positive how to make it generate appropriate debug info.

You're not trying to debug inside a system call, right?
This User Gave Thanks to Corona688 For This Post:
# 7  
Old 10-01-2012
thanks for both of your help. I fixed it! by compiling with dwarf instead of stabs (as it said in the help it contained more debug 'stuff') and now its showing the highlight and stepping.
This User Gave Thanks to silas2 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Web Development

Website RTO. What monitoring can I setup and how to track issue?

Hello, I have installed a WordPress theme on Cantos and brought up a website on AWS. I have added that website on Cloudflare. While I was working on webpage development, I noticed that sometimes website is unreachable. In 8 hours, I noticed it 2-3 times and after few seconds, it would come back... (1 Reply)
Discussion started by: solaris_1977
1 Replies

2. UNIX for Advanced & Expert Users

Issue setup Transparent proxy and Gateway using Squid on CentOS 7

Hello, We are migrating our gateways from CentOS 6 to CentOS 7 and for setting up a transparent proxy using squid and Firewalld i am using below configuration. #Firewalld configurations firewall-cmd --permanent --zone=public --add-forward-port=port=80:proto=tcp:toport=3128:toaddr=LAN_IP... (4 Replies)
Discussion started by: sunnysthakur
4 Replies

3. Shell Programming and Scripting

[Solved] Issue with grep

Hi everyone I am trying to write a script to check if file systems are mounted, and also validate the permission; then do a whole bunch of other things. I am facing a problem with grep. For example, if the mountpoints are: /dev/XYZ_lv /abc/XYZ jfs2 Nov 25 20:36... (4 Replies)
Discussion started by: nimo
4 Replies

4. Solaris

Public private key setup issue in Solaris 10

Hi i am using solaris 10.I am trying to setup a public/private key but it is not working.Appreciate your repsonse on it There are two servers DB1 server and DB2 server. 1)I have generated public/private key using below step on both servers. ssh-keygen -t rsa 2)From DB1 server moved the... (6 Replies)
Discussion started by: muraliinfy04
6 Replies

5. Red Hat

[SOLVED] Wireless Network Setup

Hi, I am trying to set up a wireless internet connection on my centos OS (6). I can connect via the copper using the internal LAN but cannot get the wireless connection working. The 2 files that I have configured are: My wpa_supplicant.conf: ctrl_interface=/var/run/wpa_supplicant... (1 Reply)
Discussion started by: Duffs22
1 Replies

6. UNIX for Dummies Questions & Answers

[solved]How do I setup outgoing email in solaris?

I have a Solaris box that I need to enable outgoing email from alarm purposes. How do I do that so the command echo "test this email" | mailx test@address.com will go through? ---------- Post updated at 02:24 PM ---------- Previous update was at 02:04 PM ---------- Needed to open port 25/smtp... (1 Reply)
Discussion started by: SIFT3R
1 Replies

7. Shell Programming and Scripting

Perl newbie - regex replace all groups issue

Hello, Although I have found similar questions, I could not find advice that could help with my problem. The issue: I am trying to replace all occurrences of a regex, but I cannot make the regex groups work together. This is a simple input test file: The Vedanta Philosophy... (3 Replies)
Discussion started by: samask
3 Replies

8. Linux

[Solved] Setup Nmon on Suse Enterprise 11

Ok, so my previous query has had more views than response (yeah, thanks alot for that) I am trying to figure out how to run nmon on suse linux but the script I had googled only works on AIX. I stored the binary file on (I had downloaded it directly from Nigel's website) my-xftp0:/var/log... (4 Replies)
Discussion started by: hedkandi
4 Replies

9. Red Hat

printer setup issue

I am a linux newbie who is in over his head.... We have a 3rd party company hosting our servers and they are running RHEL 4 (actaully is is OEL, but Oracle just rebranded RH) they installed a bunch of printers on the servers there. Our application prints but the formatt is off. When we had the... (0 Replies)
Discussion started by: jayjabour
0 Replies

10. HP-UX

Issue with setup.hp file for webserver

Hi All, I have an issue in writing the shell script to install a webserver on UNIX system. My shell script look something like this. ------------------------------------------------------------ echo "start of the script" #! /bin/sh cd /home/path echo | setup.hp -is:javaconsole -console... (1 Reply)
Discussion started by: vishalm
1 Replies
Login or Register to Ask a Question