URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [gdbinit.in] - Rev 816
Compare with Previous | Blame | View Log
define prset debug_rtx ($)enddocument prPrint the full structure of the rtx that is $.Works only when an inferior is executing.enddefine prlset debug_rtx_list ($, debug_rtx_count)enddocument prlPrint the full structure of all rtx insns beginning at $.Works only when an inferior is executing.Uses variable debug_rtx_count to control number of insns printed:debug_rtx_count > 0: print from $ on.debug_rtx_count < 0: print a window around $.There is also debug_rtx_find (rtx, uid) that will scan a list for UID and printit using debug_rtx_list. Usage example: set $foo=debug_rtx_find(first, 42)enddefine ptset debug_tree ($)enddocument ptPrint the full structure of the tree that is $.Works only when an inferior is executing.enddefine pctset debug_c_tree ($)enddocument pctPrint the tree that is $ in C syntax.Works only when an inferior is executing.enddefine pgsset debug_generic_stmt ($)enddocument pgsPrint the statement that is $ in C syntax.Works only when an inferior is executing.enddefine pgeset debug_generic_expr ($)enddocument pgePrint the expression that is $ in C syntax.Works only when an inferior is executing.enddefine ptcoutput (enum tree_code) $.common.codeecho \nenddocument ptcPrint the tree-code of the tree node that is $.enddefine pdnoutput $.decl_minimal.name->identifier.id.strecho \nenddocument pdnPrint the name of the decl-node that is $.enddefine ptnoutput $.type.name->decl_minimal.name->identifier.id.strecho \nenddocument ptnPrint the name of the type-node that is $.enddefine prcoutput (enum rtx_code) $.codeecho \ (output $.modeecho )\nenddocument prcPrint the rtx-code and machine mode of the rtx that is $.enddefine piprint $.u.fld[0].rt_rtx@7enddocument piPrint the fields of an instruction that is $.enddefine pbsset print_binding_stack ()enddocument pbsIn cc1plus, print the current binding stack, frame by frame, up to andincluding the global binding level.enddefine pbbset dump_bb ($, stderr, 0)enddocument pbbDump the basic block that is in $, including rtx.enddefine pbmset bitmap_print (stderr, $, "", "\n")enddocument pbmDump the bitmap that is in $ as a comma-separated list of numbers.end# Put breakpoints at exit and fancy_abort in case abort is mapped# to either fprintf/exit or fancy_abort.b fancy_abort# Put a breakpoint on internal_error to help with debugging ICEs.b internal_error# Make gdb complain about symbol reading errors. This is so that gcc# developers can see and fix bugs in gcc debug output.set complaints 20# Don't let abort actually run, as it will make# stdio stop working and therefore the `pr' command above as well.# Put this last because gcc does not reference it any more unless# USE_SYSTEM_ABORT is defined, so gdb may complain and bail out.b exitb abort
