dwarfbase.pas 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {
  2. Copyright (c) 2003-2019 by Peter Vreman and Florian Klaempfl
  3. This units contains special support for DWARF debug info
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. ****************************************************************************
  16. }
  17. unit dwarfbase;
  18. {$i fpcdefs.inc}
  19. interface
  20. const
  21. { Call frame information }
  22. DW_CFA_set_loc = $01;
  23. DW_CFA_advance_loc1 = $02;
  24. DW_CFA_advance_loc2 = $03;
  25. DW_CFA_advance_loc4 = $04;
  26. DW_CFA_offset_extended = $05;
  27. DW_CFA_restore_extended = $06;
  28. DW_CFA_undefined = $07;
  29. DW_CFA_def_cfa = $0c;
  30. DW_CFA_def_cfa_register = $0d;
  31. DW_CFA_def_cfa_offset = $0e;
  32. DW_CFA_advance_loc = $40;
  33. DW_CFA_offset = $80;
  34. { Own additions }
  35. DW_CFA_start_frame = $f0;
  36. DW_CFA_end_frame = $f1;
  37. { pseudo operation to set the LSDALable, must
  38. be set before DW_CFA_start_frame is executed }
  39. DW_Set_LSDALabel = $f2;
  40. DW_LNS_copy = $01;
  41. DW_LNS_advance_pc = $02;
  42. DW_LNS_advance_line = $03;
  43. DW_LNS_set_file = $04;
  44. DW_LNS_set_column = $05;
  45. DW_LNS_negate_stmt = $06;
  46. DW_LNS_set_basic_block = $07;
  47. DW_LNS_const_add_pc = $08;
  48. DW_LNS_fixed_advance_pc = $09;
  49. DW_LNS_set_prologue_end = $0a;
  50. DW_LNS_set_epilogue_begin = $0b;
  51. DW_LNS_set_isa = $0c;
  52. DW_LNE_end_sequence = $01;
  53. DW_LNE_set_address = $02;
  54. DW_LNE_define_file = $03;
  55. DW_LNE_lo_user = $80;
  56. DW_LNE_hi_user = $ff;
  57. DW_EH_PE_absptr = $00;
  58. DW_EH_PE_uleb128 = $01;
  59. DW_EH_PE_udata2 = $02;
  60. DW_EH_PE_udata4 = $03;
  61. DW_EH_PE_udata8 = $04;
  62. DW_EH_PE_sleb128 = $09;
  63. DW_EH_PE_sdata2 = $0A;
  64. DW_EH_PE_sdata4 = $0B;
  65. DW_EH_PE_sdata8 = $0C;
  66. DW_EH_PE_pcrel = $10;
  67. DW_EH_PE_textrel = $20;
  68. DW_EH_PE_datarel = $30;
  69. DW_EH_PE_funcrel = $40;
  70. DW_EH_PE_aligned = $50;
  71. DW_EH_PE_indirect = $80;
  72. DW_EH_PE_omit = $ff;
  73. implementation
  74. end.