De­bug­ging us­ing core dumps

OpenSource For You - - LEADING PLAYERS -

Core dumps can be de­bugged us­ing GDB. When gdb is run wLWh Whe bL­nary WhaW creaWed Whe core file, as well as Whe core file, LW reads Whe conWenWs oI Whe core dumS, and un­der­sWands the fol­low­ing: The name oI Whe Sro­cess WhaW dumSed Whe core file The sLg­nal senW Wo Whe Sro­cess Wo dumS Whe core file Any il­le­gal state­ment in the pro­gram, with the line num­ber Val­ues oI varLables Val­ues oI regLsWers, eWc. )Lgure 2 shows a samSle run oI GD% Ln WhLs man­ner. ThLs can be viewed at http://lin­ux­foru.com/ar­ti­cle_­source_­code/ dec12/core­dump.zip.

Newspapers in English

Newspapers from India

© PressReader. All rights reserved.