This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Debug problem
- From: Thierry Bouchard <bouth at touchtunes dot com>
- To: gdb at sourceware dot org
- Date: Mon, 3 Mar 2008 13:46:05 -0500
- Subject: Debug problem
Hello, Im pretty new to GDB and Linux overall. I am trying to debug my 'first'
program using GDB. I compiled a simple helloworld program using "gcc -g
Hello.c". The debugging "works" since I can step through the code but instead
of printing the next line to be executed properly while Im stepping, gdb
prints something unreadable as seen below :
Breakpoint 1, main () at Hello.c:20
ââ/home/nismael/My Programs/HelloWorld/Hello.c:20:277:beg:0x804844a
Im using n to step through the code and the code Im stepping through has
definitely been compiled for debugging (-g). Any ideas on what Im doing
wrong?
Thx!
CONFIDENTIALITY CAUTION
This e-mail and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained herein. Please inform us of the erroneous delivery by return e-mail. Thank you for your cooperation.
DOCUMENT CONFIDENTIEL
Le présent courriel et tout fichier joint à celui-ci peuvent contenir des renseignements confidentiels ou privilégiés. Si cet envoi ne s'adresse pas à vous ou si vous l'avez reçu par erreur, vous devez l'effacer. Vous ne pouvez conserver, distribuer, communiquer ou utiliser les renseignements qu'il contient. Nous vous prions de nous signaler l'erreur par courriel. Merci de votre collaboration.