• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Gdb
 

Gdb

on

  • 1,613 views

 

Statistics

Views

Total Views
1,613
Views on SlideShare
1,612
Embed Views
1

Actions

Likes
0
Downloads
46
Comments
0

1 Embed 1

http://www.slideshare.net 1

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Gdb Gdb Presentation Transcript

    • Gdb Alejandro García Castro
    • List of topics
      • Debuggers
      • Ways of working
      • Examples
      • Main basic commands
      • Basic gobject
      • Emacs and GDB
    • Introduction
      • Have you ever debugged a program?
      • Have you ever debugged a C program?
      • A debugger allows you to check how a program is executed or checking what was doing when it crashed
      • In gnome we use gdb for debugging
    • Ways of working
      • debug a program, start and stop
      • debug a running process
      • debug a core file (cores activate)
      • check without symbols
      • check with symbols dbg package
      • compiling always with symbols and no optimization
      • jhbuild environment
    • Main basic commands
      • use the refcard:
      • www.cs.dal.ca/studentservices/refcards/gdbref.pdf
      • breakpoints (conditionals and commands)
      • stack trace information
      • watchpoints (slow)
      • print and display
    • Main basic commands (II)
      • remote debugging
      • signals, threads and processes , handle with care :-)
    • Basic gobject
      • glib library and gobject
      • http://library.gnome.org/devel/gobject/stable/
      • use devhelp
      • use English in the code
      • example object, rectangle.
      • diff and patch (always read your patches before sending them)
    • Basic gobject (II)
      • bugs:
        • debug errors, area is not correct second time
        • crash destroying the object
        • it randomly crashes
    • Emacs and GDB
      • Start gdb mode
      • Integration of the buffers with the execution of the program
      • Check refcard for more commands, help: C-h m
    • References
      • refcard: www.cs.dal.ca/studentservices/refcards/gdbref.pdf
      • http://www.gnu.org/software/gdb/gdb.html