PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > Need on gdb
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

Need on gdb

Réponse
 
LinkBack Outils de la discussion
Vieux 29/08/2007, 14h46   #1
artikulkarni@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Need on gdb

Hello,
I am getting message "Can't find a default source file"/"Function
"funcname" not defined." etc when i am trying to use the gdb
debugger.
i have already followed the below steps -
g++ -g testfile.cpp
gdb a.out
(gdb) run
working fine
(gdb) break funcname
Function "funcname" not defined
(gdb) break 10
Can't find a default source file

whats going wrong? thanking u.

  Réponse avec citation
Vieux 30/08/2007, 05h31   #2
Vakayil Thobias
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Need on gdb

artikulkarni@gmail.com wrote:
> Hello,
> I am getting message "Can't find a default source file"/"Function
> "funcname" not defined." etc when i am trying to use the gdb
> debugger.
> i have already followed the below steps -
> g++ -g testfile.cpp
> gdb a.out
> (gdb) run
> working fine
> (gdb) break funcname
> Function "funcname" not defined
> (gdb) break 10
> Can't find a default source file
>
> whats going wrong? thanking u.
>


(gdb> list

The above commad has to list the complete program.
Is it working ?

Regards,
Thobias Vakayil
  Réponse avec citation
Vieux 30/08/2007, 14h28   #3
Billy Patton
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Need on gdb

artikulkarni@gmail.com wrote:
> Hello,
> I am getting message "Can't find a default source file"/"Function
> "funcname" not defined." etc when i am trying to use the gdb
> debugger.
> i have already followed the below steps -
> g++ -g testfile.cpp
> gdb a.out
> (gdb) run
> working fine
> (gdb) break funcname
> Function "funcname" not defined
> (gdb) break 10
> Can't find a default source file
>
> whats going wrong? thanking u.
>

Don't know what the program does, but unless you have it prompting for
some input the 'run' command will run the program to completion. setting
a break point after the run is like closing the barn door after the cow
is out.
My previous use (heavy ) would be
(gdb) break funcname
(gdb) break 10
(gdb) run

You might also try ddd. It is a GUI wrapper of gdb.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h10.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07667 seconds with 11 queries