how to debug

Juan Luis Baptiste juancho at linuxmail.org
Wed May 14 01:44:48 EDT 2003


Hi xiaophong, 
 
Quick guide to gdb. Use it like this: 
 
#gdb click 
 
When gdb finish loading click debug symbols,add the arguments: 
 
set args /path/to/click/config 
 
Set breakpoints like this: 
 
break file.cc:line 
 
Start it with: 
 
run 
 
When it stopt at a breakpoint, run it with n (next) and s (step into)  
 
But anyway, look in google for gdb tutorials! 
 
Cheers, 
 
Juan Luis 
 
----- Original Message ----- 
From: xiaophong <xiaophong2002 at yahoo.com> 
Date: Tue, 13 May 2003 19:20:33 -0700 (PDT) 
To: click at amsterdam.lcs.mit.edu 
Subject: how to debug 
 
>  
> Dear all, 
>  
> sorry to bother you again.  
>  
> I am using click userlevel. But would you please tell me how to debug the program by using gcc, gdb etc. Thanks a lot for your time! 
>  
> Best regards, 
>  
> xiao 
>  
>  
> --------------------------------- 
> Do you Yahoo!? 
The New Yahoo! Search - Faster. Easier. Bingo. 
 
 
-- 
------------------------------- 
Juan Luis Baptiste M. 
IBM Certified Linux Scholar 
Linux registered user #119248 
http://www.merlinux.org 
http://knetworkconf.sf.net 
 
"we're back to the times 
 when men were men and 
 wrote their own drivers" 
        Linus Torvalds 
------------------------------- 
-- 
______________________________________________
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr

Powered by Outblaze




More information about the click mailing list