190075Sobriendefine pr 290075Sobrienset debug_rtx ($) 390075Sobrienend 490075Sobrien 590075Sobriendocument pr 690075SobrienPrint the full structure of the rtx that is $. 790075SobrienWorks only when an inferior is executing. 890075Sobrienend 990075Sobrien 1090075Sobriendefine prl 1190075Sobrienset debug_rtx_list ($, debug_rtx_count) 1290075Sobrienend 1390075Sobrien 1490075Sobriendocument prl 1590075SobrienPrint the full structure of all rtx insns beginning at $. 1690075SobrienWorks only when an inferior is executing. 1790075SobrienUses variable debug_rtx_count to control number of insns printed: 1890075Sobrien debug_rtx_count > 0: print from $ on. 1990075Sobrien debug_rtx_count < 0: print a window around $. 2090075Sobrien 2190075SobrienThere is also debug_rtx_find (rtx, uid) that will scan a list for UID and print 2290075Sobrienit using debug_rtx_list. Usage example: set $foo=debug_rtx_find(first, 42) 2390075Sobrienend 2490075Sobrien 2590075Sobriendefine pt 2690075Sobrienset debug_tree ($) 2790075Sobrienend 2890075Sobrien 2990075Sobriendocument pt 3090075SobrienPrint the full structure of the tree that is $. 3190075SobrienWorks only when an inferior is executing. 3290075Sobrienend 3390075Sobrien 34117395Skandefine pct 35117395Skanset debug_c_tree ($) 36117395Skanend 37117395Skan 38117395Skandocument pct 39117395SkanPrint the tree that is $ in C syntax. 40117395SkanWorks only when an inferior is executing. 41117395Skanend 42117395Skan 43169689Skandefine pgs 44169689Skanset debug_generic_stmt ($) 45169689Skanend 46169689Skan 47169689Skandocument pgs 48169689SkanPrint the statement that is $ in C syntax. 49169689SkanWorks only when an inferior is executing. 50169689Skanend 51169689Skan 52169689Skandefine pge 53169689Skanset debug_generic_expr ($) 54169689Skanend 55169689Skan 56169689Skandocument pge 57169689SkanPrint the expression that is $ in C syntax. 58169689SkanWorks only when an inferior is executing. 59169689Skanend 60169689Skan 6190075Sobriendefine ptc 6290075Sobrienoutput (enum tree_code) $.common.code 6390075Sobrienecho \n 6490075Sobrienend 6590075Sobrien 6690075Sobriendocument ptc 6790075SobrienPrint the tree-code of the tree node that is $. 6890075Sobrienend 6990075Sobrien 7090075Sobriendefine pdn 71169689Skanoutput $.decl_minimal.name->identifier.id.str 7290075Sobrienecho \n 7390075Sobrienend 7490075Sobrien 7590075Sobriendocument pdn 7690075SobrienPrint the name of the decl-node that is $. 7790075Sobrienend 7890075Sobrien 7990075Sobriendefine ptn 80169689Skanoutput $.type.name->decl_minimal.name->identifier.id.str 8190075Sobrienecho \n 8290075Sobrienend 8390075Sobrien 8490075Sobriendocument ptn 8590075SobrienPrint the name of the type-node that is $. 8690075Sobrienend 8790075Sobrien 8890075Sobriendefine prc 8990075Sobrienoutput (enum rtx_code) $.code 9090075Sobrienecho \ ( 9190075Sobrienoutput $.mode 9290075Sobrienecho )\n 9390075Sobrienend 9490075Sobrien 9590075Sobriendocument prc 9690075SobrienPrint the rtx-code and machine mode of the rtx that is $. 9790075Sobrienend 9890075Sobrien 9990075Sobriendefine pi 100169689Skanprint $.u.fld[0].rt_rtx@7 10190075Sobrienend 10290075Sobrien 10390075Sobriendocument pi 10490075SobrienPrint the fields of an instruction that is $. 10590075Sobrienend 10690075Sobrien 10790075Sobriendefine pbs 10890075Sobrienset print_binding_stack () 10990075Sobrienend 11090075Sobrien 11190075Sobriendocument pbs 11290075SobrienIn cc1plus, print the current binding stack, frame by frame, up to and 11390075Sobrienincluding the global binding level. 11490075Sobrienend 11590075Sobrien 116169689Skandefine pbb 117169689Skanset dump_bb ($, stderr, 0) 118169689Skanend 119169689Skan 120169689Skandocument pbb 121169689SkanDump the basic block that is in $, including rtx. 122169689Skanend 123169689Skan 124169689Skandefine pbm 125169689Skanset bitmap_print (stderr, $, "", "\n") 126169689Skanend 127169689Skan 128169689Skandocument pbm 129169689SkanDump the bitmap that is in $ as a comma-separated list of numbers. 130169689Skanend 131169689Skan 13290075Sobrien# Put breakpoints at exit and fancy_abort in case abort is mapped 13390075Sobrien# to either fprintf/exit or fancy_abort. 13490075Sobrienb fancy_abort 13590075Sobrien 136169689Skan# Put a breakpoint on internal_error to help with debugging ICEs. 137169689Skanb internal_error 138169689Skan 13990075Sobrien# Make gdb complain about symbol reading errors. This is so that gcc 14090075Sobrien# developers can see and fix bugs in gcc debug output. 14190075Sobrienset complaints 20 14290075Sobrien 14390075Sobrien# Don't let abort actually run, as it will make 14490075Sobrien# stdio stop working and therefore the `pr' command above as well. 14590075Sobrien# Put this last because gcc does not reference it any more unless 14690075Sobrien# USE_SYSTEM_ABORT is defined, so gdb may complain and bail out. 14790075Sobrienb exit 14890075Sobrienb abort 149