From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21298 invoked by alias); 3 Mar 2008 18:46:55 -0000 Received: (qmail 21290 invoked by uid 22791); 3 Mar 2008 18:46:54 -0000 X-Spam-Check-By: sourceware.org Received: from mail172.messagelabs.com (HELO mail172.messagelabs.com) (216.82.254.3) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 03 Mar 2008 18:46:35 +0000 X-VirusChecked: Checked X-Env-Sender: bouth@touchtunes.com X-Msg-Ref: server-3.tower-172.messagelabs.com!1204569992!4891338!1 X-StarScan-Version: 5.5.12.14.2; banners=touchtunes.com,-,- Received: (qmail 14886 invoked from network); 3 Mar 2008 18:46:33 -0000 Received: from mail.touchtunes.com (HELO mx.touchtunes.com) (207.96.182.162) by server-3.tower-172.messagelabs.com with AES256-SHA encrypted SMTP; 3 Mar 2008 18:46:33 -0000 Received: from exchange.touchtunes.com ([192.168.47.14]) by mx.touchtunes.com with esmtp (Exim 4.62) (envelope-from ) id 1JWFgG-0007VH-94 for gdb@sourceware.org; Mon, 03 Mar 2008 13:46:32 -0500 Received: from mtl-ac-dt-0012.touchtunes.com ([192.168.33.133]) by exchange.touchtunes.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 3 Mar 2008 13:46:28 -0500 From: Thierry Bouchard To: gdb@sourceware.org Subject: Debug problem Date: Mon, 03 Mar 2008 18:46:00 -0000 User-Agent: KMail/1.9.6 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200803031346.05062.bouth@touchtunes.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00024.txt.bz2 Hello, Im pretty new to GDB and Linux overall. I am trying to debug my 'fir= st'=20 program using GDB. I compiled a simple helloworld program using "gcc -g=20 Hello.c". The debugging "works" since I can step through the code but inste= ad=20 of printing the next line to be executed properly while Im stepping, gdb=20 prints something unreadable as seen below :=20 Breakpoint 1, main () at Hello.c:20 =E2=96=92=E2=96=92/home/nismael/My Programs/HelloWorld/Hello.c:20:277:beg:0= x804844a Im using n to step through the code and the code Im stepping through has=20 definitely been compiled for debugging (-g). Any ideas on what Im doing=20 wrong? Thx!=20 CONFIDENTIALITY CAUTION=20 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, yo= u should destroy the e-mail message and any attachments or copies, and you = are prohibited from retaining, distributing, disclosing or using any inform= ation contained herein. Please inform us of the erroneous delivery by retur= n e-mail. Thank you for your cooperation. DOCUMENT CONFIDENTIEL=20 Le pr=E9sent courriel et tout fichier joint =E0 celui-ci peuvent contenir d= es renseignements confidentiels ou privil=E9gi=E9s. Si cet envoi ne s'adres= se pas =E0 vous ou si vous l'avez re=E7u par erreur, vous devez l'effacer. = Vous ne pouvez conserver, distribuer, communiquer ou utiliser les renseigne= ments qu'il contient. Nous vous prions de nous signaler l'erreur par courri= el. Merci de votre collaboration.