.gdbinit 913 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Don't let abort actually run, as it will make
  2. # stdio stop working and therefore the `pr' command below as well.
  3. b abort
  4. define pr
  5. set debug_rtx ($)
  6. end
  7. document pr
  8. Print the full structure of the rtx that is $.
  9. Works only when an inferior is executing.
  10. end
  11. define pt
  12. set debug_dump_tree ($)
  13. end
  14. document pt
  15. Print the full structure of the tree that is $.
  16. Works only when an inferior is executing.
  17. end
  18. define ptc
  19. output (enum tree_code) $.common.code
  20. echo \n
  21. end
  22. document ptc
  23. Print the tree-code of the tree node that is $.
  24. end
  25. define pdn
  26. output $.decl.name->identifier.pointer
  27. echo \n
  28. end
  29. document pdn
  30. Print the name of the decl-node that is $.
  31. end
  32. define prc
  33. output (enum rtx_code) $.code
  34. echo \ (
  35. output $.mode
  36. echo )\n
  37. end
  38. document prc
  39. Print the rtx-code and machine mode of the rtx that is $.
  40. end
  41. define pi
  42. print $.fld[0].rtx@7
  43. end
  44. document pi
  45. Print the fields of an instruction that is $.
  46. end