Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What is the gdb and how to use it ?

Status
Not open for further replies.

zhangpengyu

Full Member level 3
Joined
Jun 28, 2004
Messages
172
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Activity points
1,164
gdb is linux

Hi

What 's gdb ,how could I use it?
Thanks a lot !


zhpy
 

Re: gdb is linux

gdb is a debugger to debug you code

when you compile the code compile with the opption

1) gcc -ggdb -o (output file name) (source_ code_file_name.c)
if it compiles without error then
type on $ prompt
2) $ gdb your output file name
you will get message displayed on prompt with last two lines

There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...


3) $b ( or break) line or function number where you want to break


once this is done you can step through your code by hitting "s"
try this if you have any problem let me know I will send you more detail
Helped you I guess
 

gdb is linux

An excellent GDB frontend is
ddd

google for it, and it encapsulates the user from various intricacies of the command line gdb
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top