Changes between Version 9 and Version 10 of DebuggingGhcCrashes


Ignore:
Timestamp:
Nov 23, 2006 3:58:35 PM (9 years ago)
Author:
alexey
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DebuggingGhcCrashes

    v9 v10  
    266266See {{{-ddump-stg, -ddump-simpl, -ddump-cmm, -dppr-debug}}}.
    267267
     268== Useful hints ==
     269
     270 * Use the {{{dpc}}} macro if you want to avoid the pain of matching the {{{pc}}} address with instructions at every program step:
     271{{{
     272(gdb) dpc
     273(gdb) si
     2740x0000000000408a37 in base_GHCziTopHandler_lvl9_info ()
     2751: x/i $pc  0x408a37 <base_GHCziTopHandler_lvl9_info+7>:        jb     0x408a55 <base_GHCziTopHandler_lvl9_info+37>
     276(gdb)
     2770x0000000000408a39 in base_GHCziTopHandler_lvl9_info ()
     2781: x/i $pc  0x408a39 <base_GHCziTopHandler_lvl9_info+9>:        mov    $0x5cf248,%ebx
     279(gdb)
     2800x0000000000408a3e in base_GHCziTopHandler_lvl9_info ()
     2811: x/i $pc  0x408a3e <base_GHCziTopHandler_lvl9_info+14>:       movq   $0x408a80,0xfffffffffffffff8(%rbp)
     282(gdb)
     283}}}
     284   Also note that an empty gdb request repeats the previous command, in this case {{{si}}}.
     285
    268286== Mapping back to the STG code ==
    269287