OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [gdbinit.in] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
define pr
define pr
set debug_rtx ($)
set debug_rtx ($)
end
end
document pr
document pr
Print the full structure of the rtx that is $.
Print the full structure of the rtx that is $.
Works only when an inferior is executing.
Works only when an inferior is executing.
end
end
define prl
define prl
set debug_rtx_list ($, debug_rtx_count)
set debug_rtx_list ($, debug_rtx_count)
end
end
document prl
document prl
Print the full structure of all rtx insns beginning at $.
Print the full structure of all rtx insns beginning at $.
Works only when an inferior is executing.
Works only when an inferior is executing.
Uses variable debug_rtx_count to control number of insns printed:
Uses variable debug_rtx_count to control number of insns printed:
  debug_rtx_count > 0: print from $ on.
  debug_rtx_count > 0: print from $ on.
  debug_rtx_count < 0: print a window around $.
  debug_rtx_count < 0: print a window around $.
There is also debug_rtx_find (rtx, uid) that will scan a list for UID and print
There is also debug_rtx_find (rtx, uid) that will scan a list for UID and print
it using debug_rtx_list. Usage example: set $foo=debug_rtx_find(first, 42)
it using debug_rtx_list. Usage example: set $foo=debug_rtx_find(first, 42)
end
end
define pt
define pt
set debug_tree ($)
set debug_tree ($)
end
end
document pt
document pt
Print the full structure of the tree that is $.
Print the full structure of the tree that is $.
Works only when an inferior is executing.
Works only when an inferior is executing.
end
end
define pct
define pct
set debug_c_tree ($)
set debug_c_tree ($)
end
end
document pct
document pct
Print the tree that is $ in C syntax.
Print the tree that is $ in C syntax.
Works only when an inferior is executing.
Works only when an inferior is executing.
end
end
define pgs
define pgs
set debug_generic_stmt ($)
set debug_generic_stmt ($)
end
end
document pgs
document pgs
Print the statement that is $ in C syntax.
Print the statement that is $ in C syntax.
Works only when an inferior is executing.
Works only when an inferior is executing.
end
end
define pge
define pge
set debug_generic_expr ($)
set debug_generic_expr ($)
end
end
document pge
document pge
Print the expression that is $ in C syntax.
Print the expression that is $ in C syntax.
Works only when an inferior is executing.
Works only when an inferior is executing.
end
end
define ptc
define ptc
output (enum tree_code) $.common.code
output (enum tree_code) $.common.code
echo \n
echo \n
end
end
document ptc
document ptc
Print the tree-code of the tree node that is $.
Print the tree-code of the tree node that is $.
end
end
define pdn
define pdn
output $.decl_minimal.name->identifier.id.str
output $.decl_minimal.name->identifier.id.str
echo \n
echo \n
end
end
document pdn
document pdn
Print the name of the decl-node that is $.
Print the name of the decl-node that is $.
end
end
define ptn
define ptn
output $.type.name->decl_minimal.name->identifier.id.str
output $.type.name->decl_minimal.name->identifier.id.str
echo \n
echo \n
end
end
document ptn
document ptn
Print the name of the type-node that is $.
Print the name of the type-node that is $.
end
end
define prc
define prc
output (enum rtx_code) $.code
output (enum rtx_code) $.code
echo \ (
echo \ (
output $.mode
output $.mode
echo )\n
echo )\n
end
end
document prc
document prc
Print the rtx-code and machine mode of the rtx that is $.
Print the rtx-code and machine mode of the rtx that is $.
end
end
define pi
define pi
print $.u.fld[0].rt_rtx@7
print $.u.fld[0].rt_rtx@7
end
end
document pi
document pi
Print the fields of an instruction that is $.
Print the fields of an instruction that is $.
end
end
define pbs
define pbs
set print_binding_stack ()
set print_binding_stack ()
end
end
document pbs
document pbs
In cc1plus, print the current binding stack, frame by frame, up to and
In cc1plus, print the current binding stack, frame by frame, up to and
including the global binding level.
including the global binding level.
end
end
define pbb
define pbb
set dump_bb ($, stderr, 0)
set dump_bb ($, stderr, 0)
end
end
document pbb
document pbb
Dump the basic block that is in $, including rtx.
Dump the basic block that is in $, including rtx.
end
end
define pbm
define pbm
set bitmap_print (stderr, $, "", "\n")
set bitmap_print (stderr, $, "", "\n")
end
end
document pbm
document pbm
Dump the bitmap that is in $ as a comma-separated list of numbers.
Dump the bitmap that is in $ as a comma-separated list of numbers.
end
end
# Put breakpoints at exit and fancy_abort in case abort is mapped
# Put breakpoints at exit and fancy_abort in case abort is mapped
# to either fprintf/exit or fancy_abort.
# to either fprintf/exit or fancy_abort.
b fancy_abort
b fancy_abort
# Put a breakpoint on internal_error to help with debugging ICEs.
# Put a breakpoint on internal_error to help with debugging ICEs.
b internal_error
b internal_error
# Make gdb complain about symbol reading errors.  This is so that gcc
# Make gdb complain about symbol reading errors.  This is so that gcc
# developers can see and fix bugs in gcc debug output.
# developers can see and fix bugs in gcc debug output.
set complaints 20
set complaints 20
# Don't let abort actually run, as it will make
# Don't let abort actually run, as it will make
# stdio stop working and therefore the `pr' command above as well.
# stdio stop working and therefore the `pr' command above as well.
# Put this last because gcc does not reference it any more unless
# Put this last because gcc does not reference it any more unless
# USE_SYSTEM_ABORT is defined, so gdb may complain and bail out.
# USE_SYSTEM_ABORT is defined, so gdb may complain and bail out.
b exit
b exit
b abort
b abort
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.