Debugging using core dumps
Core dumps can be debugged using GDB. When gdb is run wLWh Whe bLnary WhaW creaWed Whe core file, as well as Whe core file, LW reads Whe conWenWs oI Whe core dumS, and undersWands the following: The name oI Whe Srocess WhaW dumSed Whe core file The sLgnal senW Wo Whe Srocess Wo dumS Whe core file Any illegal statement in the program, with the line number Values oI varLables Values oI regLsWers, eWc. )Lgure 2 shows a samSle run oI GD% Ln WhLs manner. ThLs can be viewed at http://linuxforu.com/article_source_code/ dec12/coredump.zip.