repo_id
stringlengths
5
115
size
int64
590
5.01M
file_path
stringlengths
4
212
content
stringlengths
590
5.01M
tactcomplabs/xbgas-binutils-gdb
46,880
gas/testsuite/gas/sh/arch/sh4al-dsp.s
! Generated file. DO NOT EDIT. ! ! This file was generated by gas/testsuite/gas/sh/arch/sh-opc-gen-as.pl . ! This file should contain every instruction valid on ! architecture sh4al-dsp but no more. ! If the tests are failing because the expected results have changed then run ! 'cat ../../../../../opcodes/sh-opc.h | perl sh-opc-gen-as.pl' ! in <srcdir>/gas/testsuite/gas/sh/arch to re-generate the files. ! Make sure there are no unexpected or missing instructions. .section .text sh4al_dsp: ! Instructions introduced into sh4al-dsp clrdmxy ;!/* 0000000010001000 clrdmxy */{"clrdmxy",{0},{HEX_0,HEX_0,HEX_8,HEX_8}, arch_sh4al_dsp_up} ldrc r5 ;!/* 0100mmmm00110100 ldrc <REG_M> */{"ldrc",{A_REG_M},{HEX_4,REG_M,HEX_3,HEX_4}, arch_sh4al_dsp_up} ldrc #4 ;!/* 10001010i8*1.... ldrc #<imm> */{"ldrc",{A_IMM},{HEX_8,HEX_A,IMM0_8}, arch_sh4al_dsp_up} setdmx ;!/* 0000000010011000 setdmx */{"setdmx",{0},{HEX_0,HEX_0,HEX_9,HEX_8}, arch_sh4al_dsp_up} setdmy ;!/* 0000000011001000 setdmy */{"setdmy",{0},{HEX_0,HEX_0,HEX_C,HEX_8}, arch_sh4al_dsp_up} movx.w @r1,y1 ;!/* nnmm000100 movx.w @<REG_Axy>,<DSP_REG_XY> */ {"movx.w",{AXY_IND_N,DSP_REG_XY},{PPI,MOVX_NOPY,HEX_0,HEX_4}, arch_sh4al_dsp_up} movx.w @r1+,y1 ;!/* nnmm001000 movx.w @<REG_Axy>+,<DSP_REG_XY> */{"movx.w",{AXY_INC_N,DSP_REG_XY},{PPI,MOVX_NOPY,HEX_0,HEX_8}, arch_sh4al_dsp_up} movx.w @r1+r8,y1 ;!/* nnmm001100 movx.w @<REG_Axy>+r8,<DSP_REG_XY> */{"movx.w",{AXY_PMOD_N,DSP_REG_XY},{PPI,MOVX_NOPY,HEX_0,HEX_C}, arch_sh4al_dsp_up} movx.w a0,@r1 ;!/* nnmm100100 movx.w <DSP_REG_AX>,@<REG_Axy> */ {"movx.w",{DSP_REG_AX,AXY_IND_N},{PPI,MOVX_NOPY,HEX_2,HEX_4}, arch_sh4al_dsp_up} movx.w a0,@r1+ ;!/* nnmm101000 movx.w <DSP_REG_AX>,@<REG_Axy>+ */{"movx.w",{DSP_REG_AX,AXY_INC_N},{PPI,MOVX_NOPY,HEX_2,HEX_8}, arch_sh4al_dsp_up} movx.w a0,@r1+r8 ;!/* nnmm101100 movx.w <DSP_REG_AX>,@<REG_Axy>+r8 */{"movx.w",{DSP_REG_AX,AXY_PMOD_N},{PPI,MOVX_NOPY,HEX_2,HEX_C}, arch_sh4al_dsp_up} movx.l @r1,y1 ;!/* nnmm010100 movx.l @<REG_Axy>,<DSP_REG_XY> */ {"movx.l",{AXY_IND_N,DSP_REG_XY},{PPI,MOVX_NOPY,HEX_1,HEX_4}, arch_sh4al_dsp_up} movx.l @r1+,y1 ;!/* nnmm011000 movx.l @<REG_Axy>+,<DSP_REG_XY> */{"movx.l",{AXY_INC_N,DSP_REG_XY},{PPI,MOVX_NOPY,HEX_1,HEX_8}, arch_sh4al_dsp_up} movx.l @r1+r8,y1 ;!/* nnmm011100 movx.l @<REG_Axy>+r8,<DSP_REG_XY> */{"movx.l",{AXY_PMOD_N,DSP_REG_XY},{PPI,MOVX_NOPY,HEX_1,HEX_C}, arch_sh4al_dsp_up} movx.l a0,@r1 ;!/* nnmm110100 movx.l <DSP_REG_AX>,@<REG_Axy> */ {"movx.l",{DSP_REG_AX,AXY_IND_N},{PPI,MOVX_NOPY,HEX_3,HEX_4}, arch_sh4al_dsp_up} movx.l a0,@r1+ ;!/* nnmm111000 movx.l <DSP_REG_AX>,@<REG_Axy>+ */{"movx.l",{DSP_REG_AX,AXY_INC_N},{PPI,MOVX_NOPY,HEX_3,HEX_8}, arch_sh4al_dsp_up} movx.l a0,@r1+r8 ;!/* nnmm111100 movx.l <DSP_REG_AX>,@<REG_Axy>+r8 */{"movx.l",{DSP_REG_AX,AXY_PMOD_N},{PPI,MOVX_NOPY,HEX_3,HEX_C}, arch_sh4al_dsp_up} movy.w @r3,y1 ;!/* nnmm000001 movy.w @<REG_Ayx>,<DSP_REG_YX> */ {"movy.w",{AYX_IND_N,DSP_REG_YX},{PPI,MOVY_NOPX,HEX_0,HEX_1}, arch_sh4al_dsp_up} movy.w @r3+,y1 ;!/* nnmm000010 movy.w @<REG_Ayx>+,<DSP_REG_YX> */{"movy.w",{AYX_INC_N,DSP_REG_YX},{PPI,MOVY_NOPX,HEX_0,HEX_2}, arch_sh4al_dsp_up} movy.w @r3+r9,y1 ;!/* nnmm000011 movy.w @<REG_Ayx>+r9,<DSP_REG_YX> */{"movy.w",{AYX_PMOD_N,DSP_REG_YX},{PPI,MOVY_NOPX,HEX_0,HEX_3}, arch_sh4al_dsp_up} movy.w a0,@r3 ;!/* nnmm010001 movy.w <DSP_REG_AY>,@<REG_Ayx> */ {"movy.w",{DSP_REG_AY,AYX_IND_N},{PPI,MOVY_NOPX,HEX_1,HEX_1}, arch_sh4al_dsp_up} movy.w a0,@r3+ ;!/* nnmm010010 movy.w <DSP_REG_AY>,@<REG_Ayx>+ */{"movy.w",{DSP_REG_AY,AYX_INC_N},{PPI,MOVY_NOPX,HEX_1,HEX_2}, arch_sh4al_dsp_up} movy.w a0,@r3+r9 ;!/* nnmm010011 movy.w <DSP_REG_AY>,@<REG_Ayx>+r9 */{"movy.w",{DSP_REG_AY,AYX_PMOD_N},{PPI,MOVY_NOPX,HEX_1,HEX_3}, arch_sh4al_dsp_up} movy.l @r3,y1 ;!/* nnmm100001 movy.l @<REG_Ayx>,<DSP_REG_YX> */ {"movy.l",{AYX_IND_N,DSP_REG_YX},{PPI,MOVY_NOPX,HEX_2,HEX_1}, arch_sh4al_dsp_up} movy.l @r3+,y1 ;!/* nnmm100010 movy.l @<REG_Ayx>+,<DSP_REG_YX> */{"movy.l",{AYX_INC_N,DSP_REG_YX},{PPI,MOVY_NOPX,HEX_2,HEX_2}, arch_sh4al_dsp_up} movy.l @r3+r9,y1 ;!/* nnmm100011 movy.l @<REG_Ayx>+r9,<DSP_REG_YX> */{"movy.l",{AYX_PMOD_N,DSP_REG_YX},{PPI,MOVY_NOPX,HEX_2,HEX_3}, arch_sh4al_dsp_up} movy.l a0,@r3 ;!/* nnmm110001 movy.l <DSP_REG_AY>,@<REG_Ayx> */ {"movy.l",{DSP_REG_AY,AYX_IND_N},{PPI,MOVY_NOPX,HEX_3,HEX_1}, arch_sh4al_dsp_up} movy.l a0,@r3+ ;!/* nnmm110010 movy.l <DSP_REG_AY>,@<REG_Ayx>+ */{"movy.l",{DSP_REG_AY,AYX_INC_N},{PPI,MOVY_NOPX,HEX_3,HEX_2}, arch_sh4al_dsp_up} movy.l a0,@r3+r9 ;!/* nnmm110011 movy.l <DSP_REG_AY>,@<REG_Ayx>+r9 */{"movy.l",{DSP_REG_AY,AYX_PMOD_N},{PPI,MOVY_NOPX,HEX_3,HEX_3}, arch_sh4al_dsp_up} dct pabs x1,m0 ;!/* 1000100!xx01nnnn pabs <DSP_REG_X>,<DSP_REG_N> */ {"pabs", {DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_8,HEX_9,HEX_1}, arch_sh4al_dsp_up} dct pabs y0,m0 ;!/* 1010100!01yynnnn pabs <DSP_REG_Y>,<DSP_REG_N> */ {"pabs", {DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_A,HEX_9,HEX_4}, arch_sh4al_dsp_up} dct prnd x1,m0 ;!/* 1001100!xx01nnnn prnd <DSP_REG_X>,<DSP_REG_N> */ {"prnd", {DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_9,HEX_9,HEX_1}, arch_sh4al_dsp_up} dct prnd y0,m0 ;!/* 1011100!01yynnnn prnd <DSP_REG_Y>,<DSP_REG_N> */ {"prnd", {DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_B,HEX_9,HEX_4}, arch_sh4al_dsp_up} dct psub y0,x1,m0 ;!/* 10000101xxyynnnn psub <DSP_REG_Y>,<DSP_REG_X>,<DSP_REG_N> */ {"psub", {DSP_REG_Y,DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_8,HEX_5}, arch_sh4al_dsp_up} dct pswap x1,m0 ;!/* 10011101xx01zzzz pswap <DSP_REG_X>,<DSP_REG_N> */ {"pswap", {DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_9,HEX_D,HEX_1}, arch_sh4al_dsp_up} dct pswap y0,m0 ;!/* 1011110101yyzzzz pswap <DSP_REG_Y>,<DSP_REG_N> */ {"pswap", {DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_B,HEX_D,HEX_4}, arch_sh4al_dsp_up} ! Instructions inherited from ancestors: sh sh-dsp sh2 sh2a-nofpu-or-sh3-nommu sh2a-nofpu-or-sh4-nommu-nofpu sh3 sh3-dsp sh3-nommu sh4-nofpu sh4-nommu-nofpu sh4a-nofpu add #4,r4 ;!/* 0111nnnni8*1.... add #<imm>,<REG_N> */{"add",{A_IMM,A_REG_N},{HEX_7,REG_N,IMM0_8}, arch_sh_up} add r5,r4 ;!/* 0011nnnnmmmm1100 add <REG_M>,<REG_N> */{"add",{ A_REG_M,A_REG_N},{HEX_3,REG_N,REG_M,HEX_C}, arch_sh_up} addc r5,r4 ;!/* 0011nnnnmmmm1110 addc <REG_M>,<REG_N>*/{"addc",{ A_REG_M,A_REG_N},{HEX_3,REG_N,REG_M,HEX_E}, arch_sh_up} addv r5,r4 ;!/* 0011nnnnmmmm1111 addv <REG_M>,<REG_N>*/{"addv",{ A_REG_M,A_REG_N},{HEX_3,REG_N,REG_M,HEX_F}, arch_sh_up} and #4,R0 ;!/* 11001001i8*1.... and #<imm>,R0 */{"and",{A_IMM,A_R0},{HEX_C,HEX_9,IMM0_8}, arch_sh_up} and r5,r4 ;!/* 0010nnnnmmmm1001 and <REG_M>,<REG_N> */{"and",{ A_REG_M,A_REG_N},{HEX_2,REG_N,REG_M,HEX_9}, arch_sh_up} and.b #4,@(R0,GBR) ;!/* 11001101i8*1.... and.b #<imm>,@(R0,GBR)*/{"and.b",{A_IMM,A_R0_GBR},{HEX_C,HEX_D,IMM0_8}, arch_sh_up} bra .+8 ;!/* 1010i12......... bra <bdisp12> */{"bra",{A_BDISP12},{HEX_A,BRANCH_12}, arch_sh_up} bsr .+8 ;!/* 1011i12......... bsr <bdisp12> */{"bsr",{A_BDISP12},{HEX_B,BRANCH_12}, arch_sh_up} bt .+8 ;!/* 10001001i8p1.... bt <bdisp8> */{"bt",{A_BDISP8},{HEX_8,HEX_9,BRANCH_8}, arch_sh_up} bf .+8 ;!/* 10001011i8p1.... bf <bdisp8> */{"bf",{A_BDISP8},{HEX_8,HEX_B,BRANCH_8}, arch_sh_up} bt.s .+8 ;!/* 10001101i8p1.... bt.s <bdisp8> */{"bt.s",{A_BDISP8},{HEX_8,HEX_D,BRANCH_8}, arch_sh2_up} bt/s .+8 ;!/* 10001101i8p1.... bt/s <bdisp8> */{"bt/s",{A_BDISP8},{HEX_8,HEX_D,BRANCH_8}, arch_sh2_up} bf.s .+8 ;!/* 10001111i8p1.... bf.s <bdisp8> */{"bf.s",{A_BDISP8},{HEX_8,HEX_F,BRANCH_8}, arch_sh2_up} bf/s .+8 ;!/* 10001111i8p1.... bf/s <bdisp8> */{"bf/s",{A_BDISP8},{HEX_8,HEX_F,BRANCH_8}, arch_sh2_up} clrmac ;!/* 0000000000101000 clrmac */{"clrmac",{0},{HEX_0,HEX_0,HEX_2,HEX_8}, arch_sh_up} clrs ;!/* 0000000001001000 clrs */{"clrs",{0},{HEX_0,HEX_0,HEX_4,HEX_8}, arch_sh3_nommu_up} clrt ;!/* 0000000000001000 clrt */{"clrt",{0},{HEX_0,HEX_0,HEX_0,HEX_8}, arch_sh_up} cmp/eq #4,R0 ;!/* 10001000i8*1.... cmp/eq #<imm>,R0 */{"cmp/eq",{A_IMM,A_R0},{HEX_8,HEX_8,IMM0_8}, arch_sh_up} cmp/eq r5,r4 ;!/* 0011nnnnmmmm0000 cmp/eq <REG_M>,<REG_N>*/{"cmp/eq",{ A_REG_M,A_REG_N},{HEX_3,REG_N,REG_M,HEX_0}, arch_sh_up} cmp/ge r5,r4 ;!/* 0011nnnnmmmm0011 cmp/ge <REG_M>,<REG_N>*/{"cmp/ge",{ A_REG_M,A_REG_N},{HEX_3,REG_N,REG_M,HEX_3}, arch_sh_up} cmp/gt r5,r4 ;!/* 0011nnnnmmmm0111 cmp/gt <REG_M>,<REG_N>*/{"cmp/gt",{ A_REG_M,A_REG_N},{HEX_3,REG_N,REG_M,HEX_7}, arch_sh_up} cmp/hi r5,r4 ;!/* 0011nnnnmmmm0110 cmp/hi <REG_M>,<REG_N>*/{"cmp/hi",{ A_REG_M,A_REG_N},{HEX_3,REG_N,REG_M,HEX_6}, arch_sh_up} cmp/hs r5,r4 ;!/* 0011nnnnmmmm0010 cmp/hs <REG_M>,<REG_N>*/{"cmp/hs",{ A_REG_M,A_REG_N},{HEX_3,REG_N,REG_M,HEX_2}, arch_sh_up} cmp/pl r4 ;!/* 0100nnnn00010101 cmp/pl <REG_N> */{"cmp/pl",{A_REG_N},{HEX_4,REG_N,HEX_1,HEX_5}, arch_sh_up} cmp/pz r4 ;!/* 0100nnnn00010001 cmp/pz <REG_N> */{"cmp/pz",{A_REG_N},{HEX_4,REG_N,HEX_1,HEX_1}, arch_sh_up} cmp/str r5,r4 ;!/* 0010nnnnmmmm1100 cmp/str <REG_M>,<REG_N>*/{"cmp/str",{ A_REG_M,A_REG_N},{HEX_2,REG_N,REG_M,HEX_C}, arch_sh_up} div0s r5,r4 ;!/* 0010nnnnmmmm0111 div0s <REG_M>,<REG_N>*/{"div0s",{ A_REG_M,A_REG_N},{HEX_2,REG_N,REG_M,HEX_7}, arch_sh_up} div0u ;!/* 0000000000011001 div0u */{"div0u",{0},{HEX_0,HEX_0,HEX_1,HEX_9}, arch_sh_up} div1 r5,r4 ;!/* 0011nnnnmmmm0100 div1 <REG_M>,<REG_N>*/{"div1",{ A_REG_M,A_REG_N},{HEX_3,REG_N,REG_M,HEX_4}, arch_sh_up} exts.b r5,r4 ;!/* 0110nnnnmmmm1110 exts.b <REG_M>,<REG_N>*/{"exts.b",{ A_REG_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_E}, arch_sh_up} exts.w r5,r4 ;!/* 0110nnnnmmmm1111 exts.w <REG_M>,<REG_N>*/{"exts.w",{ A_REG_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_F}, arch_sh_up} extu.b r5,r4 ;!/* 0110nnnnmmmm1100 extu.b <REG_M>,<REG_N>*/{"extu.b",{ A_REG_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_C}, arch_sh_up} extu.w r5,r4 ;!/* 0110nnnnmmmm1101 extu.w <REG_M>,<REG_N>*/{"extu.w",{ A_REG_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_D}, arch_sh_up} icbi @r4 ;!/* 0000nnnn11100011 icbi @<REG_N> */{"icbi",{A_IND_N},{HEX_0,REG_N,HEX_E,HEX_3}, arch_sh4a_nofpu_up} jmp @r4 ;!/* 0100nnnn00101011 jmp @<REG_N> */{"jmp",{A_IND_N},{HEX_4,REG_N,HEX_2,HEX_B}, arch_sh_up} jsr @r4 ;!/* 0100nnnn00001011 jsr @<REG_N> */{"jsr",{A_IND_N},{HEX_4,REG_N,HEX_0,HEX_B}, arch_sh_up} ldc r4,SR ;!/* 0100nnnn00001110 ldc <REG_N>,SR */{"ldc",{A_REG_N,A_SR},{HEX_4,REG_N,HEX_0,HEX_E}, arch_sh_up} ldc r4,GBR ;!/* 0100nnnn00011110 ldc <REG_N>,GBR */{"ldc",{A_REG_N,A_GBR},{HEX_4,REG_N,HEX_1,HEX_E}, arch_sh_up} ldc r4,SGR ;!/* 0100nnnn00111010 ldc <REG_N>,SGR */{"ldc",{A_REG_N,A_SGR},{HEX_4,REG_N,HEX_3,HEX_A}, arch_sh4_nommu_nofpu_up} ldc r4,VBR ;!/* 0100nnnn00101110 ldc <REG_N>,VBR */{"ldc",{A_REG_N,A_VBR},{HEX_4,REG_N,HEX_2,HEX_E}, arch_sh_up} ldc r4,MOD ;!/* 0100nnnn01011110 ldc <REG_N>,MOD */{"ldc",{A_REG_N,A_MOD},{HEX_4,REG_N,HEX_5,HEX_E}, arch_sh_dsp_up} ldc r4,RE ;!/* 0100nnnn01111110 ldc <REG_N>,RE */{"ldc",{A_REG_N,A_RE},{HEX_4,REG_N,HEX_7,HEX_E}, arch_sh_dsp_up} ldc r4,RS ;!/* 0100nnnn01101110 ldc <REG_N>,RS */{"ldc",{A_REG_N,A_RS},{HEX_4,REG_N,HEX_6,HEX_E}, arch_sh_dsp_up} ldc r4,SSR ;!/* 0100nnnn00111110 ldc <REG_N>,SSR */{"ldc",{A_REG_N,A_SSR},{HEX_4,REG_N,HEX_3,HEX_E}, arch_sh3_nommu_up} ldc r4,SPC ;!/* 0100nnnn01001110 ldc <REG_N>,SPC */{"ldc",{A_REG_N,A_SPC},{HEX_4,REG_N,HEX_4,HEX_E}, arch_sh3_nommu_up} ldc r4,DBR ;!/* 0100nnnn11111010 ldc <REG_N>,DBR */{"ldc",{A_REG_N,A_DBR},{HEX_4,REG_N,HEX_F,HEX_A}, arch_sh4_nommu_nofpu_up} ldc r4,r1_bank ;!/* 0100nnnn1xxx1110 ldc <REG_N>,Rn_BANK */{"ldc",{A_REG_N,A_REG_B},{HEX_4,REG_N,REG_B,HEX_E}, arch_sh3_nommu_up} ldc.l @r4+,SR ;!/* 0100nnnn00000111 ldc.l @<REG_N>+,SR */{"ldc.l",{A_INC_N,A_SR},{HEX_4,REG_N,HEX_0,HEX_7}, arch_sh_up} ldc.l @r4+,GBR ;!/* 0100nnnn00010111 ldc.l @<REG_N>+,GBR */{"ldc.l",{A_INC_N,A_GBR},{HEX_4,REG_N,HEX_1,HEX_7}, arch_sh_up} ldc.l @r4+,VBR ;!/* 0100nnnn00100111 ldc.l @<REG_N>+,VBR */{"ldc.l",{A_INC_N,A_VBR},{HEX_4,REG_N,HEX_2,HEX_7}, arch_sh_up} ldc.l @r4+,SGR ;!/* 0100nnnn00110110 ldc.l @<REG_N>+,SGR */{"ldc.l",{A_INC_N,A_SGR},{HEX_4,REG_N,HEX_3,HEX_6}, arch_sh4_nommu_nofpu_up} ldc.l @r4+,MOD ;!/* 0100nnnn01010111 ldc.l @<REG_N>+,MOD */{"ldc.l",{A_INC_N,A_MOD},{HEX_4,REG_N,HEX_5,HEX_7}, arch_sh_dsp_up} ldc.l @r4+,RE ;!/* 0100nnnn01110111 ldc.l @<REG_N>+,RE */{"ldc.l",{A_INC_N,A_RE},{HEX_4,REG_N,HEX_7,HEX_7}, arch_sh_dsp_up} ldc.l @r4+,RS ;!/* 0100nnnn01100111 ldc.l @<REG_N>+,RS */{"ldc.l",{A_INC_N,A_RS},{HEX_4,REG_N,HEX_6,HEX_7}, arch_sh_dsp_up} ldc.l @r4+,SSR ;!/* 0100nnnn00110111 ldc.l @<REG_N>+,SSR */{"ldc.l",{A_INC_N,A_SSR},{HEX_4,REG_N,HEX_3,HEX_7}, arch_sh3_nommu_up} ldc.l @r4+,SPC ;!/* 0100nnnn01000111 ldc.l @<REG_N>+,SPC */{"ldc.l",{A_INC_N,A_SPC},{HEX_4,REG_N,HEX_4,HEX_7}, arch_sh3_nommu_up} ldc.l @r4+,DBR ;!/* 0100nnnn11110110 ldc.l @<REG_N>+,DBR */{"ldc.l",{A_INC_N,A_DBR},{HEX_4,REG_N,HEX_F,HEX_6}, arch_sh4_nommu_nofpu_up} ldc.l @r4+,r1_bank ;!/* 0100nnnn1xxx0111 ldc.l @<REG_N>+,Rn_BANK */{"ldc.l",{A_INC_N,A_REG_B},{HEX_4,REG_N,REG_B,HEX_7}, arch_sh3_nommu_up} ldre @(8,PC) ;!/* 10001110i8p2.... ldre @(<disp>,PC) */{"ldre",{A_DISP_PC},{HEX_8,HEX_E,PCRELIMM_8BY2}, arch_sh_dsp_up} ldrs @(8,PC) ;!/* 10001100i8p2.... ldrs @(<disp>,PC) */{"ldrs",{A_DISP_PC},{HEX_8,HEX_C,PCRELIMM_8BY2}, arch_sh_dsp_up} lds r4,MACH ;!/* 0100nnnn00001010 lds <REG_N>,MACH */{"lds",{A_REG_N,A_MACH},{HEX_4,REG_N,HEX_0,HEX_A}, arch_sh_up} lds r4,MACL ;!/* 0100nnnn00011010 lds <REG_N>,MACL */{"lds",{A_REG_N,A_MACL},{HEX_4,REG_N,HEX_1,HEX_A}, arch_sh_up} lds r4,PR ;!/* 0100nnnn00101010 lds <REG_N>,PR */{"lds",{A_REG_N,A_PR},{HEX_4,REG_N,HEX_2,HEX_A}, arch_sh_up} lds r4,DSR ;!/* 0100nnnn01101010 lds <REG_N>,DSR */{"lds",{A_REG_N,A_DSR},{HEX_4,REG_N,HEX_6,HEX_A}, arch_sh_dsp_up} lds r4,A0 ;!/* 0100nnnn01111010 lds <REG_N>,A0 */{"lds",{A_REG_N,A_A0},{HEX_4,REG_N,HEX_7,HEX_A}, arch_sh_dsp_up} lds r4,X0 ;!/* 0100nnnn10001010 lds <REG_N>,X0 */{"lds",{A_REG_N,A_X0},{HEX_4,REG_N,HEX_8,HEX_A}, arch_sh_dsp_up} lds r4,X1 ;!/* 0100nnnn10011010 lds <REG_N>,X1 */{"lds",{A_REG_N,A_X1},{HEX_4,REG_N,HEX_9,HEX_A}, arch_sh_dsp_up} lds r4,Y0 ;!/* 0100nnnn10101010 lds <REG_N>,Y0 */{"lds",{A_REG_N,A_Y0},{HEX_4,REG_N,HEX_A,HEX_A}, arch_sh_dsp_up} lds r4,Y1 ;!/* 0100nnnn10111010 lds <REG_N>,Y1 */{"lds",{A_REG_N,A_Y1},{HEX_4,REG_N,HEX_B,HEX_A}, arch_sh_dsp_up} lds.l @r4+,MACH ;!/* 0100nnnn00000110 lds.l @<REG_N>+,MACH*/{"lds.l",{A_INC_N,A_MACH},{HEX_4,REG_N,HEX_0,HEX_6}, arch_sh_up} lds.l @r4+,MACL ;!/* 0100nnnn00010110 lds.l @<REG_N>+,MACL*/{"lds.l",{A_INC_N,A_MACL},{HEX_4,REG_N,HEX_1,HEX_6}, arch_sh_up} lds.l @r4+,PR ;!/* 0100nnnn00100110 lds.l @<REG_N>+,PR */{"lds.l",{A_INC_N,A_PR},{HEX_4,REG_N,HEX_2,HEX_6}, arch_sh_up} lds.l @r4+,DSR ;!/* 0100nnnn01100110 lds.l @<REG_N>+,DSR */{"lds.l",{A_INC_N,A_DSR},{HEX_4,REG_N,HEX_6,HEX_6}, arch_sh_dsp_up} lds.l @r4+,A0 ;!/* 0100nnnn01110110 lds.l @<REG_N>+,A0 */{"lds.l",{A_INC_N,A_A0},{HEX_4,REG_N,HEX_7,HEX_6}, arch_sh_dsp_up} lds.l @r4+,X0 ;!/* 0100nnnn10000110 lds.l @<REG_N>+,X0 */{"lds.l",{A_INC_N,A_X0},{HEX_4,REG_N,HEX_8,HEX_6}, arch_sh_dsp_up} lds.l @r4+,X1 ;!/* 0100nnnn10010110 lds.l @<REG_N>+,X1 */{"lds.l",{A_INC_N,A_X1},{HEX_4,REG_N,HEX_9,HEX_6}, arch_sh_dsp_up} lds.l @r4+,Y0 ;!/* 0100nnnn10100110 lds.l @<REG_N>+,Y0 */{"lds.l",{A_INC_N,A_Y0},{HEX_4,REG_N,HEX_A,HEX_6}, arch_sh_dsp_up} lds.l @r4+,Y1 ;!/* 0100nnnn10110110 lds.l @<REG_N>+,Y1 */{"lds.l",{A_INC_N,A_Y1},{HEX_4,REG_N,HEX_B,HEX_6}, arch_sh_dsp_up} ldtlb ;!/* 0000000000111000 ldtlb */{"ldtlb",{0},{HEX_0,HEX_0,HEX_3,HEX_8}, arch_sh3_up} mac.w @r5+,@r4+ ;!/* 0100nnnnmmmm1111 mac.w @<REG_M>+,@<REG_N>+*/{"mac.w",{A_INC_M,A_INC_N},{HEX_4,REG_N,REG_M,HEX_F}, arch_sh_up} mov #4,r4 ;!/* 1110nnnni8*1.... mov #<imm>,<REG_N> */{"mov",{A_IMM,A_REG_N},{HEX_E,REG_N,IMM0_8}, arch_sh_up} mov r5,r4 ;!/* 0110nnnnmmmm0011 mov <REG_M>,<REG_N> */{"mov",{ A_REG_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_3}, arch_sh_up} mov.b r5,@(R0,r4) ;!/* 0000nnnnmmmm0100 mov.b <REG_M>,@(R0,<REG_N>)*/{"mov.b",{ A_REG_M,A_IND_R0_REG_N},{HEX_0,REG_N,REG_M,HEX_4}, arch_sh_up} mov.b r5,@-r4 ;!/* 0010nnnnmmmm0100 mov.b <REG_M>,@-<REG_N>*/{"mov.b",{ A_REG_M,A_DEC_N},{HEX_2,REG_N,REG_M,HEX_4}, arch_sh_up} mov.b r5,@r4 ;!/* 0010nnnnmmmm0000 mov.b <REG_M>,@<REG_N>*/{"mov.b",{ A_REG_M,A_IND_N},{HEX_2,REG_N,REG_M,HEX_0}, arch_sh_up} mov.b @(8,r5),R0 ;!/* 10000100mmmmi4*1 mov.b @(<disp>,<REG_M>),R0*/{"mov.b",{A_DISP_REG_M,A_R0},{HEX_8,HEX_4,REG_M,IMM0_4}, arch_sh_up} mov.b @(8,GBR),R0 ;!/* 11000100i8*1.... mov.b @(<disp>,GBR),R0*/{"mov.b",{A_DISP_GBR,A_R0},{HEX_C,HEX_4,IMM0_8}, arch_sh_up} mov.b @(R0,r5),r4 ;!/* 0000nnnnmmmm1100 mov.b @(R0,<REG_M>),<REG_N>*/{"mov.b",{A_IND_R0_REG_M,A_REG_N},{HEX_0,REG_N,REG_M,HEX_C}, arch_sh_up} mov.b @r5+,r4 ;!/* 0110nnnnmmmm0100 mov.b @<REG_M>+,<REG_N>*/{"mov.b",{A_INC_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_4}, arch_sh_up} mov.b @r5,r4 ;!/* 0110nnnnmmmm0000 mov.b @<REG_M>,<REG_N>*/{"mov.b",{A_IND_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_0}, arch_sh_up} mov.b R0,@(8,r5) ;!/* 10000000mmmmi4*1 mov.b R0,@(<disp>,<REG_M>)*/{"mov.b",{A_R0,A_DISP_REG_M},{HEX_8,HEX_0,REG_M,IMM1_4}, arch_sh_up} mov.b R0,@(8,GBR) ;!/* 11000000i8*1.... mov.b R0,@(<disp>,GBR)*/{"mov.b",{A_R0,A_DISP_GBR},{HEX_C,HEX_0,IMM1_8}, arch_sh_up} mov.l r5,@(8,r4) ;!/* 0001nnnnmmmmi4*4 mov.l <REG_M>,@(<disp>,<REG_N>)*/{"mov.l",{ A_REG_M,A_DISP_REG_N},{HEX_1,REG_N,REG_M,IMM1_4BY4}, arch_sh_up} mov.l r5,@(R0,r4) ;!/* 0000nnnnmmmm0110 mov.l <REG_M>,@(R0,<REG_N>)*/{"mov.l",{ A_REG_M,A_IND_R0_REG_N},{HEX_0,REG_N,REG_M,HEX_6}, arch_sh_up} mov.l r5,@-r4 ;!/* 0010nnnnmmmm0110 mov.l <REG_M>,@-<REG_N>*/{"mov.l",{ A_REG_M,A_DEC_N},{HEX_2,REG_N,REG_M,HEX_6}, arch_sh_up} mov.l r5,@r4 ;!/* 0010nnnnmmmm0010 mov.l <REG_M>,@<REG_N>*/{"mov.l",{ A_REG_M,A_IND_N},{HEX_2,REG_N,REG_M,HEX_2}, arch_sh_up} mov.l @(8,r5),r4 ;!/* 0101nnnnmmmmi4*4 mov.l @(<disp>,<REG_M>),<REG_N>*/{"mov.l",{A_DISP_REG_M,A_REG_N},{HEX_5,REG_N,REG_M,IMM0_4BY4}, arch_sh_up} mov.l @(8,GBR),R0 ;!/* 11000110i8*4.... mov.l @(<disp>,GBR),R0*/{"mov.l",{A_DISP_GBR,A_R0},{HEX_C,HEX_6,IMM0_8BY4}, arch_sh_up} .align 2 mov.l @(8,PC),r4 ;!/* 1101nnnni8p4.... mov.l @(<disp>,PC),<REG_N>*/{"mov.l",{A_DISP_PC,A_REG_N},{HEX_D,REG_N,PCRELIMM_8BY4}, arch_sh_up} mov.l @(R0,r5),r4 ;!/* 0000nnnnmmmm1110 mov.l @(R0,<REG_M>),<REG_N>*/{"mov.l",{A_IND_R0_REG_M,A_REG_N},{HEX_0,REG_N,REG_M,HEX_E}, arch_sh_up} mov.l @r5+,r4 ;!/* 0110nnnnmmmm0110 mov.l @<REG_M>+,<REG_N>*/{"mov.l",{A_INC_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_6}, arch_sh_up} mov.l @r5,r4 ;!/* 0110nnnnmmmm0010 mov.l @<REG_M>,<REG_N>*/{"mov.l",{A_IND_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_2}, arch_sh_up} mov.l R0,@(8,GBR) ;!/* 11000010i8*4.... mov.l R0,@(<disp>,GBR)*/{"mov.l",{A_R0,A_DISP_GBR},{HEX_C,HEX_2,IMM1_8BY4}, arch_sh_up} mov.w r5,@(R0,r4) ;!/* 0000nnnnmmmm0101 mov.w <REG_M>,@(R0,<REG_N>)*/{"mov.w",{ A_REG_M,A_IND_R0_REG_N},{HEX_0,REG_N,REG_M,HEX_5}, arch_sh_up} mov.w r5,@-r4 ;!/* 0010nnnnmmmm0101 mov.w <REG_M>,@-<REG_N>*/{"mov.w",{ A_REG_M,A_DEC_N},{HEX_2,REG_N,REG_M,HEX_5}, arch_sh_up} mov.w r5,@r4 ;!/* 0010nnnnmmmm0001 mov.w <REG_M>,@<REG_N>*/{"mov.w",{ A_REG_M,A_IND_N},{HEX_2,REG_N,REG_M,HEX_1}, arch_sh_up} mov.w @(8,r5),R0 ;!/* 10000101mmmmi4*2 mov.w @(<disp>,<REG_M>),R0*/{"mov.w",{A_DISP_REG_M,A_R0},{HEX_8,HEX_5,REG_M,IMM0_4BY2}, arch_sh_up} mov.w @(8,GBR),R0 ;!/* 11000101i8*2.... mov.w @(<disp>,GBR),R0*/{"mov.w",{A_DISP_GBR,A_R0},{HEX_C,HEX_5,IMM0_8BY2}, arch_sh_up} mov.w @(8,PC),r4 ;!/* 1001nnnni8p2.... mov.w @(<disp>,PC),<REG_N>*/{"mov.w",{A_DISP_PC,A_REG_N},{HEX_9,REG_N,PCRELIMM_8BY2}, arch_sh_up} mov.w @(R0,r5),r4 ;!/* 0000nnnnmmmm1101 mov.w @(R0,<REG_M>),<REG_N>*/{"mov.w",{A_IND_R0_REG_M,A_REG_N},{HEX_0,REG_N,REG_M,HEX_D}, arch_sh_up} mov.w @r5+,r4 ;!/* 0110nnnnmmmm0101 mov.w @<REG_M>+,<REG_N>*/{"mov.w",{A_INC_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_5}, arch_sh_up} mov.w @r5,r4 ;!/* 0110nnnnmmmm0001 mov.w @<REG_M>,<REG_N>*/{"mov.w",{A_IND_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_1}, arch_sh_up} mov.w R0,@(8,r5) ;!/* 10000001mmmmi4*2 mov.w R0,@(<disp>,<REG_M>)*/{"mov.w",{A_R0,A_DISP_REG_M},{HEX_8,HEX_1,REG_M,IMM1_4BY2}, arch_sh_up} mov.w R0,@(8,GBR) ;!/* 11000001i8*2.... mov.w R0,@(<disp>,GBR)*/{"mov.w",{A_R0,A_DISP_GBR},{HEX_C,HEX_1,IMM1_8BY2}, arch_sh_up} .align 2 mova @(8,PC),R0 ;!/* 11000111i8p4.... mova @(<disp>,PC),R0*/{"mova",{A_DISP_PC,A_R0},{HEX_C,HEX_7,PCRELIMM_8BY4}, arch_sh_up} movca.l R0,@r4 ;!/* 0000nnnn11000011 movca.l R0,@<REG_N> */{"movca.l",{A_R0,A_IND_N},{HEX_0,REG_N,HEX_C,HEX_3}, arch_sh4_nommu_nofpu_up} movco.l r0,@r4 ;!/* 0000nnnn01110011 movco.l r0,@<REG_N> */{"movco.l",{A_R0,A_IND_N},{HEX_0,REG_N,HEX_7,HEX_3}, arch_sh4a_nofpu_up} movli.l @r5,r0 ;!/* 0000mmmm01100011 movli.l @<REG_M>,r0 */{"movli.l",{A_IND_M,A_R0},{HEX_0,REG_M,HEX_6,HEX_3}, arch_sh4a_nofpu_up} movt r4 ;!/* 0000nnnn00101001 movt <REG_N> */{"movt",{A_REG_N},{HEX_0,REG_N,HEX_2,HEX_9}, arch_sh_up} movua.l @r5,r0 ;!/* 0100mmmm10101001 movua.l @<REG_M>,r0 */{"movua.l",{A_IND_M,A_R0},{HEX_4,REG_M,HEX_A,HEX_9}, arch_sh4a_nofpu_up} movua.l @r5+,r0 ;!/* 0100mmmm11101001 movua.l @<REG_M>+,r0 */{"movua.l",{A_INC_M,A_R0},{HEX_4,REG_M,HEX_E,HEX_9}, arch_sh4a_nofpu_up} muls.w r5,r4 ;!/* 0010nnnnmmmm1111 muls.w <REG_M>,<REG_N>*/{"muls.w",{ A_REG_M,A_REG_N},{HEX_2,REG_N,REG_M,HEX_F}, arch_sh_up} muls r5,r4 ;!/* 0010nnnnmmmm1111 muls <REG_M>,<REG_N>*/{"muls",{ A_REG_M,A_REG_N},{HEX_2,REG_N,REG_M,HEX_F}, arch_sh_up} mul.l r5,r4 ;!/* 0000nnnnmmmm0111 mul.l <REG_M>,<REG_N>*/{"mul.l",{ A_REG_M,A_REG_N},{HEX_0,REG_N,REG_M,HEX_7}, arch_sh2_up} mulu.w r5,r4 ;!/* 0010nnnnmmmm1110 mulu.w <REG_M>,<REG_N>*/{"mulu.w",{ A_REG_M,A_REG_N},{HEX_2,REG_N,REG_M,HEX_E}, arch_sh_up} mulu r5,r4 ;!/* 0010nnnnmmmm1110 mulu <REG_M>,<REG_N>*/{"mulu",{ A_REG_M,A_REG_N},{HEX_2,REG_N,REG_M,HEX_E}, arch_sh_up} neg r5,r4 ;!/* 0110nnnnmmmm1011 neg <REG_M>,<REG_N> */{"neg",{ A_REG_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_B}, arch_sh_up} negc r5,r4 ;!/* 0110nnnnmmmm1010 negc <REG_M>,<REG_N>*/{"negc",{ A_REG_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_A}, arch_sh_up} nop ;!/* 0000000000001001 nop */{"nop",{0},{HEX_0,HEX_0,HEX_0,HEX_9}, arch_sh_up} not r5,r4 ;!/* 0110nnnnmmmm0111 not <REG_M>,<REG_N> */{"not",{ A_REG_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_7}, arch_sh_up} ocbi @r4 ;!/* 0000nnnn10010011 ocbi @<REG_N> */{"ocbi",{A_IND_N},{HEX_0,REG_N,HEX_9,HEX_3}, arch_sh4_nommu_nofpu_up} ocbp @r4 ;!/* 0000nnnn10100011 ocbp @<REG_N> */{"ocbp",{A_IND_N},{HEX_0,REG_N,HEX_A,HEX_3}, arch_sh4_nommu_nofpu_up} ocbwb @r4 ;!/* 0000nnnn10110011 ocbwb @<REG_N> */{"ocbwb",{A_IND_N},{HEX_0,REG_N,HEX_B,HEX_3}, arch_sh4_nommu_nofpu_up} or #4,R0 ;!/* 11001011i8*1.... or #<imm>,R0 */{"or",{A_IMM,A_R0},{HEX_C,HEX_B,IMM0_8}, arch_sh_up} or r5,r4 ;!/* 0010nnnnmmmm1011 or <REG_M>,<REG_N> */{"or",{ A_REG_M,A_REG_N},{HEX_2,REG_N,REG_M,HEX_B}, arch_sh_up} or.b #4,@(R0,GBR) ;!/* 11001111i8*1.... or.b #<imm>,@(R0,GBR)*/{"or.b",{A_IMM,A_R0_GBR},{HEX_C,HEX_F,IMM0_8}, arch_sh_up} pref @r4 ;!/* 0000nnnn10000011 pref @<REG_N> */{"pref",{A_IND_N},{HEX_0,REG_N,HEX_8,HEX_3}, arch_sh2a_nofpu_or_sh3_nommu_up} prefi @r4 ;!/* 0000nnnn11010011 prefi @<REG_N> */{"prefi",{A_IND_N},{HEX_0,REG_N,HEX_D,HEX_3}, arch_sh4a_nofpu_up} rotcl r4 ;!/* 0100nnnn00100100 rotcl <REG_N> */{"rotcl",{A_REG_N},{HEX_4,REG_N,HEX_2,HEX_4}, arch_sh_up} rotcr r4 ;!/* 0100nnnn00100101 rotcr <REG_N> */{"rotcr",{A_REG_N},{HEX_4,REG_N,HEX_2,HEX_5}, arch_sh_up} rotl r4 ;!/* 0100nnnn00000100 rotl <REG_N> */{"rotl",{A_REG_N},{HEX_4,REG_N,HEX_0,HEX_4}, arch_sh_up} rotr r4 ;!/* 0100nnnn00000101 rotr <REG_N> */{"rotr",{A_REG_N},{HEX_4,REG_N,HEX_0,HEX_5}, arch_sh_up} rte ;!/* 0000000000101011 rte */{"rte",{0},{HEX_0,HEX_0,HEX_2,HEX_B}, arch_sh_up} rts ;!/* 0000000000001011 rts */{"rts",{0},{HEX_0,HEX_0,HEX_0,HEX_B}, arch_sh_up} sets ;!/* 0000000001011000 sets */{"sets",{0},{HEX_0,HEX_0,HEX_5,HEX_8}, arch_sh3_nommu_up} sett ;!/* 0000000000011000 sett */{"sett",{0},{HEX_0,HEX_0,HEX_1,HEX_8}, arch_sh_up} setrc r4 ;!/* 0100nnnn00010100 setrc <REG_N> */{"setrc",{A_REG_N},{HEX_4,REG_N,HEX_1,HEX_4}, arch_sh_dsp_up} setrc #4 ;!/* 10000010i8*1.... setrc #<imm> */{"setrc",{A_IMM},{HEX_8,HEX_2,IMM0_8}, arch_sh_dsp_up} repeat 10 20 r4 ;!/* repeat start end <REG_N> */{"repeat",{A_DISP_PC,A_DISP_PC,A_REG_N},{REPEAT,REG_N,HEX_1,HEX_4}, arch_sh_dsp_up} repeat 10 20 #4 ;!/* repeat start end #<imm> */{"repeat",{A_DISP_PC,A_DISP_PC,A_IMM},{REPEAT,HEX_2,IMM0_8,HEX_8}, arch_sh_dsp_up} shad r5,r4 ;!/* 0100nnnnmmmm1100 shad <REG_M>,<REG_N>*/{"shad",{ A_REG_M,A_REG_N},{HEX_4,REG_N,REG_M,HEX_C}, arch_sh2a_nofpu_or_sh3_nommu_up} shld r5,r4 ;!/* 0100nnnnmmmm1101 shld <REG_M>,<REG_N>*/{"shld",{ A_REG_M,A_REG_N},{HEX_4,REG_N,REG_M,HEX_D}, arch_sh2a_nofpu_or_sh3_nommu_up} shal r4 ;!/* 0100nnnn00100000 shal <REG_N> */{"shal",{A_REG_N},{HEX_4,REG_N,HEX_2,HEX_0}, arch_sh_up} shar r4 ;!/* 0100nnnn00100001 shar <REG_N> */{"shar",{A_REG_N},{HEX_4,REG_N,HEX_2,HEX_1}, arch_sh_up} shll r4 ;!/* 0100nnnn00000000 shll <REG_N> */{"shll",{A_REG_N},{HEX_4,REG_N,HEX_0,HEX_0}, arch_sh_up} shll16 r4 ;!/* 0100nnnn00101000 shll16 <REG_N> */{"shll16",{A_REG_N},{HEX_4,REG_N,HEX_2,HEX_8}, arch_sh_up} shll2 r4 ;!/* 0100nnnn00001000 shll2 <REG_N> */{"shll2",{A_REG_N},{HEX_4,REG_N,HEX_0,HEX_8}, arch_sh_up} shll8 r4 ;!/* 0100nnnn00011000 shll8 <REG_N> */{"shll8",{A_REG_N},{HEX_4,REG_N,HEX_1,HEX_8}, arch_sh_up} shlr r4 ;!/* 0100nnnn00000001 shlr <REG_N> */{"shlr",{A_REG_N},{HEX_4,REG_N,HEX_0,HEX_1}, arch_sh_up} shlr16 r4 ;!/* 0100nnnn00101001 shlr16 <REG_N> */{"shlr16",{A_REG_N},{HEX_4,REG_N,HEX_2,HEX_9}, arch_sh_up} shlr2 r4 ;!/* 0100nnnn00001001 shlr2 <REG_N> */{"shlr2",{A_REG_N},{HEX_4,REG_N,HEX_0,HEX_9}, arch_sh_up} shlr8 r4 ;!/* 0100nnnn00011001 shlr8 <REG_N> */{"shlr8",{A_REG_N},{HEX_4,REG_N,HEX_1,HEX_9}, arch_sh_up} sleep ;!/* 0000000000011011 sleep */{"sleep",{0},{HEX_0,HEX_0,HEX_1,HEX_B}, arch_sh_up} stc SR,r4 ;!/* 0000nnnn00000010 stc SR,<REG_N> */{"stc",{A_SR,A_REG_N},{HEX_0,REG_N,HEX_0,HEX_2}, arch_sh_up} stc GBR,r4 ;!/* 0000nnnn00010010 stc GBR,<REG_N> */{"stc",{A_GBR,A_REG_N},{HEX_0,REG_N,HEX_1,HEX_2}, arch_sh_up} stc VBR,r4 ;!/* 0000nnnn00100010 stc VBR,<REG_N> */{"stc",{A_VBR,A_REG_N},{HEX_0,REG_N,HEX_2,HEX_2}, arch_sh_up} stc MOD,r4 ;!/* 0000nnnn01010010 stc MOD,<REG_N> */{"stc",{A_MOD,A_REG_N},{HEX_0,REG_N,HEX_5,HEX_2}, arch_sh_dsp_up} stc RE,r4 ;!/* 0000nnnn01110010 stc RE,<REG_N> */{"stc",{A_RE,A_REG_N},{HEX_0,REG_N,HEX_7,HEX_2}, arch_sh_dsp_up} stc RS,r4 ;!/* 0000nnnn01100010 stc RS,<REG_N> */{"stc",{A_RS,A_REG_N},{HEX_0,REG_N,HEX_6,HEX_2}, arch_sh_dsp_up} stc SSR,r4 ;!/* 0000nnnn00110010 stc SSR,<REG_N> */{"stc",{A_SSR,A_REG_N},{HEX_0,REG_N,HEX_3,HEX_2}, arch_sh3_nommu_up} stc SPC,r4 ;!/* 0000nnnn01000010 stc SPC,<REG_N> */{"stc",{A_SPC,A_REG_N},{HEX_0,REG_N,HEX_4,HEX_2}, arch_sh3_nommu_up} stc SGR,r4 ;!/* 0000nnnn00111010 stc SGR,<REG_N> */{"stc",{A_SGR,A_REG_N},{HEX_0,REG_N,HEX_3,HEX_A}, arch_sh4_nommu_nofpu_up} stc DBR,r4 ;!/* 0000nnnn11111010 stc DBR,<REG_N> */{"stc",{A_DBR,A_REG_N},{HEX_0,REG_N,HEX_F,HEX_A}, arch_sh4_nommu_nofpu_up} stc r1_bank,r4 ;!/* 0000nnnn1xxx0010 stc Rn_BANK,<REG_N> */{"stc",{A_REG_B,A_REG_N},{HEX_0,REG_N,REG_B,HEX_2}, arch_sh3_nommu_up} stc.l SR,@-r4 ;!/* 0100nnnn00000011 stc.l SR,@-<REG_N> */{"stc.l",{A_SR,A_DEC_N},{HEX_4,REG_N,HEX_0,HEX_3}, arch_sh_up} stc.l VBR,@-r4 ;!/* 0100nnnn00100011 stc.l VBR,@-<REG_N> */{"stc.l",{A_VBR,A_DEC_N},{HEX_4,REG_N,HEX_2,HEX_3}, arch_sh_up} stc.l MOD,@-r4 ;!/* 0100nnnn01010011 stc.l MOD,@-<REG_N> */{"stc.l",{A_MOD,A_DEC_N},{HEX_4,REG_N,HEX_5,HEX_3}, arch_sh_dsp_up} stc.l RE,@-r4 ;!/* 0100nnnn01110011 stc.l RE,@-<REG_N> */{"stc.l",{A_RE,A_DEC_N},{HEX_4,REG_N,HEX_7,HEX_3}, arch_sh_dsp_up} stc.l RS,@-r4 ;!/* 0100nnnn01100011 stc.l RS,@-<REG_N> */{"stc.l",{A_RS,A_DEC_N},{HEX_4,REG_N,HEX_6,HEX_3}, arch_sh_dsp_up} stc.l SSR,@-r4 ;!/* 0100nnnn00110011 stc.l SSR,@-<REG_N> */{"stc.l",{A_SSR,A_DEC_N},{HEX_4,REG_N,HEX_3,HEX_3}, arch_sh3_nommu_up} stc.l SPC,@-r4 ;!/* 0100nnnn01000011 stc.l SPC,@-<REG_N> */{"stc.l",{A_SPC,A_DEC_N},{HEX_4,REG_N,HEX_4,HEX_3}, arch_sh3_nommu_up} stc.l GBR,@-r4 ;!/* 0100nnnn00010011 stc.l GBR,@-<REG_N> */{"stc.l",{A_GBR,A_DEC_N},{HEX_4,REG_N,HEX_1,HEX_3}, arch_sh_up} stc.l SGR,@-r4 ;!/* 0100nnnn00110010 stc.l SGR,@-<REG_N> */{"stc.l",{A_SGR,A_DEC_N},{HEX_4,REG_N,HEX_3,HEX_2}, arch_sh4_nommu_nofpu_up} stc.l DBR,@-r4 ;!/* 0100nnnn11110010 stc.l DBR,@-<REG_N> */{"stc.l",{A_DBR,A_DEC_N},{HEX_4,REG_N,HEX_F,HEX_2}, arch_sh4_nommu_nofpu_up} stc.l r1_bank,@-r4 ;!/* 0100nnnn1xxx0011 stc.l Rn_BANK,@-<REG_N> */{"stc.l",{A_REG_B,A_DEC_N},{HEX_4,REG_N,REG_B,HEX_3}, arch_sh3_nommu_up} sts MACH,r4 ;!/* 0000nnnn00001010 sts MACH,<REG_N> */{"sts",{A_MACH,A_REG_N},{HEX_0,REG_N,HEX_0,HEX_A}, arch_sh_up} sts MACL,r4 ;!/* 0000nnnn00011010 sts MACL,<REG_N> */{"sts",{A_MACL,A_REG_N},{HEX_0,REG_N,HEX_1,HEX_A}, arch_sh_up} sts PR,r4 ;!/* 0000nnnn00101010 sts PR,<REG_N> */{"sts",{A_PR,A_REG_N},{HEX_0,REG_N,HEX_2,HEX_A}, arch_sh_up} sts DSR,r4 ;!/* 0000nnnn01101010 sts DSR,<REG_N> */{"sts",{A_DSR,A_REG_N},{HEX_0,REG_N,HEX_6,HEX_A}, arch_sh_dsp_up} sts A0,r4 ;!/* 0000nnnn01111010 sts A0,<REG_N> */{"sts",{A_A0,A_REG_N},{HEX_0,REG_N,HEX_7,HEX_A}, arch_sh_dsp_up} sts X0,r4 ;!/* 0000nnnn10001010 sts X0,<REG_N> */{"sts",{A_X0,A_REG_N},{HEX_0,REG_N,HEX_8,HEX_A}, arch_sh_dsp_up} sts X1,r4 ;!/* 0000nnnn10011010 sts X1,<REG_N> */{"sts",{A_X1,A_REG_N},{HEX_0,REG_N,HEX_9,HEX_A}, arch_sh_dsp_up} sts Y0,r4 ;!/* 0000nnnn10101010 sts Y0,<REG_N> */{"sts",{A_Y0,A_REG_N},{HEX_0,REG_N,HEX_A,HEX_A}, arch_sh_dsp_up} sts Y1,r4 ;!/* 0000nnnn10111010 sts Y1,<REG_N> */{"sts",{A_Y1,A_REG_N},{HEX_0,REG_N,HEX_B,HEX_A}, arch_sh_dsp_up} sts.l MACH,@-r4 ;!/* 0100nnnn00000010 sts.l MACH,@-<REG_N>*/{"sts.l",{A_MACH,A_DEC_N},{HEX_4,REG_N,HEX_0,HEX_2}, arch_sh_up} sts.l MACL,@-r4 ;!/* 0100nnnn00010010 sts.l MACL,@-<REG_N>*/{"sts.l",{A_MACL,A_DEC_N},{HEX_4,REG_N,HEX_1,HEX_2}, arch_sh_up} sts.l PR,@-r4 ;!/* 0100nnnn00100010 sts.l PR,@-<REG_N> */{"sts.l",{A_PR,A_DEC_N},{HEX_4,REG_N,HEX_2,HEX_2}, arch_sh_up} sts.l DSR,@-r4 ;!/* 0100nnnn01100110 sts.l DSR,@-<REG_N> */{"sts.l",{A_DSR,A_DEC_N},{HEX_4,REG_N,HEX_6,HEX_2}, arch_sh_dsp_up} sts.l A0,@-r4 ;!/* 0100nnnn01110110 sts.l A0,@-<REG_N> */{"sts.l",{A_A0,A_DEC_N},{HEX_4,REG_N,HEX_7,HEX_2}, arch_sh_dsp_up} sts.l X0,@-r4 ;!/* 0100nnnn10000110 sts.l X0,@-<REG_N> */{"sts.l",{A_X0,A_DEC_N},{HEX_4,REG_N,HEX_8,HEX_2}, arch_sh_dsp_up} sts.l X1,@-r4 ;!/* 0100nnnn10010110 sts.l X1,@-<REG_N> */{"sts.l",{A_X1,A_DEC_N},{HEX_4,REG_N,HEX_9,HEX_2}, arch_sh_dsp_up} sts.l Y0,@-r4 ;!/* 0100nnnn10100110 sts.l Y0,@-<REG_N> */{"sts.l",{A_Y0,A_DEC_N},{HEX_4,REG_N,HEX_A,HEX_2}, arch_sh_dsp_up} sts.l Y1,@-r4 ;!/* 0100nnnn10110110 sts.l Y1,@-<REG_N> */{"sts.l",{A_Y1,A_DEC_N},{HEX_4,REG_N,HEX_B,HEX_2}, arch_sh_dsp_up} sub r5,r4 ;!/* 0011nnnnmmmm1000 sub <REG_M>,<REG_N> */{"sub",{ A_REG_M,A_REG_N},{HEX_3,REG_N,REG_M,HEX_8}, arch_sh_up} subc r5,r4 ;!/* 0011nnnnmmmm1010 subc <REG_M>,<REG_N>*/{"subc",{ A_REG_M,A_REG_N},{HEX_3,REG_N,REG_M,HEX_A}, arch_sh_up} subv r5,r4 ;!/* 0011nnnnmmmm1011 subv <REG_M>,<REG_N>*/{"subv",{ A_REG_M,A_REG_N},{HEX_3,REG_N,REG_M,HEX_B}, arch_sh_up} swap.b r5,r4 ;!/* 0110nnnnmmmm1000 swap.b <REG_M>,<REG_N>*/{"swap.b",{ A_REG_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_8}, arch_sh_up} swap.w r5,r4 ;!/* 0110nnnnmmmm1001 swap.w <REG_M>,<REG_N>*/{"swap.w",{ A_REG_M,A_REG_N},{HEX_6,REG_N,REG_M,HEX_9}, arch_sh_up} synco ;!/* 0000000010101011 synco */{"synco",{0},{HEX_0,HEX_0,HEX_A,HEX_B}, arch_sh4a_nofpu_up} tas.b @r4 ;!/* 0100nnnn00011011 tas.b @<REG_N> */{"tas.b",{A_IND_N},{HEX_4,REG_N,HEX_1,HEX_B}, arch_sh_up} trapa #4 ;!/* 11000011i8*1.... trapa #<imm> */{"trapa",{A_IMM},{HEX_C,HEX_3,IMM0_8}, arch_sh_up} tst #4,R0 ;!/* 11001000i8*1.... tst #<imm>,R0 */{"tst",{A_IMM,A_R0},{HEX_C,HEX_8,IMM0_8}, arch_sh_up} tst r5,r4 ;!/* 0010nnnnmmmm1000 tst <REG_M>,<REG_N> */{"tst",{ A_REG_M,A_REG_N},{HEX_2,REG_N,REG_M,HEX_8}, arch_sh_up} tst.b #4,@(R0,GBR) ;!/* 11001100i8*1.... tst.b #<imm>,@(R0,GBR)*/{"tst.b",{A_IMM,A_R0_GBR},{HEX_C,HEX_C,IMM0_8}, arch_sh_up} xor #4,R0 ;!/* 11001010i8*1.... xor #<imm>,R0 */{"xor",{A_IMM,A_R0},{HEX_C,HEX_A,IMM0_8}, arch_sh_up} xor r5,r4 ;!/* 0010nnnnmmmm1010 xor <REG_M>,<REG_N> */{"xor",{ A_REG_M,A_REG_N},{HEX_2,REG_N,REG_M,HEX_A}, arch_sh_up} xor.b #4,@(R0,GBR) ;!/* 11001110i8*1.... xor.b #<imm>,@(R0,GBR)*/{"xor.b",{A_IMM,A_R0_GBR},{HEX_C,HEX_E,IMM0_8}, arch_sh_up} xtrct r5,r4 ;!/* 0010nnnnmmmm1101 xtrct <REG_M>,<REG_N>*/{"xtrct",{ A_REG_M,A_REG_N},{HEX_2,REG_N,REG_M,HEX_D}, arch_sh_up} dt r4 ;!/* 0100nnnn00010000 dt <REG_N> */{"dt",{A_REG_N},{HEX_4,REG_N,HEX_1,HEX_0}, arch_sh2_up} dmuls.l r5,r4 ;!/* 0011nnnnmmmm1101 dmuls.l <REG_M>,<REG_N>*/{"dmuls.l",{ A_REG_M,A_REG_N},{HEX_3,REG_N,REG_M,HEX_D}, arch_sh2_up} dmulu.l r5,r4 ;!/* 0011nnnnmmmm0101 dmulu.l <REG_M>,<REG_N>*/{"dmulu.l",{ A_REG_M,A_REG_N},{HEX_3,REG_N,REG_M,HEX_5}, arch_sh2_up} mac.l @r5+,@r4+ ;!/* 0000nnnnmmmm1111 mac.l @<REG_M>+,@<REG_N>+*/{"mac.l",{A_INC_M,A_INC_N},{HEX_0,REG_N,REG_M,HEX_F}, arch_sh2_up} braf r4 ;!/* 0000nnnn00100011 braf <REG_N> */{"braf",{A_REG_N},{HEX_0,REG_N,HEX_2,HEX_3}, arch_sh2_up} bsrf r4 ;!/* 0000nnnn00000011 bsrf <REG_N> */{"bsrf",{A_REG_N},{HEX_0,REG_N,HEX_0,HEX_3}, arch_sh2_up} movs.w @-r4,a1 ;!/* 111101nnmmmm0000 movs.w @-<REG_N>,<DSP_REG_M> */ {"movs.w",{A_DEC_N,DSP_REG_M},{HEX_F,SDT_REG_N,REG_M,HEX_0}, arch_sh_dsp_up} movs.w @r4,a1 ;!/* 111101nnmmmm0001 movs.w @<REG_N>,<DSP_REG_M> */ {"movs.w",{A_IND_N,DSP_REG_M},{HEX_F,SDT_REG_N,REG_M,HEX_4}, arch_sh_dsp_up} movs.w @r4+,a1 ;!/* 111101nnmmmm0010 movs.w @<REG_N>+,<DSP_REG_M> */ {"movs.w",{A_INC_N,DSP_REG_M},{HEX_F,SDT_REG_N,REG_M,HEX_8}, arch_sh_dsp_up} movs.w @r4+r8,a1 ;!/* 111101nnmmmm0011 movs.w @<REG_N>+r8,<DSP_REG_M> */ {"movs.w",{AS_PMOD_N,DSP_REG_M},{HEX_F,SDT_REG_N,REG_M,HEX_C}, arch_sh_dsp_up} movs.w a1,@-r4 ;!/* 111101nnmmmm0100 movs.w <DSP_REG_M>,@-<REG_N> */ {"movs.w",{DSP_REG_M,A_DEC_N},{HEX_F,SDT_REG_N,REG_M,HEX_1}, arch_sh_dsp_up} movs.w a1,@r4 ;!/* 111101nnmmmm0101 movs.w <DSP_REG_M>,@<REG_N> */ {"movs.w",{DSP_REG_M,A_IND_N},{HEX_F,SDT_REG_N,REG_M,HEX_5}, arch_sh_dsp_up} movs.w a1,@r4+ ;!/* 111101nnmmmm0110 movs.w <DSP_REG_M>,@<REG_N>+ */ {"movs.w",{DSP_REG_M,A_INC_N},{HEX_F,SDT_REG_N,REG_M,HEX_9}, arch_sh_dsp_up} movs.w a1,@r4+r8 ;!/* 111101nnmmmm0111 movs.w <DSP_REG_M>,@<REG_N>+r8 */ {"movs.w",{DSP_REG_M,AS_PMOD_N},{HEX_F,SDT_REG_N,REG_M,HEX_D}, arch_sh_dsp_up} movs.l @-r4,a1 ;!/* 111101nnmmmm1000 movs.l @-<REG_N>,<DSP_REG_M> */ {"movs.l",{A_DEC_N,DSP_REG_M},{HEX_F,SDT_REG_N,REG_M,HEX_2}, arch_sh_dsp_up} movs.l @r4,a1 ;!/* 111101nnmmmm1001 movs.l @<REG_N>,<DSP_REG_M> */ {"movs.l",{A_IND_N,DSP_REG_M},{HEX_F,SDT_REG_N,REG_M,HEX_6}, arch_sh_dsp_up} movs.l @r4+,a1 ;!/* 111101nnmmmm1010 movs.l @<REG_N>+,<DSP_REG_M> */ {"movs.l",{A_INC_N,DSP_REG_M},{HEX_F,SDT_REG_N,REG_M,HEX_A}, arch_sh_dsp_up} movs.l @r4+r8,a1 ;!/* 111101nnmmmm1011 movs.l @<REG_N>+r8,<DSP_REG_M> */ {"movs.l",{AS_PMOD_N,DSP_REG_M},{HEX_F,SDT_REG_N,REG_M,HEX_E}, arch_sh_dsp_up} movs.l a1,@-r4 ;!/* 111101nnmmmm1100 movs.l <DSP_REG_M>,@-<REG_N> */ {"movs.l",{DSP_REG_M,A_DEC_N},{HEX_F,SDT_REG_N,REG_M,HEX_3}, arch_sh_dsp_up} movs.l a1,@r4 ;!/* 111101nnmmmm1101 movs.l <DSP_REG_M>,@<REG_N> */ {"movs.l",{DSP_REG_M,A_IND_N},{HEX_F,SDT_REG_N,REG_M,HEX_7}, arch_sh_dsp_up} movs.l a1,@r4+ ;!/* 111101nnmmmm1110 movs.l <DSP_REG_M>,@<REG_N>+ */ {"movs.l",{DSP_REG_M,A_INC_N},{HEX_F,SDT_REG_N,REG_M,HEX_B}, arch_sh_dsp_up} movs.l a1,@r4+r8 ;!/* 111101nnmmmm1111 movs.l <DSP_REG_M>,@<REG_N>+r8 */ {"movs.l",{DSP_REG_M,AS_PMOD_N},{HEX_F,SDT_REG_N,REG_M,HEX_F}, arch_sh_dsp_up} nopx ;!/* 0*0*0*00** nopx */ {"nopx",{0},{PPI,NOPX}, arch_sh_dsp_up} nopy ;!/* *0*0*0**00 nopy */ {"nopy",{0},{PPI,NOPY}, arch_sh_dsp_up} movx.w @r4,x1 ;!/* n*m*0*01** movx.w @<REG_N>,<DSP_REG_X> */ {"movx.w",{AX_IND_N,DSP_REG_X},{PPI,MOVX,HEX_1}, arch_sh_dsp_up} movx.w @r4+,x1 ;!/* n*m*0*10** movx.w @<REG_N>+,<DSP_REG_X> */ {"movx.w",{AX_INC_N,DSP_REG_X},{PPI,MOVX,HEX_2}, arch_sh_dsp_up} movx.w @r4+r8,x1 ;!/* n*m*0*11** movx.w @<REG_N>+r8,<DSP_REG_X> */ {"movx.w",{AX_PMOD_N,DSP_REG_X},{PPI,MOVX,HEX_3}, arch_sh_dsp_up} movx.w a1,@r4 ;!/* n*m*1*01** movx.w <DSP_REG_M>,@<REG_N> */ {"movx.w",{DSP_REG_A_M,AX_IND_N},{PPI,MOVX,HEX_9}, arch_sh_dsp_up} movx.w a1,@r4+ ;!/* n*m*1*10** movx.w <DSP_REG_M>,@<REG_N>+ */ {"movx.w",{DSP_REG_A_M,AX_INC_N},{PPI,MOVX,HEX_A}, arch_sh_dsp_up} movx.w a1,@r4+r8 ;!/* n*m*1*11** movx.w <DSP_REG_M>,@<REG_N>+r8 */ {"movx.w",{DSP_REG_A_M,AX_PMOD_N},{PPI,MOVX,HEX_B}, arch_sh_dsp_up} movy.w @r6,y0 ;!/* *n*m*0**01 movy.w @<REG_N>,<DSP_REG_Y> */ {"movy.w",{AY_IND_N,DSP_REG_Y},{PPI,MOVY,HEX_1}, arch_sh_dsp_up} movy.w @r6+,y0 ;!/* *n*m*0**10 movy.w @<REG_N>+,<DSP_REG_Y> */ {"movy.w",{AY_INC_N,DSP_REG_Y},{PPI,MOVY,HEX_2}, arch_sh_dsp_up} movy.w @r6+r9,y0 ;!/* *n*m*0**11 movy.w @<REG_N>+r9,<DSP_REG_Y> */ {"movy.w",{AY_PMOD_N,DSP_REG_Y},{PPI,MOVY,HEX_3}, arch_sh_dsp_up} movy.w a1,@r6 ;!/* *n*m*1**01 movy.w <DSP_REG_M>,@<REG_N> */ {"movy.w",{DSP_REG_A_M,AY_IND_N},{PPI,MOVY,HEX_9}, arch_sh_dsp_up} movy.w a1,@r6+ ;!/* *n*m*1**10 movy.w <DSP_REG_M>,@<REG_N>+ */ {"movy.w",{DSP_REG_A_M,AY_INC_N},{PPI,MOVY,HEX_A}, arch_sh_dsp_up} movy.w a1,@r6+r9 ;!/* *n*m*1**11 movy.w <DSP_REG_M>,@<REG_N>+r9 */ {"movy.w",{DSP_REG_A_M,AY_PMOD_N},{PPI,MOVY,HEX_B}, arch_sh_dsp_up} pmuls x0,y0,m0 ;!/* 01aaeeffxxyyggnn pmuls Se,Sf,Dg */ {"pmuls",{DSP_REG_E,DSP_REG_F,DSP_REG_G},{PPI,PMUL}, arch_sh_dsp_up} psubc x1,y0,m0 ;!/* 10100000xxyynnnn psubc <DSP_REG_X>,<DSP_REG_Y>,<DSP_REG_N> */ {"psubc",{DSP_REG_X,DSP_REG_Y,DSP_REG_N},{PPI,PPI3,HEX_A,HEX_0}, arch_sh_dsp_up} paddc x1,y0,m0 ;!/* 10110000xxyynnnn paddc <DSP_REG_X>,<DSP_REG_Y>,<DSP_REG_N> */ {"paddc",{DSP_REG_X,DSP_REG_Y,DSP_REG_N},{PPI,PPI3,HEX_B,HEX_0}, arch_sh_dsp_up} pcmp x1,y0 ;!/* 10000100xxyynnnn pcmp <DSP_REG_X>,<DSP_REG_Y> */ {"pcmp", {DSP_REG_X,DSP_REG_Y},{PPI,PPI3,HEX_8,HEX_4}, arch_sh_dsp_up} pwsb x1,y0,m0 ;!/* 10100100xxyynnnn pwsb <DSP_REG_X>,<DSP_REG_Y>,<DSP_REG_N> */ {"pwsb", {DSP_REG_X,DSP_REG_Y,DSP_REG_N},{PPI,PPI3,HEX_A,HEX_4}, arch_sh_dsp_up} pwad x1,y0,m0 ;!/* 10110100xxyynnnn pwad <DSP_REG_X>,<DSP_REG_Y>,<DSP_REG_N> */ {"pwad", {DSP_REG_X,DSP_REG_Y,DSP_REG_N},{PPI,PPI3,HEX_B,HEX_4}, arch_sh_dsp_up} pabs x1,m0 ;!/* 10001000xxyynnnn pabs <DSP_REG_X>,<DSP_REG_N> */ {"pabs", {DSP_REG_X,DSP_REG_N},{PPI,PPI3NC,HEX_8,HEX_8}, arch_sh_dsp_up} pabs y0,m0 ;!/* 10101000xxyynnnn pabs <DSP_REG_Y>,<DSP_REG_N> */ {"pabs", {DSP_REG_Y,DSP_REG_N},{PPI,PPI3NC,HEX_A,HEX_8}, arch_sh_dsp_up} prnd x1,m0 ;!/* 10011000xxyynnnn prnd <DSP_REG_X>,<DSP_REG_N> */ {"prnd", {DSP_REG_X,DSP_REG_N},{PPI,PPI3NC,HEX_9,HEX_8}, arch_sh_dsp_up} prnd y0,m0 ;!/* 10111000xxyynnnn prnd <DSP_REG_Y>,<DSP_REG_N> */ {"prnd", {DSP_REG_Y,DSP_REG_N},{PPI,PPI3NC,HEX_B,HEX_8}, arch_sh_dsp_up} dct pshl x1,y0,m0 ;!/* 10000001xxyynnnn pshl <DSP_REG_X>,<DSP_REG_Y>,<DSP_REG_N> */ {"pshl", {DSP_REG_X,DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_8,HEX_1}, arch_sh_dsp_up} pshl #4,m0 ;!/* 00000iiiiiiinnnn pshl #<imm>,<DSP_REG_N> */ {"pshl",{A_IMM,DSP_REG_N},{PPI,PSH,HEX_0}, arch_sh_dsp_up} dct psha x1,y0,m0 ;!/* 10010001xxyynnnn psha <DSP_REG_X>,<DSP_REG_Y>,<DSP_REG_N> */ {"psha", {DSP_REG_X,DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_9,HEX_1}, arch_sh_dsp_up} psha #4,m0 ;!/* 00010iiiiiiinnnn psha #<imm>,<DSP_REG_N> */ {"psha",{A_IMM,DSP_REG_N},{PPI,PSH,HEX_1}, arch_sh_dsp_up} dct psub x1,y0,m0 ;!/* 10100001xxyynnnn psub <DSP_REG_X>,<DSP_REG_Y>,<DSP_REG_N> */ {"psub", {DSP_REG_X,DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_A,HEX_1}, arch_sh_dsp_up} dct padd x1,y0,m0 ;!/* 10110001xxyynnnn padd <DSP_REG_X>,<DSP_REG_Y>,<DSP_REG_N> */ {"padd", {DSP_REG_X,DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_B,HEX_1}, arch_sh_dsp_up} dct pand x1,y0,m0 ;!/* 10010101xxyynnnn pand <DSP_REG_X>,<DSP_REG_Y>,<DSP_REG_N> */ {"pand", {DSP_REG_X,DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_9,HEX_5}, arch_sh_dsp_up} dct pxor x1,y0,m0 ;!/* 10100101xxyynnnn pxor <DSP_REG_X>,<DSP_REG_Y>,<DSP_REG_N> */ {"pxor", {DSP_REG_X,DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_A,HEX_5}, arch_sh_dsp_up} dct por x1,y0,m0 ;!/* 10110101xxyynnnn por <DSP_REG_X>,<DSP_REG_Y>,<DSP_REG_N> */ {"por", {DSP_REG_X,DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_B,HEX_5}, arch_sh_dsp_up} dct pdec x1,m0 ;!/* 10001001xxyynnnn pdec <DSP_REG_X>,<DSP_REG_N> */ {"pdec", {DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_8,HEX_9}, arch_sh_dsp_up} dct pdec y0,m0 ;!/* 10101001xxyynnnn pdec <DSP_REG_Y>,<DSP_REG_N> */ {"pdec", {DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_A,HEX_9}, arch_sh_dsp_up} dct pinc x1,m0 ;!/* 10011001xx00nnnn pinc <DSP_REG_X>,<DSP_REG_N> */ {"pinc", {DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_9,HEX_9,HEX_XX00}, arch_sh_dsp_up} dct pinc y0,m0 ;!/* 1011100100yynnnn pinc <DSP_REG_Y>,<DSP_REG_N> */ {"pinc", {DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_B,HEX_9,HEX_00YY}, arch_sh_dsp_up} dct pclr m0 ;!/* 10001101xxyynnnn pclr <DSP_REG_N> */ {"pclr", {DSP_REG_N},{PPI,PPIC,HEX_8,HEX_D}, arch_sh_dsp_up} dct pdmsb x1,m0 ;!/* 10011101xx00nnnn pdmsb <DSP_REG_X>,<DSP_REG_N> */ {"pdmsb", {DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_9,HEX_D,HEX_XX00}, arch_sh_dsp_up} dct pdmsb y0,m0 ;!/* 1011110100yynnnn pdmsb <DSP_REG_Y>,<DSP_REG_N> */ {"pdmsb", {DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_B,HEX_D,HEX_00YY}, arch_sh_dsp_up} dct pneg x1,m0 ;!/* 11001001xxyynnnn pneg <DSP_REG_X>,<DSP_REG_N> */ {"pneg", {DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_C,HEX_9}, arch_sh_dsp_up} dct pneg y0,m0 ;!/* 11101001xxyynnnn pneg <DSP_REG_Y>,<DSP_REG_N> */ {"pneg", {DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_E,HEX_9}, arch_sh_dsp_up} dct pcopy x1,m0 ;!/* 11011001xxyynnnn pcopy <DSP_REG_X>,<DSP_REG_N> */ {"pcopy", {DSP_REG_X,DSP_REG_N},{PPI,PPIC,HEX_D,HEX_9}, arch_sh_dsp_up} dct pcopy y0,m0 ;!/* 11111001xxyynnnn pcopy <DSP_REG_Y>,<DSP_REG_N> */ {"pcopy", {DSP_REG_Y,DSP_REG_N},{PPI,PPIC,HEX_F,HEX_9}, arch_sh_dsp_up} dct psts MACH,m0 ;!/* 11001101xxyynnnn psts MACH,<DSP_REG_N> */ {"psts", {A_MACH,DSP_REG_N},{PPI,PPIC,HEX_C,HEX_D}, arch_sh_dsp_up} dct psts MACL,m0 ;!/* 11011101xxyynnnn psts MACL,<DSP_REG_N> */ {"psts", {A_MACL,DSP_REG_N},{PPI,PPIC,HEX_D,HEX_D}, arch_sh_dsp_up} dct plds m0,MACH ;!/* 11101101xxyynnnn plds <DSP_REG_N>,MACH */ {"plds", {DSP_REG_N,A_MACH},{PPI,PPIC,HEX_E,HEX_D}, arch_sh_dsp_up} dct plds m0,MACL ;!/* 11111101xxyynnnn plds <DSP_REG_N>,MACL */ {"plds", {DSP_REG_N,A_MACL},{PPI,PPIC,HEX_F,HEX_D}, arch_sh_dsp_up}
tactcomplabs/xbgas-binutils-gdb
5,599
gas/testsuite/gas/i386/ilp32/x86-64.s
.text .intel_syntax noprefix # REX prefix and addressing modes. add edx,ecx add edx,r9d add r10d,ecx add rdx,rcx add r10,r9 add r8d,eax add r8w,ax add r8,rax add eax,0x44332211 add rax,0xfffffffff4332211 add ax,0x4433 add rax,0x44332211 add dl,cl add bh,dh add dil,sil add r15b,sil add dil,r14b add r15b,r14b PUSH RAX PUSH R8 POP R9 ADD AL,0x11 ADD AH,0x11 ADD SPL,0x11 ADD R8B,0x11 ADD R12B,0x11 MOV RAX,CR0 MOV R8,CR0 MOV RAX,CR8 MOV CR8,RAX REP MOVSQ #[RSI],[RDI] REP MOVSW #[RSI,[RDI] REP MOVSQ #[RSI],[RDI] MOV AL, 0x11 MOV AH, 0x11 MOV SPL, 0x11 MOV R12B, 0x11 MOV EAX,0x11223344 MOV R8D,0x11223344 MOV RAX,0x1122334455667788 MOV R8,0x1122334455667788 add eax,[rax] ADD EAX,[R8] ADD R8D,[R8] ADD RAX,[R8] ADD EAX,[0x22222222+RIP] ADD EAX,[RBP+0x00] ADD EAX,FLAT:[0x22222222] ADD EAX,[R13+0] ADD EAX,[RAX+RAX*4] ADD EAX,[R8+RAX*4] ADD R8D,[R8+RAX*4] ADD EAX,[R8+R8*4] ADD [RCX+R8*4],R8D ADD EDX,[RAX+RAX*8] ADD EDX,[RAX+RCX*8] ADD EDX,[RAX+RDX*8] ADD EDX,[RAX+RBX*8] ADD EDX,[RAX] ADD EDX,[RAX+RBP*8] ADD EDX,[RAX+RSI*8] ADD EDX,[RAX+RDI*8] ADD EDX,[RAX+R8*8] ADD EDX,[RAX+R9*8] ADD EDX,[RAX+R10*8] ADD EDX,[RAX+R11*8] ADD EDX,[RAX+R12*8] ADD EDX,[RAX+R13*8] ADD EDX,[RAX+R14*8] ADD EDX,[RAX+R15*8] ADD ECX,0x11 ADD DWORD PTR [RAX],0x11 ADD QWORD PTR [RAX],0x11 ADD DWORD PTR [R8],0x11 ADD DWORD PTR [RCX+RAX*4],0x11 ADD DWORD PTR [R9+RAX*4],0x11 ADD DWORD PTR [RCX+R8*4],0x11 ADD DWORD PTR [0x22222222+RIP],0x33 ADD QWORD PTR [RIP+0x22222222],0x33 ADD DWORD PTR [RIP+0x22222222],0x33333333 ADD QWORD PTR [RIP+0x22222222],0x33333333 ADD DWORD PTR [RAX*8+0x22222222],0x33 ADD DWORD PTR [RAX+0x22222222],0x33 ADD DWORD PTR [RAX+0x22222222],0x33 ADD DWORD PTR [R8+RBP*8],0x33 ADD DWORD PTR FLAT:[0x22222222],0x33 #new instructions MOV AL,FLAT:[0x8877665544332211] MOV EAX,FLAT:[0x8877665544332211] MOV FLAT:[0x8877665544332211],AL MOV FLAT:[0x8877665544332211],EAX MOV RAX,FLAT:[0x8877665544332211] MOV FLAT:[0x8877665544332211],RAX cqo cdqe movsx rax, eax movsx rax, ax movsx rax, al bar: .att_syntax #testcase for symbol references. #immediates - various sizes: mov $symbol, %al mov $symbol, %ax mov $symbol, %eax mov $symbol, %rax #addressing modes: #absolute 32bit addressing mov symbol, %eax #arithmetic mov symbol(%rax), %eax #RIP relative mov symbol(%rip), %eax .intel_syntax noprefix #immediates - various sizes: mov al, offset flat:symbol mov ax, offset flat:symbol mov eax, offset flat:symbol mov rax, offset flat:symbol #parts aren't supported by the parser, yet (and not at all for symbol refs) #mov eax, high part symbol #mov eax, low part symbol #addressing modes #absolute 32bit addressing mov eax, [symbol] #arithmetic mov eax, [rax+symbol] #RIP relative mov eax, [rip+symbol] foo: .att_syntax #absolute 64bit addressing mov 0x8877665544332211,%al mov 0x8877665544332211,%ax mov 0x8877665544332211,%eax mov 0x8877665544332211,%rax mov %al,0x8877665544332211 mov %ax,0x8877665544332211 mov %eax,0x8877665544332211 mov %rax,0x8877665544332211 movb 0x8877665544332211,%al movw 0x8877665544332211,%ax movl 0x8877665544332211,%eax movq 0x8877665544332211,%rax movb %al,0x8877665544332211 movw %ax,0x8877665544332211 movl %eax,0x8877665544332211 movq %rax,0x8877665544332211 #absolute signed 32bit addressing mov 0xffffffffff332211,%al mov 0xffffffffff332211,%ax mov 0xffffffffff332211,%eax mov 0xffffffffff332211,%rax mov %al,0xffffffffff332211 mov %ax,0xffffffffff332211 mov %eax,0xffffffffff332211 mov %rax,0xffffffffff332211 movb 0xffffffffff332211,%al movw 0xffffffffff332211,%ax movl 0xffffffffff332211,%eax movq 0xffffffffff332211,%rax movb %al,0xffffffffff332211 movw %ax,0xffffffffff332211 movl %eax,0xffffffffff332211 movq %rax,0xffffffffff332211 cmpxchg16b (%rax) .intel_syntax noprefix cmpxchg16b oword ptr [rax] .att_syntax movsx %al, %si movsx %al, %esi movsx %al, %rsi movsx %ax, %esi movsx %ax, %rsi movsx %eax, %rsi movsx (%rax), %dx movsbl (%rax), %edx movsbq (%rax), %rdx movsbw (%rax), %dx movswl (%rax), %edx movswq (%rax), %rdx movzx %al, %si movzx %al, %esi movzx %al, %rsi movzx %ax, %esi movzx %ax, %rsi movzx (%rax), %dx movzb (%rax), %edx movzb (%rax), %rdx movzb (%rax), %dx movzbl (%rax), %edx movzbq (%rax), %rdx movzbw (%rax), %dx movzwl (%rax), %edx movzwq (%rax), %rdx .intel_syntax noprefix movsx si,al movsx esi,al movsx rsi,al movsx esi,ax movsx rsi,ax movsx rsi,eax movsx edx,BYTE PTR [rax] movsx rdx,BYTE PTR [rax] movsx dx,BYTE PTR [rax] movsx edx,WORD PTR [rax] movsx rdx,WORD PTR [rax] movzx si,al movzx esi,al movzx rsi,al movzx esi,ax movzx rsi,ax movzx edx,BYTE PTR [rax] movzx rdx,BYTE PTR [rax] movzx dx,BYTE PTR [rax] movzx edx,WORD PTR [rax] movzx rdx,WORD PTR [rax] movq xmm1,QWORD PTR [rsp] movq xmm1,[rsp] movq QWORD PTR [rsp],xmm1 movq [rsp],xmm1 .att_syntax fnstsw fnstsw %ax fstsw fstsw %ax .intel_syntax noprefix fnstsw fnstsw ax fstsw fstsw ax .att_syntax movsx (%rax),%ax movsxb (%rax), %dx movsxb (%rax), %edx movsxb (%rax), %rdx movsxw (%rax), %edx movsxw (%rax), %rdx movsxl (%rax), %rdx movsxd (%rax),%rax movzx (%rax),%ax movzxb (%rax), %dx movzxb (%rax), %edx movzxb (%rax), %rdx movzxw (%rax), %edx movzxw (%rax), %rdx movnti %eax, (%rax) movntil %eax, (%rax) movnti %rax, (%rax) movntiq %rax, (%rax) .intel_syntax noprefix movsx ax, BYTE PTR [rax] movsx eax, BYTE PTR [rax] movsx eax, WORD PTR [rax] movsx rax, WORD PTR [rax] movsx rax, DWORD PTR [rax] movsxd rax, [rax] movzx ax, BYTE PTR [rax] movzx eax, BYTE PTR [rax] movzx eax, WORD PTR [rax] movzx rax, WORD PTR [rax] movnti dword ptr [rax], eax movnti qword ptr [rax], rax
tactcomplabs/xbgas-binutils-gdb
4,410
gas/testsuite/gas/i386/ilp32/reloc64.s
.macro bad args:vararg .ifdef _bad_ \args .endif .endm .macro ill args:vararg # This is used to mark entries that aren't handled consistently, # and thus shouldn't currently be checked for. # \args .endm .text _start: add $xtrn, %rax mov $xtrn, %eax mov $xtrn, %ax mov $xtrn, %al mov xtrn(%rbx), %eax mov xtrn(%ebx), %eax add $(xtrn - .), %rax ill mov $(xtrn - .), %eax mov $(xtrn - .), %ax mov $(xtrn - .), %al mov xtrn(%rip), %eax mov xtrn(%eip), %eax call xtrn jrcxz xtrn add $xtrn@got, %rax mov $xtrn@got, %eax bad mov $xtrn@got, %ax bad mov $xtrn@got, %al mov xtrn@got(%rbx), %eax mov xtrn@got(%ebx), %eax bad call xtrn@got bad add $xtrn@gotoff, %rax bad mov $xtrn@gotoff, %eax bad mov $xtrn@gotoff, %ax bad mov $xtrn@gotoff, %al bad mov xtrn@gotoff(%rbx), %eax bad mov xtrn@gotoff(%ebx), %eax bad call xtrn@gotoff bad movabs $xtrn@gotpcrel, %rax add $xtrn@gotpcrel, %rax mov $xtrn@gotpcrel, %eax bad mov $xtrn@gotpcrel, %ax bad mov $xtrn@gotpcrel, %al mov xtrn@gotpcrel(%rbx), %eax mov xtrn@gotpcrel(%ebx), %eax call xtrn@gotpcrel ill movabs $_GLOBAL_OFFSET_TABLE_, %rax add $_GLOBAL_OFFSET_TABLE_, %rax ill add $_GLOBAL_OFFSET_TABLE_, %eax ill add $_GLOBAL_OFFSET_TABLE_, %ax ill add $_GLOBAL_OFFSET_TABLE_, %al lea _GLOBAL_OFFSET_TABLE_(%rip), %rax lea _GLOBAL_OFFSET_TABLE_(%eip), %rax ill movabs $(_GLOBAL_OFFSET_TABLE_ - .), %rax add $(_GLOBAL_OFFSET_TABLE_ - .), %rax ill add $(_GLOBAL_OFFSET_TABLE_ - .), %eax ill add $(_GLOBAL_OFFSET_TABLE_ - .), %ax ill add $(_GLOBAL_OFFSET_TABLE_ - .), %al bad movabs $xtrn@plt, %rax add $xtrn@plt, %rax mov $xtrn@plt, %eax bad mov $xtrn@plt, %ax bad mov $xtrn@plt, %al mov xtrn@plt(%rbx), %eax mov xtrn@plt(%ebx), %eax call xtrn@plt bad jrcxz xtrn@plt bad movabs $xtrn@tlsgd, %rax add $xtrn@tlsgd, %rax mov $xtrn@tlsgd, %eax bad mov $xtrn@tlsgd, %ax bad mov $xtrn@tlsgd, %al mov xtrn@tlsgd(%rbx), %eax mov xtrn@tlsgd(%ebx), %eax call xtrn@tlsgd bad movabs $xtrn@gottpoff, %rax add $xtrn@gottpoff, %rax mov $xtrn@gottpoff, %eax bad mov $xtrn@gottpoff, %ax bad mov $xtrn@gottpoff, %al mov xtrn@gottpoff(%rbx), %eax mov xtrn@gottpoff(%ebx), %eax call xtrn@gottpoff bad movabs $xtrn@tlsld, %rax add $xtrn@tlsld, %rax mov $xtrn@tlsld, %eax bad mov $xtrn@tlsld, %ax bad mov $xtrn@tlsld, %al mov xtrn@tlsld(%rbx), %eax mov xtrn@tlsld(%ebx), %eax call xtrn@tlsld add $xtrn@dtpoff, %rax mov $xtrn@dtpoff, %eax bad mov $xtrn@dtpoff, %ax bad mov $xtrn@dtpoff, %al mov xtrn@dtpoff(%rbx), %eax mov xtrn@dtpoff(%ebx), %eax bad call xtrn@dtpoff add $xtrn@tpoff, %rax mov $xtrn@tpoff, %eax bad mov $xtrn@tpoff, %ax bad mov $xtrn@tpoff, %al mov xtrn@tpoff(%rbx), %eax mov xtrn@tpoff(%ebx), %eax bad call xtrn@tpoff .data .long xtrn .long xtrn - . .long xtrn@got bad .long xtrn@gotoff .long xtrn@gotpcrel .long _GLOBAL_OFFSET_TABLE_ .long _GLOBAL_OFFSET_TABLE_ - . .long xtrn@plt .long xtrn@tlsgd .long xtrn@gottpoff .long xtrn@tlsld .long xtrn@dtpoff .long xtrn@tpoff .slong xtrn .slong xtrn - . .slong xtrn@got bad .slong xtrn@gotoff .slong xtrn@gotpcrel .slong _GLOBAL_OFFSET_TABLE_ .slong _GLOBAL_OFFSET_TABLE_ - . .slong xtrn@plt .slong xtrn@tlsgd .slong xtrn@gottpoff .slong xtrn@tlsld .slong xtrn@dtpoff .slong xtrn@tpoff .word xtrn .word xtrn - . bad .word xtrn@got bad .word xtrn@gotoff bad .word xtrn@gotpcrel ill .word _GLOBAL_OFFSET_TABLE_ ill .word _GLOBAL_OFFSET_TABLE_ - . bad .word xtrn@plt bad .word xtrn@tlsgd bad .word xtrn@gottpoff bad .word xtrn@tlsld bad .word xtrn@dtpoff bad .word xtrn@tpoff .byte xtrn .byte xtrn - . bad .byte xtrn@got bad .byte xtrn@gotoff bad .byte xtrn@gotpcrel ill .byte _GLOBAL_OFFSET_TABLE_ ill .byte _GLOBAL_OFFSET_TABLE_ - . bad .byte xtrn@plt bad .byte xtrn@tlsgd bad .byte xtrn@gottpoff bad .byte xtrn@tlsld bad .byte xtrn@dtpoff bad .byte xtrn@tpoff .text mov xtrn@tpoff (%rbx), %eax movabsq $xtrn + 0x7fffffff, %rbx movabsq $xtrn - 0x80000000, %rbp .data .quad xtrn .quad xtrn + 0x7fffffff .quad xtrn - 0x80000000 .long xtrn@got - 4 .long xtrn@got + 4 bad .long xtrn@plt - . .text bad add $x+0x123456789, %rax bad add $x+0x123456789, %eax bad add x+0x123456789, %eax bad add x+0x123456789(%eax), %eax bad enter $x+0x123456789, $x+0x123456789 bad enter $x+0x12345, $x+0x123 .data bad .long x+0x123456789 bad .word x+0x123456789 bad .word x+0x12345 bad .byte x+0x123456789 bad .byte x+0x123
tactcomplabs/xbgas-binutils-gdb
35,648
gdb/testsuite/gdb.cp/namelessclass.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2014-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This file was generated using: $ clang++ -g namelessclass.cc -std=c++11 -S -o namelessclass.S with $ clang++ -v clang version 3.3 (tags/RELEASE_33/final) Target: x86_64-redhat-linux-gnu Thread model: posix This is a test for c++/16597. */ .file "namelessclass.cc" .section .debug_info,"",@progbits .Lsection_info: .section .debug_abbrev,"",@progbits .Lsection_abbrev: .section .debug_aranges,"",@progbits .section .debug_macinfo,"",@progbits .section .debug_line,"",@progbits .Lsection_line: .section .debug_loc,"",@progbits .section .debug_pubtypes,"",@progbits .section .debug_str,"MS",@progbits,1 .Linfo_string: .section .debug_ranges,"",@progbits .Ldebug_range: .section .debug_loc,"",@progbits .Lsection_debug_loc: .text .Ltext_begin: .data .file 1 "namelessclass.cc" .text .globl main .align 16, 0x90 .type main,@function main: # @main .cfi_startproc .Lfunc_begin0: .loc 1 42 0 # namelessclass.cc:42:0 # BB#0: pushq %rbp .Ltmp2: .cfi_def_cfa_offset 16 .Ltmp3: .cfi_offset %rbp, -16 movq %rsp, %rbp .Ltmp4: .cfi_def_cfa_register %rbp subq $16, %rsp leaq -8(%rbp), %rdi movl $0, -4(%rbp) .Ltmp5: #DEBUG_VALUE: main:a <- RDI+0 .loc 1 43 0 prologue_end # namelessclass.cc:43:0 callq _ZN1AC1Ev leaq -8(%rbp), %rdi .Ltmp6: .loc 1 45 0 # namelessclass.cc:45:0 callq _ZN1A4doitEv addq $16, %rsp popq %rbp ret .Ltmp7: .Ltmp8: .size main, .Ltmp8-main .Lfunc_end0: .cfi_endproc .section .text._ZN1AC1Ev,"axG",@progbits,_ZN1AC1Ev,comdat .weak _ZN1AC1Ev .align 16, 0x90 .type _ZN1AC1Ev,@function _ZN1AC1Ev: # @_ZN1AC1Ev .cfi_startproc .Lfunc_begin1: .loc 1 25 0 # namelessclass.cc:25:0 # BB#0: pushq %rbp .Ltmp11: .cfi_def_cfa_offset 16 .Ltmp12: .cfi_offset %rbp, -16 movq %rsp, %rbp .Ltmp13: .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi .loc 1 25 0 prologue_end # namelessclass.cc:25:0 .Ltmp14: callq _ZN1AC2Ev addq $16, %rsp popq %rbp ret .Ltmp15: .Ltmp16: .size _ZN1AC1Ev, .Ltmp16-_ZN1AC1Ev .Lfunc_end1: .cfi_endproc .section .text._ZN1A4doitEv,"axG",@progbits,_ZN1A4doitEv,comdat .weak _ZN1A4doitEv .align 16, 0x90 .type _ZN1A4doitEv,@function _ZN1A4doitEv: # @_ZN1A4doitEv .cfi_startproc .Lfunc_begin2: .loc 1 26 0 # namelessclass.cc:26:0 # BB#0: pushq %rbp .Ltmp19: .cfi_def_cfa_offset 16 .Ltmp20: .cfi_offset %rbp, -16 movq %rsp, %rbp .Ltmp21: .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi .loc 1 27 0 prologue_end # namelessclass.cc:27:0 .Ltmp22: movq %rdi, -24(%rbp) movq -24(%rbp), %rsi callq _ZN1A5fudgeIZNS_4doitEvEUlvE_EEiT_ movl %eax, -12(%rbp) .loc 1 31 0 # namelessclass.cc:31:0 movl -12(%rbp), %eax addq $32, %rsp popq %rbp ret .Ltmp23: .Ltmp24: .size _ZN1A4doitEv, .Ltmp24-_ZN1A4doitEv .Lfunc_end2: .cfi_endproc .section .text._ZN1A5fudgeIZNS_4doitEvEUlvE_EEiT_,"axG",@progbits,_ZN1A5fudgeIZNS_4doitEvEUlvE_EEiT_,comdat .weak _ZN1A5fudgeIZNS_4doitEvEUlvE_EEiT_ .align 16, 0x90 .type _ZN1A5fudgeIZNS_4doitEvEUlvE_EEiT_,@function _ZN1A5fudgeIZNS_4doitEvEUlvE_EEiT_: # @_ZN1A5fudgeIZNS_4doitEvEUlvE_EEiT_ .cfi_startproc .Lfunc_begin3: .loc 1 36 0 # namelessclass.cc:36:0 # BB#0: pushq %rbp .Ltmp27: .cfi_def_cfa_offset 16 .Ltmp28: .cfi_offset %rbp, -16 movq %rsp, %rbp .Ltmp29: .cfi_def_cfa_register %rbp subq $16, %rsp leaq -16(%rbp), %rax movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) #DEBUG_VALUE: fudge<<lambda at namelessclass.cc:27:22> >:func <- RAX+0 .loc 1 36 34 prologue_end # namelessclass.cc:36:34 .Ltmp30: movq %rax, %rdi callq _ZZN1A4doitEvENKUlvE_clEv .Ltmp31: addq $16, %rsp popq %rbp ret .Ltmp32: .Ltmp33: .size _ZN1A5fudgeIZNS_4doitEvEUlvE_EEiT_, .Ltmp33-_ZN1A5fudgeIZNS_4doitEvEUlvE_EEiT_ .Lfunc_end3: .cfi_endproc .section .text._ZZN1A4doitEvENKUlvE_clEv,"axG",@progbits,_ZZN1A4doitEvENKUlvE_clEv,comdat .weak _ZZN1A4doitEvENKUlvE_clEv .align 16, 0x90 .type _ZZN1A4doitEvENKUlvE_clEv,@function _ZZN1A4doitEvENKUlvE_clEv: # @_ZZN1A4doitEvENKUlvE_clEv .cfi_startproc .Lfunc_begin4: .loc 1 27 0 # namelessclass.cc:27:0 # BB#0: pushq %rbp .Ltmp36: .cfi_def_cfa_offset 16 .Ltmp37: .cfi_offset %rbp, -16 movq %rsp, %rbp .Ltmp38: .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi movq (%rdi), %rdi .loc 1 28 0 prologue_end # namelessclass.cc:28:0 .Ltmp39: movl (%rdi), %eax popq %rbp ret .Ltmp40: .Ltmp41: .size _ZZN1A4doitEvENKUlvE_clEv, .Ltmp41-_ZZN1A4doitEvENKUlvE_clEv .Lfunc_end4: .cfi_endproc .section .text._ZN1AC2Ev,"axG",@progbits,_ZN1AC2Ev,comdat .weak _ZN1AC2Ev .align 16, 0x90 .type _ZN1AC2Ev,@function _ZN1AC2Ev: # @_ZN1AC2Ev .cfi_startproc .Lfunc_begin5: .loc 1 25 0 # namelessclass.cc:25:0 # BB#0: pushq %rbp .Ltmp44: .cfi_def_cfa_offset 16 .Ltmp45: .cfi_offset %rbp, -16 movq %rsp, %rbp .Ltmp46: .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi .loc 1 25 0 prologue_end # namelessclass.cc:25:0 .Ltmp47: movl $48879, (%rdi) # imm = 0xBEEF popq %rbp ret .Ltmp48: .Ltmp49: .size _ZN1AC2Ev, .Ltmp49-_ZN1AC2Ev .Lfunc_end5: .cfi_endproc .text .Ltext_end: .data .Ldata_end: .text .Lsection_end1: .section .debug_info,"",@progbits .L.debug_info_begin0: .long 531 # Length of Compilation Unit Info .short 2 # DWARF version number .long .L.debug_abbrev_begin # Offset Into Abbrev. Section .byte 8 # Address Size (in bytes) .byte 1 # Abbrev [1] 0xb:0x20c DW_TAG_compile_unit .long .Linfo_string0 # DW_AT_producer .short 4 # DW_AT_language .long .Linfo_string1 # DW_AT_name .quad 0 # DW_AT_low_pc .long .Lsection_line # DW_AT_stmt_list .long .Linfo_string2 # DW_AT_comp_dir .byte 2 # Abbrev [2] 0x26:0x2c DW_TAG_subprogram .long .Linfo_string3 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 41 # DW_AT_decl_line .long 82 # DW_AT_type # DW_AT_external .quad .Lfunc_begin0 # DW_AT_low_pc .quad .Lfunc_end0 # DW_AT_high_pc .byte 1 # DW_AT_frame_base .byte 86 .byte 3 # Abbrev [3] 0x43:0xe DW_TAG_variable .long .Linfo_string15 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 43 # DW_AT_decl_line .long 186 # DW_AT_type .byte 2 # DW_AT_location .byte 145 .byte 120 .byte 0 # End Of Children Mark .byte 4 # Abbrev [4] 0x52:0x7 DW_TAG_base_type .long .Linfo_string4 # DW_AT_name .byte 5 # DW_AT_encoding .byte 4 # DW_AT_byte_size .byte 5 # Abbrev [5] 0x59:0x5 DW_TAG_pointer_type .long 186 # DW_AT_type .byte 5 # Abbrev [5] 0x5e:0x5 DW_TAG_pointer_type .long 186 # DW_AT_type .byte 6 # Abbrev [6] 0x63:0x5 DW_TAG_const_type .long 119 # DW_AT_type .byte 5 # Abbrev [5] 0x68:0x5 DW_TAG_pointer_type .long 99 # DW_AT_type .byte 5 # Abbrev [5] 0x6d:0x5 DW_TAG_pointer_type .long 119 # DW_AT_type .byte 7 # Abbrev [7] 0x72:0x5 DW_TAG_rvalue_reference_type .long 119 # DW_AT_type .byte 8 # Abbrev [8] 0x77:0x43 DW_TAG_class_type .byte 8 # DW_AT_byte_size .byte 1 # DW_AT_decl_file .byte 27 # DW_AT_decl_line .byte 9 # Abbrev [9] 0x7b:0xf DW_TAG_member .long .Linfo_string7 # DW_AT_name .long 94 # DW_AT_type .byte 1 # DW_AT_decl_file .byte 27 # DW_AT_decl_line .byte 2 # DW_AT_data_member_location .byte 35 .byte 0 .byte 3 # DW_AT_accessibility # DW_ACCESS_private .byte 10 # Abbrev [10] 0x8a:0x12 DW_TAG_subprogram .long .Linfo_string8 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 27 # DW_AT_decl_line .long 82 # DW_AT_type # DW_AT_declaration # DW_AT_external .byte 1 # DW_AT_accessibility # DW_ACCESS_public .byte 11 # Abbrev [11] 0x96:0x5 DW_TAG_formal_parameter .long 104 # DW_AT_type # DW_AT_artificial .byte 0 # End Of Children Mark .byte 12 # Abbrev [12] 0x9c:0xe DW_TAG_subprogram .long .Linfo_string9 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 27 # DW_AT_decl_line # DW_AT_declaration # DW_AT_artificial # DW_AT_external .byte 1 # DW_AT_accessibility # DW_ACCESS_public .byte 11 # Abbrev [11] 0xa4:0x5 DW_TAG_formal_parameter .long 109 # DW_AT_type # DW_AT_artificial .byte 0 # End Of Children Mark .byte 13 # Abbrev [13] 0xaa:0xf DW_TAG_subprogram .byte 1 # DW_AT_decl_file .byte 27 # DW_AT_decl_line # DW_AT_declaration # DW_AT_artificial # DW_AT_external .byte 1 # DW_AT_accessibility # DW_ACCESS_public .byte 11 # Abbrev [11] 0xae:0x5 DW_TAG_formal_parameter .long 109 # DW_AT_type # DW_AT_artificial .byte 14 # Abbrev [14] 0xb3:0x5 DW_TAG_formal_parameter .long 114 # DW_AT_type .byte 0 # End Of Children Mark .byte 0 # End Of Children Mark .byte 15 # Abbrev [15] 0xba:0x60 DW_TAG_class_type .long .Linfo_string6 # DW_AT_name .byte 4 # DW_AT_byte_size .byte 1 # DW_AT_decl_file .byte 22 # DW_AT_decl_line .byte 9 # Abbrev [9] 0xc2:0xf DW_TAG_member .long .Linfo_string5 # DW_AT_name .long 82 # DW_AT_type .byte 1 # DW_AT_decl_file .byte 37 # DW_AT_decl_line .byte 2 # DW_AT_data_member_location .byte 35 .byte 0 .byte 3 # DW_AT_accessibility # DW_ACCESS_private .byte 16 # Abbrev [16] 0xd1:0xe DW_TAG_subprogram .long .Linfo_string6 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 25 # DW_AT_decl_line # DW_AT_declaration # DW_AT_external .byte 1 # DW_AT_accessibility # DW_ACCESS_public .byte 11 # Abbrev [11] 0xd9:0x5 DW_TAG_formal_parameter .long 89 # DW_AT_type # DW_AT_artificial .byte 0 # End Of Children Mark .byte 17 # Abbrev [17] 0xdf:0x16 DW_TAG_subprogram .byte 1 # DW_AT_accessibility # DW_ACCESS_public .long .Linfo_string13 # DW_AT_MIPS_linkage_name .long .Linfo_string14 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 26 # DW_AT_decl_line .long 82 # DW_AT_type # DW_AT_declaration # DW_AT_external .byte 11 # Abbrev [11] 0xef:0x5 DW_TAG_formal_parameter .long 89 # DW_AT_type # DW_AT_artificial .byte 0 # End Of Children Mark .byte 18 # Abbrev [18] 0xf5:0x24 DW_TAG_subprogram .long .Linfo_string11 # DW_AT_MIPS_linkage_name .long .Linfo_string12 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 36 # DW_AT_decl_line .long 82 # DW_AT_type # DW_AT_declaration # DW_AT_external .byte 3 # DW_AT_accessibility # DW_ACCESS_private .byte 19 # Abbrev [19] 0x105:0x9 DW_TAG_template_type_parameter .long 119 # DW_AT_type .long .Linfo_string10 # DW_AT_name .byte 11 # Abbrev [11] 0x10e:0x5 DW_TAG_formal_parameter .long 89 # DW_AT_type # DW_AT_artificial .byte 14 # Abbrev [14] 0x113:0x5 DW_TAG_formal_parameter .long 119 # DW_AT_type .byte 0 # End Of Children Mark .byte 0 # End Of Children Mark .byte 20 # Abbrev [20] 0x11a:0x62 DW_TAG_subprogram .long 223 # DW_AT_specification .quad .Lfunc_begin2 # DW_AT_low_pc .quad .Lfunc_end2 # DW_AT_high_pc .byte 1 # DW_AT_frame_base .byte 86 .long 351 # DW_AT_object_pointer .byte 20 # Abbrev [20] 0x135:0x2a DW_TAG_subprogram .long 138 # DW_AT_specification .quad .Lfunc_begin4 # DW_AT_low_pc .quad .Lfunc_end4 # DW_AT_high_pc .byte 1 # DW_AT_frame_base .byte 86 .long 336 # DW_AT_object_pointer .byte 21 # Abbrev [21] 0x150:0xe DW_TAG_formal_parameter .long .Linfo_string7 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 27 # DW_AT_decl_line .long 529 # DW_AT_type # DW_AT_artificial .byte 2 # DW_AT_location .byte 145 .byte 120 .byte 0 # End Of Children Mark .byte 21 # Abbrev [21] 0x15f:0xe DW_TAG_formal_parameter .long .Linfo_string7 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 26 # DW_AT_decl_line .long 94 # DW_AT_type # DW_AT_artificial .byte 2 # DW_AT_location .byte 145 .byte 120 .byte 3 # Abbrev [3] 0x16d:0xe DW_TAG_variable .long .Linfo_string16 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 27 # DW_AT_decl_line .long 82 # DW_AT_type .byte 2 # DW_AT_location .byte 145 .byte 116 .byte 0 # End Of Children Mark .byte 20 # Abbrev [20] 0x17c:0x41 DW_TAG_subprogram .long 245 # DW_AT_specification .quad .Lfunc_begin3 # DW_AT_low_pc .quad .Lfunc_end3 # DW_AT_high_pc .byte 1 # DW_AT_frame_base .byte 86 .long 416 # DW_AT_object_pointer .byte 19 # Abbrev [19] 0x197:0x9 DW_TAG_template_type_parameter .long 119 # DW_AT_type .long .Linfo_string10 # DW_AT_name .byte 21 # Abbrev [21] 0x1a0:0xe DW_TAG_formal_parameter .long .Linfo_string7 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 36 # DW_AT_decl_line .long 94 # DW_AT_type # DW_AT_artificial .byte 2 # DW_AT_location .byte 145 .byte 120 .byte 22 # Abbrev [22] 0x1ae:0xe DW_TAG_formal_parameter .long .Linfo_string17 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 36 # DW_AT_decl_line .long 119 # DW_AT_type .byte 2 # DW_AT_location .byte 145 .byte 112 .byte 0 # End Of Children Mark .byte 20 # Abbrev [20] 0x1bd:0x2a DW_TAG_subprogram .long 209 # DW_AT_specification .quad .Lfunc_begin1 # DW_AT_low_pc .quad .Lfunc_end1 # DW_AT_high_pc .byte 1 # DW_AT_frame_base .byte 86 .long 472 # DW_AT_object_pointer .byte 21 # Abbrev [21] 0x1d8:0xe DW_TAG_formal_parameter .long .Linfo_string7 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 25 # DW_AT_decl_line .long 94 # DW_AT_type # DW_AT_artificial .byte 2 # DW_AT_location .byte 145 .byte 120 .byte 0 # End Of Children Mark .byte 20 # Abbrev [20] 0x1e7:0x2a DW_TAG_subprogram .long 209 # DW_AT_specification .quad .Lfunc_begin5 # DW_AT_low_pc .quad .Lfunc_end5 # DW_AT_high_pc .byte 1 # DW_AT_frame_base .byte 86 .long 514 # DW_AT_object_pointer .byte 21 # Abbrev [21] 0x202:0xe DW_TAG_formal_parameter .long .Linfo_string7 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 25 # DW_AT_decl_line .long 94 # DW_AT_type # DW_AT_artificial .byte 2 # DW_AT_location .byte 145 .byte 120 .byte 0 # End Of Children Mark .byte 5 # Abbrev [5] 0x211:0x5 DW_TAG_pointer_type .long 99 # DW_AT_type .byte 0 # End Of Children Mark .L.debug_info_end0: .section .debug_abbrev,"",@progbits .L.debug_abbrev_begin: .byte 1 # Abbreviation Code .byte 17 # DW_TAG_compile_unit .byte 1 # DW_CHILDREN_yes .byte 37 # DW_AT_producer .byte 14 # DW_FORM_strp .byte 19 # DW_AT_language .byte 5 # DW_FORM_data2 .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 17 # DW_AT_low_pc .byte 1 # DW_FORM_addr .byte 16 # DW_AT_stmt_list .byte 6 # DW_FORM_data4 .byte 27 # DW_AT_comp_dir .byte 14 # DW_FORM_strp .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 2 # Abbreviation Code .byte 46 # DW_TAG_subprogram .byte 1 # DW_CHILDREN_yes .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 63 # DW_AT_external .byte 25 # DW_FORM_flag_present .byte 17 # DW_AT_low_pc .byte 1 # DW_FORM_addr .byte 18 # DW_AT_high_pc .byte 1 # DW_FORM_addr .byte 64 # DW_AT_frame_base .byte 10 # DW_FORM_block1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 3 # Abbreviation Code .byte 52 # DW_TAG_variable .byte 0 # DW_CHILDREN_no .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 2 # DW_AT_location .byte 10 # DW_FORM_block1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 4 # Abbreviation Code .byte 36 # DW_TAG_base_type .byte 0 # DW_CHILDREN_no .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 62 # DW_AT_encoding .byte 11 # DW_FORM_data1 .byte 11 # DW_AT_byte_size .byte 11 # DW_FORM_data1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 5 # Abbreviation Code .byte 15 # DW_TAG_pointer_type .byte 0 # DW_CHILDREN_no .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 6 # Abbreviation Code .byte 38 # DW_TAG_const_type .byte 0 # DW_CHILDREN_no .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 7 # Abbreviation Code .byte 66 # DW_TAG_rvalue_reference_type .byte 0 # DW_CHILDREN_no .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 8 # Abbreviation Code .byte 2 # DW_TAG_class_type .byte 1 # DW_CHILDREN_yes .byte 11 # DW_AT_byte_size .byte 11 # DW_FORM_data1 .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 9 # Abbreviation Code .byte 13 # DW_TAG_member .byte 0 # DW_CHILDREN_no .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 56 # DW_AT_data_member_location .byte 10 # DW_FORM_block1 .byte 50 # DW_AT_accessibility .byte 11 # DW_FORM_data1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 10 # Abbreviation Code .byte 46 # DW_TAG_subprogram .byte 1 # DW_CHILDREN_yes .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 60 # DW_AT_declaration .byte 25 # DW_FORM_flag_present .byte 63 # DW_AT_external .byte 25 # DW_FORM_flag_present .byte 50 # DW_AT_accessibility .byte 11 # DW_FORM_data1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 11 # Abbreviation Code .byte 5 # DW_TAG_formal_parameter .byte 0 # DW_CHILDREN_no .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 52 # DW_AT_artificial .byte 25 # DW_FORM_flag_present .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 12 # Abbreviation Code .byte 46 # DW_TAG_subprogram .byte 1 # DW_CHILDREN_yes .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 60 # DW_AT_declaration .byte 25 # DW_FORM_flag_present .byte 52 # DW_AT_artificial .byte 25 # DW_FORM_flag_present .byte 63 # DW_AT_external .byte 25 # DW_FORM_flag_present .byte 50 # DW_AT_accessibility .byte 11 # DW_FORM_data1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 13 # Abbreviation Code .byte 46 # DW_TAG_subprogram .byte 1 # DW_CHILDREN_yes .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 60 # DW_AT_declaration .byte 25 # DW_FORM_flag_present .byte 52 # DW_AT_artificial .byte 25 # DW_FORM_flag_present .byte 63 # DW_AT_external .byte 25 # DW_FORM_flag_present .byte 50 # DW_AT_accessibility .byte 11 # DW_FORM_data1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 14 # Abbreviation Code .byte 5 # DW_TAG_formal_parameter .byte 0 # DW_CHILDREN_no .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 15 # Abbreviation Code .byte 2 # DW_TAG_class_type .byte 1 # DW_CHILDREN_yes .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 11 # DW_AT_byte_size .byte 11 # DW_FORM_data1 .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 16 # Abbreviation Code .byte 46 # DW_TAG_subprogram .byte 1 # DW_CHILDREN_yes .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 60 # DW_AT_declaration .byte 25 # DW_FORM_flag_present .byte 63 # DW_AT_external .byte 25 # DW_FORM_flag_present .byte 50 # DW_AT_accessibility .byte 11 # DW_FORM_data1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 17 # Abbreviation Code .byte 46 # DW_TAG_subprogram .byte 1 # DW_CHILDREN_yes .byte 50 # DW_AT_accessibility .byte 11 # DW_FORM_data1 .ascii "\207@" # DW_AT_MIPS_linkage_name .byte 14 # DW_FORM_strp .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 60 # DW_AT_declaration .byte 25 # DW_FORM_flag_present .byte 63 # DW_AT_external .byte 25 # DW_FORM_flag_present .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 18 # Abbreviation Code .byte 46 # DW_TAG_subprogram .byte 1 # DW_CHILDREN_yes .ascii "\207@" # DW_AT_MIPS_linkage_name .byte 14 # DW_FORM_strp .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 60 # DW_AT_declaration .byte 25 # DW_FORM_flag_present .byte 63 # DW_AT_external .byte 25 # DW_FORM_flag_present .byte 50 # DW_AT_accessibility .byte 11 # DW_FORM_data1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 19 # Abbreviation Code .byte 47 # DW_TAG_template_type_parameter .byte 0 # DW_CHILDREN_no .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 20 # Abbreviation Code .byte 46 # DW_TAG_subprogram .byte 1 # DW_CHILDREN_yes .byte 71 # DW_AT_specification .byte 19 # DW_FORM_ref4 .byte 17 # DW_AT_low_pc .byte 1 # DW_FORM_addr .byte 18 # DW_AT_high_pc .byte 1 # DW_FORM_addr .byte 64 # DW_AT_frame_base .byte 10 # DW_FORM_block1 .byte 100 # DW_AT_object_pointer .byte 19 # DW_FORM_ref4 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 21 # Abbreviation Code .byte 5 # DW_TAG_formal_parameter .byte 0 # DW_CHILDREN_no .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 52 # DW_AT_artificial .byte 25 # DW_FORM_flag_present .byte 2 # DW_AT_location .byte 10 # DW_FORM_block1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 22 # Abbreviation Code .byte 5 # DW_TAG_formal_parameter .byte 0 # DW_CHILDREN_no .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 2 # DW_AT_location .byte 10 # DW_FORM_block1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 0 # EOM(3) .L.debug_abbrev_end: .section .debug_aranges,"",@progbits .section .debug_ranges,"",@progbits .section .debug_macinfo,"",@progbits .section .debug_str,"MS",@progbits,1 .Linfo_string0: .asciz "clang version 3.3 (tags/RELEASE_33/final)" .Linfo_string1: .asciz "namelessclass.cc" .Linfo_string2: .asciz "/tmp" .Linfo_string3: .asciz "main" .Linfo_string4: .asciz "int" .Linfo_string5: .asciz "a_" .Linfo_string6: .asciz "A" .Linfo_string7: .asciz "this" .Linfo_string8: .asciz "operator()" .Linfo_string9: .asciz "~" .Linfo_string10: .asciz "Func" .Linfo_string11: .asciz "_ZN1A5fudgeIZNS_4doitEvEUlvE_EEiT_" .Linfo_string12: .asciz "fudge<<lambda at namelessclass.cc:27:22> >" .Linfo_string13: .asciz "_ZN1A4doitEv" .Linfo_string14: .asciz "doit" .Linfo_string15: .asciz "a" .Linfo_string16: .asciz "ret" .Linfo_string17: .asciz "func" .section ".note.GNU-stack","",@progbits
tactcomplabs/xbgas-binutils-gdb
1,498
gdb/testsuite/lib/my-syscalls.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2020-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This file implements simple Linux syscall wrappers, to be used by tests that need to know exactly where the syscall instructions are. */ #include <asm/unistd.h> /* int my_execve (const char *file, char *argv[], char *envp[]); */ .global my_execve my_execve: #if defined(__x86_64__) mov $__NR_execve, %rax /* rdi, rsi and rdx already contain the right arguments. */ my_execve_syscall: syscall ret #elif defined(__i386__) mov $__NR_execve, %eax mov 4(%esp), %ebx mov 8(%esp), %ecx mov 12(%esp), %edx my_execve_syscall: int $0x80 ret #elif defined(__aarch64__) mov x8, #__NR_execve /* x0, x1 and x2 already contain the right arguments. */ my_execve_syscall: svc #0 #else # error "Unsupported architecture" #endif
tactcomplabs/xbgas-binutils-gdb
4,740
gdb/testsuite/gdb.dwarf2/dw2-error.S
/* Copyright (C) 2012-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. This was created using gcc -g -dA dw2-error.c, then hand-editing it to change the DWARF version. */ .file "dw2-error.c" .text .Ltext0: .globl main .type main, @function main: .LFB0: .file 1 "dw2-error.c" # dw2-error.c:19 .loc 1 19 0 .cfi_startproc # basic block 2 pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 # dw2-error.c:20 .loc 1 20 0 movl $23, %eax # dw2-error.c:21 .loc 1 21 0 popq %rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size main, .-main .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0x4e # Length of Compilation Unit Info .value 0x99 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x8 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .long .LASF0 # DW_AT_producer: "GNU C 4.6.3 20120306 (Red Hat 4.6.3-2) -mtune=generic -march=x86-64 -g" .byte 0x1 # DW_AT_language .long .LASF1 # DW_AT_name: "dw2-error.c" .long .LASF2 # DW_AT_comp_dir: "/tmp" .quad .Ltext0 # DW_AT_low_pc .quad .Letext0 # DW_AT_high_pc .long .Ldebug_line0 # DW_AT_stmt_list .uleb128 0x2 # (DIE (0x2d) DW_TAG_subprogram) # DW_AT_external .long .LASF3 # DW_AT_name: "main" .byte 0x1 # DW_AT_decl_file (dw2-error.c) .byte 0x12 # DW_AT_decl_line .long 0x4a # DW_AT_type .quad .LFB0 # DW_AT_low_pc .quad .LFE0 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .uleb128 0x3 # (DIE (0x4a) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .byte 0 # end of children of DIE 0xb .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x17 # (DW_FORM_sec_offset) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0 # DW_children_no .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .byte 0 .byte 0 .uleb128 0x3 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0 .byte 0 .byte 0 .section .debug_aranges,"",@progbits .long 0x2c # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .byte 0x8 # Size of Address .byte 0 # Size of Segment Descriptor .value 0 # Pad to 16 byte boundary .value 0 .quad .Ltext0 # Address .quad .Letext0-.Ltext0 # Length .quad 0 .quad 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF0: .string "GNU C 4.6.3 20120306 (Red Hat 4.6.3-2) -mtune=generic -march=x86-64 -g" .LASF2: .string "/tmp" .LASF3: .string "main" .LASF1: .string "dw2-error.c" .ident "GCC: (GNU) 4.6.3 20120306 (Red Hat 4.6.3-2)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
5,649
gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-hello-dbg.S
/* Copyright 2014-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .section .debug_info .4byte .Ledebug_info0 - .Lsdebug_info0 /* Length of Compilation Unit Info */ .Lsdebug_info0: .2byte 0x2 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */ .ascii "GNU C 4.7.4 20140206 for GNAT Pro 7.3.0w (20140206)\0" .byte 0x1 /* DW_AT_language */ .ascii "dw2-abs-hi-pc-hello.c\0" /* DW_AT_name */ .ascii "/tmp\0" /* DW_AT_comp_dir */ .4byte HELLO_START /* DW_AT_low_pc */ .4byte HELLO_END /* DW_AT_high_pc */ .4byte .Ldebug_line0 /* DW_AT_stmt_list */ .uleb128 0x2 /* (DIE (0x2d) DW_TAG_subprogram) */ .byte 0x1 /* DW_AT_external */ .ascii "hello\0" .byte 0x1 /* DW_AT_decl_file (hello.c) */ .byte 0x13 /* DW_AT_decl_line */ .byte 0x1 /* DW_AT_prototyped */ .4byte HELLO_START /* DW_AT_low_pc */ .4byte HELLO_END /* DW_AT_high_pc */ .byte 0 /* end of children of DIE 0xb */ .Ledebug_info0: .section .debug_abbrev .Ldebug_abbrev0: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x1b /* (DW_AT_comp_dir) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x6 /* (DW_FORM_data4) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x6 /* (DW_FORM_data4) */ .uleb128 0x10 /* (DW_AT_stmt_list) */ .uleb128 0x6 /* (DW_FORM_data4) */ .byte 0 .byte 0 .uleb128 0x2 /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0 /* DW_children_no */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0xc /* (DW_FORM_flag) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x27 /* (DW_AT_prototyped) */ .uleb128 0xc /* (DW_FORM_flag) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x6 /* (DW_FORM_data4) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x6 /* (DW_FORM_data4) */ .byte 0 .byte 0 .byte 0 .section .debug_line .Ldebug_line0: .4byte LELT-LSLT /* Length of Source Line Info */ LSLT: .2byte 0x2 /* DWARF Version */ .4byte LELTP-LASLTP /* Prolog Length */ LASLTP: .byte 0x1 /* Minimum Instruction Length */ .byte 0x1 /* Default is_stmt_start flag */ .byte 0x1 /* Line Base Value (Special Opcodes) */ .byte 0x1 /* Line Range Value (Special Opcodes) */ .byte 0xd /* Special Opcode Base */ .byte 0 /* opcode: 0x1 has 0 args */ .byte 0x1 /* opcode: 0x2 has 1 args */ .byte 0x1 /* opcode: 0x3 has 1 args */ .byte 0x1 /* opcode: 0x4 has 1 args */ .byte 0x1 /* opcode: 0x5 has 1 args */ .byte 0 /* opcode: 0x6 has 0 args */ .byte 0 /* opcode: 0x7 has 0 args */ .byte 0 /* opcode: 0x8 has 0 args */ .byte 0x1 /* opcode: 0x9 has 1 args */ .byte 0 /* opcode: 0xa has 0 args */ .byte 0 /* opcode: 0xb has 0 args */ .byte 0x1 /* opcode: 0xc has 1 args */ .byte 0 /* End directory table */ .ascii "dw2-abs-hi-pc-hello.c\0" /* File Entry: 0x1 */ .uleb128 0 .uleb128 0 .uleb128 0 .byte 0 /* End file name table */ LELTP: .byte 0 /* set address to .hello_start */ .uleb128 0x5 .byte 0x2 .4byte HELLO_START .byte 0x3 /* DW_LNS_advance_line */ .sleb128 22 /* ... to 23 */ .byte 0x5 /* column 0 */ .uleb128 0 /* 0 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* set address to .hello0 */ .uleb128 0x5 .byte 0x2 .4byte .hello0 .byte 0x3 /* DW_LNS_advance_line */ .sleb128 1 /* ... to 24 */ .byte 0x5 /* column 0 */ .uleb128 0 /* 0 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* set address to .hello1 */ .uleb128 0x5 .byte 0x2 .4byte .hello1 .byte 0x3 /* DW_LNS_advance_line */ .sleb128 1 /* ... to 25 */ .byte 0x5 /* column 0 */ .uleb128 0 /* 0 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* set address to .hello_end */ .uleb128 0x5 .byte 0x2 .4byte HELLO_END .byte 0 /* end sequence */ .uleb128 0x1 .byte 0x1 LELT:
tactcomplabs/xbgas-binutils-gdb
5,396
gdb/testsuite/gdb.dwarf2/dw2-basic.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2004-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Test a minimal file containing DWARF-2 information. This test also serves as a skeleton for other DWARF-2 tests. Most other tests will not be this extensively itemized and commented... */ /* Dummy function to provide debug information for. */ .text .Lbegin_text1: .globl func_cu1 .type func_cu1, %function func_cu1: .Lbegin_func_cu1: .int 0 .Lend_func_cu1: .size func_cu1, .-func_cu1 .Lend_text1: /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lline1_begin /* DW_AT_stmt_list */ .4byte .Lend_text1 /* DW_AT_high_pc */ .4byte .Lbegin_text1 /* DW_AT_low_pc */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ /* func_cu1 */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_decl_file */ .byte 2 /* DW_AT_decl_line */ .ascii "func_cu1\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .4byte .Lbegin_func_cu1 /* DW_AT_low_pc */ .4byte .Lend_func_cu1 /* DW_AT_high_pc */ .byte 1 /* DW_AT_frame_base: length */ .byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */ .Ltype_int: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0 /* has_children */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3a /* DW_AT_decl_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3b /* DW_AT_decl_line */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x40 /* DW_AT_frame_base */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ /* Line table */ .section .debug_line .Lline1_begin: .4byte .Lline1_end - .Lline1_start /* Initial length */ .Lline1_start: .2byte 2 /* Version */ .4byte .Lline1_lines - .Lline1_hdr /* header_length */ .Lline1_hdr: .byte 1 /* Minimum insn length */ .byte 1 /* default_is_stmt */ .byte 1 /* line_base */ .byte 1 /* line_range */ .byte 0x10 /* opcode_base */ /* Standard lengths */ .byte 0 .byte 1 .byte 1 .byte 1 .byte 1 .byte 0 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 0 /* Include directories */ .byte 0 /* File names */ .ascii "file1.txt\0" .uleb128 0 .uleb128 0 .uleb128 0 .byte 0 .Lline1_lines: .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lbegin_func_cu1 .byte 3 /* DW_LNS_advance_line */ .sleb128 3 /* ... to 4 */ .byte 1 /* DW_LNS_copy */ .byte 1 /* DW_LNS_copy (second time as an end-of-prologue marker) */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lend_func_cu1 .byte 0 /* DW_LNE_end_of_sequence */ .uleb128 1 .byte 1 .Lline1_end:
tactcomplabs/xbgas-binutils-gdb
2,960
gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .data .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .ascii "dw2-var-zero-addr.c\0" /* DW_AT_name */ .ascii "GNU C 4.3.2\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ .Ltype_uchar: .uleb128 2 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .uleb128 3 /* Abbrev: DW_TAG_variable (location) */ .ascii "var\0" /* DW_AT_name */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 3 /* DW_OP_addr */ .4byte 0 /* <addr> */ 2: .4byte .Ltype_uchar-.Lcu1_begin /* DW_AT_type */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code (location) */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x2 /* DW_AT_location */ .uleb128 0xa /* DW_FORM_block1 */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */
tactcomplabs/xbgas-binutils-gdb
8,298
gdb/testsuite/gdb.dwarf2/dw2-icycle.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2014-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .text .Ltext0: .type p__top__middle__inside.3062, @function p__top__middle__inside.3062: .LFB4: .file 1 "p.adb" .4byte 0 .LBE6: .globl p__top .type p__top, @function p__top: .LFB2: .4byte 0 .LFE2: .Letext0: .section .debug_info .Ldebug_info0: .4byte .Ledebug_info0 - .Lsdebug_info0 /* Length of CU Info */ .Lsdebug_info0: .2byte 0x4 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */ .ascii "GNU Ada 4.9.0 20140126\0" /* DW_AT_producer */ .byte 0xd /* DW_AT_language */ .ascii "p.adb\0" /* DW_AT_name */ .ascii "/tmp\0" /* DW_AT_comp_dir */ .4byte .Ltext0 /* DW_AT_low_pc */ .4byte .Letext0-.Ltext0 /* DW_AT_high_pc */ .S0x142: .uleb128 0x8 /* (DIE (0x142) DW_TAG_base_type) */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding */ .ascii "integer\0" /* DW_AT_name */ .uleb128 0x13 /* (DIE (0x1b4) DW_TAG_subprogram) */ /* DW_AT_external */ .ascii "p__top\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_decl_file (p.adb) */ .byte 0x3 /* DW_AT_decl_line */ .4byte .LFB2 /* DW_AT_low_pc */ .4byte .LFE2-.LFB2 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_AT_frame_base */ .byte 0x9c /* DW_OP_call_frame_cfa */ /* DW_AT_GNU_all_call_sites */ .S0x1e0: .uleb128 0x15 /* (DIE (0x1e0) DW_TAG_subprogram) */ .ascii "p__top__middle\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_decl_file (p.adb) */ .byte 0x4 /* DW_AT_decl_line */ .byte 0x1 /* DW_AT_inline */ .S0x202: .uleb128 0x15 /* (DIE (0x202) DW_TAG_subprogram) */ .ascii "p__top__middle__inside\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_decl_file (p.adb) */ .byte 0x5 /* DW_AT_decl_line */ .byte 0x1 /* DW_AT_inline */ .byte 0 /* end of children of DIE 0x202 */ .S0x225: .uleb128 0x18 /* (DIE (0x225) DW_TAG_subprogram) */ .4byte .S0x202 - .Ldebug_info0 /* DW_AT_abstract_origin */ .4byte .LFB4 /* DW_AT_low_pc */ .4byte .LBE6-.LFB4 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_AT_frame_base */ .byte 0x9c /* DW_OP_call_frame_cfa */ .uleb128 0x1 /* DW_AT_static_link */ .byte 0x56 /* DW_OP_reg6 */ /* DW_AT_GNU_all_call_sites */ .uleb128 0x1a /* (DIE (0x247) DW_TAG_inlined_subroutine) */ .4byte .S0x1e0 - .Ldebug_info0 /* DW_AT_abstract_origin */ .4byte .LFB4 /* DW_AT_low_pc */ .4byte .LBE6-.LFB4 /* DW_AT_high_pc */ .byte 0x1 /* DW_AT_call_file (p.adb) */ .byte 0x14 /* DW_AT_call_line */ .byte 0 /* end of children of DIE 0x247 */ .byte 0 /* end of children of DIE 0x225 */ .byte 0 /* end of children of DIE 0x1e0 */ .S0x374: .uleb128 0x23 /* (DIE (0x382) DW_TAG_inlined_subroutine) */ .4byte .S0x1e0 - .Ldebug_info0 /* DW_AT_abstract_origin */ .4byte .LFB4 /* DW_AT_low_pc */ .4byte .LBE6-.LFB4 /* DW_AT_high_pc */ .byte 0x1 /* DW_AT_call_file (p.adb) */ .byte 0x1d /* DW_AT_call_line */ .byte 0 /* end of children of DIE 0x382 */ .byte 0 /* end of children of DIE 0x1b4 */ .S0x4fc: .uleb128 0x28 /* (DIE (0x52e) DW_TAG_subprogram) */ /* DW_AT_external */ .ascii "__gnat_rcheck_PE_Explicit_Raise\0" /* DW_AT_name */ /* DW_AT_artificial */ /* DW_AT_declaration */ .byte 0 /* end of children of DIE 0x52e */ .byte 0 /* end of children of DIE 0xb */ .Ledebug_info0: .section .debug_abbrev .Ldebug_abbrev0: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x1b /* (DW_AT_comp_dir) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x6 /* (DW_FORM_data4) */ .byte 0 .byte 0 .uleb128 0x8 /* (abbrev code) */ .uleb128 0x24 /* (TAG: DW_TAG_base_type) */ .byte 0 /* DW_children_no */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3e /* (DW_AT_encoding) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .byte 0 .byte 0 .uleb128 0x13 /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0x19 /* (DW_FORM_flag_present) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x6 /* (DW_FORM_data4) */ .uleb128 0x40 /* (DW_AT_frame_base) */ .uleb128 0x18 /* (DW_FORM_exprloc) */ .uleb128 0x2117 /* (DW_AT_GNU_all_call_sites) */ .uleb128 0x19 /* (DW_FORM_flag_present) */ .byte 0 .byte 0 .uleb128 0x15 /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x20 /* (DW_AT_inline) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0 .byte 0 .uleb128 0x18 /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x31 /* (DW_AT_abstract_origin) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x6 /* (DW_FORM_data4) */ .uleb128 0x40 /* (DW_AT_frame_base) */ .uleb128 0x18 /* (DW_FORM_exprloc) */ .uleb128 0x48 /* (DW_AT_static_link) */ .uleb128 0x18 /* (DW_FORM_exprloc) */ .uleb128 0x2117 /* (DW_AT_GNU_all_call_sites) */ .uleb128 0x19 /* (DW_FORM_flag_present) */ .byte 0 .byte 0 .uleb128 0x1a /* (abbrev code) */ .uleb128 0x1d /* (TAG: DW_TAG_inlined_subroutine) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x31 /* (DW_AT_abstract_origin) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x6 /* (DW_FORM_data4) */ .uleb128 0x58 /* (DW_AT_call_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x59 /* (DW_AT_call_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0 .byte 0 .uleb128 0x23 /* (abbrev code) */ .uleb128 0x1d /* (TAG: DW_TAG_inlined_subroutine) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x31 /* (DW_AT_abstract_origin) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x6 /* (DW_FORM_data4) */ .uleb128 0x58 /* (DW_AT_call_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x59 /* (DW_AT_call_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0 .byte 0 .uleb128 0x28 /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0x19 /* (DW_FORM_flag_present) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x34 /* (DW_AT_artificial) */ .uleb128 0x19 /* (DW_FORM_flag_present) */ .uleb128 0x3c /* (DW_AT_declaration) */ .uleb128 0x19 /* (DW_FORM_flag_present) */ .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .section .debug_line .Lline1_begin: .byte 0
tactcomplabs/xbgas-binutils-gdb
11,083
gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2012-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This test triggers a crash when a physname for a subprogram has a method pointer to an anonymous struct as a parameter. This situation is possible with templates and lambda expressions, reproduced here by the following source code: class a { public: int doit (void) { return 0; } }; class crash { public: crash (int (a::*mp) (void)) {} }; In order to avoid lambdas, the resulting output has been edited to remove the DW_AT_name attribute from the DIEs describing "class a." */ #define OFFSET(LBL) .Ldie_ ## LBL - .Lcu1_begin .section .debug_info .Lcu1_begin: .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit Info */ .Lcu1_start: .2byte 0x3 /* DWARF version number */ .4byte .Labbrev1_begin /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .Ldie_b: .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */ .ascii "GNU C++ 4.6.3\0" /* DW_AT_producer */ .byte 0x4 /* DW_AT_language */ .ascii "anon-member-ptr.cc\0" /* DW_AT_name */ .4byte .Ldebug_line0 /* DW_AT_stmt_list */ .Ldie_31: .uleb128 0x2 /* (DIE (0x31) DW_TAG_class_type */ #if 0 /* This is the "fudging" part... */ .ascii "a\0" /* DW_AT_name */ #endif .byte 0x1 /* DW_AT_byte_size */ .Ldie_59: .uleb128 0x4 /* (DIE (0x59) DW_TAG_base_type */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding */ .ascii "int\0" /* DW_AT_name */ .Ldie_60: .uleb128 0x5 /* (DIE (0x60) DW_TAG_pointer_type) */ .byte 0x4 /* DW_AT_byte_size */ .4byte OFFSET (31) /* DW_AT_type */ .Ldie_66: .uleb128 0x6 /* (DIE (0x66) DW_TAG_class_type) */ .ascii "crash\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_byte_size */ .4byte OFFSET (8d) /* DW_AT_sibling */ .Ldie_72: .uleb128 0x7 /* (DIE (0x72) DW_TAG_subprogram) */ .byte 0x1 /* DW_AT_external */ .ascii "crash\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_accessibility */ .byte 0x1 /* DW_AT_declaration */ .4byte OFFSET (80) /* DW_AT_object_pointer */ .Ldie_80: .uleb128 0x3 /* (DIE (0x80) DW_TAG_formal_parameter */ .4byte OFFSET (8d) /* DW_AT_type */ .byte 0x1 /* DW_AT_artificial */ .Ldie_86: .uleb128 0x3 /* (DIE (0x86) DW_TAG_formal_parameter */ .4byte OFFSET (93) /* DW_AT_type */ .byte 0x0 /* DW_AT_artificial */ .byte 0 /* end of children of DIE 0x72 */ .byte 0 /* end of children of DIE 0x66 */ .Ldie_8d: .uleb128 0x5 /* (DIE (0x8d) DW_TAG_pointer_type */ .byte 0x4 /* DW_AT_size */ .4byte OFFSET (66) /* DW_AT_type */ .Ldie_93: .uleb128 0x8 /* (DIE (0x93) DW_TAG_structure_type */ .byte 0x10 /* DW_AT_byte_size */ .4byte OFFSET (b4) /* DW_AT_sibling */ .Ldie_9b: .uleb128 0x9 /* (DIE (0x9b) DW_TAG_member */ .ascii "__pfn\0" /* DW_AT_name */ .4byte OFFSET (c8) /* DW_AT_type */ .byte 0 /* DW_AT_data_member_location */ .Ldie_a7: .uleb128 0x9 /* (DIE (0xa7) DW_TAG_member */ .ascii "__delta\0" /* DW_AT_name */ .4byte OFFSET (ce) /* DW_AT_type */ .byte 0x8 /* DW_AT_data_member_location */ .byte 0 /* end of children of DIE 0x93 */ .Ldie_b4: .uleb128 0xa /* (DIE (0xb4) DW_TAG_subroutine_type) */ .4byte OFFSET (59) /* DW_AT_type */ .4byte OFFSET (c1) /* DW_AT_object_pointer */ .4byte OFFSET (c8) /* DW_AT_sibling */ .Ldie_c1: .uleb128 0x3 /* (DIE (0xc1) DW_TAG_formal_parameter) */ .4byte OFFSET (60) /* DW_AT_type */ .byte 0x1 /* DW_AT_artificial */ .byte 0 /* end of children of DIE 0xb4 */ .Ldie_c8: .uleb128 0x5 /* (DIE (0xc8) DW_TAG_pointer_type) */ .byte 0x4 /* DW_AT_byte_size */ .4byte OFFSET (b4) /* DW_AT_type */ .Ldie_ce: .uleb128 0x4 /* (DIE (0xce) DW_TAG_base_type) */ .byte 0x8 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding */ .ascii "long int\0" /* DW_AT_name */ .Ldie_107: .uleb128 0xc /* (DIE (0x107) DW_TAG_subprogram) */ .4byte OFFSET (72) /* DW_AT_specification */ .byte 0x2 /* DW_AT_inline */ .4byte OFFSET (115) /* DW_AT_object_pointer */ .4byte OFFSET (12a) /* DW_AT_sibling */ .Ldie_115: .uleb128 0xd /* (DIE (0x115) DW_TAG_formal_parameter) */ .ascii "this\0" /* DW_AT_name */ .4byte OFFSET (12a) /* DW_AT_type */ .byte 0x1 /* DW_AT_artificial */ .Ldie_11f: .uleb128 0xd /* (DIE (0x11f) DW_TAG_formal_parameter) */ .ascii "mp\0" /* DW_AT_name */ .4byte OFFSET (93) /* DW_AT_type */ .byte 0x0 /* DW_AT_artificial */ .byte 0 /* end of children of DIE 0x107 */ .Ldie_12a: .uleb128 0xb /* (DIE (0x12a) DW_TAG_const_type) */ .4byte OFFSET (8d) /* DW_AT_type */ .Ldie_12f: .uleb128 0xe /* (DIE (0x12f) DW_TAG_subprogram) */ .4byte OFFSET (107) /* DW_AT_abstract_origin */ .4byte 0x20 /* DW_AT_low_pc */ .4byte 0x2c /* DW_AT_high_pc */ .4byte OFFSET (14e) /* DW_AT_object_pointer */ .Ldie_14e: .uleb128 0xf /* (DIE (0x14e) DW_TAG_formal_parameter) */ .4byte OFFSET (115) /* DW_AT_abstract_origin */ .byte 0x2 /* DW_AT_location */ .byte 0x91 .sleb128 -24 .Ldie_156: .uleb128 0xf /* (DIE (0x156) DW_TAG_formal_parameter) */ .4byte OFFSET (11f) /* DW_at_abstract_origin */ .byte 0x2 /* DW_AT_location */ .byte 0x91 .sleb128 -40 .byte 0 /* end of children of DIE 0x12f */ .byte 0 /* end of children of DIE 0x5b */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .uleb128 0x1 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x10 /* (DW_AT_stmt_list) */ .uleb128 0x6 /* (DW_FORM_data4) */ .byte 0 .byte 0 .uleb128 0x2 /* (abbrev code) */ .uleb128 0x2 /* (TAG: DW_TAG_class_type) */ .byte 0x0 /* DW_children_no */ #if 0 /* This is the "fudging" part... */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ #endif .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0 .byte 0 .uleb128 0x3 /* (abbrev code) */ .uleb128 0x5 /* (TAG: DW_TAG_formal_parameter) */ .byte 0 /* DW_children_no */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x34 /* (DW_AT_artificial) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0 .byte 0 .uleb128 0x4 /* (abbrev code) */ .uleb128 0x24 /* (TAG: DW_TAG_base_type) */ .byte 0 /* DW_children_no */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3e /* (DW_AT_encoding) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .byte 0 .byte 0 .uleb128 0x5 /* (abbrev code) */ .uleb128 0xf /* (TAG: DW_TAG_pointer_type) */ .byte 0 /* DW_children_no */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0 .byte 0 .uleb128 0x6 /* (abbrev code) */ .uleb128 0x2 /* (TAG: DW_TAG_class_type) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x1 /* (DW_AT_sibling) */ .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x7 /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0xc /* (DW_FORM_flag) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x32 /* (DW_AT_accessibility) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3c /* (DW_AT_declaration) */ .uleb128 0xc /* (DW_FORM_flag) */ .uleb128 0x64 /* (DW_AT_object_pointer) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0 .byte 0 .uleb128 0x8 /* (abbrev code) */ .uleb128 0x13 /* (TAG: DW_TAG_structure_type) */ .byte 0x1 /* DW_children_yes */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x1 /* (DW_AT_sibling) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0 .byte 0 .uleb128 0x9 /* (abbrev code) */ .uleb128 0xd /* (TAG: DW_TAG_member) */ .byte 0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x38 /* (DW_AT_data_member_location) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0 .byte 0 .uleb128 0xa /* (abbrev code) */ .uleb128 0x15 /* (TAG: DW_TAG_subroutine_type) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x64 /* (DW_AT_object_pointer) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x1 /* (DW_AT_sibling) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0 .byte 0 .uleb128 0xb /* (abbrev code) */ .uleb128 0x26 /* (TAG: DW_TAG_const_type) */ .byte 0 /* DW_children_no */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0 .byte 0 .uleb128 0xc /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x47 /* (DW_AT_specification) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x20 /* (DW_AT_inline) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x64 /* (DW_AT_object_pointer) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x1 /* (DW_AT_sibling) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0 .byte 0 .uleb128 0xd /* (abbrev code) */ .uleb128 0x5 /* (TAG: DW_TAG_formal_parameter) */ .byte 0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x34 /* (DW_AT_artificial) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0 .byte 0 .uleb128 0xe /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x31 /* (DW_AT_abstract_origin) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x64 /* (DW_AT_object_pointer) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0 .byte 0 .uleb128 0xf /* (abbrev code) */ .uleb128 0x5 /* (TAG: DW_TAG_formal_parameter) */ .byte 0 /* DW_children_no */ .uleb128 0x31 /* (DW_AT_abstract_origin) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x2 /* (DW_AT_location) */ .uleb128 0xa /* (DW_FORM_block) */ .byte 0 .byte 0 .byte 0 .section .debug_line .Ldebug_line0:
tactcomplabs/xbgas-binutils-gdb
9,335
gdb/testsuite/gdb.dwarf2/dw2-dup-frame.S
/* Copyright 2013-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* The FDE entry for "stop_frame" in the .debug_frame section has been hand modified to mark a set of registers as DW_CFA_same_value. Otherwise this file is as generated by gcc 4.7.2 for x86_64. */ .file "dw2-dup-frame.c" .text .Ltext0: .globl stop_frame .type stop_frame, @function stop_frame: .LFB0: .file 1 "dw2-dup-frame.c" .loc 1 19 0 pushq %rbp .LCFI0: movq %rsp, %rbp .LCFI1: .loc 1 22 0 popq %rbp .LCFI2: ret .LFE0: .size stop_frame, .-stop_frame .globl first_frame .type first_frame, @function first_frame: .LFB1: .loc 1 26 0 pushq %rbp .LCFI3: movq %rsp, %rbp .LCFI4: .loc 1 27 0 movl $0, %eax call stop_frame .loc 1 28 0 popq %rbp .LCFI5: ret .LFE1: .size first_frame, .-first_frame .globl main .type main, @function main: .LFB2: .loc 1 32 0 pushq %rbp .LCFI6: movq %rsp, %rbp .LCFI7: .loc 1 33 0 movl $0, %eax call first_frame .loc 1 35 0 movl $0, %eax .loc 1 36 0 popq %rbp .LCFI8: ret .LFE2: .size main, .-main .section .debug_frame,"",@progbits .Lframe0: .long .LECIE0-.LSCIE0 .LSCIE0: .long 0xffffffff .byte 0x1 .string "" .uleb128 0x1 .sleb128 -8 .byte 0x10 .byte 0xc .uleb128 0x7 .uleb128 0x8 .byte 0x90 .uleb128 0x1 .align 8 .LECIE0: /* This FDE entry, for stop_frame was modified to mark registers 0 -> 16 (rax..ra/rip) as being DW_CFA_same_value. */ .LSFDE0: .long .LEFDE0-.LASFDE0 .LASFDE0: .long .Lframe0 .quad .LFB0 .quad .LFE0-.LFB0 /* START OF NEW CONTENT. */ .byte 0x8 /* DW_CFA_same_value */ .uleb128 0x0 /* ULEB128 register */ .byte 0x8 /* DW_CFA_same_value */ .uleb128 0x1 /* ULEB128 register */ .byte 0x8 /* DW_CFA_same_value */ .uleb128 0x2 /* ULEB128 register */ .byte 0x8 /* DW_CFA_same_value */ .uleb128 0x3 /* ULEB128 register */ .byte 0x8 /* DW_CFA_same_value */ .uleb128 0x4 /* ULEB128 register */ .byte 0x8 /* DW_CFA_same_value */ .uleb128 0x5 /* ULEB128 register */ .byte 0x8 /* DW_CFA_same_value */ .uleb128 0x6 /* ULEB128 register */ .byte 0x8 /* DW_CFA_same_value */ .uleb128 0x7 /* ULEB128 register */ .byte 0x8 /* DW_CFA_same_value */ .uleb128 0x8 /* ULEB128 register */ .byte 0x8 /* DW_CFA_same_value */ .uleb128 0x9 /* ULEB128 register */ .byte 0x8 /* DW_CFA_same_value */ .uleb128 0xa /* ULEB128 register */ .byte 0x8 /* DW_CFA_same_value */ .uleb128 0xb /* ULEB128 register */ .byte 0x8 /* DW_CFA_same_value */ .uleb128 0xc /* ULEB128 register */ .byte 0x8 /* DW_CFA_same_value */ .uleb128 0xd /* ULEB128 register */ .byte 0x8 /* DW_CFA_same_value */ .uleb128 0xe /* ULEB128 register */ .byte 0x8 /* DW_CFA_same_value */ .uleb128 0xf /* ULEB128 register */ .byte 0x8 /* DW_CFA_same_value */ .uleb128 0x10 /* ULEB128 register */ /* END OF NEW CONTENT. */ .byte 0x4 .long .LCFI0-.LFB0 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI1-.LCFI0 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI2-.LCFI1 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE0: .LSFDE2: .long .LEFDE2-.LASFDE2 .LASFDE2: .long .Lframe0 .quad .LFB1 .quad .LFE1-.LFB1 .byte 0x4 .long .LCFI3-.LFB1 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI4-.LCFI3 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI5-.LCFI4 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE2: .LSFDE4: .long .LEFDE4-.LASFDE4 .LASFDE4: .long .Lframe0 .quad .LFB2 .quad .LFE2-.LFB2 .byte 0x4 .long .LCFI6-.LFB2 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI7-.LCFI6 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI8-.LCFI7 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE4: .section .eh_frame,"a",@progbits .Lframe1: .long .LECIE1-.LSCIE1 .LSCIE1: .long 0 .byte 0x1 .string "zR" .uleb128 0x1 .sleb128 -8 .byte 0x10 .uleb128 0x1 .byte 0x3 .byte 0xc .uleb128 0x7 .uleb128 0x8 .byte 0x90 .uleb128 0x1 .align 8 .LECIE1: .LSFDE7: .long .LEFDE7-.LASFDE7 .LASFDE7: .long .LASFDE7-.Lframe1 .long .LFB0 .long .LFE0-.LFB0 .uleb128 0 .byte 0x4 .long .LCFI0-.LFB0 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI1-.LCFI0 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI2-.LCFI1 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE7: .LSFDE9: .long .LEFDE9-.LASFDE9 .LASFDE9: .long .LASFDE9-.Lframe1 .long .LFB1 .long .LFE1-.LFB1 .uleb128 0 .byte 0x4 .long .LCFI3-.LFB1 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI4-.LCFI3 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI5-.LCFI4 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE9: .LSFDE11: .long .LEFDE11-.LASFDE11 .LASFDE11: .long .LASFDE11-.Lframe1 .long .LFB2 .long .LFE2-.LFB2 .uleb128 0 .byte 0x4 .long .LCFI6-.LFB2 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI7-.LCFI6 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI8-.LCFI7 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE11: .text .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0x8c .value 0x2 .long .Ldebug_abbrev0 .byte 0x8 .uleb128 0x1 .long .LASF2 .byte 0x1 .long .LASF3 .long .LASF4 .quad .Ltext0 .quad .Letext0 .long .Ldebug_line0 .uleb128 0x2 .byte 0x1 .long .LASF0 .byte 0x1 .byte 0x12 .quad .LFB0 .quad .LFE0 .long .LLST0 .byte 0x1 .uleb128 0x3 .byte 0x1 .long .LASF1 .byte 0x1 .byte 0x19 .quad .LFB1 .quad .LFE1 .long .LLST1 .byte 0x1 .uleb128 0x4 .byte 0x1 .long .LASF5 .byte 0x1 .byte 0x1f .long 0x88 .quad .LFB2 .quad .LFE2 .long .LLST2 .byte 0x1 .uleb128 0x5 .byte 0x4 .byte 0x5 .string "int" .byte 0 .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 .uleb128 0x11 .byte 0x1 .uleb128 0x25 .uleb128 0xe .uleb128 0x13 .uleb128 0xb .uleb128 0x3 .uleb128 0xe .uleb128 0x1b .uleb128 0xe .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x10 .uleb128 0x6 .byte 0 .byte 0 .uleb128 0x2 .uleb128 0x2e .byte 0 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x6 .uleb128 0x2117 .uleb128 0xc .byte 0 .byte 0 .uleb128 0x3 .uleb128 0x2e .byte 0 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x6 .uleb128 0x2116 .uleb128 0xc .byte 0 .byte 0 .uleb128 0x4 .uleb128 0x2e .byte 0 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x6 .uleb128 0x2116 .uleb128 0xc .byte 0 .byte 0 .uleb128 0x5 .uleb128 0x24 .byte 0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0x8 .byte 0 .byte 0 .byte 0 .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .quad .LFB0-.Ltext0 .quad .LCFI0-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad .LCFI0-.Ltext0 .quad .LCFI1-.Ltext0 .value 0x2 .byte 0x77 .sleb128 16 .quad .LCFI1-.Ltext0 .quad .LCFI2-.Ltext0 .value 0x2 .byte 0x76 .sleb128 16 .quad .LCFI2-.Ltext0 .quad .LFE0-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad 0 .quad 0 .LLST1: .quad .LFB1-.Ltext0 .quad .LCFI3-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad .LCFI3-.Ltext0 .quad .LCFI4-.Ltext0 .value 0x2 .byte 0x77 .sleb128 16 .quad .LCFI4-.Ltext0 .quad .LCFI5-.Ltext0 .value 0x2 .byte 0x76 .sleb128 16 .quad .LCFI5-.Ltext0 .quad .LFE1-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad 0 .quad 0 .LLST2: .quad .LFB2-.Ltext0 .quad .LCFI6-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad .LCFI6-.Ltext0 .quad .LCFI7-.Ltext0 .value 0x2 .byte 0x77 .sleb128 16 .quad .LCFI7-.Ltext0 .quad .LCFI8-.Ltext0 .value 0x2 .byte 0x76 .sleb128 16 .quad .LCFI8-.Ltext0 .quad .LFE2-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad 0 .quad 0 .section .debug_aranges,"",@progbits .long 0x2c .value 0x2 .long .Ldebug_info0 .byte 0x8 .byte 0 .value 0 .value 0 .quad .Ltext0 .quad .Letext0-.Ltext0 .quad 0 .quad 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF0: .string "stop_frame" .LASF3: .string "dw2-reg-undefined.c" .LASF2: .string "GNU C 4.7.2" .LASF1: .string "first_frame" .LASF5: .string "main" .LASF4: .string "/home/username/src/gdb/testsuite/gdb.dwarf2" .ident "GCC: (GNU) 4.7.2" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
5,466
gdb/testsuite/gdb.dwarf2/dw2-producer.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2004-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This file contains some basic DWARF info. The only particularity about this info is that this compile unit does not have a DW_AT_producer attribute. The rest is a straight copy of one of the other assembly files available in this directory. The intent of this testcase is to verify that GDB is able to handle the lack of the DW_AT_producer attribute without problem. */ /* Dummy function to provide debug information for. */ .text .Lbegin_text1: .globl func_cu1 .type func_cu1, %function func_cu1: .Lbegin_func_cu1: .int 0 .Lend_func_cu1: .size func_cu1, .-func_cu1 .Lend_text1: /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lline1_begin /* DW_AT_stmt_list */ .4byte .Lend_text1 /* DW_AT_high_pc */ .4byte .Lbegin_text1 /* DW_AT_low_pc */ .ascii "file1.txt\0" /* DW_AT_name */ .byte 1 /* DW_AT_language (C) */ /* func_cu1 */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_decl_file */ .byte 2 /* DW_AT_decl_line */ .ascii "func_cu1\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .4byte .Lbegin_func_cu1 /* DW_AT_low_pc */ .4byte .Lend_func_cu1 /* DW_AT_high_pc */ .byte 1 /* DW_AT_frame_base: length */ .byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */ .Ltype_int: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0 /* has_children */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3a /* DW_AT_decl_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3b /* DW_AT_decl_line */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x40 /* DW_AT_frame_base */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ /* Line table */ .section .debug_line .Lline1_begin: .4byte .Lline1_end - .Lline1_start /* Initial length */ .Lline1_start: .2byte 2 /* Version */ .4byte .Lline1_lines - .Lline1_hdr /* header_length */ .Lline1_hdr: .byte 1 /* Minimum insn length */ .byte 1 /* default_is_stmt */ .byte 1 /* line_base */ .byte 1 /* line_range */ .byte 0x10 /* opcode_base */ /* Standard lengths */ .byte 0 .byte 1 .byte 1 .byte 1 .byte 1 .byte 0 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 0 /* Include directories */ .byte 0 /* File names */ .ascii "file1.txt\0" .uleb128 0 .uleb128 0 .uleb128 0 .byte 0 .Lline1_lines: .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lbegin_func_cu1 .byte 3 /* DW_LNS_advance_line */ .sleb128 3 /* ... to 4 */ .byte 1 /* DW_LNS_copy */ .byte 1 /* DW_LNS_copy (second time as an end-of-prologue marker) */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lend_func_cu1 .byte 0 /* DW_LNE_end_of_sequence */ .uleb128 1 .byte 1 .Lline1_end:
tactcomplabs/xbgas-binutils-gdb
17,980
gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2010-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This test triggers a complaint when gdb attempts to set a DIE's type twice. The test was derived from the following source code: #include <vector> class a { private: class b { public: b () { } }; std::vector<b> list_; }; What follows below is a much simplified version of the debug info generated by gcc from the above code. */ #define OFFSET(LBL) .Ldie_ ## LBL - .Lcu1_begin .section .debug_info .Lcu1_begin: .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit Info */ .Lcu1_start: .2byte 0x3 /* DWARF version number */ .4byte .Labbrev1_begin /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .Ldie_b: .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */ .ascii "GNU C++ 4.4.3 20100127 (Red Hat 4.4.3-4)\0" /* DW_AT_producer */ .byte 0x4 /* DW_AT_language */ .ascii "duplicate-type.cc\0" /* DW_AT_name */ .Ldie_38: .uleb128 0x3 /* (DIE (0x38) DW_TAG_typedef) */ .ascii "size_t\0" /* DW_AT_name */ .4byte OFFSET (43) /* DW_AT_type */ .Ldie_43: .uleb128 0x2 /* (DIE (0x43) DW_TAG_base_type) */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x7 /* DW_AT_encoding */ .ascii "long unsigned int\0" /* DW_AT_name */ .Ldie_4a: .uleb128 0x4 /* (DIE (0x4a) DW_TAG_namespace) */ .ascii "std\0" /* DW_AT_name */ .Ldie_70: .uleb128 0x8 /* (DIE (0x70) DW_TAG_class_type) */ .ascii "allocator<a::b>\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_declaration */ .Ldie_76: .uleb128 0x9 /* (DIE (0x76) DW_TAG_structure_type) */ .ascii "_Vector_base<a::b, std::allocator<a::b> >\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_declaration */ .Ldie_80: .uleb128 0xa /* (DIE (0x80) DW_TAG_structure_type) */ .ascii "_Vector_impl\0" /* DW_AT_name */ .byte 0x18 /* DW_AT_byte_size */ .Ldie_88: .uleb128 0xb /* (DIE (0x88) DW_TAG_inheritance) */ .4byte OFFSET (3e0) /* DW_AT_type */ .sleb128 0 /* DW_AT_data_member_location */ .byte 0x1 /* DW_AT_accessibility */ .byte 0x0 /* end of children of DIE 0x80 */ .byte 0x0 /* end of children of DIE 0x76 */ .Ldie_f7: .uleb128 0x8 /* (DIE (0xf7) DW_TAG_class_type) */ .ascii "vector<a::b, std::allocator<a::b> >\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_declaration */ .byte 0x0 /* end of children of DIE 0x4a */ .Ldie_143: .uleb128 0x13 /* (DIE (0x143) DW_TAG_base_type) */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding */ .Ldie_162: .uleb128 0x8 /* (DIE (0x162) DW_TAG_class_type) */ .ascii "new_allocator<a::b>\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_declaration */ .Ldie_19f: .uleb128 0x2 /* (DIE (0x19f) DW_TAG_base_type) */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding */ .ascii "int\0" /* DW_AT_name */ .Ldie_1c6: .uleb128 0x17 /* (DIE (0x1c6) DW_TAG_pointer_type) */ .byte 0x8 /* DW_AT_byte_size */ .4byte OFFSET (1cc) /* DW_AT_type */ .Ldie_1cc: .uleb128 0x18 /* (DIE (0x1cc) DW_TAG_const_type) */ .Ldie_1cd: .uleb128 0x2 /* (DIE (0x1cd) DW_TAG_base_type) */ .byte 0x1 /* DW_AT_byte_size */ .byte 0x6 /* DW_AT_encoding */ .ascii "char\0" /* DW_AT_name */ .Ldie_221: .uleb128 0x1b /* (DIE (0x221) DW_TAG_class_type) */ .ascii "a\0" /* DW_AT_name */ .byte 0x18 /* DW_AT_byte_size */ .Ldie_22b: .uleb128 0x1b /* (DIE (0x22b) DW_TAG_class_type) */ .ascii "b\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_byte_size */ .Ldie_235: .uleb128 0x1c /* (DIE (0x235) DW_TAG_subprogram) */ .byte 0x1 /* DW_AT_external */ .ascii "b\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_declaration */ .Ldie_23c: .uleb128 0xe /* (DIE (0x23c) DW_TAG_formal_parameter) */ .4byte OFFSET (277) /* DW_AT_type */ .byte 0x1 /* DW_AT_artificial */ .byte 0x0 /* end of children of DIE 0x235 */ .byte 0x0 /* end of children of DIE 0x22b */ .Ldie_244: .uleb128 0x1d /* (DIE (0x244) DW_TAG_member) */ .ascii "list\0" /* DW_AT_name */ .4byte OFFSET (59d) /* DW_AT_type */ .sleb128 0 /* DW_AT_data_member_location */ .byte 0x3 /* DW_AT_accessibility */ .Ldie_251: .uleb128 0x1e /* (DIE (0x251) DW_TAG_subprogram) */ .byte 0x1 /* DW_AT_external */ .ascii "a\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_artificial */ .byte 0x1 /* DW_AT_declaration */ .Ldie_25b: .uleb128 0xe /* (DIE (0x25b) DW_TAG_formal_parameter) */ .4byte OFFSET (b61) /* DW_AT_type */ .byte 0x1 /* DW_AT_artificial */ .byte 0x0 /* end of children of DIE 0x251 */ .Ldie_262: .uleb128 0x1f /* (DIE (0x262) DW_TAG_subprogram) */ .byte 0x1 /* DW_AT_external */ .ascii "~a\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_artificial */ .byte 0x1 /* DW_AT_declaration */ .Ldie_269: .uleb128 0xe /* (DIE (0x269) DW_TAG_formal_parameter) */ .4byte OFFSET (b61) /* DW_AT_type */ .byte 0x1 /* DW_AT_artificial */ .Ldie_26f: .uleb128 0xe /* (DIE (0x26f) DW_TAG_formal_parameter) */ .4byte OFFSET (19f) /* DW_AT_type */ .byte 0x1 /* DW_AT_artificial */ .byte 0x0 /* end of children of DIE 0x262 */ .byte 0x0 /* end of children of DIE 0x221 */ .Ldie_277: .uleb128 0x17 /* (DIE (0x277) DW_TAG_pointer_type) */ .byte 0x4 /* DW_AT_byte_size */ .4byte OFFSET (22b) /* DW_AT_type */ .Ldie_27d: .uleb128 0x20 /* (DIE (0x27d) DW_TAG_class_type) */ .4byte OFFSET (162) /* DW_AT_specification */ .byte 0x1 /* DW_AT_byte_size */ .Ldie_2d0: .uleb128 0x21 /* (DIE (0x2d0) DW_TAG_subprogram) */ .byte 0x1 /* DW_AT_external */ .ascii "address\0" /* DW_AT_name */ .4byte OFFSET (277) /* DW_AT_type */ .byte 0x1 /* DW_AT_declaration */ .Ldie_2e5: .uleb128 0xe /* (DIE (0x2e5) DW_TAG_formal_parameter) */ .4byte OFFSET (3da) /* DW_AT_type */ .byte 0x1 /* DW_AT_artificial */ .Ldie_2eb: .uleb128 0xf /* (DIE (0x2eb) DW_TAG_formal_parameter) */ .4byte OFFSET (3bd) /* DW_AT_type */ .byte 0x0 /* end of children of DIE 0x2d0 */ .byte 0x0 /* end of children of DIE 0x27d */ .Ldie_3b2: .uleb128 0x17 /* (DIE (0x3b2) DW_TAG_pointer_type) */ .byte 0x4 /* DW_AT_byte_size */ .4byte OFFSET (3b8) /* DW_AT_type */ .Ldie_3b8: .uleb128 0x19 /* (DIE (0x3b8) DW_TAG_const_type) */ .4byte OFFSET (22b) /* DW_AT_type */ .Ldie_3bd: .uleb128 0x22 /* (DIE (0x3bd) DW_TAG_reference_type) */ .byte 0x4 /* DW_AT_byte_size */ .4byte OFFSET (22b) /* DW_AT_type */ .Ldie_3d5: .uleb128 0x19 /* (DIE (0x3d5) DW_TAG_const_type) */ .4byte OFFSET (27d) /* DW_AT_type */ .Ldie_3da: .uleb128 0x17 /* (DIE (0x3da) DW_TAG_pointer_type) */ .byte 0x4 /* DW_AT_byte_size */ .4byte OFFSET (3d5) /* DW_AT_type */ .Ldie_3e0: .uleb128 0x20 /* (DIE (0x3e0) DW_TAG_class_type) */ .4byte OFFSET (70) /* DW_AT_specification */ .byte 0x1 /* DW_AT_byte_size */ .Ldie_3ec: .uleb128 0xb /* (DIE (0x3ec) DW_TAG_inheritance) */ .4byte OFFSET (27d) /* DW_AT_type */ .sleb128 0 /* DW_AT_data_member_location */ .byte 0x1 /* DW_AT_accessibility */ .byte 0x0 /* end of children of DIE 0x3e0 */ .Ldie_44e: .uleb128 0x1a /* (DIE (0x44e) DW_TAG_structure_type) */ .4byte OFFSET (76) /* DW_AT_specification */ .byte 0x18 /* DW_AT_byte_size */ .Ldie_505: .uleb128 0x11 /* (DIE (0x505) DW_TAG_subprogram) */ .ascii "~_Vector_base\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_declaration */ .Ldie_512: .uleb128 0xe /* (DIE (0x512) DW_TAG_formal_parameter) */ .4byte OFFSET (58c) /* DW_AT_type */ .byte 0x1 /* DW_AT_artificial */ .Ldie_518: .uleb128 0xf /* (DIE (0x518) DW_TAG_formal_parameter) */ .4byte OFFSET (19f) /* DW_AT_type */ .byte 0x0 /* end of children of DIE 0x505 */ .Ldie_51f: .uleb128 0x23 /* (DIE (0x51f) DW_TAG_subprogram) */ .byte 0x1 /* DW_AT_external */ .ascii "_M_allocate\0" /* DW_AT_name */ .4byte OFFSET (277) /* DW_AT_type */ .byte 0x1 /* DW_AT_declaration */ .Ldie_540: .uleb128 0x11 /* (DIE (0x540) DW_TAG_subprogram) */ .ascii "_M_deallocate\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_declaration */ .Ldie_551: .uleb128 0xe /* (DIE (0x551) DW_TAG_formal_parameter) */ .4byte OFFSET (58c) /* DW_AT_type */ .byte 0x1 /* DW_AT_artificial */ .Ldie_557: .uleb128 0xf /* (DIE (0x557) DW_TAG_formal_parameter) */ .4byte OFFSET (277) /* DW_AT_type */ .Ldie_55c: .uleb128 0xf /* (DIE (0x55c) DW_TAG_formal_parameter) */ .4byte OFFSET (43) /* DW_AT_type */ .byte 0x0 /* end of children of DIE 0x540 */ .Ldie_562: .uleb128 0x5 /* (DIE (0x562) DW_TAG_imported_declaration) */ .4byte OFFSET (51f) /* DW_AT_import */ .byte 0x0 /* end of children of DIE 0x44e */ .Ldie_586: .uleb128 0x22 /* (DIE (0x586) DW_TAG_reference_type) */ .byte 0x4 /* DW_AT_byte_size */ .4byte OFFSET (3e0) /* DW_AT_type */ .Ldie_58c: .uleb128 0x17 /* (DIE (0x58c) DW_TAG_pointer_type) */ .byte 0x8 /* DW_AT_byte_size */ .4byte OFFSET (44e) /* DW_AT_type */ .Ldie_59d: .uleb128 0x20 /* (DIE (0x59d) DW_TAG_class_type) */ .4byte OFFSET (f7) /* DW_AT_specification */ .byte 0x18 /* DW_AT_byte_size */ .Ldie_5a9: .uleb128 0xb /* (DIE (0x5a9) DW_TAG_inheritance) */ .4byte OFFSET (44e) /* DW_AT_type */ .sleb128 0 /* DW_AT_data_member_location */ .byte 0x2 /* DW_AT_accessibility */ .byte 0x0 /* end of children of DIE 0x59d */ .Ldie_b44: .uleb128 0x17 /* (DIE (0xb44) DW_TAG_pointer_type) */ .byte 0x8 /* DW_AT_byte_size */ .4byte OFFSET (59d) /* DW_AT_type */ .Ldie_b61: .uleb128 0x17 /* (DIE (0xb61) DW_TAG_pointer_type) */ .byte 0x4 /* DW_AT_byte_size */ .4byte OFFSET (221) /* DW_AT_type */ .byte 0x0 /* end of children of DIE 0xb */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_sting) */ .byte 0x0 .byte 0x0 .uleb128 0x2 /* (abbrev code) */ .uleb128 0x24 /* (DW_TAG_base_type) */ .byte 0x0 /* DW_children_no */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3e /* (DW_AT_encoding) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .byte 0x0 .byte 0x0 .uleb128 0x3 /* (abbrev code) */ .uleb128 0x16 /* (TAG: DW_TAG_typedef) */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0x0 .byte 0x0 .uleb128 0x4 /* (abbrev code) */ .uleb128 0x39 /* (TAG: DW_TAG_namespace) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .byte 0x0 .byte 0x0 .uleb128 0x5 /* (abbrev code) */ .uleb128 0x8 /* (TAG: DW_TAG_imported_declaration) */ .byte 0x0 /* DW_children_no */ .uleb128 0x18 /* (DW_AT_import) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0x0 .byte 0x0 .uleb128 0x8 /* (abbrev code) */ .uleb128 0x2 /* (TAG: DW_TAG_class_type) */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3c /* (DW_AT_declaration) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0x0 .byte 0x0 .uleb128 0x9 /* (abbrev code) */ .uleb128 0x13 /* (TAG: DW_TAG_structure_type) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3c /* (DW_AT_declaration) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0x0 .byte 0x0 .uleb128 0xa /* (abbrev code) */ .uleb128 0x13 /* (TAG: DW_TAG_structure_type) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0x0 .byte 0x0 .uleb128 0xb /* (abbrev code) */ .uleb128 0x1c /* (TAG: DW_TAG_inheritance) */ .byte 0x0 /* DW_children_no */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x38 /* (DW_AT_data_member_location) */ .uleb128 0xd /* (DW_FORM_sdata) */ .uleb128 0x32 /* (DW_AT_accessibility) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0x0 .byte 0x0 .uleb128 0xe /* (abbrev code) */ .uleb128 0x5 /* (TAG: DW_TAG_formal_parameter) */ .byte 0x0 /* DW_children_no */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x34 /* (DW_AT_artificial) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0x0 .byte 0x0 .uleb128 0xf /* (abbrev code) */ .uleb128 0x5 /* (TAG: DW_TAG_formal_parameter) */ .byte 0x0 /* DW_children_no */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0x0 .byte 0x0 .uleb128 0x11 /* (abbrev code) */ .uleb128 0x2e /* (DW_TAG_subprogram) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3c /* (DW_AT_declaration) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0x0 .byte 0x0 .uleb128 0x13 /* (abbrev code) */ .uleb128 0x24 /* (DW_TAG_base_type) */ .byte 0x0 /* DW_children_no */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3e /* (DW_AT_encoding) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0x0 .byte 0x0 .uleb128 0x17 /* (abbrev code) */ .uleb128 0xf /* (TAG: DW_TAG_pointer_type) */ .byte 0x0 /* DW_children_no */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0x0 .byte 0x0 .uleb128 0x18 /* (abbrev code) */ .uleb128 0x26 /* (TAG: DW_TAG_const_type) */ .byte 0x0 /* DW_children_no */ .byte 0x0 .byte 0x0 .uleb128 0x19 /* (abbrev code) */ .uleb128 0x26 /* (TAG: DW_TAG_const_type) */ .byte 0x0 /* DW_children_no */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0x0 .byte 0x0 .uleb128 0x1a /* (abbrev code) */ .uleb128 0x13 /* (TAG: DW_TAG_structure_type) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x47 /* (DW_AT_specification) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0x0 .byte 0x0 .uleb128 0x1b /* (abbrev code) */ .uleb128 0x2 /* (TAG: DW_TAG_class_type) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0x0 .byte 0x0 .uleb128 0x1c /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0xc /* (DW_FORM_flag) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3c /* (DW_AT_declaration) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0x0 .byte 0x0 .uleb128 0x1d /* (abbrev code) */ .uleb128 0xd /* (TAG: DW_TAG_member) */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x38 /* (DW_AT_data_member_location) */ .uleb128 0xd /* (DW_FORM_sdata) */ .uleb128 0x32 /* (DW_AT_accessibility) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0x0 .byte 0x0 .uleb128 0x1e /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0xc /* (DW_FORM_flag) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x34 /* (DW_AT_artificial) */ .uleb128 0xc /* (DW_FORM_flag) */ .uleb128 0x3c /* (DW_AT_declaration) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0x0 .byte 0x0 .uleb128 0x1f /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0xc /* (DW_FORM_flag) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x34 /* (DW_AT_artificial) */ .uleb128 0xc /* (DW_FORM_flag) */ .uleb128 0x3c /* (DW_AT_declaration) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0x0 .byte 0x0 .uleb128 0x20 /* (abbrev code) */ .uleb128 0x2 /* (TAG: DW_TAG_class_type) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x47 /* (DW_AT_specification) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0x0 .byte 0x0 .uleb128 0x21 /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0xc /* (DW_FORM_flag) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x3c /* (DW_AT_declaration) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0x0 .byte 0x0 .uleb128 0x22 /* (abbrev code) */ .uleb128 0x10 /* (TAG: DW_TAG_reference_type) */ .byte 0x0 /* DW_children_no */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0x0 .byte 0x0 .uleb128 0x23 /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0x0 /* DW_children_no */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0xc /* (DW_FORM_flag) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x3c /* (DW_AT_declaration) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0x0 .byte 0x0 .byte 0x0 .byte 0x0
tactcomplabs/xbgas-binutils-gdb
3,124
gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S
/* Copyright 2020-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <asm/unistd.h> /* Define these for each architecture: 1) RETURN_ADDRESS_REGNO: The register number representing the return address in the DWARF CFI. It can be easily be looked up using `readelf --debug-dump=frames-interp` on an existing binary of that architecture, where it says `ra=X`. 2) exit_0: a sequence of instruction to execute the exit syscall with argument 0. */ #if defined(__x86_64__) # define RETURN_ADDRESS_REGNO 16 .macro exit_0 mov $__NR_exit, %rax mov $0, %rdi syscall .endm #elif defined(__i386__) # define RETURN_ADDRESS_REGNO 8 .macro exit_0 mov $__NR_exit, %eax mov $0, %ebx int $0x80 .endm #elif defined(__aarch64__) # define RETURN_ADDRESS_REGNO 30 .macro exit_0 mov x0, #0 mov x8, #__NR_exit svc #0 .endm #elif defined(__arm__) # define RETURN_ADDRESS_REGNO 14 .macro exit_0 ldr r7, =__NR_exit ldr r0, =0 swi 0x0 .endm #elif defined __powerpc64__ # define RETURN_ADDRESS_REGNO 65 .macro exit_0 li 0, __NR_exit /* r0 - contains system call number */ li 3, 0 /* r3 - contains first argument for sys call */ sc .endm #else # error "Unsupported architecture" #endif /* The following assembly program mimics this pseudo C program, where everything has been inlined: 1 void bar(void) { 2 nop; 3 } 4 5 void foo(void) { 6 nop; 7 bar(); 8 nop; 9 } 10 11 void _start(void) { 12 nop; 13 foo(); 14 nop; 15 exit(0); 16 } */ #if defined __powerpc64__ # if _CALL_ELF == 2 .abiversion 2 /* Tell gdb what ELF version to use. */ .global _start _start: # else .abiversion 1 /* Tell gdb what ELF version to use. */ .align 2 .global _start .section ".opd", "aw" .align 3 _start: .quad ._start,.TOC.@tocbase,0 .previous .type ._start,@function ._start: # endif #else .global _start _start: #endif .cfi_startproc /* State that the return address for this frame is undefined. */ .cfi_undefined RETURN_ADDRESS_REGNO .global __cu_low_pc __cu_low_pc: .global __start_low_pc __start_low_pc: /* Line 12 */ nop .global __foo_low_pc __foo_low_pc: /* Line 6 */ nop .global __bar_low_pc __bar_low_pc: /* Line 2 */ nop .global __bar_high_pc __bar_high_pc: /* Line 8 */ nop .global __foo_high_pc __foo_high_pc: /* Line 14 */ nop /* Line 15 */ exit_0 .cfi_endproc .global __start_high_pc __start_high_pc: .global __cu_high_pc __cu_high_pc:
tactcomplabs/xbgas-binutils-gdb
5,507
gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This source file was generated by: echo 'struct s { char a[1<<24]; int b; } s;' \ | gcc -dA -o dw2-simple-locdesc.S -S -gdwarf-2 -x c - */ .text var: .section .debug_info .Ldebug_info0: d: .4byte .Lcu_end - 1f /* Length of Compilation Unit Info */ 1: .2byte 0x3 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */ .4byte .LASF2 /* DW_AT_producer: "GNU C 4.7.0 20110727 (experimental)" */ .byte 0x1 /* DW_AT_language */ .Ldie19: .uleb128 0x2 /* (DIE (0x19) DW_TAG_structure_type) */ .ascii "s\0" /* DW_AT_name */ .4byte 0x1000004 /* DW_AT_byte_size */ .byte 0x1 /* DW_AT_decl_file (<stdin>) */ .byte 0x1 /* DW_AT_decl_line */ .Ldie30: .uleb128 0x4 /* (DIE (0x30) DW_TAG_member) */ .ascii "data4\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_decl_file (<stdin>) */ .byte 0x1 /* DW_AT_decl_line */ .4byte .Ldie62 - d /* DW_AT_type */ .4byte 0x10000 /* DW_AT_data_member_location */ .Ldie32: .uleb128 0x3 /* (DIE (0x32) DW_TAG_member) */ .ascii "shl\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_decl_file (<stdin>) */ .byte 0x1 /* DW_AT_decl_line */ .4byte .Ldie62 - d /* DW_AT_type */ .byte 0x4 /* DW_AT_data_member_location */ .byte 0x40 /* DW_OP_lit16 */ .byte 0x44 /* DW_OP_lit20 */ .byte 0x24 /* DW_OP_shl */ .byte 0x22 /* DW_OP_plus */ .byte 0 /* end of children of DIE 0x19 */ .Ldie62: .uleb128 0x7 /* (DIE (0x62) DW_TAG_base_type) */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding */ .ascii "int\0" /* DW_AT_name */ .Ldie69: .uleb128 0x8 /* (DIE (0x69) DW_TAG_variable) */ .ascii "s\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_decl_file (<stdin>) */ .byte 0x1 /* DW_AT_decl_line */ .4byte .Ldie19 - d /* DW_AT_type */ .byte 0x1 /* DW_AT_external */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 0x3 /* DW_OP_addr */ .4byte var 2: .byte 0 /* end of children of DIE 0xb */ .Lcu_end: .section .debug_abbrev .Ldebug_abbrev0: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0xe /* (DW_FORM_strp) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0 .byte 0 .uleb128 0x2 /* (abbrev code) */ .uleb128 0x13 /* (TAG: DW_TAG_structure_type) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0x6 /* (DW_FORM_data4) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0 .byte 0 .uleb128 0x3 /* (abbrev code) */ .uleb128 0xd /* (TAG: DW_TAG_member) */ .byte 0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x38 /* (DW_AT_data_member_location) */ .uleb128 0xa /* (DW_FORM_block1) */ .byte 0 .byte 0 .uleb128 0x4 /* (abbrev code) */ .uleb128 0xd /* (TAG: DW_TAG_member) */ .byte 0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x38 /* (DW_AT_data_member_location) */ .uleb128 0x6 /* (DW_FORM_data4) */ .byte 0 .byte 0 .uleb128 0x7 /* (abbrev code) */ .uleb128 0x24 /* (TAG: DW_TAG_base_type) */ .byte 0 /* DW_children_no */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3e /* (DW_AT_encoding) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .byte 0 .byte 0 .uleb128 0x8 /* (abbrev code) */ .uleb128 0x34 /* (TAG: DW_TAG_variable) */ .byte 0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0xc /* (DW_FORM_flag) */ .uleb128 0x2 /* (DW_AT_location) */ .uleb128 0xa /* (DW_FORM_block1) */ .byte 0 .byte 0 .byte 0 .section .debug_str .LASF2: .string "GNU C 4.7.0 20110727 (experimental)" .LASF0: .string "sizetype" .LASF1: .string "char"
tactcomplabs/xbgas-binutils-gdb
8,093
gdb/testsuite/gdb.dwarf2/dw2-icc-opaque.S
/* Copyright (C) 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This test demonstrates a failure to resolve opaque structure types in binaries compiled by the Intel C compiler. This is GDB PR symtab/13277. The test was derived from opaque-pointer.c, which contains the single line: struct opaque_struct_t *p_struct; and opaque_struct.c, which looks like: struct opaque_struct_t { int wrapped_value; }; struct opaque_struct_t opaque_internal = { 0 }; What follows is a simplified version of the debug info generated by ICC version 12.0.4.191. */ .file "opaque-pointer.c" .data .comm p_struct,8,8 .global p_struct .section .debug_info debug_info_seg1: .4byte debug_info_seg1_end - 1f /* Length of compilation unit info. */ 1: .2byte 0x0002 /* DWARF version number. */ .4byte .debug_abbrev_seg1 /* Points to abbrev section for this unit. */ .byte 0x04 /* Target address size. */ .byte 0x01 /* DIE 1: DW_TAG_compile_unit. */ .byte 0x01 /* DW_AT_language = DW_LANG_C89. */ .ascii "Intel(R) C Intel(R) 64 Compiler XE " /* DW_AT_producer. */ .ascii "for applications running on Intel(R) 64, " .ascii "Version 12.0.4.191 Build 20110427\n " .asciz "Fixes SameLinkageName MemberPointers" .byte 0x02 /* DIE 2: DW_TAG_variable. */ .byte 0x01 /* DW_AT_accessibility. */ .asciz "p_struct" /* DW_AT_name. */ .4byte 3f - debug_info_seg1 /* DW_AT_type. */ .byte 0x05 /* DW_AT_location: 5 bytes ... */ .byte 0x03 /* DW_OP_addr ... */ .4byte p_struct /* followed by the address of p_struct. */ .byte 0x01 /* DW_AT_external. */ 3: .byte 0x03 /* DIE 3: DW_TAG_pointer_type. */ .4byte 4f - debug_info_seg1 /* DW_AT_type. */ 4: .byte 0x04 /* DIE 4: DW_TAG_structure_type. */ .byte 0x01 /* DW_AT_accessibility. */ .byte 0x00 /* DW_AT_byte_size. */ .asciz "opaque_struct_t" /* DW_AT_name. */ .byte 0x00 /* End DIE 1. */ debug_info_seg1_end: .section .debug_abbrev .debug_abbrev_seg1: .byte 0x01 /* Abbrev 1. */ .byte 0x11 /* DW_TAG_compile_unit. */ .byte 0x01 /* DW_CHILDREN_yes. */ .byte 0x13 /* DW_AT_language. */ .byte 0x0b /* DW_FORM_data1. */ .byte 0x25 /* DW_AT_producer. */ .byte 0x08 /* DW_AT_string. */ .2byte 0x0000 /* End abbrev. */ .byte 0x02 /* Abbrev 2. */ .byte 0x34 /* DW_TAG_variable. */ .byte 0x00 /* DW_CHILDREN_no. */ .byte 0x32 /* DW_AT_accessibility. */ .byte 0x0b /* DW_FORM_data1. */ .byte 0x03 /* DW_AT_name. */ .byte 0x08 /* DW_FORM_string. */ .byte 0x49 /* DW_AT_type. */ .byte 0x13 /* DW_FORM_ref4. */ .byte 0x02 /* DW_AT_location. */ .byte 0x0a /* DW_FORM_block1. */ .byte 0x3f /* DW_AT_external. */ .byte 0x0c /* DW_FORM_flag. */ .2byte 0x0000 /* End abbrev. */ .byte 0x03 /* Abbrev 3. */ .byte 0x0f /* DW_TAG_pointer_type. */ .byte 0x00 /* DW_CHILDREN_no. */ .byte 0x49 /* DW_AT_type. */ .byte 0x13 /* DW_FORM_ref4. */ .2byte 0x0000 /* End abbrev. */ .byte 0x04 /* Abbrev 4. */ .byte 0x13 /* DW_TAG_structure_type. */ .byte 0x00 /* DW_CHILDREN_no. */ .byte 0x32 /* DW_AT_accessibility. */ .byte 0x0b /* DW_FORM_data1. */ .byte 0x0b /* DW_AT_byte_size. */ .byte 0x0b /* DW_FORM_data1. */ .byte 0x03 /* DW_AT_name. */ .byte 0x08 /* DW_FORM_string. */ .2byte 0x0000 /* End abbrev. */ .byte 0x00 /* End abbrev table. */ .file "opaque-struct.c" .section .debug_info debug_info_seg2: .4byte debug_info_seg2_end - 1f /* Length of compilation unit info. */ 1: .2byte 0x0002 /* DWARF version number. */ .4byte .debug_abbrev_seg2 /* Points to abbrev section for this unit. */ .byte 0x04 /* Target address size. */ .byte 0x01 /* DIE 1: DW_TAG_compile_unit. */ .byte 0x01 /* DW_AT_language = DW_LANG_C89. */ .ascii "Intel(R) C Intel(R) 64 Compiler XE " /* DW_AT_producer. */ .ascii "for applications running on Intel(R) 64, " .ascii "Version 12.0.4.191 Build 20110427\n " .asciz "Fixes SameLinkageName MemberPointers" .byte 0x02 /* DIE 2: DW_TAG_structure_type. */ .byte 0x01 /* DW_AT_accessibility. */ .byte 0x04 /* DW_AT_byte_size. */ .asciz "opaque_struct_t" /* DW_AT_name. */ .byte 0x03 /* DIE 3: DW_TAG_member. */ .byte 0x02 /* DW_AT_data_member_location: 2 bytes ... */ .byte 0x23 /* DW_OP_plus_uconst ... */ .byte 0x00 /* followed by zero. */ .asciz "wrapped_value" /* DW_AT_name. */ .4byte 4f - debug_info_seg2 /* DW_AT_type. */ .byte 0x00 4: .byte 0x04 /* DIE 4: DW_TAG_base_type. */ .byte 0x04 /* DW_AT_byte_size. */ .byte 0x05 /* DW_AT_encoding. */ .asciz "int" /* DW_AT_name. */ .byte 0x00 /* End DIE 1. */ debug_info_seg2_end: .section .debug_abbrev .debug_abbrev_seg2: .byte 0x01 /* Abbrev 1. */ .byte 0x11 /* DW_TAG_compile_unit. */ .byte 0x01 /* DW_CHILDREN_yes. */ .byte 0x13 /* DW_AT_language. */ .byte 0x0b /* DW_FORM_data1. */ .byte 0x25 /* DW_AT_producer. */ .byte 0x08 /* DW_FORM_string. */ .2byte 0x0000 /* End abbrev. */ .byte 0x02 /* Abbrev 2. */ .byte 0x13 /* DW_TAG_structure_type. */ .byte 0x01 /* DW_CHILDREN_yes. */ .byte 0x32 /* DW_AT_accessibility. */ .byte 0x0b /* DW_FORM_data1. */ .byte 0x0b /* DW_AT_byte_size. */ .byte 0x0b /* DW_FORM_data1. */ .byte 0x03 /* DW_AT_name. */ .byte 0x08 /* DW_FORM_string. */ .2byte 0x0000 /* End abbrev. */ .byte 0x03 /* Abbrev 3. */ .byte 0x0d /* DW_TAG_member. */ .byte 0x00 /* DW_CHILDREN_no. */ .byte 0x38 /* DW_AT_data_member_location. */ .byte 0x0a /* DW_FORM_block1. */ .byte 0x03 /* DW_AT_name. */ .byte 0x08 /* DW_FORM_string. */ .byte 0x49 /* DW_AT_type. */ .byte 0x13 /* DW_FORM_ref4. */ .2byte 0x0000 /* End abbrev. */ .byte 0x04 /* Abbrev 4. */ .byte 0x24 /* DW_TAG_base_type. */ .byte 0x00 /* DW_CHILDREN_no. */ .byte 0x0b /* DW_AT_byte_size. */ .byte 0x0b /* DW_FORM_data1. */ .byte 0x3e /* DW_AT_encoding. */ .byte 0x0b /* DW_FORM_data1. */ .byte 0x03 /* DW_AT_name. */ .byte 0x08 /* DW_FORM_string. */ .2byte 0x0000 /* End abbrev. */ .byte 0x00 /* End abbrev table. */ .file "opaque-pointer2.c" .section .debug_info debug_info_seg3: .4byte debug_info_seg3_end - 1f /* Length of compilation unit info. */ 1: .2byte 0x0002 /* DWARF version number. */ .4byte .debug_abbrev_seg3 /* Points to abbrev section for this unit. */ .byte 0x04 /* Target address size. */ .byte 0x01 /* DIE 1: DW_TAG_compile_unit. */ .byte 0x01 /* DW_AT_language = DW_LANG_C89. */ .ascii "Intel(R) C Intel(R) 64 Compiler XE " /* DW_AT_producer. */ .ascii "for applications running on Intel(R) 64, " .ascii "Version 12.0.4.191 Build 20110427\n " .asciz "Fixes SameLinkageName MemberPointers" .byte 0x04 /* DIE 4: DW_TAG_structure_type. */ .byte 0x01 /* DW_AT_accessibility. */ .byte 0x00 /* DW_AT_byte_size. */ .asciz "opaque_struct_t" /* DW_AT_name. */ .byte 0x00 /* End DIE 1. */ debug_info_seg3_end: .section .debug_abbrev .debug_abbrev_seg3: .byte 0x01 /* Abbrev 1. */ .byte 0x11 /* DW_TAG_compile_unit. */ .byte 0x01 /* DW_CHILDREN_yes. */ .byte 0x13 /* DW_AT_language. */ .byte 0x0b /* DW_FORM_data1. */ .byte 0x25 /* DW_AT_producer. */ .byte 0x08 /* DW_AT_string. */ .2byte 0x0000 /* End abbrev. */ .byte 0x04 /* Abbrev 4. */ .byte 0x13 /* DW_TAG_structure_type. */ .byte 0x00 /* DW_CHILDREN_no. */ .byte 0x32 /* DW_AT_accessibility. */ .byte 0x0b /* DW_FORM_data1. */ .byte 0x0b /* DW_AT_byte_size. */ .byte 0x0b /* DW_FORM_data1. */ .byte 0x03 /* DW_AT_name. */ .byte 0x08 /* DW_FORM_string. */ .2byte 0x0000 /* End abbrev. */ .byte 0x00 /* End abbrev table. */
tactcomplabs/xbgas-binutils-gdb
4,950
gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2007-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte FUNC_LOOPFB_END /* DW_AT_high_pc */ .4byte FUNC_NOFB_START /* DW_AT_low_pc */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ .Ltype_int: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ /* func_nofb */ .uleb128 5 /* Abbrev: DW_TAG_subprogram (no fb) */ .ascii "func_nofb\0" /* DW_AT_name */ .4byte FUNC_NOFB_START /* DW_AT_low_pc */ .4byte FUNC_NOFB_END /* DW_AT_high_pc */ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */ .ascii "func_nofb_var\0" /* DW_AT_name */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 0x91 /* DW_OP_fbreg */ .sleb128 0 /* 0 */ 2: .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 0 /* End of children of func */ /* func_loopfb */ .uleb128 6 /* Abbrev: DW_TAG_subprogram (loop fb) */ .ascii "func_loopfb\0" /* DW_AT_name */ .4byte FUNC_LOOPFB_START /* DW_AT_low_pc */ .4byte FUNC_LOOPFB_END /* DW_AT_high_pc */ .byte 2f - 1f /* DW_AT_frame_base */ 1: .byte 0x91 /* DW_OP_fbreg */ .sleb128 0 /* 0 */ 2: .uleb128 7 /* Abbrev: DW_TAG_variable (location) */ .ascii "func_loopfb_var\0" /* DW_AT_name */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 0x91 /* DW_OP_fbreg */ .sleb128 0 /* 0 */ 2: .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 0 /* End of children of func */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 5 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram (no fb) */ .byte 1 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 6 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram (loop fb) */ .byte 1 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x40 /* DW_AT_frame_base */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 7 /* Abbrev code (location) */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x2 /* DW_AT_location */ .uleb128 0xa /* DW_FORM_block1 */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */
tactcomplabs/xbgas-binutils-gdb
8,095
gdb/testsuite/gdb.dwarf2/pieces-optimized-out.S
/* Copyright 2010-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This was compiled with gcc version 4.7.2 using: gcc -O3 -m32 -g -o pieces-optimized-out.S -S pieces-optimized-out.c The contents of this file are otherwise unmodified. */ .file "pieces-optimized-out.c" .text .Ltext0: .p2align 4,,15 .globl foo .type foo, @function foo: .LFB0: .file 1 "pieces-optimized-out.c" .loc 1 33 0 .LVL0: .loc 1 35 0 movl 4(%esp), %eax ret .LFE0: .size foo, .-foo .section .text.startup,"ax",@progbits .p2align 4,,15 .globl main .type main, @function main: .LFB1: .loc 1 39 0 .LVL1: subl $4, %esp .LCFI0: .loc 1 44 0 movl $10, (%esp) call foo .LVL2: .loc 1 46 0 addl $4, %esp .LCFI1: .loc 1 45 0 addl $20, %eax .LVL3: .loc 1 46 0 ret .LFE1: .size main, .-main .section .debug_frame,"",@progbits .Lframe0: .long .LECIE0-.LSCIE0 .LSCIE0: .long 0xffffffff .byte 0x1 .string "" .uleb128 0x1 .sleb128 -4 .byte 0x8 .byte 0xc .uleb128 0x4 .uleb128 0x4 .byte 0x88 .uleb128 0x1 .align 4 .LECIE0: .LSFDE0: .long .LEFDE0-.LASFDE0 .LASFDE0: .long .Lframe0 .long .LFB0 .long .LFE0-.LFB0 .align 4 .LEFDE0: .LSFDE2: .long .LEFDE2-.LASFDE2 .LASFDE2: .long .Lframe0 .long .LFB1 .long .LFE1-.LFB1 .byte 0x4 .long .LCFI0-.LFB1 .byte 0xe .uleb128 0x8 .byte 0x4 .long .LCFI1-.LCFI0 .byte 0xe .uleb128 0x4 .align 4 .LEFDE2: .section .eh_frame,"a",@progbits .Lframe1: .long .LECIE1-.LSCIE1 .LSCIE1: .long 0 .byte 0x1 .string "" .uleb128 0x1 .sleb128 -4 .byte 0x8 .byte 0xc .uleb128 0x4 .uleb128 0x4 .byte 0x88 .uleb128 0x1 .align 4 .LECIE1: .LSFDE5: .long .LEFDE5-.LASFDE5 .LASFDE5: .long .LASFDE5-.Lframe1 .long .LFB0 .long .LFE0-.LFB0 .align 4 .LEFDE5: .LSFDE7: .long .LEFDE7-.LASFDE7 .LASFDE7: .long .LASFDE7-.Lframe1 .long .LFB1 .long .LFE1-.LFB1 .byte 0x4 .long .LCFI0-.LFB1 .byte 0xe .uleb128 0x8 .byte 0x4 .long .LCFI1-.LCFI0 .byte 0xe .uleb128 0x4 .align 4 .LEFDE7: .text .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0xe4 .value 0x2 .long .Ldebug_abbrev0 .byte 0x4 .uleb128 0x1 .long .LASF0 .byte 0x1 .long .LASF1 .long .LASF2 .long .Ldebug_ranges0+0 .long 0 .long 0 .long .Ldebug_line0 .uleb128 0x2 .string "str" .byte 0xc .byte 0x1 .byte 0x17 .long 0x6c .uleb128 0x3 .string "a" .byte 0x1 .byte 0x19 .long 0x6c .byte 0x2 .byte 0x23 .uleb128 0 .uleb128 0x3 .string "b" .byte 0x1 .byte 0x1a .long 0x6c .byte 0x2 .byte 0x23 .uleb128 0x4 .uleb128 0x4 .string "c" .byte 0x1 .byte 0x1b .long 0x6c .byte 0x4 .byte 0x3 .byte 0x1d .byte 0x2 .byte 0x23 .uleb128 0x8 .uleb128 0x4 .string "d" .byte 0x1 .byte 0x1c .long 0x6c .byte 0x4 .byte 0x3 .byte 0x1a .byte 0x2 .byte 0x23 .uleb128 0x8 .byte 0 .uleb128 0x5 .byte 0x4 .byte 0x5 .string "int" .uleb128 0x6 .byte 0x1 .string "foo" .byte 0x1 .byte 0x20 .byte 0x1 .long 0x6c .long .LFB0 .long .LFE0 .byte 0x2 .byte 0x74 .sleb128 4 .byte 0x1 .long 0x9f .uleb128 0x7 .string "arg" .byte 0x1 .byte 0x20 .long 0x6c .byte 0x2 .byte 0x91 .sleb128 0 .byte 0 .uleb128 0x8 .byte 0x1 .long .LASF3 .byte 0x1 .byte 0x26 .byte 0x1 .long 0x6c .long .LFB1 .long .LFE1 .long .LLST0 .byte 0x1 .uleb128 0x9 .string "s" .byte 0x1 .byte 0x28 .long 0x29 .byte 0x6 .byte 0x35 .byte 0x9f .byte 0x93 .uleb128 0x4 .byte 0x93 .uleb128 0x8 .uleb128 0xa .string "v" .byte 0x1 .byte 0x29 .long 0x6c .long .LLST1 .uleb128 0xb .long .LVL2 .long 0x73 .uleb128 0xc .byte 0x2 .byte 0x74 .sleb128 0 .byte 0x1 .byte 0x3a .byte 0 .byte 0 .byte 0 .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 .uleb128 0x11 .byte 0x1 .uleb128 0x25 .uleb128 0xe .uleb128 0x13 .uleb128 0xb .uleb128 0x3 .uleb128 0xe .uleb128 0x1b .uleb128 0xe .uleb128 0x55 .uleb128 0x6 .uleb128 0x11 .uleb128 0x1 .uleb128 0x52 .uleb128 0x1 .uleb128 0x10 .uleb128 0x6 .byte 0 .byte 0 .uleb128 0x2 .uleb128 0x13 .byte 0x1 .uleb128 0x3 .uleb128 0x8 .uleb128 0xb .uleb128 0xb .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x1 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x3 .uleb128 0xd .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x38 .uleb128 0xa .byte 0 .byte 0 .uleb128 0x4 .uleb128 0xd .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0xb .uleb128 0xb .uleb128 0xd .uleb128 0xb .uleb128 0xc .uleb128 0xb .uleb128 0x38 .uleb128 0xa .byte 0 .byte 0 .uleb128 0x5 .uleb128 0x24 .byte 0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0x8 .byte 0 .byte 0 .uleb128 0x6 .uleb128 0x2e .byte 0x1 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x27 .uleb128 0xc .uleb128 0x49 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0xa .uleb128 0x2117 .uleb128 0xc .uleb128 0x1 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x7 .uleb128 0x5 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0xa .byte 0 .byte 0 .uleb128 0x8 .uleb128 0x2e .byte 0x1 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x27 .uleb128 0xc .uleb128 0x49 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x6 .uleb128 0x2117 .uleb128 0xc .byte 0 .byte 0 .uleb128 0x9 .uleb128 0x34 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0xa .byte 0 .byte 0 .uleb128 0xa .uleb128 0x34 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0x6 .byte 0 .byte 0 .uleb128 0xb .uleb128 0x4109 .byte 0x1 .uleb128 0x11 .uleb128 0x1 .uleb128 0x31 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0xc .uleb128 0x410a .byte 0 .uleb128 0x2 .uleb128 0xa .uleb128 0x2111 .uleb128 0xa .byte 0 .byte 0 .byte 0 .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .long .LFB1 .long .LCFI0 .value 0x2 .byte 0x74 .sleb128 4 .long .LCFI0 .long .LCFI1 .value 0x2 .byte 0x74 .sleb128 8 .long .LCFI1 .long .LFE1 .value 0x2 .byte 0x74 .sleb128 4 .long 0 .long 0 .LLST1: .long .LVL1 .long .LVL2 .value 0x2 .byte 0x3a .byte 0x9f .long .LVL2 .long .LVL3 .value 0x3 .byte 0x70 .sleb128 10 .byte 0x9f .long .LVL3 .long .LFE1 .value 0x3 .byte 0x70 .sleb128 -10 .byte 0x9f .long 0 .long 0 .section .debug_aranges,"",@progbits .long 0x24 .value 0x2 .long .Ldebug_info0 .byte 0x4 .byte 0 .value 0 .value 0 .long .Ltext0 .long .Letext0-.Ltext0 .long .LFB1 .long .LFE1-.LFB1 .long 0 .long 0 .section .debug_ranges,"",@progbits .Ldebug_ranges0: .long .Ltext0 .long .Letext0 .long .LFB1 .long .LFE1 .long 0 .long 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF2: .string "/home/username/" .LASF1: .string "pieces-optimized-out.c" .LASF0: .string "GNU C 4.7.2" .LASF3: .string "main" .ident "GCC: (GNU) 4.7.2" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
4,984
gdb/testsuite/gdb.dwarf2/callframecfa.S
/* Copyright 2009-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This was compiled from a trivial program just to test the DW_OP_call_frame_cfa operator: int func (int arg) { return arg + 23; } int main(int argc, char *argv[]) { func (77); } */ .file "q.c" .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .section .debug_info,"",@progbits .Ldebug_info0: .section .debug_line,"",@progbits .Ldebug_line0: .text .Ltext0: .globl func .type func, @function func: .LFB0: .file 1 "q.c" .loc 1 2 0 .cfi_startproc pushl %ebp .cfi_def_cfa_offset 8 movl %esp, %ebp .cfi_offset 5, -8 .cfi_def_cfa_register 5 .loc 1 3 0 movl 8(%ebp), %eax addl $23, %eax .loc 1 4 0 popl %ebp .cfi_restore 5 .cfi_def_cfa 4, 4 ret .cfi_endproc .LFE0: .size func, .-func .globl _start .type _start, @function _start: .LFB1: .loc 1 6 0 .cfi_startproc pushl %ebp .cfi_def_cfa_offset 8 movl %esp, %ebp .cfi_offset 5, -8 .cfi_def_cfa_register 5 subl $4, %esp .loc 1 7 0 movl $77, (%esp) call func .loc 1 8 0 leave .cfi_restore 5 .cfi_def_cfa 4, 4 ret .cfi_endproc .LFE1: .size _start, .-_start .Letext0: .section .debug_info .long 0x9e .value 0x3 .long .Ldebug_abbrev0 .byte 0x4 .uleb128 0x1 .long .LASF5 .byte 0x1 .string "q.c" .long .LASF6 .long .Ltext0 .long .Letext0 .long .Ldebug_line0 .uleb128 0x2 .byte 0x1 .long .LASF0 .byte 0x1 .byte 0x1 .byte 0x1 .long 0x4f .long .LFB0 .long .LFE0 .byte 0x1 .byte 0x9c .long 0x4f .uleb128 0x3 .string "arg" .byte 0x1 .byte 0x1 .long 0x4f .byte 0x2 .byte 0x91 .sleb128 0 .byte 0x0 .uleb128 0x4 .byte 0x4 .byte 0x5 .string "int" .uleb128 0x2 .byte 0x1 .long .LASF1 .byte 0x1 .byte 0x6 .byte 0x1 .long 0x4f .long .LFB1 .long .LFE1 .byte 0x1 .byte 0x9c .long 0x8e .uleb128 0x5 .long .LASF2 .byte 0x1 .byte 0x6 .long 0x4f .byte 0x2 .byte 0x91 .sleb128 0 .uleb128 0x5 .long .LASF3 .byte 0x1 .byte 0x6 .long 0x8e .byte 0x2 .byte 0x91 .sleb128 4 .byte 0x0 .uleb128 0x6 .byte 0x4 .long 0x94 .uleb128 0x6 .byte 0x4 .long 0x9a .uleb128 0x7 .byte 0x1 .byte 0x6 .long .LASF4 .byte 0x0 .section .debug_abbrev .uleb128 0x1 .uleb128 0x11 .byte 0x1 .uleb128 0x25 .uleb128 0xe .uleb128 0x13 .uleb128 0xb .uleb128 0x3 .uleb128 0x8 .uleb128 0x1b .uleb128 0xe .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x10 .uleb128 0x6 .byte 0x0 .byte 0x0 .uleb128 0x2 .uleb128 0x2e .byte 0x1 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x27 .uleb128 0xc .uleb128 0x49 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0xa .uleb128 0x1 .uleb128 0x13 .byte 0x0 .byte 0x0 .uleb128 0x3 .uleb128 0x5 .byte 0x0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0xa .byte 0x0 .byte 0x0 .uleb128 0x4 .uleb128 0x24 .byte 0x0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0x8 .byte 0x0 .byte 0x0 .uleb128 0x5 .uleb128 0x5 .byte 0x0 .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0xa .byte 0x0 .byte 0x0 .uleb128 0x6 .uleb128 0xf .byte 0x0 .uleb128 0xb .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .byte 0x0 .byte 0x0 .uleb128 0x7 .uleb128 0x24 .byte 0x0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0xe .byte 0x0 .byte 0x0 .byte 0x0 .section .debug_pubnames,"",@progbits .long 0x20 .value 0x2 .long .Ldebug_info0 .long 0xa2 .long 0x25 .string "func" .long 0x56 .string "main" .long 0x0 .section .debug_aranges,"",@progbits .long 0x1c .value 0x2 .long .Ldebug_info0 .byte 0x4 .byte 0x0 .value 0x0 .value 0x0 .long .Ltext0 .long .Letext0-.Ltext0 .long 0x0 .long 0x0 .section .debug_str,"MS",@progbits,1 .LASF5: .string "GNU C 4.5.0 20090810 (experimental) [trunk revision 150633]" .LASF2: .string "argc" .LASF6: .string "/tmp" .LASF0: .string "func" .LASF3: .string "argv" .LASF1: .string "main" .LASF4: .string "char" .ident "GCC: (GNU) 4.5.0 20090810 (experimental) [trunk revision 150633]" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
1,082
gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.S
/* Copyright 2015-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .text main: .4byte 0 main_end: .section .debug_info .4byte .Ldebug_info_end - 1f /* Length of Compilation Unit Info */ 1: .2byte 0x2 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ /* Nothing else, this is a dummy die. */ .Ldebug_info_end: .section .debug_abbrev .Ldebug_abbrev0: .byte 0x0
tactcomplabs/xbgas-binutils-gdb
3,458
gdb/testsuite/gdb.dwarf2/dw2-entry-value.S
/* Copyright 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .section .debug_info debug_start: .4byte debug_end - 1f /* Length of Compilation Unit Info */ 1: .2byte 0x3 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */ .ascii "GNU C 4.4.3\0" /* DW_AT_producer */ .byte 0x1 /* DW_AT_language */ .ascii "1.c\0" /* DW_AT_name */ .uleb128 0x4 /* (DIE (0x3c) DW_TAG_subprogram) */ .ascii "f\0" /* DW_AT_name */ .4byte f_start /* DW_AT_low_pc */ .4byte f_end /* DW_AT_high_pc */ .byte 0x1 /* DW_AT_prototyped */ .uleb128 0x5 /* (DIE (0x42) DW_TAG_formal_parameter) */ .ascii "param\0" /* DW_AT_name */ .4byte type - debug_start /* DW_AT_type */ .4byte loclist /* DW_AT_location */ .byte 0x0 /* end of children of DIE 0x3c */ type: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .byte 0x0 /* end of children of DIE 0xb */ debug_end: .section .debug_loc loclist: .4byte f_start, f_end .2byte 2f-1f 1: .byte 0xf3 /* DW_OP_GNU_entry_value */ .uleb128 2f-3f 3: .byte 0x50 /* DW_OP_reg0 */ 2: .4byte 0, 0 .section .debug_abbrev .Ldebug_abbrev0: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .byte 0x0 .byte 0x0 .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 0x4 /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x27 /* (DW_AT_prototyped) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0x0 .byte 0x0 .uleb128 0x5 /* (abbrev code) */ .uleb128 0x5 /* (TAG: DW_TAG_formal_parameter) */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x02 /* (DW_AT_location) */ .uleb128 0x06 /* (DW_FORM_data4) */ .byte 0x0 .byte 0x0 .byte 0x0
tactcomplabs/xbgas-binutils-gdb
11,419
gdb/testsuite/gdb.dwarf2/dw2-noloc.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2007-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .data .globl file_locaddr_resolvable file_locaddr_resolvable: .globl file_locempty_resolvable file_locempty_resolvable: .globl file_locno_resolvable file_locno_resolvable: .globl file_extern_locaddr_resolvable file_extern_locaddr_resolvable: .globl file_extern_locempty_resolvable file_extern_locempty_resolvable: .globl file_extern_locno_resolvable file_extern_locno_resolvable: .globl main_local_locaddr_resolvable main_local_locaddr_resolvable: .globl main_local_locempty_resolvable main_local_locempty_resolvable: .globl main_local_locno_resolvable main_local_locno_resolvable: .globl main_extern_locaddr_resolvable main_extern_locaddr_resolvable: .globl main_extern_locno_resolvable main_extern_locno_resolvable: .globl main_extern_locempty_resolvable main_extern_locempty_resolvable: resolvable: .4byte 1234567890 /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte cu_text_end /* DW_AT_high_pc */ .4byte cu_text_start /* DW_AT_low_pc */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ .Ltype_int: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */ .ascii "file_locaddr_resolvable\0" /* DW_AT_name */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 3 /* DW_OP_addr */ .4byte resolvable /* <addr> */ 2: .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */ .ascii "file_locaddr_unresolvable\0" /* DW_AT_name */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 3 /* DW_OP_addr */ .4byte resolvable /* <addr> */ 2: .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */ .ascii "file_locempty_resolvable\0" /* DW_AT_name */ .byte 0 /* DW_AT_location */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */ .ascii "file_locempty_unresolvable\0" /* DW_AT_name */ .byte 0 /* DW_AT_location */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .uleb128 5 /* Abbrev: DW_TAG_variable (bare) */ .ascii "file_locno_resolvable\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .uleb128 5 /* Abbrev: DW_TAG_variable (bare) */ .ascii "file_locno_unresolvable\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .uleb128 8 /* Abbrev: DW_TAG_variable (location+extern) */ .ascii "file_extern_locaddr_resolvable\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 3 /* DW_OP_addr */ .4byte resolvable /* <addr> */ 2: .byte 1 /* DW_AT_external */ .uleb128 8 /* Abbrev: DW_TAG_variable (location+extern) */ .ascii "file_extern_locaddr_unresolvable\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 3 /* DW_OP_addr */ .4byte resolvable /* <addr> */ 2: .byte 1 /* DW_AT_external */ .uleb128 8 /* Abbrev: DW_TAG_variable (location+extern) */ .ascii "file_extern_locempty_resolvable\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 0 /* DW_AT_location */ .byte 1 /* DW_AT_external */ .uleb128 8 /* Abbrev: DW_TAG_variable (location+extern) */ .ascii "file_extern_locempty_unresolvable\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 0 /* DW_AT_location */ .byte 1 /* DW_AT_external */ .uleb128 4 /* Abbrev: DW_TAG_variable (extern) */ .ascii "file_extern_locno_resolvable\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 1 /* DW_AT_external */ .uleb128 4 /* Abbrev: DW_TAG_variable (extern) */ .ascii "file_extern_locno_unresolvable\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 1 /* DW_AT_external */ /* main */ .uleb128 6 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_decl_file */ .byte 2 /* DW_AT_decl_line */ .ascii "main\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .4byte cu_text_start /* DW_AT_low_pc */ .4byte cu_text_end /* DW_AT_high_pc */ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */ .ascii "main_local_locaddr_resolvable\0" /* DW_AT_name */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 3 /* DW_OP_addr */ .4byte resolvable /* <addr> */ 2: .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */ .ascii "main_local_locaddr_unresolvable\0" /* DW_AT_name */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 3 /* DW_OP_addr */ .4byte resolvable /* <addr> */ 2: .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */ .ascii "main_local_locempty_resolvable\0" /* DW_AT_name */ .byte 0 /* DW_AT_location */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */ .ascii "main_local_locempty_unresolvable\0" /* DW_AT_name */ .byte 0 /* DW_AT_location */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .uleb128 5 /* Abbrev: DW_TAG_variable (bare) */ .ascii "main_local_locno_resolvable\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .uleb128 5 /* Abbrev: DW_TAG_variable (bare) */ .ascii "main_local_locno_unresolvable\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .uleb128 8 /* Abbrev: DW_TAG_variable (location+extern) */ .ascii "main_extern_locaddr_resolvable\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 3 /* DW_OP_addr */ .4byte resolvable /* <addr> */ 2: .byte 1 /* DW_AT_external */ .uleb128 8 /* Abbrev: DW_TAG_variable (location+extern) */ .ascii "main_extern_locaddr_unresolvable\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 3 /* DW_OP_addr */ .4byte resolvable /* <addr> */ 2: .byte 1 /* DW_AT_external */ .uleb128 8 /* Abbrev: DW_TAG_variable (location+extern) */ .ascii "main_extern_locempty_resolvable\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 0 /* DW_AT_location */ .byte 1 /* DW_AT_external */ .uleb128 8 /* Abbrev: DW_TAG_variable (location+extern) */ .ascii "main_extern_locempty_unresolvable\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 0 /* DW_AT_location */ .byte 1 /* DW_AT_external */ .uleb128 4 /* Abbrev: DW_TAG_variable (extern) */ .ascii "main_extern_locno_resolvable\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 1 /* DW_AT_external */ .uleb128 4 /* Abbrev: DW_TAG_variable (extern) */ .ascii "main_extern_locno_unresolvable\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 1 /* DW_AT_external */ .byte 0 /* End of children of main */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 4 /* Abbrev code (extern) */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 5 /* Abbrev code (bare) */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 6 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 1 /* has_children */ .uleb128 0x3a /* DW_AT_decl_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3b /* DW_AT_decl_line */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 7 /* Abbrev code (location) */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x2 /* DW_AT_location */ .uleb128 0xa /* DW_FORM_block1 */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 8 /* Abbrev code (location+extern) */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x2 /* DW_AT_location */ .uleb128 0xa /* DW_FORM_block1 */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */
tactcomplabs/xbgas-binutils-gdb
6,202
gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2012-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define CONCAT1(a, b) CONCAT2(a, b) #define CONCAT2(a, b) a ## b #ifdef SYMBOL_PREFIX # define SYMBOL(str) CONCAT1(SYMBOL_PREFIX, str) #else # define SYMBOL(str) str #endif .text SYMBOL(main): .globl SYMBOL(main) gcc42: .globl gcc42 .Lgcc42_procstart: .int 0 .type gcc42, %function .size gcc42, . - gcc42 .Lgcc42_procend: gcc43: .globl gcc43 .Lgcc43_procstart: .int 0 .type gcc43, %function .size gcc43, . - gcc43 .Lgcc43_procend: /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lgcc42_begin /* DW_AT_stmt_list */ .4byte .Lgcc42_procstart /* DW_AT_low_pc */ .4byte .Lgcc42_procend /* DW_AT_high_pc */ .ascii "/dir/d/dw2-compdir-oldgcc42.S\0" /* DW_AT_name */ .ascii "GNU C 4.2.0\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_decl_file */ .byte 1 /* DW_AT_decl_line */ .ascii "gcc42\0" /* DW_AT_name */ .4byte .Lgcc42_procstart /* DW_AT_low_pc */ .4byte .Lgcc42_procend /* DW_AT_high_pc */ .byte 0 /* End of children of CU */ .Lcu1_end: .Lcu2_begin: /* CU header */ .4byte .Lcu2_end - .Lcu2_start /* Length of Compilation Unit */ .Lcu2_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lgcc43_begin /* DW_AT_stmt_list */ .4byte .Lgcc43_procstart /* DW_AT_low_pc */ .4byte .Lgcc43_procend /* DW_AT_high_pc */ .ascii "/dir/d/dw2-compdir-oldgcc43.S\0" /* DW_AT_name */ .ascii "GNU C 4.3.0\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_decl_file */ .byte 1 /* DW_AT_decl_line */ .ascii "gcc43\0" /* DW_AT_name */ .4byte .Lgcc43_procstart /* DW_AT_low_pc */ .4byte .Lgcc43_procend /* DW_AT_high_pc */ .byte 0 /* End of children of CU */ .Lcu2_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0 /* has_children */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3a /* DW_AT_decl_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3b /* DW_AT_decl_line */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ /* Line table */ .section .debug_line .Lgcc42_begin: .4byte .Lgcc42_end - .Lgcc42_start /* Initial length */ .Lgcc42_start: .2byte 2 /* Version */ .4byte .Lgcc42_lines - .Lgcc42_hdr /* header_length */ .Lgcc42_hdr: .byte 1 /* Minimum insn length */ .byte 1 /* default_is_stmt */ .byte 1 /* line_base */ .byte 1 /* line_range */ .byte 4 /* opcode_base */ /* Standard lengths */ .byte 0 .byte 1 .byte 1 /* Include directories */ .byte 0 /* File names */ .ascii "dw2-compdir-oldgcc42.S\0" .uleb128 0 /* directory */ .uleb128 0 .uleb128 0 .byte 0 .Lgcc42_lines: .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte gcc42 .byte 3 /* DW_LNS_advance_line */ .sleb128 41 /* ... to 42 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lgcc42_procend .byte 0 /* DW_LNE_end_of_sequence */ .uleb128 1 .byte 1 .Lgcc42_end: .Lgcc43_begin: .4byte .Lgcc43_end - .Lgcc43_start /* Initial length */ .Lgcc43_start: .2byte 2 /* Version */ .4byte .Lgcc43_lines - .Lgcc43_hdr /* header_length */ .Lgcc43_hdr: .byte 1 /* Minimum insn length */ .byte 1 /* default_is_stmt */ .byte 1 /* line_base */ .byte 1 /* line_range */ .byte 4 /* opcode_base */ /* Standard lengths */ .byte 0 .byte 1 .byte 1 /* Include directories */ .byte 0 /* File names */ .ascii "dw2-compdir-oldgcc43.S\0" .uleb128 0 /* directory */ .uleb128 0 .uleb128 0 .byte 0 .Lgcc43_lines: .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte gcc43 .byte 3 /* DW_LNS_advance_line */ .sleb128 42 /* ... to 43 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lgcc43_procend .byte 0 /* DW_LNE_end_of_sequence */ .uleb128 1 .byte 1 .Lgcc43_end:
tactcomplabs/xbgas-binutils-gdb
3,560
gdb/testsuite/gdb.dwarf2/dw2-param-error.S
/* Copyright 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .text var: .4byte 23 .section .debug_info debug_start: .4byte debug_end - 1f /* Length of Compilation Unit Info */ 1: .2byte 0x3 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */ .ascii "GNU C 4.4.3\0" /* DW_AT_producer */ .byte 0x1 /* DW_AT_language */ .ascii "1.c\0" /* DW_AT_name */ .uleb128 0x4 /* (DIE (0x3c) DW_TAG_subprogram) */ .ascii "f\0" /* DW_AT_name */ .4byte f_start /* DW_AT_low_pc */ .4byte f_end /* DW_AT_high_pc */ .byte 0x1 /* DW_AT_prototyped */ .uleb128 0x5 /* (DIE (0x42) DW_TAG_formal_parameter) */ .ascii "bad\0" /* DW_AT_name */ .4byte type - debug_start /* DW_AT_type */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 0x06 /* DW_OP_deref */ 2: .uleb128 0x5 /* (DIE (0x??) DW_TAG_formal_parameter) */ .ascii "good\0" /* DW_AT_name */ .4byte type - debug_start /* DW_AT_type */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 0x03 /* DW_OP_addr */ .4byte var 2: .byte 0x0 /* end of children of DIE 0x3c */ type: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .byte 0x0 /* end of children of DIE 0xb */ debug_end: .section .debug_abbrev .Ldebug_abbrev0: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .byte 0x0 .byte 0x0 .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 0x4 /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x27 /* (DW_AT_prototyped) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0x0 .byte 0x0 .uleb128 0x5 /* (abbrev code) */ .uleb128 0x5 /* (TAG: DW_TAG_formal_parameter) */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x02 /* (DW_AT_location) */ .uleb128 0x0a /* (DW_FORM_block1) */ .byte 0x0 .byte 0x0 .byte 0x0
tactcomplabs/xbgas-binutils-gdb
5,884
gdb/testsuite/gdb.dwarf2/mac-fileno.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2005-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Check that GDB can gracefully handle macro information that has bogus file numbers. */ /* Dummy function to provide debug information for. */ .text .Lbegin_text1: .globl func_cu1 .type func_cu1, %function func_cu1: .Lbegin_func_cu1: .int 0 .Lend_func_cu1: .size func_cu1, .-func_cu1 .Lend_text1: /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lline1_begin /* DW_AT_stmt_list */ .4byte .Ldebug_macinfo0 /* DW_AT_macro_info */ .4byte .Lend_text1 /* DW_AT_high_pc */ .4byte .Lbegin_text1 /* DW_AT_low_pc */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 4.0.1\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ /* func_cu1 */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_decl_file */ .byte 2 /* DW_AT_decl_line */ .ascii "func_cu1\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .4byte .Lbegin_func_cu1 /* DW_AT_low_pc */ .4byte .Lend_func_cu1 /* DW_AT_high_pc */ .byte 1 /* DW_AT_frame_base: length */ .byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */ .Ltype_int: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x43 /* DW_AT_macro_info */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0 /* has_children */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3a /* DW_AT_decl_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3b /* DW_AT_decl_line */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x40 /* DW_AT_frame_base */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ /* Line table */ .section .debug_line .Lline1_begin: .4byte .Lline1_end - .Lline1_start /* Initial length */ .Lline1_start: .2byte 2 /* Version */ .4byte .Lline1_lines - .Lline1_hdr /* header_length */ .Lline1_hdr: .byte 1 /* Minimum insn length */ .byte 1 /* default_is_stmt */ .byte 1 /* line_base */ .byte 1 /* line_range */ .byte 0x10 /* opcode_base */ /* Standard lengths */ .byte 0 .byte 1 .byte 1 .byte 1 .byte 1 .byte 0 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 0 /* Include directories */ .byte 0 /* File names */ .ascii "file1.txt\0" .uleb128 0 .uleb128 0 .uleb128 0 .byte 0 .Lline1_lines: .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lbegin_func_cu1 .byte 3 /* DW_LNS_advance_line */ .sleb128 3 /* ... to 4 */ .byte 1 /* DW_LNS_copy */ .byte 1 /* DW_LNS_copy (second time as an end-of-prologue marker) */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lend_func_cu1 .byte 0 /* DW_LNE_end_of_sequence */ .uleb128 1 .byte 1 .Lline1_end: .section .debug_macinfo,"",%progbits .Ldebug_macinfo0: .byte 0x3 /* Start new file */ .uleb128 0x0 /* Included from line number 0 */ .uleb128 0x2 /* Filename we just started (bug: number too large) */ .byte 0x3 /* Start new file */ .uleb128 0x0 /* Included from line number 0 */ .uleb128 0x0 /* Filename we just started (bug: number too small) */ .byte 0x0 /* end of CU's macro information */
tactcomplabs/xbgas-binutils-gdb
8,147
gdb/testsuite/gdb.dwarf2/dw2-undefined-ret-addr.S
/* Copyright 2013-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* The FDE entry for "stop_frame" in the .debug_frame section has been hand modified to mark the return address (rip) as undefined. Otherwise this file is as generated by gcc 4.7.2 for x86_64. */ .file "dw2-undefined-ret-addr.c" .text .Ltext0: .globl stop_frame .type stop_frame, @function stop_frame: .LFB0: .file 1 "dw2-undefined-ret-addr.c" .loc 1 19 0 pushq %rbp .LCFI0: movq %rsp, %rbp .LCFI1: .loc 1 22 0 popq %rbp .LCFI2: ret .LFE0: .size stop_frame, .-stop_frame .globl first_frame .type first_frame, @function first_frame: .LFB1: .loc 1 26 0 pushq %rbp .LCFI3: movq %rsp, %rbp .LCFI4: .loc 1 27 0 movl $0, %eax call stop_frame .loc 1 28 0 popq %rbp .LCFI5: ret .LFE1: .size first_frame, .-first_frame .globl main .type main, @function main: .LFB2: .loc 1 32 0 pushq %rbp .LCFI6: movq %rsp, %rbp .LCFI7: .loc 1 33 0 movl $0, %eax call first_frame .loc 1 35 0 movl $0, %eax .loc 1 36 0 popq %rbp .LCFI8: ret .LFE2: .size main, .-main .section .debug_frame,"",@progbits .Lframe0: .long .LECIE0-.LSCIE0 .LSCIE0: .long 0xffffffff .byte 0x1 .string "" .uleb128 0x1 .sleb128 -8 .byte 0x10 .byte 0xc .uleb128 0x7 .uleb128 0x8 .byte 0x90 .uleb128 0x1 .align 8 .LECIE0: /* This FDE entry, for stop_frame was modified to mark registers 0 -> 6 as being undefined. */ .LSFDE0: .long .LEFDE0-.LASFDE0 .LASFDE0: .long .Lframe0 .quad .LFB0 .quad .LFE0-.LFB0 /* START OF NEW CONTENT. */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x10 /* ULEB128 register */ /* END OF NEW CONTENT. */ .byte 0x4 .long .LCFI0-.LFB0 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI1-.LCFI0 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI2-.LCFI1 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE0: .LSFDE2: .long .LEFDE2-.LASFDE2 .LASFDE2: .long .Lframe0 .quad .LFB1 .quad .LFE1-.LFB1 .byte 0x4 .long .LCFI3-.LFB1 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI4-.LCFI3 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI5-.LCFI4 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE2: .LSFDE4: .long .LEFDE4-.LASFDE4 .LASFDE4: .long .Lframe0 .quad .LFB2 .quad .LFE2-.LFB2 .byte 0x4 .long .LCFI6-.LFB2 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI7-.LCFI6 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI8-.LCFI7 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE4: .section .eh_frame,"a",@progbits .Lframe1: .long .LECIE1-.LSCIE1 .LSCIE1: .long 0 .byte 0x1 .string "zR" .uleb128 0x1 .sleb128 -8 .byte 0x10 .uleb128 0x1 .byte 0x3 .byte 0xc .uleb128 0x7 .uleb128 0x8 .byte 0x90 .uleb128 0x1 .align 8 .LECIE1: .LSFDE7: .long .LEFDE7-.LASFDE7 .LASFDE7: .long .LASFDE7-.Lframe1 .long .LFB0 .long .LFE0-.LFB0 .uleb128 0 .byte 0x4 .long .LCFI0-.LFB0 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI1-.LCFI0 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI2-.LCFI1 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE7: .LSFDE9: .long .LEFDE9-.LASFDE9 .LASFDE9: .long .LASFDE9-.Lframe1 .long .LFB1 .long .LFE1-.LFB1 .uleb128 0 .byte 0x4 .long .LCFI3-.LFB1 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI4-.LCFI3 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI5-.LCFI4 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE9: .LSFDE11: .long .LEFDE11-.LASFDE11 .LASFDE11: .long .LASFDE11-.Lframe1 .long .LFB2 .long .LFE2-.LFB2 .uleb128 0 .byte 0x4 .long .LCFI6-.LFB2 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI7-.LCFI6 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI8-.LCFI7 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE11: .text .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0x8c .value 0x2 .long .Ldebug_abbrev0 .byte 0x8 .uleb128 0x1 .long .LASF2 .byte 0x1 .long .LASF3 .long .LASF4 .quad .Ltext0 .quad .Letext0 .long .Ldebug_line0 .uleb128 0x2 .byte 0x1 .long .LASF0 .byte 0x1 .byte 0x12 .quad .LFB0 .quad .LFE0 .long .LLST0 .byte 0x1 .uleb128 0x3 .byte 0x1 .long .LASF1 .byte 0x1 .byte 0x19 .quad .LFB1 .quad .LFE1 .long .LLST1 .byte 0x1 .uleb128 0x4 .byte 0x1 .long .LASF5 .byte 0x1 .byte 0x1f .long 0x88 .quad .LFB2 .quad .LFE2 .long .LLST2 .byte 0x1 .uleb128 0x5 .byte 0x4 .byte 0x5 .string "int" .byte 0 .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 .uleb128 0x11 .byte 0x1 .uleb128 0x25 .uleb128 0xe .uleb128 0x13 .uleb128 0xb .uleb128 0x3 .uleb128 0xe .uleb128 0x1b .uleb128 0xe .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x10 .uleb128 0x6 .byte 0 .byte 0 .uleb128 0x2 .uleb128 0x2e .byte 0 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x6 .uleb128 0x2117 .uleb128 0xc .byte 0 .byte 0 .uleb128 0x3 .uleb128 0x2e .byte 0 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x6 .uleb128 0x2116 .uleb128 0xc .byte 0 .byte 0 .uleb128 0x4 .uleb128 0x2e .byte 0 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x6 .uleb128 0x2116 .uleb128 0xc .byte 0 .byte 0 .uleb128 0x5 .uleb128 0x24 .byte 0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0x8 .byte 0 .byte 0 .byte 0 .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .quad .LFB0-.Ltext0 .quad .LCFI0-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad .LCFI0-.Ltext0 .quad .LCFI1-.Ltext0 .value 0x2 .byte 0x77 .sleb128 16 .quad .LCFI1-.Ltext0 .quad .LCFI2-.Ltext0 .value 0x2 .byte 0x76 .sleb128 16 .quad .LCFI2-.Ltext0 .quad .LFE0-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad 0 .quad 0 .LLST1: .quad .LFB1-.Ltext0 .quad .LCFI3-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad .LCFI3-.Ltext0 .quad .LCFI4-.Ltext0 .value 0x2 .byte 0x77 .sleb128 16 .quad .LCFI4-.Ltext0 .quad .LCFI5-.Ltext0 .value 0x2 .byte 0x76 .sleb128 16 .quad .LCFI5-.Ltext0 .quad .LFE1-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad 0 .quad 0 .LLST2: .quad .LFB2-.Ltext0 .quad .LCFI6-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad .LCFI6-.Ltext0 .quad .LCFI7-.Ltext0 .value 0x2 .byte 0x77 .sleb128 16 .quad .LCFI7-.Ltext0 .quad .LCFI8-.Ltext0 .value 0x2 .byte 0x76 .sleb128 16 .quad .LCFI8-.Ltext0 .quad .LFE2-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad 0 .quad 0 .section .debug_aranges,"",@progbits .long 0x2c .value 0x2 .long .Ldebug_info0 .byte 0x8 .byte 0 .value 0 .value 0 .quad .Ltext0 .quad .Letext0-.Ltext0 .quad 0 .quad 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF0: .string "stop_frame" .LASF3: .string "dw2-undefined-ret-addr.c" .LASF2: .string "GNU C 4.7.2" .LASF1: .string "first_frame" .LASF5: .string "main" .LASF4: .string "/home/username/src/gdb/testsuite/gdb.dwarf2" .ident "GCC: (GNU) 4.7.2" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
15,163
gdb/testsuite/gdb.dwarf2/fission-loclists-pie.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2013-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. This file was created by doing: gcc -O1 -gdwarf-4 -gsplit-debug -fPIE -S -dA fission-loclists-pie.c and then massaging the output. fission-loclists-pie.c: __attribute__((noinline)) int init (int *b) { return 0; } int main (int argc, char *argv[]) { return init (&argc); } */ .file "fission-loclists-pie.c" .text .Ltext0: .globl init .type init, @function init: .LFB0: .file 1 "testsuite/gdb.dwarf2/fission-loclists-pie.c" # testsuite/gdb.dwarf2/fission-loclists-pie.c:22 .loc 1 22 0 .cfi_startproc .LVL0: # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) # testsuite/gdb.dwarf2/fission-loclists-pie.c:24 .loc 1 24 0 movl $0, %eax # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE0: .size init, .-init .globl main .type main, @function main: .LFB1: # testsuite/gdb.dwarf2/fission-loclists-pie.c:28 .loc 1 28 0 .cfi_startproc .LVL1: # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) subq $8, %rsp .cfi_def_cfa_offset 16 # testsuite/gdb.dwarf2/fission-loclists-pie.c:29 .loc 1 29 0 leaq 4(%rsp), %rdi .LVL2: call init .LVL3: # testsuite/gdb.dwarf2/fission-loclists-pie.c:30 .loc 1 30 0 addq $8, %rsp .cfi_def_cfa_offset 8 # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE1: .size main, .-main .Letext0: .section .debug_addr,"",@progbits .Ldebug_addr0: .quad .LVL1 # 0x0 .quad .LVL2 # 0x1 .quad .LVL3 # 0x2 .quad .LFB0 # 0x3 .quad .LFB1 # 0x4 .quad .LVL3-1 # 0x5 .section .debug_info.dwo,"e",@progbits .Ldebug_info0: .long 0x91 # Length of Compilation Unit Info .value 0x4 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x8 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .uleb128 0x4 # DW_AT_producer: "GNU C 4.9.x -m64 -mtune=generic -march=x86-64 -gdwarf-4 -gsplit-dwarf -O1 -fPIE" .byte 0x1 # DW_AT_language .uleb128 0x6 # DW_AT_name: "testsuite/gdb.dwarf2/fission-loclists-pie.c" .byte 0xed # DW_AT_GNU_dwo_id .byte 0x50 .byte 0xa4 .byte 0xe0 .byte 0xc9 .byte 0xf8 .byte 0xd3 .byte 0xf0 .uleb128 0x2 # (DIE (0x17) DW_TAG_subprogram) # DW_AT_external .uleb128 0x5 # DW_AT_name: "init" .byte 0x1 # DW_AT_decl_file (testsuite/gdb.dwarf2/fission-loclists-pie.c) .byte 0x15 # DW_AT_decl_line # DW_AT_prototyped .long 0x3a # DW_AT_type .uleb128 0x3 # DW_AT_low_pc .quad .LFE0-.LFB0 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .long 0x3a # DW_AT_sibling .uleb128 0x3 # (DIE (0x2e) DW_TAG_formal_parameter) .ascii "b\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (testsuite/gdb.dwarf2/fission-loclists-pie.c) .byte 0x15 # DW_AT_decl_line .long 0x41 # DW_AT_type .uleb128 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .byte 0 # end of children of DIE 0x17 .uleb128 0x4 # (DIE (0x3a) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .uleb128 0x5 # (DIE (0x41) DW_TAG_pointer_type) .byte 0x8 # DW_AT_byte_size .long 0x3a # DW_AT_type .uleb128 0x2 # (DIE (0x47) DW_TAG_subprogram) # DW_AT_external .uleb128 0x2 # DW_AT_name: "main" .byte 0x1 # DW_AT_decl_file (testsuite/gdb.dwarf2/fission-loclists-pie.c) .byte 0x1b # DW_AT_decl_line # DW_AT_prototyped .long 0x3a # DW_AT_type .uleb128 0x4 # DW_AT_low_pc .quad .LFE1-.LFB1 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .long 0x84 # DW_AT_sibling .uleb128 0x6 # (DIE (0x5e) DW_TAG_formal_parameter) .uleb128 0x1 # DW_AT_name: "argc" .byte 0x1 # DW_AT_decl_file (testsuite/gdb.dwarf2/fission-loclists-pie.c) .byte 0x1b # DW_AT_decl_line .long 0x3a # DW_AT_type .long .LLST0-.Ldebug_loc0 # DW_AT_location .uleb128 0x6 # (DIE (0x6a) DW_TAG_formal_parameter) .uleb128 0 # DW_AT_name: "argv" .byte 0x1 # DW_AT_decl_file (testsuite/gdb.dwarf2/fission-loclists-pie.c) .byte 0x1b # DW_AT_decl_line .long 0x84 # DW_AT_type .long .LLST1-.Ldebug_loc0 # DW_AT_location .uleb128 0x7 # (DIE (0x76) DW_TAG_GNU_call_site) .uleb128 0x2 # DW_AT_low_pc .long 0x17 # DW_AT_abstract_origin .uleb128 0x8 # (DIE (0x7c) DW_TAG_GNU_call_site_parameter) .uleb128 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .uleb128 0x2 # DW_AT_GNU_call_site_value .byte 0x91 # DW_OP_fbreg .sleb128 -12 .byte 0 # end of children of DIE 0x76 .byte 0 # end of children of DIE 0x47 .uleb128 0x5 # (DIE (0x84) DW_TAG_pointer_type) .byte 0x8 # DW_AT_byte_size .long 0x8a # DW_AT_type .uleb128 0x5 # (DIE (0x8a) DW_TAG_pointer_type) .byte 0x8 # DW_AT_byte_size .long 0x90 # DW_AT_type .uleb128 0x9 # (DIE (0x90) DW_TAG_base_type) .byte 0x1 # DW_AT_byte_size .byte 0x6 # DW_AT_encoding .uleb128 0x3 # DW_AT_name: "char" .byte 0 # end of children of DIE 0xb .section .debug_info,"",@progbits .Lskeleton_debug_info0: .long 0x30 # Length of Compilation Unit Info .value 0x4 # DWARF version number .long .Lskeleton_debug_abbrev0 # Offset Into Abbrev. Section .byte 0x8 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0) DW_TAG_compile_unit) .quad .Ltext0 # DW_AT_low_pc .quad .Letext0-.Ltext0 # DW_AT_high_pc .long .Ldebug_line0 # DW_AT_stmt_list .long .LASF0 # DW_AT_GNU_dwo_name: "fission-loclists-pie.dwo" .long .LASF1 # DW_AT_comp_dir: "/tmp/19999/obj64/gdb/testsuite" # DW_AT_GNU_pubnames .long .Ldebug_addr0 # DW_AT_GNU_addr_base .byte 0xed # DW_AT_GNU_dwo_id .byte 0x50 .byte 0xa4 .byte 0xe0 .byte 0xc9 .byte 0xf8 .byte 0xd3 .byte 0xf0 .section .debug_abbrev,"",@progbits .Lskeleton_debug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0 # DW_children_no .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x7 # (DW_FORM_data8) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x2130 # (DW_AT_GNU_dwo_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x2134 # (DW_AT_GNU_pubnames) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x2133 # (DW_AT_GNU_addr_base) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x2131 # (DW_AT_GNU_dwo_id) .uleb128 0x7 # (DW_FORM_data8) .byte 0 .byte 0 .byte 0 # end of skeleton .debug_abbrev .section .debug_abbrev.dwo,"e",@progbits .Ldebug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0x1f02 # (DW_FORM_GNU_str_index) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x1f02 # (DW_FORM_GNU_str_index) .uleb128 0x2131 # (DW_AT_GNU_dwo_id) .uleb128 0x7 # (DW_FORM_data8) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x3 # (DW_AT_name) .uleb128 0x1f02 # (DW_FORM_GNU_str_index) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1f01 # (DW_FORM_GNU_addr_index) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x7 # (DW_FORM_data8) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x3 # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 .uleb128 0x4 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0 .byte 0 .uleb128 0x5 # (abbrev code) .uleb128 0xf # (TAG: DW_TAG_pointer_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x6 # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x1f02 # (DW_FORM_GNU_str_index) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x17 # (DW_FORM_sec_offset) .byte 0 .byte 0 .uleb128 0x7 # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0x1 # DW_children_yes .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1f01 # (DW_FORM_GNU_addr_index) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x8 # (abbrev code) .uleb128 0x410a # (TAG: DW_TAG_GNU_call_site_parameter) .byte 0 # DW_children_no .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2111 # (DW_AT_GNU_call_site_value) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 .uleb128 0x9 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x1f02 # (DW_FORM_GNU_str_index) .byte 0 .byte 0 .byte 0 .section .debug_loc.dwo,"e",@progbits .Ldebug_loc0: .LLST0: .byte 0x3 # Location list start/length entry (*.LLST0) .uleb128 0 # Location list range start index (*.LVL1) .long .LVL2-.LVL1 # Location list range length (*.LLST0) .value 0x1 # Location expression size .byte 0x55 # DW_OP_reg5 .byte 0x3 # Location list start/length entry (*.LLST0) .uleb128 0x1 # Location list range start index (*.LVL2) .long .LFE1-.LVL2 # Location list range length (*.LLST0) .value 0x4 # Location expression size .byte 0xf3 # DW_OP_GNU_entry_value .uleb128 0x1 .byte 0x55 # DW_OP_reg5 .byte 0x9f # DW_OP_stack_value .byte 0 # Location list terminator (*.LLST0) .LLST1: .byte 0x3 # Location list start/length entry (*.LLST1) .uleb128 0 # Location list range start index (*.LVL1) .long .LVL3-1-.LVL1 # Location list range length (*.LLST1) .value 0x1 # Location expression size .byte 0x54 # DW_OP_reg4 .byte 0x3 # Location list start/length entry (*.LLST1) .uleb128 0x5 # Location list range start index (*.LVL3-1) .long .LFE1-.LVL3-1 # Location list range length (*.LLST1) .value 0x4 # Location expression size .byte 0xf3 # DW_OP_GNU_entry_value .uleb128 0x1 .byte 0x54 # DW_OP_reg4 .byte 0x9f # DW_OP_stack_value .byte 0 # Location list terminator (*.LLST1) .section .debug_gnu_pubnames,"",@progbits .long 0x22 # Pub Info Length .value 0x2 # DWARF Version .long .Lskeleton_debug_info0 # Offset of Compilation Unit Info .long 0x95 # Compilation Unit Length .long 0x17 # DIE offset .byte 0x30 # GDB-index flags .ascii "init\0" # external name .long 0x47 # DIE offset .byte 0x30 # GDB-index flags .ascii "main\0" # external name .long 0 .section .debug_gnu_pubtypes,"",@progbits .long 0x21 # Pub Info Length .value 0x2 # DWARF Version .long .Lskeleton_debug_info0 # Offset of Compilation Unit Info .long 0x95 # Compilation Unit Length .long 0x3a # DIE offset .byte 0x90 # GDB-index flags .ascii "int\0" # external name .long 0x90 # DIE offset .byte 0x90 # GDB-index flags .ascii "char\0" # external name .long 0 .section .debug_aranges,"",@progbits .long 0x2c # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Lskeleton_debug_info0 # Offset of Compilation Unit Info .byte 0x8 # Size of Address .byte 0 # Size of Segment Descriptor .value 0 # Pad to 16 byte boundary .value 0 .quad .Ltext0 # Address .quad .Letext0-.Ltext0 # Length .quad 0 .quad 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_line.dwo,"e",@progbits .Lskeleton_debug_line0: .long .LELT0-.LSLT0 # Length of Source Line Info .LSLT0: .value 0x4 # DWARF Version .long .LELTP0-.LASLTP0 # Prolog Length .LASLTP0: .byte 0x1 # Minimum Instruction Length .byte 0x1 # Maximum Operations Per Instruction .byte 0x1 # Default is_stmt_start flag .byte 0xf6 # Line Base Value (Special Opcodes) .byte 0xf2 # Line Range Value (Special Opcodes) .byte 0xd # Special Opcode Base .byte 0 # opcode: 0x1 has 0 args .byte 0x1 # opcode: 0x2 has 1 args .byte 0x1 # opcode: 0x3 has 1 args .byte 0x1 # opcode: 0x4 has 1 args .byte 0x1 # opcode: 0x5 has 1 args .byte 0 # opcode: 0x6 has 0 args .byte 0 # opcode: 0x7 has 0 args .byte 0 # opcode: 0x8 has 0 args .byte 0x1 # opcode: 0x9 has 1 args .byte 0 # opcode: 0xa has 0 args .byte 0 # opcode: 0xb has 0 args .byte 0x1 # opcode: 0xc has 1 args .ascii "testsuite/gdb.dwarf2\0" # Directory Entry: 0x1 .byte 0 # End directory table .ascii "fission-loclists-pie.c\0" # File Entry: 0x1 .uleb128 0x1 .uleb128 0 .uleb128 0 .byte 0 # End file name table .LELTP0: .LELT0: .section .debug_str,"MS",@progbits,1 .LASF1: .string "/tmp/19999/obj64/gdb/testsuite" .LASF0: .string DWO .section .debug_str_offsets.dwo,"e",@progbits .long 0 # indexed string 0x0: argv .long 0x5 # indexed string 0x1: argc .long 0xa # indexed string 0x2: main .long 0xf # indexed string 0x3: char .long 0x14 # indexed string 0x4: GNU C 4.9.x -m64 -mtune=generic -march=x86-64 -gdwarf-4 -gsplit-dwarf -O1 -fPIE .long 0x64 # indexed string 0x5: init .long 0x69 # indexed string 0x6: testsuite/gdb.dwarf2/fission-loclists-pie.c .section .debug_str.dwo,"e",@progbits .string "argv" .string "argc" .string "main" .string "char" .string "GNU C 4.9.x -m64 -mtune=generic -march=x86-64 -gdwarf-4 -gsplit-dwarf -O1 -fPIE" .string "init" .string "testsuite/gdb.dwarf2/fission-loclists-pie.c" .ident "GCC: 4.9.x" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
7,117
gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2004-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Test a minimal file containing DWARF-2 information. This test also serves as a skeleton for other DWARF-2 tests. Most other tests will not be this extensively itemized and commented... */ /* Dummy function to provide debug information for. */ .text .Lbegin_text1: .globl func_cu1 .type func_cu1, %function func_cu1: .Lbegin_func_cu1: .int 0 .Lend_func_cu1: .size func_cu1, .-func_cu1 .globl func_cu2 .type func_cu2, %function func_cu2: .Lbegin_func_cu2: .int 0 .Lend_func_cu2: .size func_cu2, .-func_cu2 .Lend_text1: /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lline1_begin /* DW_AT_stmt_list */ .4byte .Lend_text1 /* DW_AT_high_pc */ .4byte .Lbegin_text1 /* DW_AT_low_pc */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 0x0d /* DW_AT_language (Ada95) */ /* func_cu1 */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_decl_file */ .byte 2 /* DW_AT_decl_line */ .ascii "func_cu1\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .4byte .Lbegin_func_cu1 /* DW_AT_low_pc */ .4byte .Lend_func_cu1 /* DW_AT_high_pc */ .byte 1 /* DW_AT_frame_base: length */ .byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */ /* Nested function missing a name attribute. */ .uleb128 4 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_decl_file */ .byte 2 /* DW_AT_decl_line */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .4byte .Lbegin_func_cu2 /* DW_AT_low_pc */ .4byte .Lend_func_cu2 /* DW_AT_high_pc */ .byte 1 /* DW_AT_frame_base: length */ .byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */ .byte 0x0 /* End of children of func_cu1 */ /* Non-nested function missing a name attribute. */ .uleb128 4 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_decl_file */ .byte 2 /* DW_AT_decl_line */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .4byte .Lbegin_func_cu2 /* DW_AT_low_pc */ .4byte .Lend_func_cu2 /* DW_AT_high_pc */ .byte 1 /* DW_AT_frame_base: length */ .byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */ .Ltype_int: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 1 /* has_children */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3a /* DW_AT_decl_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3b /* DW_AT_decl_line */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x40 /* DW_AT_frame_base */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 4 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0 /* has_children */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3a /* DW_AT_decl_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3b /* DW_AT_decl_line */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x40 /* DW_AT_frame_base */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ /* Line table */ .section .debug_line .Lline1_begin: .4byte .Lline1_end - .Lline1_start /* Initial length */ .Lline1_start: .2byte 2 /* Version */ .4byte .Lline1_lines - .Lline1_hdr /* header_length */ .Lline1_hdr: .byte 1 /* Minimum insn length */ .byte 1 /* default_is_stmt */ .byte 1 /* line_base */ .byte 1 /* line_range */ .byte 0x10 /* opcode_base */ /* Standard lengths */ .byte 0 .byte 1 .byte 1 .byte 1 .byte 1 .byte 0 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 0 /* Include directories */ .byte 0 /* File names */ .ascii "file1.txt\0" .uleb128 0 .uleb128 0 .uleb128 0 .byte 0 .Lline1_lines: .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lbegin_func_cu1 .byte 3 /* DW_LNS_advance_line */ .sleb128 3 /* ... to 4 */ .byte 1 /* DW_LNS_copy */ .byte 1 /* DW_LNS_copy (second time as an end-of-prologue marker) */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lend_func_cu1 .byte 0 /* DW_LNE_end_of_sequence */ .uleb128 1 .byte 1 .Lline1_end:
tactcomplabs/xbgas-binutils-gdb
10,762
gdb/testsuite/gdb.dwarf2/trace-crash.S
/* This file was created using Clang -g -S from this source code: int func(int p) { int x = p + 3; return x; } int main() { return func(3); } See http://sourceware.org/bugzilla/show_bug.cgi?id=14999 */ .file "trace-crash.c" .file 1 "trace-crash.c" .text .globl func .align 16, 0x90 .type func,@function func: # @func .cfi_startproc .Lfunc_begin0: .loc 1 1 0 # trace-crash.c:1:0 # BB#0: # %entry movl %edi, -4(%rsp) .loc 1 2 0 prologue_end # trace-crash.c:2:0 .Ltmp0: movl -4(%rsp), %edi addl $3, %edi movl %edi, -8(%rsp) .loc 1 3 0 # trace-crash.c:3:0 movl -8(%rsp), %eax ret .Ltmp1: .Ltmp2: .size func, .Ltmp2-func .Lfunc_end0: .cfi_endproc .globl main .align 16, 0x90 .type main,@function main: # @main .cfi_startproc .Lfunc_begin1: .loc 1 6 0 # trace-crash.c:6:0 # BB#0: # %entry pushq %rbp .Ltmp5: .cfi_def_cfa_offset 16 .Ltmp6: .cfi_offset %rbp, -16 movq %rsp, %rbp .Ltmp7: .cfi_def_cfa_register %rbp subq $16, %rsp movl $3, %edi movl $0, -4(%rbp) .loc 1 6 0 prologue_end # trace-crash.c:6:0 .Ltmp8: callq func addq $16, %rsp popq %rbp ret .Ltmp9: .Ltmp10: .size main, .Ltmp10-main .Lfunc_end1: .cfi_endproc .Ltext_end: .data .Ldata_end: .text .Lsection_end1: .section .debug_info,"",@progbits .Lsection_info: .section .debug_abbrev,"",@progbits .Lsection_abbrev: .section .debug_aranges,"",@progbits .section .debug_macinfo,"",@progbits .section .debug_line,"",@progbits .Lsection_line: .section .debug_loc,"",@progbits .section .debug_pubtypes,"",@progbits .section .debug_str,"MS",@progbits,1 .Linfo_string: .section .debug_ranges,"",@progbits .Ldebug_range: .section .debug_loc,"",@progbits .Lsection_debug_loc: .text .Ltext_begin: .data .section .debug_info,"",@progbits .L.debug_info_begin0: .long 147 # Length of Compilation Unit Info .short 2 # DWARF version number .long .L.debug_abbrev_begin # Offset Into Abbrev. Section .byte 8 # Address Size (in bytes) .byte 1 # Abbrev [1] 0xb:0x8c DW_TAG_compile_unit .long .Linfo_string0 # DW_AT_producer .short 12 # DW_AT_language .long .Linfo_string1 # DW_AT_name .quad 0 # DW_AT_low_pc .long .Lsection_line # DW_AT_stmt_list .long .Linfo_string2 # DW_AT_comp_dir .byte 2 # Abbrev [2] 0x26:0x4c DW_TAG_subprogram .long .Linfo_string3 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 1 # DW_AT_decl_line # DW_AT_prototyped .long 114 # DW_AT_type # DW_AT_external .quad .Lfunc_begin0 # DW_AT_low_pc .quad .Lfunc_end0 # DW_AT_high_pc .byte 1 # DW_AT_frame_base .byte 87 # DW_AT_APPLE_omit_frame_ptr .byte 3 # Abbrev [3] 0x43:0xe DW_TAG_formal_parameter .long .Linfo_string6 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 1 # DW_AT_decl_line .long 114 # DW_AT_type .byte 2 # DW_AT_location .byte 145 .byte 124 .byte 4 # Abbrev [4] 0x51:0x20 DW_TAG_lexical_block .quad .Ltmp0 # DW_AT_low_pc .quad .Ltmp1 # DW_AT_high_pc .byte 5 # Abbrev [5] 0x62:0xe DW_TAG_variable .long .Linfo_string7 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 2 # DW_AT_decl_line .long 114 # DW_AT_type .byte 2 # DW_AT_location .byte 145 .byte 120 .byte 0 # End Of Children Mark .byte 0 # End Of Children Mark .byte 6 # Abbrev [6] 0x72:0x7 DW_TAG_base_type .long .Linfo_string4 # DW_AT_name .byte 5 # DW_AT_encoding .byte 4 # DW_AT_byte_size .byte 7 # Abbrev [7] 0x79:0x1d DW_TAG_subprogram .long .Linfo_string5 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 6 # DW_AT_decl_line .long 114 # DW_AT_type # DW_AT_external .quad .Lfunc_begin1 # DW_AT_low_pc .quad .Lfunc_end1 # DW_AT_high_pc .byte 1 # DW_AT_frame_base .byte 86 .byte 0 # End Of Children Mark .L.debug_info_end0: .section .debug_abbrev,"",@progbits .L.debug_abbrev_begin: .byte 1 # Abbreviation Code .byte 17 # DW_TAG_compile_unit .byte 1 # DW_CHILDREN_yes .byte 37 # DW_AT_producer .byte 14 # DW_FORM_strp .byte 19 # DW_AT_language .byte 5 # DW_FORM_data2 .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 17 # DW_AT_low_pc .byte 1 # DW_FORM_addr .byte 16 # DW_AT_stmt_list .byte 6 # DW_FORM_data4 .byte 27 # DW_AT_comp_dir .byte 14 # DW_FORM_strp .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 2 # Abbreviation Code .byte 46 # DW_TAG_subprogram .byte 1 # DW_CHILDREN_yes .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 39 # DW_AT_prototyped .byte 25 # DW_FORM_flag_present .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 63 # DW_AT_external .byte 25 # DW_FORM_flag_present .byte 17 # DW_AT_low_pc .byte 1 # DW_FORM_addr .byte 18 # DW_AT_high_pc .byte 1 # DW_FORM_addr .byte 64 # DW_AT_frame_base .byte 10 # DW_FORM_block1 .ascii "\347\177" # DW_AT_APPLE_omit_frame_ptr .byte 25 # DW_FORM_flag_present .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 3 # Abbreviation Code .byte 5 # DW_TAG_formal_parameter .byte 0 # DW_CHILDREN_no .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 2 # DW_AT_location .byte 10 # DW_FORM_block1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 4 # Abbreviation Code .byte 11 # DW_TAG_lexical_block .byte 1 # DW_CHILDREN_yes .byte 17 # DW_AT_low_pc .byte 1 # DW_FORM_addr .byte 18 # DW_AT_high_pc .byte 1 # DW_FORM_addr .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 5 # Abbreviation Code .byte 52 # DW_TAG_variable .byte 0 # DW_CHILDREN_no .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 2 # DW_AT_location .byte 10 # DW_FORM_block1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 6 # Abbreviation Code .byte 36 # DW_TAG_base_type .byte 0 # DW_CHILDREN_no .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 62 # DW_AT_encoding .byte 11 # DW_FORM_data1 .byte 11 # DW_AT_byte_size .byte 11 # DW_FORM_data1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 7 # Abbreviation Code .byte 46 # DW_TAG_subprogram .byte 0 # DW_CHILDREN_no .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 63 # DW_AT_external .byte 25 # DW_FORM_flag_present .byte 17 # DW_AT_low_pc .byte 1 # DW_FORM_addr .byte 18 # DW_AT_high_pc .byte 1 # DW_FORM_addr .byte 64 # DW_AT_frame_base .byte 10 # DW_FORM_block1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 0 # EOM(3) .L.debug_abbrev_end: .section .debug_aranges,"",@progbits .section .debug_ranges,"",@progbits .section .debug_macinfo,"",@progbits .section .debug_str,"MS",@progbits,1 .Linfo_string0: .asciz "clang version 3.3 " .Linfo_string1: .asciz "trace-crash.c" .Linfo_string2: .asciz "/tmp" .Linfo_string3: .asciz "func" .Linfo_string4: .asciz "int" .Linfo_string5: .asciz "main" .Linfo_string6: .asciz "p" .Linfo_string7: .asciz "x" .section ".note.GNU-stack","",@progbits
tactcomplabs/xbgas-binutils-gdb
23,777
gdb/testsuite/gdb.dwarf2/clztest.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This source file was generated from clztest.c using the following command line: gcc -dA -S -g -O2 clztest.c -o clztest.S */ .file "clztest.c" .text .Ltext0: .p2align 4,,15 .globl foo .type foo, @function foo: .LFB0: # clztest.c:8 .LM1: .LVL0: # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) # clztest.c:9 .LM2: bsrq %rdi, %rax xorl $63, %eax cltq .LVL1: # clztest.c:11 .LM3: .LVL2: # clztest.c:12 .LM4: movl vv(%rip), %edx addl $1, %edx movl %edx, vv(%rip) # SUCC: EXIT [100.0%] # clztest.c:14 .LM5: ret .LFE0: .size foo, .-foo .p2align 4,,15 .globl bar .type bar, @function bar: .LFB1: # clztest.c:18 .LM6: .LVL3: # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) # clztest.c:19 .LM7: bsrq %rdi, %rax xorl $63, %eax cltq .LVL4: # clztest.c:21 .LM8: .LVL5: # clztest.c:22 .LM9: movl vv(%rip), %edx addl $1, %edx movl %edx, vv(%rip) # SUCC: EXIT [100.0%] # clztest.c:24 .LM10: ret .LFE1: .size bar, .-bar .section .text.startup,"ax",@progbits .p2align 4,,15 .globl _start .type _start, @function _start: .LFB2: # clztest.c:28 .LM11: # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) pushq %rbx .LCFI0: # clztest.c:29 .LM12: movl vv(%rip), %ebx .LVL6: # clztest.c:30 .LM13: movslq %ebx, %rbx .LVL7: leaq 1193046(%rbx), %rdi call foo .LVL8: # clztest.c:31 .LM14: leaq 2147483647(%rbx), %rdi call bar .LVL9: # clztest.c:33 .LM15: xorl %eax, %eax popq %rbx .LCFI1: .LVL10: # SUCC: EXIT [100.0%] ret .LFE2: .size _start, .-_start .comm vv,4,4 #APP .section .debug_frame,"",@progbits .Lframe0: .long .LECIE0-.LSCIE0 # Length of Common Information Entry .LSCIE0: .long 0xffffffff # CIE Identifier Tag .byte 0x1 # CIE Version .ascii "\0" # CIE Augmentation .uleb128 0x1 # CIE Code Alignment Factor .sleb128 -8 # CIE Data Alignment Factor .byte 0x10 # CIE RA Column .byte 0xc # DW_CFA_def_cfa .uleb128 0x7 .uleb128 0x8 .byte 0x90 # DW_CFA_offset, column 0x10 .uleb128 0x1 .align 8 .LECIE0: .LSFDE0: .long .LEFDE0-.LASFDE0 # FDE Length .LASFDE0: .long .Lframe0 # FDE CIE offset .quad .LFB0 # FDE initial location .quad .LFE0-.LFB0 # FDE address range .align 8 .LEFDE0: .LSFDE2: .long .LEFDE2-.LASFDE2 # FDE Length .LASFDE2: .long .Lframe0 # FDE CIE offset .quad .LFB1 # FDE initial location .quad .LFE1-.LFB1 # FDE address range .align 8 .LEFDE2: .LSFDE4: .long .LEFDE4-.LASFDE4 # FDE Length .LASFDE4: .long .Lframe0 # FDE CIE offset .quad .LFB2 # FDE initial location .quad .LFE2-.LFB2 # FDE address range .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI0-.LFB2 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x10 .byte 0x83 # DW_CFA_offset, column 0x3 .uleb128 0x2 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI1-.LCFI0 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x8 .align 8 .LEFDE4: #NO_APP #APP .section .eh_frame,"aw",@progbits .Lframe1: .long .LECIE1-.LSCIE1 # Length of Common Information Entry .LSCIE1: .long 0 # CIE Identifier Tag .byte 0x1 # CIE Version .ascii "zR\0" # CIE Augmentation .uleb128 0x1 # CIE Code Alignment Factor .sleb128 -8 # CIE Data Alignment Factor .byte 0x10 # CIE RA Column .uleb128 0x1 # Augmentation size .byte 0x3 # FDE Encoding (udata4) .byte 0xc # DW_CFA_def_cfa .uleb128 0x7 .uleb128 0x8 .byte 0x90 # DW_CFA_offset, column 0x10 .uleb128 0x1 .align 8 .LECIE1: .LSFDE7: .long .LEFDE7-.LASFDE7 # FDE Length .LASFDE7: .long .LASFDE7-.Lframe1 # FDE CIE offset .long .LFB0 # FDE initial location .long .LFE0-.LFB0 # FDE address range .uleb128 0 # Augmentation size .align 8 .LEFDE7: .LSFDE9: .long .LEFDE9-.LASFDE9 # FDE Length .LASFDE9: .long .LASFDE9-.Lframe1 # FDE CIE offset .long .LFB1 # FDE initial location .long .LFE1-.LFB1 # FDE address range .uleb128 0 # Augmentation size .align 8 .LEFDE9: .LSFDE11: .long .LEFDE11-.LASFDE11 # FDE Length .LASFDE11: .long .LASFDE11-.Lframe1 # FDE CIE offset .long .LFB2 # FDE initial location .long .LFE2-.LFB2 # FDE address range .uleb128 0 # Augmentation size .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI0-.LFB2 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x10 .byte 0x83 # DW_CFA_offset, column 0x3 .uleb128 0x2 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI1-.LCFI0 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x8 .align 8 .LEFDE11: #NO_APP .text .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0x15a # Length of Compilation Unit Info .value 0x2 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x8 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .long .LASF1 # DW_AT_producer: "GNU C 4.7.0 20110511 (experimental)" .byte 0x1 # DW_AT_language .long .LASF2 # DW_AT_name: "clztest.c" .long .LASF3 # DW_AT_comp_dir: "/usr/src/gcc/obj/gcc" .long .Ldebug_ranges0+0 # DW_AT_ranges .quad 0 # DW_AT_low_pc .quad 0 # DW_AT_entry_pc .long .Ldebug_line0 # DW_AT_stmt_list .uleb128 0x2 # (DIE (0x31) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .ascii "foo\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (clztest.c) .byte 0x7 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x7a # DW_AT_type .quad .LFB0 # DW_AT_low_pc .quad .LFE0 # DW_AT_high_pc .byte 0x2 # DW_AT_frame_base .byte 0x77 # DW_OP_breg7 .sleb128 8 .byte 0x1 # DW_AT_GNU_all_call_sites .long 0x7a # DW_AT_sibling .uleb128 0x3 # (DIE (0x56) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (clztest.c) .byte 0x7 # DW_AT_decl_line .long 0x7a # DW_AT_type .byte 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .uleb128 0x4 # (DIE (0x61) DW_TAG_variable) .ascii "f\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (clztest.c) .byte 0x9 # DW_AT_decl_line .long 0x7a # DW_AT_type .byte 0x1 # DW_AT_location .byte 0x50 # DW_OP_reg0 .uleb128 0x5 # (DIE (0x6c) DW_TAG_variable) .ascii "g\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (clztest.c) .byte 0xa # DW_AT_decl_line .long 0x7a # DW_AT_type .long .LLST0 # DW_AT_location .byte 0 # end of children of DIE 0x31 .uleb128 0x6 # (DIE (0x7a) DW_TAG_base_type) .byte 0x8 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .long .LASF0 # DW_AT_name: "long int" .uleb128 0x2 # (DIE (0x81) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .ascii "bar\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (clztest.c) .byte 0x11 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x7a # DW_AT_type .quad .LFB1 # DW_AT_low_pc .quad .LFE1 # DW_AT_high_pc .byte 0x2 # DW_AT_frame_base .byte 0x77 # DW_OP_breg7 .sleb128 8 .byte 0x1 # DW_AT_GNU_all_call_sites .long 0xca # DW_AT_sibling .uleb128 0x3 # (DIE (0xa6) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (clztest.c) .byte 0x11 # DW_AT_decl_line .long 0x7a # DW_AT_type .byte 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .uleb128 0x4 # (DIE (0xb1) DW_TAG_variable) .ascii "f\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (clztest.c) .byte 0x13 # DW_AT_decl_line .long 0x7a # DW_AT_type .byte 0x1 # DW_AT_location .byte 0x50 # DW_OP_reg0 .uleb128 0x5 # (DIE (0xbc) DW_TAG_variable) .ascii "g\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (clztest.c) .byte 0x14 # DW_AT_decl_line .long 0x7a # DW_AT_type .long .LLST1 # DW_AT_location .byte 0 # end of children of DIE 0x81 .uleb128 0x7 # (DIE (0xca) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .long .LASF4 # DW_AT_name: "main" .byte 0x1 # DW_AT_decl_file (clztest.c) .byte 0x1b # DW_AT_decl_line .long 0x130 # DW_AT_type .quad .LFB2 # DW_AT_low_pc .quad .LFE2 # DW_AT_high_pc .long .LLST2 # DW_AT_frame_base .byte 0x1 # DW_AT_GNU_all_call_sites .long 0x130 # DW_AT_sibling .uleb128 0x5 # (DIE (0xef) DW_TAG_variable) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (clztest.c) .byte 0x1d # DW_AT_decl_line .long 0x7a # DW_AT_type .long .LLST3 # DW_AT_location .uleb128 0x8 # (DIE (0xfc) DW_TAG_GNU_call_site) .quad .LVL8 # DW_AT_low_pc .long 0x31 # DW_AT_abstract_origin .long 0x117 # DW_AT_sibling .uleb128 0x9 # (DIE (0x10d) DW_TAG_GNU_call_site_parameter) .byte 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .byte 0x5 # DW_AT_GNU_call_site_value .byte 0x73 # DW_OP_breg3 .sleb128 1193046 .byte 0 # end of children of DIE 0xfc .uleb128 0xa # (DIE (0x117) DW_TAG_GNU_call_site) .quad .LVL9 # DW_AT_low_pc .long 0x81 # DW_AT_abstract_origin .uleb128 0x9 # (DIE (0x124) DW_TAG_GNU_call_site_parameter) .byte 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .byte 0x6 # DW_AT_GNU_call_site_value .byte 0x73 # DW_OP_breg3 .sleb128 2147483647 .byte 0 # end of children of DIE 0x117 .byte 0 # end of children of DIE 0xca .uleb128 0xb # (DIE (0x130) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .uleb128 0xc # (DIE (0x137) DW_TAG_variable) .ascii "vv\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (clztest.c) .byte 0x4 # DW_AT_decl_line .long 0x143 # DW_AT_type .byte 0x1 # DW_AT_external .byte 0x1 # DW_AT_declaration .uleb128 0xd # (DIE (0x143) DW_TAG_volatile_type) .long 0x130 # DW_AT_type .uleb128 0xe # (DIE (0x148) DW_TAG_variable) .ascii "vv\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (clztest.c) .byte 0x4 # DW_AT_decl_line .long 0x143 # DW_AT_type .byte 0x1 # DW_AT_external .byte 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad vv .byte 0 # end of children of DIE 0xb .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x55 # (DW_AT_ranges) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x52 # (DW_AT_entry_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x6 # (DW_FORM_data4) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0xa # (DW_FORM_block1) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x3 # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0xa # (DW_FORM_block1) .byte 0 .byte 0 .uleb128 0x4 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0xa # (DW_FORM_block1) .byte 0 .byte 0 .uleb128 0x5 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x6 # (DW_FORM_data4) .byte 0 .byte 0 .uleb128 0x6 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .byte 0 .byte 0 .uleb128 0x7 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x8 # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0x1 # DW_children_yes .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x9 # (abbrev code) .uleb128 0x410a # (TAG: DW_TAG_GNU_call_site_parameter) .byte 0 # DW_children_no .uleb128 0x2 # (DW_AT_location) .uleb128 0xa # (DW_FORM_block1) .uleb128 0x2111 # (DW_AT_GNU_call_site_value) .uleb128 0xa # (DW_FORM_block1) .byte 0 .byte 0 .uleb128 0xa # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0x1 # DW_children_yes .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0xb # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0 .byte 0 .uleb128 0xc # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x3c # (DW_AT_declaration) .uleb128 0xc # (DW_FORM_flag) .byte 0 .byte 0 .uleb128 0xd # (abbrev code) .uleb128 0x35 # (TAG: DW_TAG_volatile_type) .byte 0 # DW_children_no .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0xe # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x2 # (DW_AT_location) .uleb128 0xa # (DW_FORM_block1) .byte 0 .byte 0 .byte 0 .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .quad .LVL1 # Location list begin address (*.LLST0) .quad .LVL2 # Location list end address (*.LLST0) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad .LVL2 # Location list begin address (*.LLST0) .quad .LFE0 # Location list end address (*.LLST0) .value 0x36 # Location expression size .byte 0x8 # DW_OP_const1u .byte 0x3f .byte 0x75 # DW_OP_breg5 .sleb128 0 .byte 0x12 # DW_OP_dup .byte 0x28 # DW_OP_bra .value 0x6 .byte 0x13 # DW_OP_drop .byte 0x8 # DW_OP_const1u .byte 0x40 .byte 0x2f # DW_OP_skip .value 0x1c .byte 0x30 # DW_OP_lit0 .byte 0x16 # DW_OP_swap .byte 0x12 # DW_OP_dup .byte 0x10 # DW_OP_constu .uleb128 0x8000000000000000 .byte 0x1a # DW_OP_and .byte 0x28 # DW_OP_bra .value 0x9 .byte 0x31 # DW_OP_lit1 .byte 0x24 # DW_OP_shl .byte 0x16 # DW_OP_swap .byte 0x23 # DW_OP_plus_uconst .uleb128 0x1 .byte 0x16 # DW_OP_swap .byte 0x2f # DW_OP_skip .value 0xffe7 .byte 0x13 # DW_OP_drop .byte 0x96 # DW_OP_nop .byte 0x1c # DW_OP_minus .byte 0x8 # DW_OP_const1u .byte 0x3f .byte 0x27 # DW_OP_xor .byte 0x8 # DW_OP_const1u .byte 0x20 .byte 0x24 # DW_OP_shl .byte 0x8 # DW_OP_const1u .byte 0x20 .byte 0x26 # DW_OP_shra .byte 0x9f # DW_OP_stack_value .quad 0 # Location list terminator begin (*.LLST0) .quad 0 # Location list terminator end (*.LLST0) .LLST1: .quad .LVL4 # Location list begin address (*.LLST1) .quad .LVL5 # Location list end address (*.LLST1) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad .LVL5 # Location list begin address (*.LLST1) .quad .LFE1 # Location list end address (*.LLST1) .value 0x36 # Location expression size .byte 0x8 # DW_OP_const1u .byte 0x3f .byte 0x75 # DW_OP_breg5 .sleb128 0 .byte 0x12 # DW_OP_dup .byte 0x28 # DW_OP_bra .value 0x6 .byte 0x13 # DW_OP_drop .byte 0x8 # DW_OP_const1u .byte 0x40 .byte 0x2f # DW_OP_skip .value 0x1c .byte 0x30 # DW_OP_lit0 .byte 0x16 # DW_OP_swap .byte 0x12 # DW_OP_dup .byte 0x10 # DW_OP_constu .uleb128 0x8000000000000000 .byte 0x1a # DW_OP_and .byte 0x28 # DW_OP_bra .value 0x9 .byte 0x31 # DW_OP_lit1 .byte 0x24 # DW_OP_shl .byte 0x16 # DW_OP_swap .byte 0x23 # DW_OP_plus_uconst .uleb128 0x1 .byte 0x16 # DW_OP_swap .byte 0x2f # DW_OP_skip .value 0xffe7 .byte 0x13 # DW_OP_drop .byte 0x96 # DW_OP_nop .byte 0x1c # DW_OP_minus .byte 0x8 # DW_OP_const1u .byte 0x3f .byte 0x27 # DW_OP_xor .byte 0x8 # DW_OP_const1u .byte 0x20 .byte 0x24 # DW_OP_shl .byte 0x8 # DW_OP_const1u .byte 0x20 .byte 0x26 # DW_OP_shra .byte 0x9f # DW_OP_stack_value .quad 0 # Location list terminator begin (*.LLST1) .quad 0 # Location list terminator end (*.LLST1) .LLST2: .quad .LFB2 # Location list begin address (*.LLST2) .quad .LCFI0 # Location list end address (*.LLST2) .value 0x2 # Location expression size .byte 0x77 # DW_OP_breg7 .sleb128 8 .quad .LCFI0 # Location list begin address (*.LLST2) .quad .LCFI1 # Location list end address (*.LLST2) .value 0x2 # Location expression size .byte 0x77 # DW_OP_breg7 .sleb128 16 .quad .LCFI1 # Location list begin address (*.LLST2) .quad .LFE2 # Location list end address (*.LLST2) .value 0x2 # Location expression size .byte 0x77 # DW_OP_breg7 .sleb128 8 .quad 0 # Location list terminator begin (*.LLST2) .quad 0 # Location list terminator end (*.LLST2) .LLST3: .quad .LVL6 # Location list begin address (*.LLST3) .quad .LVL7 # Location list end address (*.LLST3) .value 0x9 # Location expression size .byte 0x73 # DW_OP_breg3 .sleb128 0 .byte 0x8 # DW_OP_const1u .byte 0x20 .byte 0x24 # DW_OP_shl .byte 0x8 # DW_OP_const1u .byte 0x20 .byte 0x26 # DW_OP_shra .byte 0x9f # DW_OP_stack_value .quad .LVL7 # Location list begin address (*.LLST3) .quad .LVL10 # Location list end address (*.LLST3) .value 0x1 # Location expression size .byte 0x53 # DW_OP_reg3 .quad 0 # Location list terminator begin (*.LLST3) .quad 0 # Location list terminator end (*.LLST3) .section .debug_aranges,"",@progbits .long 0x3c # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .byte 0x8 # Size of Address .byte 0 # Size of Segment Descriptor .value 0 # Pad to 16 byte boundary .value 0 .quad .Ltext0 # Address .quad .Letext0-.Ltext0 # Length .quad .LFB2 # Address .quad .LFE2-.LFB2 # Length .quad 0 .quad 0 .section .debug_ranges,"",@progbits .Ldebug_ranges0: .quad .Ltext0 # Offset 0 .quad .Letext0 .quad .LFB2 # Offset 0x10 .quad .LFE2 .quad 0 .quad 0 .section .debug_line,"",@progbits .Ldebug_line0: .long .LELT0-.LSLT0 # Length of Source Line Info .LSLT0: .value 0x2 # DWARF Version .long .LELTP0-.LASLTP0 # Prolog Length .LASLTP0: .byte 0x1 # Minimum Instruction Length .byte 0x1 # Default is_stmt_start flag .byte 0xf6 # Line Base Value (Special Opcodes) .byte 0xf2 # Line Range Value (Special Opcodes) .byte 0xd # Special Opcode Base .byte 0 # opcode: 0x1 has 0 args .byte 0x1 # opcode: 0x2 has 1 args .byte 0x1 # opcode: 0x3 has 1 args .byte 0x1 # opcode: 0x4 has 1 args .byte 0x1 # opcode: 0x5 has 1 args .byte 0 # opcode: 0x6 has 0 args .byte 0 # opcode: 0x7 has 0 args .byte 0 # opcode: 0x8 has 0 args .byte 0x1 # opcode: 0x9 has 1 args .byte 0 # opcode: 0xa has 0 args .byte 0 # opcode: 0xb has 0 args .byte 0x1 # opcode: 0xc has 1 args .byte 0 # End directory table .ascii "clztest.c\0" # File Entry: 0x1 .uleb128 0 .uleb128 0 .uleb128 0 .byte 0 # End file name table .LELTP0: .byte 0 # set address *.LM11 .uleb128 0x9 .byte 0x2 .quad .LM11 .byte 0x32 # line 28 .byte 0 # set address *.LM12 .uleb128 0x9 .byte 0x2 .quad .LM12 .byte 0x18 # line 29 .byte 0 # set address *.LM13 .uleb128 0x9 .byte 0x2 .quad .LM13 .byte 0x18 # line 30 .byte 0 # set address *.LM14 .uleb128 0x9 .byte 0x2 .quad .LM14 .byte 0x18 # line 31 .byte 0 # set address *.LM15 .uleb128 0x9 .byte 0x2 .quad .LM15 .byte 0x19 # line 33 .byte 0 # set address *.LFE2 .uleb128 0x9 .byte 0x2 .quad .LFE2 .byte 0 # end sequence .uleb128 0x1 .byte 0x1 .byte 0 # set address *.LM1 .uleb128 0x9 .byte 0x2 .quad .LM1 .byte 0x1e # line 8 .byte 0 # set address *.LM2 .uleb128 0x9 .byte 0x2 .quad .LM2 .byte 0x18 # line 9 .byte 0 # set address *.LM3 .uleb128 0x9 .byte 0x2 .quad .LM3 .byte 0x19 # line 11 .byte 0 # set address *.LM4 .uleb128 0x9 .byte 0x2 .quad .LM4 .byte 0x18 # line 12 .byte 0 # set address *.LM5 .uleb128 0x9 .byte 0x2 .quad .LM5 .byte 0x19 # line 14 .byte 0 # set address *.LM6 .uleb128 0x9 .byte 0x2 .quad .LM6 .byte 0x1b # line 18 .byte 0 # set address *.LM7 .uleb128 0x9 .byte 0x2 .quad .LM7 .byte 0x18 # line 19 .byte 0 # set address *.LM8 .uleb128 0x9 .byte 0x2 .quad .LM8 .byte 0x19 # line 21 .byte 0 # set address *.LM9 .uleb128 0x9 .byte 0x2 .quad .LM9 .byte 0x18 # line 22 .byte 0 # set address *.LM10 .uleb128 0x9 .byte 0x2 .quad .LM10 .byte 0x19 # line 24 .byte 0 # set address *.Letext0 .uleb128 0x9 .byte 0x2 .quad .Letext0 .byte 0 # end sequence .uleb128 0x1 .byte 0x1 .LELT0: .section .debug_str,"MS",@progbits,1 .LASF1: .string "GNU C 4.7.0 20110511 (experimental)" .LASF3: .string "/usr/src/gcc/obj/gcc" .LASF0: .string "long int" .LASF4: .string "main" .LASF2: .string "clztest.c" .ident "GCC: (GNU) 4.7.0 20110511 (experimental)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
10,838
gdb/testsuite/gdb.dwarf2/dw2-single-line-discriminators.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2014-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This was made from dw2-single-line-discriminators.c using clang -dA -S -g and then hand-editing the assembly a bit (simplify paths, tweak so gas accepts it). */ .text .file "dw2-single-line-discriminators.c" .section .debug_info,"",@progbits .Lsection_info: .section .debug_abbrev,"",@progbits .Lsection_abbrev: .section .debug_line,"",@progbits .Lsection_line: .section .debug_pubnames,"",@progbits .section .debug_pubtypes,"",@progbits .section .debug_str,"MS",@progbits,1 .Linfo_string: .section .debug_loc,"",@progbits .Lsection_debug_loc: .section .debug_ranges,"",@progbits .Ldebug_range: .file 1 "gdb.dwarf2/dw2-single-line-discriminators.c" .text .globl main .align 16, 0x90 .type main,@function main: # @main .Lfunc_begin0: .loc 1 22 0 # dw2-single-line-discriminators.c:22:0 .cfi_startproc # BB#0: pushq %rbp .Ltmp0: .cfi_def_cfa_offset 16 .Ltmp1: .cfi_offset %rbp, -16 movq %rsp, %rbp .Ltmp2: .cfi_def_cfa_register %rbp movl $0, -4(%rbp) .loc 1 26 3 prologue_end # dw2-single-line-discriminators.c:26:3 .Ltmp3: movl $0, x .loc 1 28 8 # dw2-single-line-discriminators.c:28:8 .Ltmp4: movl $0, -8(%rbp) .LBB0_1: # =>This Inner Loop Header: Depth=1 .loc 1 28 8 discriminator 4 # dw2-single-line-discriminators.c:28:8 .Ltmp5: cmpl $10, -8(%rbp) jge .LBB0_4 .Ltmp6: # BB#2: # in Loop: Header=BB0_1 Depth=1 .loc 1 28 28 discriminator 2 # dw2-single-line-discriminators.c:28:28 jmp .LBB0_3 .Ltmp7: .LBB0_3: # in Loop: Header=BB0_1 Depth=1 .loc 1 28 23 discriminator 3 # dw2-single-line-discriminators.c:28:23 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp .LBB0_1 .Ltmp8: .LBB0_4: movl $0, %eax .loc 1 30 3 # dw2-single-line-discriminators.c:30:3 popq %rbp retq .Ltmp9: .Ltmp10: .size main, .Ltmp10-main .Lfunc_end0: .cfi_endproc .type x,@object # @x .comm x,4,4 .Ldebug_end1: .section .debug_str,"MS",@progbits,1 .Linfo_string0: .asciz "clang version (trunk r215195)" .Linfo_string1: .asciz "dw2-single-line-discriminators.c" .Linfo_string2: .asciz "/tmp/obj/gdb/testsuite" .Linfo_string3: .asciz "x" .Linfo_string4: .asciz "int" .Linfo_string5: .asciz "main" .Linfo_string6: .asciz "i" .section .debug_info,"",@progbits .L.debug_info_begin0: .long 108 # Length of Unit .short 4 # DWARF version number .long .Lsection_abbrev # Offset Into Abbrev. Section .byte 8 # Address Size (in bytes) .byte 1 # Abbrev [1] 0xb:0x65 DW_TAG_compile_unit .long .Linfo_string0 # DW_AT_producer .short 12 # DW_AT_language .long .Linfo_string1 # DW_AT_name .long .Lline_table_start0 # DW_AT_stmt_list .long .Linfo_string2 # DW_AT_comp_dir .quad .Lfunc_begin0 # DW_AT_low_pc .Lset0 = .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc .long .Lset0 .byte 2 # Abbrev [2] 0x2a:0x15 DW_TAG_variable .long .Linfo_string3 # DW_AT_name .long 63 # DW_AT_type # DW_AT_external .byte 1 # DW_AT_decl_file .byte 18 # DW_AT_decl_line .byte 9 # DW_AT_location .byte 3 .quad x .byte 3 # Abbrev [3] 0x3f:0x7 DW_TAG_base_type .long .Linfo_string4 # DW_AT_name .byte 5 # DW_AT_encoding .byte 4 # DW_AT_byte_size .byte 4 # Abbrev [4] 0x46:0x29 DW_TAG_subprogram .quad .Lfunc_begin0 # DW_AT_low_pc .Lset1 = .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc .long .Lset1 .byte 1 # DW_AT_frame_base .byte 86 .long .Linfo_string5 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 21 # DW_AT_decl_line .long 63 # DW_AT_type # DW_AT_external .byte 1 # DW_AT_accessibility # DW_ACCESS_public .byte 5 # Abbrev [5] 0x60:0xe DW_TAG_variable .byte 2 # DW_AT_location .byte 145 .byte 120 .long .Linfo_string6 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 23 # DW_AT_decl_line .long 63 # DW_AT_type .byte 0 # End Of Children Mark .byte 0 # End Of Children Mark .L.debug_info_end0: .section .debug_abbrev,"",@progbits .byte 1 # Abbreviation Code .byte 17 # DW_TAG_compile_unit .byte 1 # DW_CHILDREN_yes .byte 37 # DW_AT_producer .byte 14 # DW_FORM_strp .byte 19 # DW_AT_language .byte 5 # DW_FORM_data2 .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 16 # DW_AT_stmt_list .byte 23 # DW_FORM_sec_offset .byte 27 # DW_AT_comp_dir .byte 14 # DW_FORM_strp .byte 17 # DW_AT_low_pc .byte 1 # DW_FORM_addr .byte 18 # DW_AT_high_pc .byte 6 # DW_FORM_data4 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 2 # Abbreviation Code .byte 52 # DW_TAG_variable .byte 0 # DW_CHILDREN_no .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 63 # DW_AT_external .byte 25 # DW_FORM_flag_present .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 2 # DW_AT_location .byte 24 # DW_FORM_exprloc .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 3 # Abbreviation Code .byte 36 # DW_TAG_base_type .byte 0 # DW_CHILDREN_no .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 62 # DW_AT_encoding .byte 11 # DW_FORM_data1 .byte 11 # DW_AT_byte_size .byte 11 # DW_FORM_data1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 4 # Abbreviation Code .byte 46 # DW_TAG_subprogram .byte 1 # DW_CHILDREN_yes .byte 17 # DW_AT_low_pc .byte 1 # DW_FORM_addr .byte 18 # DW_AT_high_pc .byte 6 # DW_FORM_data4 .byte 64 # DW_AT_frame_base .byte 24 # DW_FORM_exprloc .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 63 # DW_AT_external .byte 25 # DW_FORM_flag_present .byte 50 # DW_AT_accessibility .byte 11 # DW_FORM_data1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 5 # Abbreviation Code .byte 52 # DW_TAG_variable .byte 0 # DW_CHILDREN_no .byte 2 # DW_AT_location .byte 24 # DW_FORM_exprloc .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 0 # EOM(3) .section .debug_ranges,"",@progbits .section .debug_loc,"",@progbits .section .debug_pubnames,"",@progbits .Lset2 = .LpubNames_end0-.LpubNames_begin0 # Length of Public Names Info .long .Lset2 .LpubNames_begin0: .short 2 # DWARF Version .long .L.debug_info_begin0 # Offset of Compilation Unit Info .Lset3 = .L.debug_info_end0-.L.debug_info_begin0 # Compilation Unit Length .long .Lset3 .long 70 # DIE offset .asciz "main" # External Name .long 42 # DIE offset .asciz "x" # External Name .long 0 # End Mark .LpubNames_end0: .section .debug_pubtypes,"",@progbits .Lset4 = .LpubTypes_end0-.LpubTypes_begin0 # Length of Public Types Info .long .Lset4 .LpubTypes_begin0: .short 2 # DWARF Version .long .L.debug_info_begin0 # Offset of Compilation Unit Info .Lset5 = .L.debug_info_end0-.L.debug_info_begin0 # Compilation Unit Length .long .Lset5 .long 63 # DIE offset .asciz "int" # External Name .long 0 # End Mark .LpubTypes_end0: .ident "clang version (trunk r215195)" .section ".note.GNU-stack","",@progbits .section .debug_line,"",@progbits .Lline_table_start0:
tactcomplabs/xbgas-binutils-gdb
5,408
gdb/testsuite/gdb.dwarf2/dw2-intermix.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2005-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Test a minimal file containing intermixed 32-bit and 64-bit DWARF formats. This is not allowed by the (draft) DWARF-3 standard, but GDB should handle it gracefully nevertheless. */ /* Dummy function to provide debug information for. */ .text .Lbegin_text1: .globl func_cu1 .type func_cu1, %function func_cu1: .Lbegin_func_cu1: .int 0 .Lend_func_cu1: .size func_cu1, .-func_cu1 .Lend_text1: /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lline1_begin /* DW_AT_stmt_list */ .4byte .Lend_text1 /* DW_AT_high_pc */ .4byte .Lbegin_text1 /* DW_AT_low_pc */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ /* func_cu1 */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_decl_file */ .byte 2 /* DW_AT_decl_line */ .ascii "func_cu1\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .4byte .Lbegin_func_cu1 /* DW_AT_low_pc */ .4byte .Lend_func_cu1 /* DW_AT_high_pc */ .byte 1 /* DW_AT_frame_base: length */ .byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */ .Ltype_int: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0 /* has_children */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3a /* DW_AT_decl_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3b /* DW_AT_decl_line */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x40 /* DW_AT_frame_base */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ /* Line table */ .section .debug_line .Lline1_begin: .4byte 0xffffffff .8byte .Lline1_end - .Lline1_start /* Initial length */ .Lline1_start: .2byte 2 /* Version */ .8byte .Lline1_lines - .Lline1_hdr /* header_length */ .Lline1_hdr: .byte 1 /* Minimum insn length */ .byte 1 /* default_is_stmt */ .byte 1 /* line_base */ .byte 1 /* line_range */ .byte 0x10 /* opcode_base */ /* Standard lengths */ .byte 0 .byte 1 .byte 1 .byte 1 .byte 1 .byte 0 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 0 /* Include directories */ .byte 0 /* File names */ .ascii "file1.txt\0" .uleb128 0 .uleb128 0 .uleb128 0 .byte 0 .Lline1_lines: .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lbegin_func_cu1 .byte 3 /* DW_LNS_advance_line */ .sleb128 3 /* ... to 4 */ .byte 1 /* DW_LNS_copy */ .byte 1 /* DW_LNS_copy (second time as an end-of-prologue marker) */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lend_func_cu1 .byte 0 /* DW_LNE_end_of_sequence */ .uleb128 1 .byte 1 .Lline1_end:
tactcomplabs/xbgas-binutils-gdb
2,604
gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S
/* Copyright 2010-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .section .debug_info debug_start: .4byte debug_end - 1f /* Length of Compilation Unit Info */ 1: .2byte 0x3 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */ .ascii "GNU C 4.4.3\0" /* DW_AT_producer */ .byte 0x1 /* DW_AT_language */ .ascii "1.c\0" /* DW_AT_name */ .uleb128 0x4 /* (DIE (0x3c) DW_TAG_subprogram) */ .ascii "f\0" /* DW_AT_name */ /* Value 0 would require has_section_at_zero != 0 (which is true, though). */ .4byte 1 /* DW_AT_low_pc */ .4byte 2 /* DW_AT_high_pc */ .byte 0x1 /* DW_AT_prototyped */ .uleb128 0x5 /* (DIE (0x42) DW_TAG_formal_parameter) */ /* Invalid value. */ .4byte 0x0 /* DW_AT_type */ .byte 0x0 /* end of children of DIE 0x3c */ .byte 0x0 /* end of children of DIE 0xb */ debug_end: .section .debug_abbrev .Ldebug_abbrev0: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .byte 0x0 .byte 0x0 .uleb128 0x4 /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x27 /* (DW_AT_prototyped) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0x0 .byte 0x0 .uleb128 0x5 /* (abbrev code) */ .uleb128 0x5 /* (TAG: DW_TAG_formal_parameter) */ .byte 0x0 /* DW_children_no */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0x0 .byte 0x0 .byte 0x0
tactcomplabs/xbgas-binutils-gdb
3,540
gdb/testsuite/gdb.dwarf2/dw2-cu-size.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2008-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Test inter-cu reference support where the referenced DIE is within initial_length_size bytes of the end of the CU, but GDB doesn't take into account initial_length_size. GDB still gets the correct answer because it goes looking for the correct CU, but the search is unnecessary. */ /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ .uleb128 2 /* Abbrev: DW_TAG_variable */ .ascii "noloc\0" /* DW_AT_name */ .4byte .Ltype_const_int-.Lcu1_begin /* DW_AT_type */ .byte 1 /* DW_AT_external */ .Ltype_int: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .Ltype_const_int: .uleb128 4 /* Abbrev: DW_TAG_const_type */ .uleb128 .Ltype_int - .Lcu1_begin /* DW_AT_type */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 4 /* Abbrev code */ .uleb128 0x26 /* DW_TAG_const_type */ .byte 0 /* has_children */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x15 /* DW_FORM_ref_udata */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator .debug_abbrev section. */
tactcomplabs/xbgas-binutils-gdb
10,951
gdb/testsuite/gdb.dwarf2/pr11465.S
/* Copyright 2010-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Compiled from: namespace N { class C { public: typedef void (*t) (C); C (t) {} }; typedef C::t u; u f; C c (f); }; int main () { return 0; } */ .text text_start: _ZN1N1cE: /* Valid function must have non-empty PC range. */ .4byte 0 text_end: .section .debug_info d: .4byte .Ldebug_info_end - 1f /* Length of CU info */ 1: .2byte 0x2 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Abbrev offset */ .byte 0x4 /* Pointer size */ dieb: .uleb128 0x1 /* DW_TAG_compile_unit */ .4byte .LASF4 /* DW_AT_producer */ .byte 0x4 /* DW_AT_language */ .4byte .LASF5 /* DW_AT_name */ .4byte .LASF6 /* DW_AT_comp_dir */ .4byte text_start /* DW_AT_low_pc */ .4byte text_end /* DW_AT_high_pc */ .4byte text_start /* DW_AT_entry_pc */ die29: .uleb128 0x2 /* DW_TAG_namespace */ .string "N" /* DW_AT_name */ die32: .uleb128 0x3 /* DW_TAG_class_type */ .string "C" /* DW_AT_name */ .byte 0x1 /* DW_AT_declaration */ die36: .uleb128 0x4 /* DW_TAG_typedef */ .string "u" /* DW_AT_name */ .4byte die7e-d /* DW_AT_type */ die3f: .uleb128 0x5 /* DW_TAG_variable */ .string "f" /* DW_AT_name */ .4byte .LASF0 /* DW_AT_MIPS_linkage_name */ .4byte die36-d /* DW_AT_type */ .byte 0x1 /* DW_AT_external */ .byte 0x1 /* DW_AT_declaration */ die4e: .uleb128 0x5 /* DW_TAG_variable */ .string "c" /* DW_AT_name */ .4byte .LASF1 /* DW_AT_MIPS_linkage_name */ .4byte die5e-d /* DW_AT_type */ .byte 0x1 /* DW_AT_external */ .byte 0x1 /* DW_AT_declaration */ .byte 0x0 die5e: .uleb128 0x6 /* DW_TAG_class_type */ .4byte die32-d /* DW_AT_specification */ .byte 0x1 /* DW_AT_byte_size */ die6a: .uleb128 0x7 /* DW_TAG_subprogram */ .byte 0x1 /* DW_AT_external */ .string "C" /* DW_AT_name */ .byte 0x1 /* DW_AT_declaration */ die71: .uleb128 0x8 /* DW_TAG_formal_parameter */ .4byte die8f-d /* DW_AT_type */ .byte 0x1 /* DW_AT_artificial */ die77: .uleb128 0x9 /* DW_TAG_formal_parameter */ .4byte die7e-d /* DW_AT_type */ .byte 0x0 .byte 0x0 die7e: .uleb128 0xa /* DW_TAG_pointer_type */ .byte PTRBITS / 8 /* DW_AT_byte_size */ .4byte die84-d /* DW_AT_type */ die84: .uleb128 0xb /* DW_TAG_subroutine_type */ die89: .uleb128 0x9 /* DW_TAG_formal_parameter */ .4byte die5e-d /* DW_AT_type */ .byte 0x0 die8f: .uleb128 0xa /* DW_TAG_pointer_type */ .byte PTRBITS / 8 /* DW_AT_byte_size */ .4byte die5e-d /* DW_AT_type */ die95: .uleb128 0xc /* DW_TAG_subprogram */ .4byte die6a-d /* DW_AT_specification */ .byte 0x2 /* DW_AT_inline */ die9f: .uleb128 0xd /* DW_TAG_formal_parameter */ .4byte .LASF7 /* DW_AT_name */ .4byte dieaf-d /* DW_AT_type */ .byte 0x1 /* DW_AT_artificial */ diea9: .uleb128 0x9 /* DW_TAG_formal_parameter */ .4byte die7e-d /* DW_AT_type */ .byte 0x0 dieaf: .uleb128 0xe /* DW_TAG_const_type */ .4byte die8f-d /* DW_AT_type */ dieb4: .uleb128 0xf /* DW_TAG_subprogram */ .4byte die95-d /* DW_AT_abstract_origin */ .4byte _ZN1N1cE /* DW_AT_low_pc */ .4byte _ZN1N1cE + (text_end - text_start) /* DW_AT_high_pc */ diec9: .uleb128 0x10 /* DW_TAG_subprogram */ .4byte die9f-d /* DW_AT_abstract_origin */ .byte 2f-1f /* DW_AT_location */ 1: .byte 0x50 /* DW_OP_reg0 */ 2: died1: .uleb128 0x10 /* DW_TAG_formal_parameter */ .4byte diea9-d /* DW_AT_abstract_origin */ .byte 2f-1f /* DW_AT_location */ 1: .byte 0x51 /* DW_OP_reg1 */ 2: .byte 0x0 dieda: .uleb128 0x11 /* DW_TAG_subprogram */ .byte 0x1 /* DW_AT_external */ .4byte .LASF8 /* DW_AT_name */ .4byte dief2-d /* DW_AT_type */ .4byte _ZN1N1cE /* DW_AT_low_pc */ .4byte _ZN1N1cE + (text_end - text_start) /* DW_AT_high_pc */ dief2: .uleb128 0x12 /* DW_TAG_base_type */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding */ .string "int" /* DW_AT_name */ die149: .uleb128 0x16 /* DW_TAG_variable */ .4byte die4e-d /* DW_AT_specification */ .byte 0x5 /* DW_AT_location */ .byte 0x3 .4byte _ZN1N1cE .byte 0x0 .Ldebug_info_end: .section .debug_abbrev .Ldebug_abbrev0: .uleb128 0x1 /* abbrev code*/ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* DW_AT_producer*/ .uleb128 0xe /* DW_FORM_strp */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0xe /* DW_FORM_strp */ .uleb128 0x1b /* DW_AT_comp_dir */ .uleb128 0xe /* DW_FORM_strp */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x52 /* DW_AT_entry_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 .byte 0x0 .uleb128 0x2 /* abbrev code */ .uleb128 0x39 /* DW_TAG_namespace */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .byte 0x0 .byte 0x0 .uleb128 0x3 /* abbrev code */ .uleb128 0x2 /* DW_TAG_class_type */ .byte 0x0 /* DW_has_children_no */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x3c /* DW_AT_declaration */ .uleb128 0xc /* DW_FORM_flag */ .byte 0x0 .byte 0x0 .uleb128 0x4 /* abbrev code */ .uleb128 0x16 /* DW_TAG_typedef */ .byte 0x0 /* DW_has_children_no */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 .byte 0x0 .uleb128 0x5 /* abbrev code */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0x0 /* DW_has_children_no */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x2007 /* DW_AT_MIPS_linkage_name */ .uleb128 0xe /* DW_FORM_strp */ .uleb128 0x49 /* DW_AT_TYPE */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3c /* DW_AT_declaration */ .uleb128 0xc /* DW_FORM_flag */ .byte 0x0 .byte 0x0 .uleb128 0x6 /* abbrev code */ .uleb128 0x2 /* DW_TAG_class_type */ .byte 0x1 /* DW_has_children_yes */ .uleb128 0x47 /* DW_AT_specification */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 .byte 0x0 .uleb128 0x7 /* abbrev code */ .uleb128 0x2e /* DW_TAG_subprogra */ .byte 0x1 /* DW_has_children_yes */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x3c /* DW_AT_declaration */ .uleb128 0xc /* DW_FORM_flag */ .byte 0x0 .byte 0x0 .uleb128 0x8 /* abbrev code */ .uleb128 0x5 /* DW_TAG_formal_parameter */ .byte 0x0 /* DW_has_children_no */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x34 /* DW_AT_artificial */ .uleb128 0xc /* DW_FORM_flag */ .byte 0x0 .byte 0x0 .uleb128 0x9 /* abbrev code */ .uleb128 0x5 /* DW_TAG_formal_parameter */ .byte 0x0 /* DW_has_children_no */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 .byte 0x0 .uleb128 0xa /* abbrev code */ .uleb128 0xf /* DW_TAG_pointer_type */ .byte 0x0 /* DW_has_children_no */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 .byte 0x0 .uleb128 0xb /* abbrev code */ .uleb128 0x15 /* DW_TAG_subroutine_type */ .byte 0x1 /* DW_has_children_yes */ .byte 0x0 .byte 0x0 .uleb128 0xc /* abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0x1 /* DW_has_children_yes */ .uleb128 0x47 /* DW_AT_specification */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x20 /* DW_AT_inline */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 .byte 0x0 .uleb128 0xd /* abbrev code */ .uleb128 0x5 /* DW_TAG_formal_parameter */ .byte 0x0 /* DW_has_children_no */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0xe /* DW_FORM_strp */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x34 /* DW_AT_artificial */ .uleb128 0xc /* DW_FORM_flag */ .byte 0x0 .byte 0x0 .uleb128 0xe /* abbrev code */ .uleb128 0x26 /* DW_TAG_const_type */ .byte 0x0 /* DW_has_children_no */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 .byte 0x0 .uleb128 0xf /* abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0x1 /* DW_has_children_yes */ .uleb128 0x31 /* DW_AT_abstract_origin */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 .byte 0x0 .uleb128 0x10 /* abbrev code */ .uleb128 0x5 /* DW_TAG_formal_parameter */ .byte 0x0 /* DW_has_children_no */ .uleb128 0x31 /* DW_AT_abstract_origin */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x2 /* DW_AT_location */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 .byte 0x0 .uleb128 0x11 /* abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0x0 /* DW_has_children_no */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0xe /* DW_FORM_strp */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 .byte 0x0 .uleb128 0x12 /* abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0x0 /* DW_has_children_no */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .byte 0x0 .byte 0x0 .uleb128 0x16 /* abbrev code */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0x0 /* DW_has_children_no */ .uleb128 0x47 /* DW_AT_specification */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x2 /* DW_AT_location */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 .byte 0x0 .byte 0x0 .section .debug_str .LASF0: .string "_ZN1N1fE" .LASF7: .string "this" .LASF6: .string "" .LASF8: .string "main" .LASF1: .string "_ZN1N1cE" .LASF5: .string "pr11465.cc" .LASF4: .string "GNU C++ 4.4.2" .ident "GCC: (GNU) 4.4.2"
tactcomplabs/xbgas-binutils-gdb
2,219
gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S
/* Copyright 2010-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .section .debug_info debug_start: .4byte debug_end - 1f /* Length of Compilation Unit Info */ 1: .2byte 0x3 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */ .ascii "GNU C 4.4.3\0" /* DW_AT_producer */ .byte 0x1 /* DW_AT_language */ .ascii "1.c\0" /* DW_AT_name */ .uleb128 0x4 /* (DW_TAG_variable) */ .ascii "underflow\0" /* DW_AT_name */ .2byte 2f - 1f /* DW_AT_location: DW_FORM_block2 */ 1: .byte 0x22 /* DW_OP_plus */ 2: .uleb128 0x4 /* (DW_TAG_variable) */ .ascii "overflow\0" /* DW_AT_name */ .2byte 2f - 1f /* DW_AT_location: DW_FORM_block2 */ 1: .fill 100, 1, 0x32 /* 100x DW_OP_lit2 */ .byte 0x9f /* DW_OP_stack_value */ 2: .byte 0x0 /* end of children of CU */ debug_end: .section .debug_abbrev .Ldebug_abbrev0: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .byte 0x0 .byte 0x0 .uleb128 0x4 /* (abbrev code) */ .uleb128 0x34 /* (TAG: DW_TAG_variable) */ .byte 0x0 /* DW_children_yes */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x02 /* (DW_AT_location) */ .uleb128 0x3 /* (DW_FORM_block2) */ .byte 0x0 .byte 0x0 .byte 0x0
tactcomplabs/xbgas-binutils-gdb
7,468
gdb/testsuite/gdb.dwarf2/watch-notconst2.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2010-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This source file was generated from watch-notconst2.c using the following command line: gcc -m32 -dA -S -g -O2 watch-notconst2.c -o watch-notconst2.S */ .file "watch-notconst2.c" .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .section .debug_info,"",@progbits .Ldebug_info0: .section .debug_line,"",@progbits .Ldebug_line0: .text .Ltext0: .cfi_sections .debug_frame .p2align 4,,15 .globl f .type f, @function f: .LFB0: .file 1 "watch-notconst2.c" # watch-notconst2.c:30 .loc 1 30 0 .cfi_startproc .LVL0: # basic block 2 pushl %ebp .cfi_def_cfa_offset 8 movl %esp, %ebp .cfi_offset 5, -8 .cfi_def_cfa_register 5 pushl %ebx subl $20, %esp # watch-notconst2.c:30 .loc 1 30 0 movl 8(%ebp), %ebx .cfi_offset 3, -12 # watch-notconst2.c:32 .loc 1 32 0 movl $2, (%esp) call g .LVL1: # watch-notconst2.c:34 .loc 1 34 0 movl %ebx, 8(%ebp) # watch-notconst2.c:35 .loc 1 35 0 addl $20, %esp popl %ebx .cfi_restore 3 popl %ebp .cfi_restore 5 .cfi_def_cfa 4, 4 .LVL2: # watch-notconst2.c:34 .loc 1 34 0 jmp g .cfi_endproc .LFE0: .size f, .-f .Letext0: .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .long .LVL0-.Ltext0 # Location list begin address (*.LLST0) .long .LVL1-.Ltext0 # Location list end address (*.LLST0) .value 0x2 # Location expression size .byte 0x35 # DW_OP_lit5 .byte 0x9f # DW_OP_stack_value .long .LVL1-.Ltext0 # Location list begin address (*.LLST0) .long .LVL2-.Ltext0 # Location list end address (*.LLST0) .value 0x1 # Location expression size .byte 0x53 # DW_OP_reg3 .long 0x0 # Location list terminator begin (*.LLST0) .long 0x0 # Location list terminator end (*.LLST0) .section .debug_info .long 0x5c # Length of Compilation Unit Info .value 0x3 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x4 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .long .LASF0 # DW_AT_producer: "GNU C 4.4.3 20100127 (Red Hat 4.4.3-4)" .byte 0x1 # DW_AT_language .long .LASF1 # DW_AT_name: "watch-notconst2.c" .long .LASF2 # DW_AT_comp_dir: "" .long .Ltext0 # DW_AT_low_pc .long .Letext0 # DW_AT_high_pc .long .Ldebug_line0 # DW_AT_stmt_list .uleb128 0x2 # (DIE (0x25) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .ascii "f\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (watch-notconst2.c) .byte 0x1d # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x58 # DW_AT_type .long .LFB0 # DW_AT_low_pc .long .LFE0 # DW_AT_high_pc .byte 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa .long 0x58 # DW_AT_sibling .uleb128 0x3 # (DIE (0x3e) DW_TAG_formal_parameter) .ascii "i\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (watch-notconst2.c) .byte 0x1d # DW_AT_decl_line .long 0x58 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .uleb128 0x4 # (DIE (0x4a) DW_TAG_variable) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (watch-notconst2.c) .byte 0x1f # DW_AT_decl_line .long 0x58 # DW_AT_type .long .LLST0 # DW_AT_location .byte 0x0 # end of children of DIE 0x25 .uleb128 0x5 # (DIE (0x58) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .byte 0x0 # end of children of DIE 0xb .section .debug_abbrev .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x6 # (DW_FORM_data4) .byte 0x0 .byte 0x0 .uleb128 0x2 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0xa # (DW_FORM_block1) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0x0 .byte 0x0 .uleb128 0x3 # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0x0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0xa # (DW_FORM_block1) .byte 0x0 .byte 0x0 .uleb128 0x4 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0x0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x6 # (DW_FORM_data4) .byte 0x0 .byte 0x0 .uleb128 0x5 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0x0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0x0 .byte 0x0 .byte 0x0 .section .debug_pubnames,"",@progbits .long 0x14 # Length of Public Names Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .long 0x60 # Compilation Unit Length .long 0x25 # DIE offset .ascii "f\0" # external name .long 0x0 .section .debug_aranges,"",@progbits .long 0x1c # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .byte 0x4 # Size of Address .byte 0x0 # Size of Segment Descriptor .value 0x0 # Pad to 8 byte boundary .value 0x0 .long .Ltext0 # Address .long .Letext0-.Ltext0 # Length .long 0x0 .long 0x0 .section .debug_str,"MS",@progbits,1 .LASF1: .string "watch-notconst2.c" .LASF2: .string "" .LASF0: .string "GNU C 4.4.3 20100127 (Red Hat 4.4.3-4)" .ident "GCC: (GNU) 4.4.3 20100127 (Red Hat 4.4.3-4)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
21,308
gdb/testsuite/gdb.dwarf2/typeddwarf-amd64.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This source file was generated from typeddwarf.c using the following command line: gcc -S -g -O2 typeddwarf.c -o typeddwarf-amd64.S */ .file "typeddwarf.c" .text .Ltext0: .globl f1 .type f1, @function f1: .LFB0: .file 1 "typeddwarf.c" .loc 1 10 0 .cfi_startproc .LVL0: .loc 1 29 0 movl vv(%rip), %eax addl $1, %eax movl %eax, vv(%rip) .loc 1 30 0 ret .cfi_endproc .LFE0: .size f1, .-f1 .globl f2 .type f2, @function f2: .LFB1: .loc 1 34 0 .cfi_startproc .LVL1: .loc 1 53 0 movl vv(%rip), %eax addl $1, %eax movl %eax, vv(%rip) .loc 1 54 0 cvttsd2si %xmm0, %eax movl %eax, vv(%rip) .loc 1 55 0 cvttsd2si %xmm1, %eax movl %eax, vv(%rip) .loc 1 56 0 cvttsd2si %xmm2, %eax movl %eax, vv(%rip) .loc 1 57 0 cvttss2si %xmm3, %eax movl %eax, vv(%rip) .loc 1 58 0 cvttss2si %xmm4, %r8d movl %r8d, vv(%rip) .loc 1 59 0 movl %edi, vv(%rip) .loc 1 60 0 movl %esi, vv(%rip) .loc 1 61 0 movl %edx, vv(%rip) .loc 1 62 0 movl %ecx, vv(%rip) .loc 1 63 0 movl %eax, vv(%rip) .loc 1 64 0 ret .cfi_endproc .LFE1: .size f2, .-f2 .globl f3 .type f3, @function f3: .LFB2: .loc 1 68 0 .cfi_startproc .LVL2: .loc 1 73 0 movl vv(%rip), %eax addl $1, %eax movl %eax, vv(%rip) .loc 1 74 0 ret .cfi_endproc .LFE2: .size f3, .-f3 .globl f4 .type f4, @function f4: .LFB3: .loc 1 78 0 .cfi_startproc .LVL3: .loc 1 82 0 movl vv(%rip), %eax addl $1, %eax movl %eax, vv(%rip) .loc 1 83 0 ret .cfi_endproc .LFE3: .size f4, .-f4 .globl _start .type _start, @function _start: .LFB4: .loc 1 87 0 .cfi_startproc subq $8, %rsp .LCFI0: .cfi_def_cfa_offset 16 .loc 1 88 0 movl $9, %ecx movl $8, %edx movl $7, %esi movl $6, %edi movss .LC2(%rip), %xmm4 movss .LC3(%rip), %xmm3 movsd .LC0(%rip), %xmm2 movsd .LC1(%rip), %xmm1 movsd .LC4(%rip), %xmm0 call f1 .LVL4: .loc 1 89 0 movl $9, %ecx movl $8, %edx movl $7, %esi movl $6, %edi movss .LC2(%rip), %xmm4 movss .LC3(%rip), %xmm3 movsd .LC0(%rip), %xmm2 movsd .LC1(%rip), %xmm1 movsd .LC4(%rip), %xmm0 call f2 .LVL5: .loc 1 90 0 movl $4, %ecx movl $3, %edx movl $2, %esi movl $1, %edi call f3 .LVL6: .loc 1 91 0 movdqa .LC5(%rip), %xmm2 movq .LC6(%rip), %xmm1 movd .LC7(%rip), %xmm0 call f4 .LVL7: .loc 1 93 0 movl $0, %eax addq $8, %rsp .LCFI1: .cfi_def_cfa_offset 8 ret .cfi_endproc .LFE4: .size _start, .-_start .comm vv,4,4 .section .rodata.cst8,"aM",@progbits,8 .align 8 .LC0: .long 0 .long 1074266112 .align 8 .LC1: .long 0 .long 1073741824 .section .rodata.cst4,"aM",@progbits,4 .align 4 .LC2: .long 1084227584 .align 4 .LC3: .long 1082130432 .section .rodata.cst8 .align 8 .LC4: .long 0 .long 1072693248 .section .rodata.cst16,"aM",@progbits,16 .align 16 .LC5: .quad 640 .quad 3476215962376601600 .section .rodata.cst8 .align 8 .LC6: .quad 3575858104132173984 .section .rodata.cst4 .align 4 .LC7: .long 838860880 .text .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0x6c4 .value 0x2 .long .Ldebug_abbrev0 .byte 0x8 .uleb128 0x1 .long .LASF8 .byte 0x1 .long .LASF9 .long .LASF10 .quad .Ltext0 .quad .Letext0 .long .Ldebug_line0 .uleb128 0x2 .byte 0x8 .byte 0x4 .long .LASF0 .uleb128 0x2 .byte 0x4 .byte 0x4 .long .LASF1 .uleb128 0x2 .byte 0x8 .byte 0x7 .long .LASF2 .uleb128 0x2 .byte 0x8 .byte 0x5 .long .LASF3 .uleb128 0x2 .byte 0x4 .byte 0x7 .long .LASF4 .uleb128 0x3 .byte 0x4 .byte 0x5 .string "int" .uleb128 0x2 .byte 0x8 .byte 0xf .long .LASF5 .uleb128 0x2 .byte 0x4 .byte 0xf .long .LASF6 .uleb128 0x2 .byte 0x10 .byte 0xf .long .LASF7 .uleb128 0x4 .byte 0x1 .string "f1" .byte 0x1 .byte 0x9 .byte 0x1 .quad .LFB0 .quad .LFE0 .byte 0x2 .byte 0x77 .sleb128 8 .byte 0x1 .long 0x22b .uleb128 0x5 .string "a" .byte 0x1 .byte 0x9 .long 0x2d .byte 0x1 .byte 0x61 .uleb128 0x5 .string "b" .byte 0x1 .byte 0x9 .long 0x2d .byte 0x1 .byte 0x62 .uleb128 0x5 .string "c" .byte 0x1 .byte 0x9 .long 0x2d .byte 0x1 .byte 0x63 .uleb128 0x5 .string "d" .byte 0x1 .byte 0x9 .long 0x34 .byte 0x1 .byte 0x64 .uleb128 0x5 .string "e" .byte 0x1 .byte 0x9 .long 0x34 .byte 0x1 .byte 0x65 .uleb128 0x5 .string "f" .byte 0x1 .byte 0x9 .long 0x50 .byte 0x1 .byte 0x55 .uleb128 0x5 .string "g" .byte 0x1 .byte 0x9 .long 0x49 .byte 0x1 .byte 0x54 .uleb128 0x5 .string "h" .byte 0x1 .byte 0x9 .long 0x22b .byte 0x1 .byte 0x51 .uleb128 0x5 .string "i" .byte 0x1 .byte 0x9 .long 0x232 .byte 0x1 .byte 0x52 .uleb128 0x6 .string "j" .byte 0x1 .byte 0xb .long 0x2d .byte 0x6 .byte 0xf5 .uleb128 0x14 .uleb128 0x34 .byte 0xf7 .uleb128 0x2d .byte 0x9f .uleb128 0x6 .string "l" .byte 0x1 .byte 0xc .long 0x22b .byte 0x8 .byte 0xf5 .uleb128 0x14 .uleb128 0x34 .byte 0xf7 .uleb128 0x2d .byte 0xf9 .uleb128 0x3b .byte 0x9f .uleb128 0x6 .string "m" .byte 0x1 .byte 0xe .long 0x22b .byte 0x1 .byte 0x63 .uleb128 0x6 .string "n" .byte 0x1 .byte 0x10 .long 0x34 .byte 0x7 .byte 0x72 .sleb128 0 .byte 0xf7 .uleb128 0x3b .byte 0xf7 .uleb128 0x34 .byte 0x9f .uleb128 0x6 .string "o" .byte 0x1 .byte 0x11 .long 0x2d .byte 0x7 .byte 0x71 .sleb128 0 .byte 0xf7 .uleb128 0x42 .byte 0xf7 .uleb128 0x2d .byte 0x9f .uleb128 0x6 .string "p" .byte 0x1 .byte 0x12 .long 0x34 .byte 0x7 .byte 0x74 .sleb128 0 .byte 0xf7 .uleb128 0x49 .byte 0xf7 .uleb128 0x34 .byte 0x9f .uleb128 0x6 .string "q" .byte 0x1 .byte 0x13 .long 0x2d .byte 0x7 .byte 0x75 .sleb128 0 .byte 0xf7 .uleb128 0x50 .byte 0xf7 .uleb128 0x2d .byte 0x9f .uleb128 0x6 .string "r" .byte 0x1 .byte 0x14 .long 0x232 .byte 0x6 .byte 0xf5 .uleb128 0x11 .uleb128 0x2d .byte 0xf7 .uleb128 0x3b .byte 0x9f .uleb128 0x6 .string "s" .byte 0x1 .byte 0x15 .long 0x22b .byte 0x8 .byte 0xf5 .uleb128 0x13 .uleb128 0x2d .byte 0xf7 .uleb128 0x42 .byte 0xf7 .uleb128 0 .byte 0x9f .uleb128 0x6 .string "t" .byte 0x1 .byte 0x16 .long 0x49 .byte 0x8 .byte 0xf5 .uleb128 0x14 .uleb128 0x34 .byte 0xf7 .uleb128 0x49 .byte 0xf7 .uleb128 0 .byte 0x9f .uleb128 0x6 .string "u" .byte 0x1 .byte 0x17 .long 0x50 .byte 0x8 .byte 0xf5 .uleb128 0x12 .uleb128 0x2d .byte 0xf7 .uleb128 0x50 .byte 0xf7 .uleb128 0 .byte 0x9f .uleb128 0x6 .string "v" .byte 0x1 .byte 0x18 .long 0x34 .byte 0x6 .byte 0xf5 .uleb128 0x11 .uleb128 0x2d .byte 0xf7 .uleb128 0x34 .byte 0x9f .uleb128 0x6 .string "w" .byte 0x1 .byte 0x19 .long 0x2d .byte 0x12 .byte 0xf5 .uleb128 0x14 .uleb128 0x34 .byte 0xf7 .uleb128 0x2d .byte 0xf4 .uleb128 0x2d .byte 0x8 .long 0 .long 0x3fd00000 .byte 0x1e .byte 0x9f .uleb128 0x6 .string "x" .byte 0x1 .byte 0x1a .long 0x2d .byte 0x14 .byte 0xf5 .uleb128 0x11 .uleb128 0x2d .byte 0xf5 .uleb128 0x12 .uleb128 0x2d .byte 0x22 .byte 0xf4 .uleb128 0x2d .byte 0x8 .long 0 .long 0x3ff00000 .byte 0x22 .byte 0x9f .uleb128 0x6 .string "y" .byte 0x1 .byte 0x1b .long 0x2d .byte 0x14 .byte 0xf5 .uleb128 0x12 .uleb128 0x2d .byte 0xf5 .uleb128 0x13 .uleb128 0x2d .byte 0x22 .byte 0xf4 .uleb128 0x2d .byte 0x8 .long 0 .long 0x40000000 .byte 0x22 .byte 0x9f .uleb128 0x6 .string "z" .byte 0x1 .byte 0x1c .long 0x34 .byte 0x12 .byte 0xf5 .uleb128 0x14 .uleb128 0x34 .byte 0xf3 .uleb128 0x3 .byte 0xf5 .uleb128 0x15 .uleb128 0x34 .byte 0x22 .byte 0xf4 .uleb128 0x34 .byte 0x4 .long 0x40400000 .byte 0x22 .byte 0x9f .byte 0 .uleb128 0x2 .byte 0x8 .byte 0x5 .long .LASF11 .uleb128 0x2 .byte 0x8 .byte 0x7 .long .LASF12 .uleb128 0x4 .byte 0x1 .string "f2" .byte 0x1 .byte 0x21 .byte 0x1 .quad .LFB1 .quad .LFE1 .byte 0x2 .byte 0x77 .sleb128 8 .byte 0x1 .long 0x402 .uleb128 0x5 .string "a" .byte 0x1 .byte 0x21 .long 0x2d .byte 0x1 .byte 0x61 .uleb128 0x5 .string "b" .byte 0x1 .byte 0x21 .long 0x2d .byte 0x1 .byte 0x62 .uleb128 0x5 .string "c" .byte 0x1 .byte 0x21 .long 0x2d .byte 0x1 .byte 0x63 .uleb128 0x5 .string "d" .byte 0x1 .byte 0x21 .long 0x34 .byte 0x1 .byte 0x64 .uleb128 0x5 .string "e" .byte 0x1 .byte 0x21 .long 0x34 .byte 0x1 .byte 0x65 .uleb128 0x5 .string "f" .byte 0x1 .byte 0x21 .long 0x50 .byte 0x1 .byte 0x55 .uleb128 0x5 .string "g" .byte 0x1 .byte 0x21 .long 0x49 .byte 0x1 .byte 0x54 .uleb128 0x5 .string "h" .byte 0x1 .byte 0x21 .long 0x22b .byte 0x1 .byte 0x51 .uleb128 0x5 .string "i" .byte 0x1 .byte 0x21 .long 0x232 .byte 0x1 .byte 0x52 .uleb128 0x6 .string "j" .byte 0x1 .byte 0x23 .long 0x2d .byte 0x6 .byte 0xf5 .uleb128 0x14 .uleb128 0x34 .byte 0xf7 .uleb128 0x2d .byte 0x9f .uleb128 0x6 .string "l" .byte 0x1 .byte 0x24 .long 0x22b .byte 0x8 .byte 0xf5 .uleb128 0x14 .uleb128 0x34 .byte 0xf7 .uleb128 0x2d .byte 0xf9 .uleb128 0x3b .byte 0x9f .uleb128 0x6 .string "m" .byte 0x1 .byte 0x26 .long 0x22b .byte 0x1 .byte 0x63 .uleb128 0x6 .string "n" .byte 0x1 .byte 0x28 .long 0x34 .byte 0x7 .byte 0x72 .sleb128 0 .byte 0xf7 .uleb128 0x3b .byte 0xf7 .uleb128 0x34 .byte 0x9f .uleb128 0x6 .string "o" .byte 0x1 .byte 0x29 .long 0x2d .byte 0x7 .byte 0x71 .sleb128 0 .byte 0xf7 .uleb128 0x42 .byte 0xf7 .uleb128 0x2d .byte 0x9f .uleb128 0x6 .string "p" .byte 0x1 .byte 0x2a .long 0x34 .byte 0x7 .byte 0x74 .sleb128 0 .byte 0xf7 .uleb128 0x49 .byte 0xf7 .uleb128 0x34 .byte 0x9f .uleb128 0x6 .string "q" .byte 0x1 .byte 0x2b .long 0x2d .byte 0x7 .byte 0x75 .sleb128 0 .byte 0xf7 .uleb128 0x50 .byte 0xf7 .uleb128 0x2d .byte 0x9f .uleb128 0x6 .string "r" .byte 0x1 .byte 0x2c .long 0x232 .byte 0x6 .byte 0xf5 .uleb128 0x11 .uleb128 0x2d .byte 0xf7 .uleb128 0x3b .byte 0x9f .uleb128 0x6 .string "s" .byte 0x1 .byte 0x2d .long 0x22b .byte 0x8 .byte 0xf5 .uleb128 0x13 .uleb128 0x2d .byte 0xf7 .uleb128 0x42 .byte 0xf7 .uleb128 0 .byte 0x9f .uleb128 0x6 .string "t" .byte 0x1 .byte 0x2e .long 0x49 .byte 0x8 .byte 0xf5 .uleb128 0x14 .uleb128 0x34 .byte 0xf7 .uleb128 0x49 .byte 0xf7 .uleb128 0 .byte 0x9f .uleb128 0x6 .string "u" .byte 0x1 .byte 0x2f .long 0x50 .byte 0x8 .byte 0xf5 .uleb128 0x12 .uleb128 0x2d .byte 0xf7 .uleb128 0x50 .byte 0xf7 .uleb128 0 .byte 0x9f .uleb128 0x6 .string "v" .byte 0x1 .byte 0x30 .long 0x34 .byte 0x6 .byte 0xf5 .uleb128 0x11 .uleb128 0x2d .byte 0xf7 .uleb128 0x34 .byte 0x9f .uleb128 0x6 .string "w" .byte 0x1 .byte 0x31 .long 0x2d .byte 0x12 .byte 0xf5 .uleb128 0x14 .uleb128 0x34 .byte 0xf7 .uleb128 0x2d .byte 0xf4 .uleb128 0x2d .byte 0x8 .long 0 .long 0x3fd00000 .byte 0x1e .byte 0x9f .uleb128 0x6 .string "x" .byte 0x1 .byte 0x32 .long 0x2d .byte 0x20 .byte 0xf5 .uleb128 0x11 .uleb128 0x2d .byte 0xf5 .uleb128 0x12 .uleb128 0x2d .byte 0x22 .byte 0xf4 .uleb128 0x2d .byte 0x8 .long 0 .long 0x40080000 .byte 0x1c .byte 0xf4 .uleb128 0x2d .byte 0x8 .long 0x78b58c40 .long 0x4415af1d .byte 0x22 .byte 0x9f .uleb128 0x6 .string "y" .byte 0x1 .byte 0x33 .long 0x2d .byte 0x14 .byte 0xf5 .uleb128 0x13 .uleb128 0x2d .byte 0xf4 .uleb128 0x2d .byte 0x8 .long 0 .long 0x401c0000 .byte 0x1e .byte 0xf5 .uleb128 0x12 .uleb128 0x2d .byte 0x22 .byte 0x9f .uleb128 0x6 .string "z" .byte 0x1 .byte 0x34 .long 0x34 .byte 0x10 .byte 0xf5 .uleb128 0x14 .uleb128 0x34 .byte 0xf5 .uleb128 0x15 .uleb128 0x34 .byte 0x22 .byte 0xf4 .uleb128 0x34 .byte 0x4 .long 0x40400000 .byte 0x22 .byte 0x9f .byte 0 .uleb128 0x4 .byte 0x1 .string "f3" .byte 0x1 .byte 0x43 .byte 0x1 .quad .LFB2 .quad .LFE2 .byte 0x2 .byte 0x77 .sleb128 8 .byte 0x1 .long 0x4cd .uleb128 0x5 .string "a" .byte 0x1 .byte 0x43 .long 0x22b .byte 0x1 .byte 0x55 .uleb128 0x5 .string "b" .byte 0x1 .byte 0x43 .long 0x50 .byte 0x1 .byte 0x54 .uleb128 0x5 .string "c" .byte 0x1 .byte 0x43 .long 0x22b .byte 0x1 .byte 0x51 .uleb128 0x5 .string "d" .byte 0x1 .byte 0x43 .long 0x49 .byte 0x1 .byte 0x52 .uleb128 0x6 .string "w" .byte 0x1 .byte 0x45 .long 0x22b .byte 0x14 .byte 0x72 .sleb128 0 .byte 0xc .long 0xffffffff .byte 0x1a .byte 0x12 .byte 0x75 .sleb128 0 .byte 0x16 .byte 0x14 .byte 0x2b .byte 0x28 .value 0x1 .byte 0x16 .byte 0x13 .byte 0x9f .uleb128 0x6 .string "x" .byte 0x1 .byte 0x46 .long 0x22b .byte 0xe .byte 0x74 .sleb128 0 .byte 0x8 .byte 0x20 .byte 0x24 .byte 0x8 .byte 0x20 .byte 0x26 .byte 0x75 .sleb128 0 .byte 0x22 .byte 0x23 .uleb128 0x7 .byte 0x9f .uleb128 0x6 .string "y" .byte 0x1 .byte 0x47 .long 0x22b .byte 0x13 .byte 0x72 .sleb128 0 .byte 0xc .long 0xffffffff .byte 0x1a .byte 0x71 .sleb128 0 .byte 0x22 .byte 0x23 .uleb128 0x912345678 .byte 0x9f .uleb128 0x6 .string "z" .byte 0x1 .byte 0x48 .long 0x50 .byte 0x21 .byte 0x74 .sleb128 0 .byte 0x8 .byte 0x20 .byte 0x24 .byte 0x8 .byte 0x20 .byte 0x26 .byte 0x75 .sleb128 0 .byte 0x22 .byte 0x23 .uleb128 0x7 .byte 0x72 .sleb128 0 .byte 0xc .long 0xffffffff .byte 0x1a .byte 0x71 .sleb128 0 .byte 0x22 .byte 0x23 .uleb128 0x912345678 .byte 0x22 .byte 0x9f .byte 0 .uleb128 0x4 .byte 0x1 .string "f4" .byte 0x1 .byte 0x4d .byte 0x1 .quad .LFB3 .quad .LFE3 .byte 0x2 .byte 0x77 .sleb128 8 .byte 0x1 .long 0x576 .uleb128 0x5 .string "a" .byte 0x1 .byte 0x4d .long 0x5e .byte 0x1 .byte 0x61 .uleb128 0x5 .string "b" .byte 0x1 .byte 0x4d .long 0x57 .byte 0x1 .byte 0x62 .uleb128 0x5 .string "c" .byte 0x1 .byte 0x4d .long 0x65 .byte 0x1 .byte 0x63 .uleb128 0x6 .string "w" .byte 0x1 .byte 0x4f .long 0x5e .byte 0x14 .byte 0xf5 .uleb128 0x11 .uleb128 0x5e .byte 0xf4 .uleb128 0x5e .byte 0x4 .long 0x32000050 .byte 0x1e .byte 0xf4 .uleb128 0x5e .byte 0x4 .long 0x3200003c .byte 0x22 .byte 0x9f .uleb128 0x6 .string "x" .byte 0x1 .byte 0x50 .long 0x57 .byte 0x1c .byte 0xf5 .uleb128 0x12 .uleb128 0x57 .byte 0xf4 .uleb128 0x57 .byte 0x8 .long 0x50 .long 0x31a00000 .byte 0x1b .byte 0xf4 .uleb128 0x57 .byte 0x8 .long 0x3c .long 0x31a00000 .byte 0x1c .byte 0x9f .uleb128 0x6 .string "y" .byte 0x1 .byte 0x51 .long 0x65 .byte 0x19 .byte 0xf5 .uleb128 0x13 .uleb128 0x65 .byte 0x1f .byte 0xf4 .uleb128 0x65 .byte 0x10 .long 0x50 .long 0 .long 0 .long 0x303e0000 .byte 0x1b .byte 0x9f .byte 0 .uleb128 0x7 .byte 0x1 .long .LASF13 .byte 0x1 .byte 0x56 .long 0x50 .quad .LFB4 .quad .LFE4 .long .LLST0 .byte 0x1 .long 0x6a1 .uleb128 0x8 .quad .LVL4 .long 0x6c .long 0x604 .uleb128 0x9 .byte 0x1 .byte 0x61 .byte 0xb .byte 0xf4 .uleb128 0x2d .byte 0x8 .long 0 .long 0x3ff00000 .uleb128 0x9 .byte 0x1 .byte 0x62 .byte 0xb .byte 0xf4 .uleb128 0x2d .byte 0x8 .long 0 .long 0x40000000 .uleb128 0x9 .byte 0x1 .byte 0x63 .byte 0xb .byte 0xf4 .uleb128 0x2d .byte 0x8 .long 0 .long 0x40080000 .uleb128 0x9 .byte 0x1 .byte 0x64 .byte 0x7 .byte 0xf4 .uleb128 0x34 .byte 0x4 .long 0x40800000 .uleb128 0x9 .byte 0x1 .byte 0x65 .byte 0x7 .byte 0xf4 .uleb128 0x34 .byte 0x4 .long 0x40a00000 .uleb128 0x9 .byte 0x1 .byte 0x55 .byte 0x1 .byte 0x36 .uleb128 0x9 .byte 0x1 .byte 0x54 .byte 0x1 .byte 0x37 .uleb128 0x9 .byte 0x1 .byte 0x51 .byte 0x1 .byte 0x38 .uleb128 0x9 .byte 0x1 .byte 0x52 .byte 0x1 .byte 0x39 .byte 0 .uleb128 0x8 .quad .LVL5 .long 0x239 .long 0x66d .uleb128 0x9 .byte 0x1 .byte 0x61 .byte 0xb .byte 0xf4 .uleb128 0x2d .byte 0x8 .long 0 .long 0x3ff00000 .uleb128 0x9 .byte 0x1 .byte 0x62 .byte 0xb .byte 0xf4 .uleb128 0x2d .byte 0x8 .long 0 .long 0x40000000 .uleb128 0x9 .byte 0x1 .byte 0x63 .byte 0xb .byte 0xf4 .uleb128 0x2d .byte 0x8 .long 0 .long 0x40080000 .uleb128 0x9 .byte 0x1 .byte 0x64 .byte 0x7 .byte 0xf4 .uleb128 0x34 .byte 0x4 .long 0x40800000 .uleb128 0x9 .byte 0x1 .byte 0x65 .byte 0x7 .byte 0xf4 .uleb128 0x34 .byte 0x4 .long 0x40a00000 .uleb128 0x9 .byte 0x1 .byte 0x55 .byte 0x1 .byte 0x36 .uleb128 0x9 .byte 0x1 .byte 0x54 .byte 0x1 .byte 0x37 .uleb128 0x9 .byte 0x1 .byte 0x51 .byte 0x1 .byte 0x38 .uleb128 0x9 .byte 0x1 .byte 0x52 .byte 0x1 .byte 0x39 .byte 0 .uleb128 0x8 .quad .LVL6 .long 0x402 .long 0x693 .uleb128 0x9 .byte 0x1 .byte 0x55 .byte 0x1 .byte 0x31 .uleb128 0x9 .byte 0x1 .byte 0x54 .byte 0x1 .byte 0x32 .uleb128 0x9 .byte 0x1 .byte 0x51 .byte 0x1 .byte 0x33 .uleb128 0x9 .byte 0x1 .byte 0x52 .byte 0x1 .byte 0x34 .byte 0 .uleb128 0xa .quad .LVL7 .long 0x4cd .byte 0 .uleb128 0xb .string "vv" .byte 0x1 .byte 0x5 .long 0x6ad .byte 0x1 .byte 0x1 .uleb128 0xc .long 0x50 .uleb128 0xd .string "vv" .byte 0x1 .byte 0x5 .long 0x6ad .byte 0x1 .byte 0x9 .byte 0x3 .quad vv .byte 0 .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 .uleb128 0x11 .byte 0x1 .uleb128 0x25 .uleb128 0xe .uleb128 0x13 .uleb128 0xb .uleb128 0x3 .uleb128 0xe .uleb128 0x1b .uleb128 0xe .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x10 .uleb128 0x6 .byte 0 .byte 0 .uleb128 0x2 .uleb128 0x24 .byte 0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0xe .byte 0 .byte 0 .uleb128 0x3 .uleb128 0x24 .byte 0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0x8 .byte 0 .byte 0 .uleb128 0x4 .uleb128 0x2e .byte 0x1 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x27 .uleb128 0xc .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0xa .uleb128 0x2117 .uleb128 0xc .uleb128 0x1 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x5 .uleb128 0x5 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0xa .byte 0 .byte 0 .uleb128 0x6 .uleb128 0x34 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0xa .byte 0 .byte 0 .uleb128 0x7 .uleb128 0x2e .byte 0x1 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x6 .uleb128 0x2117 .uleb128 0xc .uleb128 0x1 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x8 .uleb128 0x4109 .byte 0x1 .uleb128 0x11 .uleb128 0x1 .uleb128 0x31 .uleb128 0x13 .uleb128 0x1 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x9 .uleb128 0x410a .byte 0 .uleb128 0x2 .uleb128 0xa .uleb128 0x2111 .uleb128 0xa .byte 0 .byte 0 .uleb128 0xa .uleb128 0x4109 .byte 0 .uleb128 0x11 .uleb128 0x1 .uleb128 0x31 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0xb .uleb128 0x34 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x3f .uleb128 0xc .uleb128 0x3c .uleb128 0xc .byte 0 .byte 0 .uleb128 0xc .uleb128 0x35 .byte 0 .uleb128 0x49 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0xd .uleb128 0x34 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x3f .uleb128 0xc .uleb128 0x2 .uleb128 0xa .byte 0 .byte 0 .byte 0 .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .quad .LFB4-.Ltext0 .quad .LCFI0-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad .LCFI0-.Ltext0 .quad .LCFI1-.Ltext0 .value 0x2 .byte 0x77 .sleb128 16 .quad .LCFI1-.Ltext0 .quad .LFE4-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad 0 .quad 0 .section .debug_aranges,"",@progbits .long 0x2c .value 0x2 .long .Ldebug_info0 .byte 0x8 .byte 0 .value 0 .value 0 .quad .Ltext0 .quad .Letext0-.Ltext0 .quad 0 .quad 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF4: .string "unsigned int" .LASF6: .string "_Decimal32" .LASF7: .string "_Decimal128" .LASF2: .string "long unsigned int" .LASF12: .string "long long unsigned int" .LASF5: .string "_Decimal64" .LASF13: .string "main" .LASF3: .string "long int" .LASF10: .string "/tmp" .LASF0: .string "double" .LASF11: .string "long long int" .LASF1: .string "float" .LASF8: .string "GNU C 4.7.0 20110708 (experimental) [trunk revision 176048]" .LASF9: .string "typeddwarf.c" .ident "GCC: (GNU) 4.7.0 20110708 (experimental) [trunk revision 176048]" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
1,745
gdb/testsuite/gdb.dwarf2/dw2-filename.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2004-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */
tactcomplabs/xbgas-binutils-gdb
2,402
gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S
/* Copyright 2013-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .text pc_start: /* Enough space to fit at least one instruction. */ .4byte 0 pc_end: .section .debug_info d: .4byte .Ldebug_info_end - 1f /* Length of Compilation Unit Info */ 1: .2byte 0x3 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ dieb: .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */ .ascii "GCC\0" /* DW_AT_producer */ .byte 0x2 /* DW_AT_language = DW_LANG_C */ .ascii "z:file.c\0" /* DW_AT_name */ .uleb128 0x2 /* (DIE (0xd3) DW_TAG_subprogram) */ .byte 0x1 /* DW_AT_external */ .ascii "func\0" /* DW_AT_name */ .4byte pc_start /* DW_AT_low_pc */ .4byte pc_end /* DW_AT_high_pc */ .byte 0x1 /* DW_AT_prototyped */ .byte 0x0 /* end of children of DIE 0xb */ .Ldebug_info_end: .section .debug_abbrev .Ldebug_abbrev0: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .byte 0x0 .byte 0x0 .uleb128 0x2 /* (abbrev code) */ .uleb128 0x2e /* (DW_TAG_subprogram) */ .byte 0x0 /* DW_children_no */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0xc /* (DW_FORM_flag) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x27 /* (DW_AT_prototyped) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0x0 .byte 0x0 .byte 0x0
tactcomplabs/xbgas-binutils-gdb
5,545
gdb/testsuite/gdb.dwarf2/dw2-strp.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2008-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Debug information */ .section .debug_info .Lcu1_begin: .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 4 /* Pointer Size (in bytes) */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lproducer /* DW_AT_producer */ /* Use C++ to exploit a bug in parsing DW_AT_name "". */ .byte 4 /* DW_AT_language (C++) - */ .Larray_type: .uleb128 2 /* Abbrev: DW_TAG_array_type */ .4byte .Lchar_type-.Lcu1_begin /* DW_AT_type */ .uleb128 3 /* Abbrev: DW_TAG_subrange_type */ .4byte .Luint_type-.Lcu1_begin /* DW_AT_type */ .byte 0xd /* DW_AT_upper_bound */ .byte 0 /* End of children of die */ .Luint_type: .uleb128 4 /* Abbrev: DW_TAG_base_type */ .4byte .Luint_str /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 7 /* DW_AT_encoding */ .Lchar_type: .uleb128 4 /* Abbrev: DW_TAG_base_type */ .4byte .Lchar_str /* DW_AT_name */ .byte 1 /* DW_AT_byte_size */ .byte 6 /* DW_AT_encoding */ .uleb128 5 /* Abbrev: DW_TAG_variable DW_FORM_strp */ .4byte .Lvarname /* DW_AT_name */ .4byte .Lconst_type-.Lcu1_begin/* DW_AT_type */ .4byte .Lvarcontents /* DW_AT_const_value */ .byte 1 /* DW_AT_external */ .uleb128 6 /* Abbrev: DW_TAG_variable DW_FORM_string */ .string "a_string2" /* DW_AT_name */ .4byte .Lconst_type-.Lcu1_begin/* DW_AT_type */ .string "hello world2\n" /* DW_AT_const_value */ .byte 1 /* DW_AT_external */ .Lconst_type: .uleb128 7 /* Abbrev: DW_TAG_const_type */ .4byte .Larray_type-.Lcu1_begin/* DW_AT_type */ .uleb128 8 /* Abbrev: DW_TAG_variable (name "") */ .4byte .Lemptyname /* DW_AT_name */ .byte 0 /* End of children of CU */ .Lcu1_end: .section .debug_abbrev .Ldebug_abbrev0: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 0x1 /* has_children */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0xe /* DW_FORM_strp */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x1 /* TAG: DW_TAG_array_type */ .byte 0x1 /* DW_children_yes */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x21 /* DW_TAG_subrange_type */ .byte 0x0 /* no children */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x2f /* DW_AT_upper_bound */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 4 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0x0 /* no_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0xe /* DW_FORM_strp */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 5 /* Abbrev code */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0x0 /* no_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0xe /* DW_FORM_strp */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x1c /* DW_AT_const_value */ .uleb128 0xe /* DW_FORM_strp */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 6 /* Abbrev code */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0x0 /* no_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x1c /* DW_AT_const_value */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 7 /* Abbrev code */ .uleb128 0x26 /* DW_TAG_const_type */ .byte 0x0 /* DW_children_no */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 8 /* Abbrev code */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0xe /* DW_FORM_strp */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ /* String table */ .section .debug_str .Lproducer: .string "GNU C 3.3.3" .Lchar_str: .string "char" .Luint_str: .string "unsigned int" .Lvarname: .string "a_string" .Lvarcontents: .string "hello world!\n" .Lemptyname: .string ""
tactcomplabs/xbgas-binutils-gdb
1,190
gdb/testsuite/gdb.dwarf2/dw2-restore.S
/* Copyright 2009-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Compile with "gcc -nostdlib dw2-restore.S" */ .text .globl _start .func _start _start: call foo mov $0,%rax ret .endfunc .func foo foo: .cfi_startproc push %rbp .cfi_adjust_cfa_offset 8 mov %rsp,%rbp .cfi_def_cfa_register %rbp .cfi_remember_state jmp 2f 1: mov %rbp,%rsp .cfi_restore %rbp pop %rbp .cfi_adjust_cfa_offset -8 .cfi_def_cfa_register %rsp ret .cfi_restore_state 2: movq $0,%rax movq $0,(%rax) /* crash here */ jmp 1b .cfi_endproc .endfunc
tactcomplabs/xbgas-binutils-gdb
5,782
gdb/testsuite/gdb.dwarf2/dw2-unresolved.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2007-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define CONCAT1(a, b) CONCAT2(a, b) #define CONCAT2(a, b) a ## b #ifdef SYMBOL_PREFIX # define SYMBOL(str) CONCAT1(SYMBOL_PREFIX, str) #else # define SYMBOL(str) str #endif .data /* VAR1 is wrong here, in the real inferior it is located on stack. As both places are never modified and they are initialized to the same value it makes no difference. Ensure the name clash for "var". */ SYMBOL(var1): .byte 1 .globl SYMBOL(var) SYMBOL(var): .byte 2 /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte cu_text_end /* DW_AT_high_pc */ .4byte cu_text_start /* DW_AT_low_pc */ .ascii "dw2-unresolved-main.c\0" /* DW_AT_name */ .ascii "GNU C 4.3.2\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ .Ltype_uchar: .uleb128 2 /* Abbrev: DW_TAG_base_type */ .ascii "unsigned char\0" /* DW_AT_name */ .byte 1 /* DW_AT_byte_size */ .byte 7 /* DW_AT_encoding */ /* main */ .uleb128 3 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_decl_file */ .byte 2 /* DW_AT_decl_line */ .ascii "main\0" /* DW_AT_name */ .4byte .Ltype_uchar-.Lcu1_begin /* DW_AT_type */ .4byte cu_text_start /* DW_AT_low_pc */ .4byte cu_text_end /* DW_AT_high_pc */ .uleb128 4 /* Abbrev: DW_TAG_variable (location) */ .ascii "var\0" /* DW_AT_name */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 3 /* DW_OP_addr */ /* See VAR1 definition why this DIE is not correct. */ .4byte SYMBOL(var1) /* <addr> */ 2: .4byte .Ltype_uchar-.Lcu1_begin /* DW_AT_type */ .uleb128 6 /* Abbrev: DW_TAG_lexical_block */ .4byte SYMBOL(extern_block_start) /* DW_AT_low_pc */ .4byte SYMBOL(extern_block_end) /* DW_AT_high_pc */ .uleb128 5 /* Abbrev: DW_TAG_variable (extern) */ .ascii "var\0" /* DW_AT_name */ .4byte .Ltype_uchar-.Lcu1_begin /* DW_AT_type */ .byte 1 /* DW_AT_external */ .byte 0 /* End of children of the lexical block */ .byte 0 /* End of children of main */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 1 /* has_children */ .uleb128 0x3a /* DW_AT_decl_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3b /* DW_AT_decl_line */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 4 /* Abbrev code (location) */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x2 /* DW_AT_location */ .uleb128 0xa /* DW_FORM_block1 */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 5 /* Abbrev code (extern) */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 6 /* Abbrev code */ .uleb128 0x0b /* DW_TAG_lexical_block */ .byte 1 /* has_children */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */
tactcomplabs/xbgas-binutils-gdb
11,046
gdb/testsuite/gdb.dwarf2/pr13961.S
/* Copyright 2012-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Testcase to exercise the code path in bug 13961. Compiled from: class foo { public: int bar; }; foo baz; int main () { return 0; } And then manually edited to insert the necessary DW_AT_specification entries to trigger the desired code path. There's no real need to make this architecture-specific, so it has been further hand-edited to support that. */ #define CONCAT1(a, b) CONCAT2(a, b) #define CONCAT2(a, b) a ## b #ifdef SYMBOL_PREFIX # define SYMBOL(str) CONCAT1(SYMBOL_PREFIX, str) #else # define SYMBOL(str) str #endif .file "pr13961.cc" .globl baz .data /* Previously this used .bss, but it's not portable. */ .align 4 .type baz, %object .size baz, 4 baz: #if 0 /* This is disabled because when it was accidentally left out it caused a segv when used with .gdb_index. */ .file 1 "foo.c" .loc 1 12 0 #endif .zero 4 .text .Ltext0: .globl SYMBOL(main) .type SYMBOL(main), %function SYMBOL(main): .LFB0: .4byte 0 .LFE0: .size SYMBOL(main), .-SYMBOL(main) .Letext0: .section .debug_types,"",%progbits .Ldebug_types0: .4byte .Ltu_end - .Ltu_start /* Length of Compilation Unit Info */ .Ltu_start: .2byte 0x4 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .byte 0x19 /* Type Signature */ .byte 0x8b .byte 0x7e .byte 0xac .byte 0xce .byte 0xf1 .byte 0x22 .byte 0x90 .4byte .Ltu_class_type - .Ldebug_types0 /* Offset to Type DIE */ .uleb128 0x1 /* DW_TAG_type_unit */ .byte 0x4 /* DW_AT_language */ .byte 0x73 /* DW_AT_GNU_odr_signature */ .byte 0xea .byte 0x85 .byte 0x23 .byte 0x75 .byte 0x8a .byte 0x7e .byte 0x87 .4byte .Ldebug_line0 /* DW_AT_stmt_list */ /* Manually inserted to have a DW_AT_specification refering to something and appearing ahead of it. */ .uleb128 0x8 /* DW_TAG_class_type */ .4byte .Ltu_class_type - .Ldebug_types0 /* End of manual insertion */ .Ltu_class_type: .uleb128 0x2 /* (DW_TAG_class_type) */ .ascii "foo\0" /* DW_AT_name */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x1 /* DW_AT_decl_file (pr13961.cc) */ .byte 0x1 /* DW_AT_decl_line */ .4byte .Ltu_base_type - .Ldebug_types0 /* DW_AT_sibling */ .uleb128 0x3 /* (DW_TAG_member) */ .ascii "bar\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_decl_file (pr13961.cc) */ .byte 0x4 /* DW_AT_decl_line */ .4byte .Ltu_base_type - .Ldebug_types0 /* DW_AT_type */ .byte 0 /* DW_AT_data_member_location */ .byte 0x1 /* DW_AT_accessibility */ .byte 0 /* end of children */ .Ltu_base_type: .uleb128 0x4 /* DW_TAG_base_type */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding */ .ascii "int\0" /* DW_AT_name */ .byte 0 /* end of children */ .Ltu_end: .section .debug_info,"",%progbits .Ldebug_info0: .4byte .Lcu_end - .Lcu_start /* Length of Compilation Unit Info */ .Lcu_start: .2byte 0x4 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .uleb128 0x5 /* (DW_TAG_compile_unit) */ .4byte .LASF0 /* DW_AT_producer: "GNU C++ 4.6.3 20120306" */ .byte 0x4 /* DW_AT_language */ .4byte .LASF1 /* DW_AT_name: "pr13961.cc" */ .4byte .LASF2 /* DW_AT_comp_dir: "." */ .4byte .Ltext0 /* DW_AT_low_pc */ .4byte .Letext0 /* DW_AT_high_pc */ .4byte .Ldebug_line0 /* DW_AT_stmt_list */ .Lint_base_type: .uleb128 0x4 /* DW_TAG_base_type */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding */ .ascii "int\0" /* DW_AT_name */ .uleb128 0x6 /* DW_TAG_subprogram */ /* DW_AT_external */ .4byte .LASF3 /* DW_AT_name: "main" */ .byte 0x1 /* DW_AT_decl_file (pr13961.cc) */ .byte 0xa /* DW_AT_decl_line */ .4byte .Lint_base_type - .Ldebug_info0 /* DW_AT_type */ .4byte .LFB0 /* DW_AT_low_pc */ .4byte .LFE0 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_AT_frame_base */ .byte 0x9c /* DW_OP_call_frame_cfa */ /* DW_AT_GNU_all_call_sites */ .uleb128 0x7 /* DW_TAG_variable */ .ascii "baz\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_decl_file (pr13961.cc) */ .byte 0x7 /* DW_AT_decl_line */ .byte 0x19 /* DW_AT_type */ .byte 0x8b .byte 0x7e .byte 0xac .byte 0xce .byte 0xf1 .byte 0x22 .byte 0x90 /* DW_AT_external */ .uleb128 0x5 /* DW_AT_location */ .byte 0x3 /* DW_OP_addr */ .4byte baz /* Manually inserted to have a DW_AT_specification refering to something and appearing ahead of it. */ .uleb128 0x8 /* DW_TAG_class_type */ .4byte .Lcu_class_type - .Ldebug_info0 /* DW_AT_specification */ .Lcu_int_type: .uleb128 0x4 /* DW_TAG_base_type */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding */ .ascii "int\0" /* DW_AT_name */ .Lcu_class_type: .uleb128 0x2 /* DW_TAG_class_type */ .ascii "foo2\0" /* DW_AT_name */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x1 /* DW_AT_decl_file (pr13961.cc) */ .byte 0x1 /* DW_AT_decl_line */ .4byte .Lcu_second_int_type - .Ldebug_info0 /* DW_AT_sibling */ .uleb128 0x3 /* DW_TAG_member */ .ascii "bar\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_decl_file (pr13961.cc) */ .byte 0x4 /* DW_AT_decl_line */ .4byte .Lcu_second_int_type - .Ldebug_info0 /* DW_AT_type */ .byte 0 /* DW_AT_data_member_location */ .byte 0x1 /* DW_AT_accessibility */ .byte 0 /* end of children */ .Lcu_second_int_type: .uleb128 0x4 /* DW_TAG_base_type */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding */ .ascii "int\0" /* DW_AT_name */ /* End of manual insertion */ .byte 0 /* end of children */ .Lcu_end: .section .debug_abbrev,"",%progbits .Ldebug_abbrev0: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x41 /* (TAG: DW_TAG_type_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x210f /* (DW_AT_GNU_odr_signature) */ .uleb128 0x7 /* (DW_FORM_data8) */ .uleb128 0x10 /* (DW_AT_stmt_list) */ .uleb128 0x17 /* (DW_FORM_sec_offset) */ .byte 0 .byte 0 .uleb128 0x2 /* (abbrev code) */ .uleb128 0x2 /* (TAG: DW_TAG_class_type) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x1 /* (DW_AT_sibling) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0 .byte 0 .uleb128 0x3 /* (abbrev code) */ .uleb128 0xd /* (TAG: DW_TAG_member) */ .byte 0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x38 /* (DW_AT_data_member_location) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x32 /* (DW_AT_accessibility) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0 .byte 0 .uleb128 0x4 /* (abbrev code) */ .uleb128 0x24 /* (TAG: DW_TAG_base_type) */ .byte 0 /* DW_children_no */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3e /* (DW_AT_encoding) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .byte 0 .byte 0 .uleb128 0x5 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0xe /* (DW_FORM_strp) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0xe /* (DW_FORM_strp) */ .uleb128 0x1b /* (DW_AT_comp_dir) */ .uleb128 0xe /* (DW_FORM_strp) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x10 /* (DW_AT_stmt_list) */ .uleb128 0x17 /* (DW_FORM_sec_offset) */ .byte 0 .byte 0 .uleb128 0x6 /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0 /* DW_children_no */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0x19 /* (DW_FORM_flag_present) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0xe /* (DW_FORM_strp) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x40 /* (DW_AT_frame_base) */ .uleb128 0x18 /* (DW_FORM_exprloc) */ .uleb128 0x2117 /* (DW_AT_GNU_all_call_sites) */ .uleb128 0x19 /* (DW_FORM_flag_present) */ .byte 0 .byte 0 .uleb128 0x7 /* (abbrev code) */ .uleb128 0x34 /* (TAG: DW_TAG_variable) */ .byte 0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x20 /* (DW_FORM_ref_sig8) */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0x19 /* (DW_FORM_flag_present) */ .uleb128 0x2 /* (DW_AT_location) */ .uleb128 0x18 /* (DW_FORM_exprloc) */ .byte 0 .byte 0 /* Manually inserted. */ .uleb128 0x8 /* abbrev code */ .uleb128 0x2 /* DW_TAG_class_type */ .byte 0x0 /* DW_has_children_no */ .uleb128 0x47 /* DW_AT_specification */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ /* End of manual insertion. */ .byte 0 .section .debug_aranges,"",%progbits .4byte 0x1c /* Length of Address Ranges Info */ .2byte 0x2 /* DWARF Version */ .4byte .Ldebug_info0 /* Offset of Compilation Unit Info */ .byte 0x4 /* Size of Address */ .byte 0 /* Size of Segment Descriptor */ .2byte 0 /* Pad to 8 byte boundary */ .2byte 0 .4byte .Ltext0 /* Address */ .4byte .Letext0-.Ltext0 /* Length */ .4byte 0 .4byte 0 .section .debug_line,"",%progbits .Ldebug_line0: .section .debug_str,"MS",%progbits,1 .LASF0: .string "GNU C++ 4.6.3 20120306" .LASF2: .string "." .LASF1: .string "pr13961.cc" .LASF3: .string "main"
tactcomplabs/xbgas-binutils-gdb
4,180
gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .section .data aa551234: .byte 0xaa, 0x55, 0x12, 0x34 .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 2 /* DW_LANG_C (C) */ .L2byte_type: .uleb128 2 /* Abbrev: DW_TAG_base_type */ .ascii "2byte\0" /* DW_AT_name */ .byte 2 /* DW_AT_byte_size */ .byte 7 /* DW_AT_encoding: DW_ATE_unsigned */ .L4byte_type: .uleb128 2 /* Abbrev: DW_TAG_base_type */ .ascii "4byte\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 7 /* DW_AT_encoding: DW_ATE_unsigned */ .L8byte_type: .uleb128 2 /* Abbrev: DW_TAG_base_type */ .ascii "8byte\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 7 /* DW_AT_encoding: DW_ATE_unsigned */ .uleb128 3 /* Abbrev: DW_TAG_variable */ .ascii "stack2\0" /* DW_AT_name */ .4byte .L2byte_type-.Lcu1_begin /* DW_AT_type */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 0x31 /* DW_OP_lit1 */ .byte 0x9f /* DW_OP_stack_value */ 2: .uleb128 3 /* Abbrev: DW_TAG_variable */ .ascii "stack8\0" /* DW_AT_name */ .4byte .L8byte_type-.Lcu1_begin /* DW_AT_type */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 0x31 /* DW_OP_lit1 */ .byte 0x9f /* DW_OP_stack_value */ 2: .uleb128 3 /* Abbrev: DW_TAG_variable */ .ascii "implicit4to2\0" /* DW_AT_name */ .4byte .L2byte_type-.Lcu1_begin /* DW_AT_type */ .byte 3f - 1f /* DW_AT_location */ 1: .byte 0x9e /* DW_OP_implicit_value */ .uleb128 3f - 2f 2: .byte 0x11, 0x22, 0x33, 0x44 3: .uleb128 3 /* Abbrev: DW_TAG_variable */ .ascii "implicit4to4\0" /* DW_AT_name */ .4byte .L4byte_type-.Lcu1_begin /* DW_AT_type */ .byte 3f - 1f /* DW_AT_location */ 1: .byte 0x9e /* DW_OP_implicit_value */ .uleb128 3f - 2f 2: .byte 0x11, 0x22, 0x33, 0x44 3: .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x2 /* DW_AT_location */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */
tactcomplabs/xbgas-binutils-gdb
4,219
gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Debug information */ .data .globl c c: .4byte 0 .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte cu_text_start /* DW_AT_low_pc */ .4byte cu_text_end /* DW_AT_high_pc */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 4 /* DW_AT_language (DW_LANG_C_plus_plus) */ .Ltype_class: .uleb128 3 /* Abbrev: DW_TAG_class_type */ .ascii "C\0" /* DW_AT_name */ .uleb128 5 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .ascii "membername\0" /* DW_AT_name */ .ascii "f\0" /* DW_AT_MIPS_linkage_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 0 /* End of children of DW_TAG_class_type */ .uleb128 4 /* Abbrev: DW_TAG_variable */ .ascii "c\0" /* DW_AT_name */ .4byte .Ltype_class-.Lcu1_begin /* DW_AT_type */ .byte 1 /* DW_AT_external */ .Ltype_int: .uleb128 2 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x2 /* DW_TAG_class_type */ .byte 1 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 4 /* Abbrev code */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 5 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0 /* has_children */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x2007 /* DW_AT_MIPS_linkage_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */
tactcomplabs/xbgas-binutils-gdb
18,135
gdb/testsuite/gdb.dwarf2/fission-loclists.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2013-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. This file was created by doing: gcc -O2 -gdwarf-4 -gsplit-debug -S -dA fission-loclists.c and then massaging the output. fission-loclists.c: volatile v; __attribute__ ((noinline)) void foo (int* x) { v = *x; } int main (int argc, char *argv[]) { foo (&argc); return 0; } */ .file "fission-loclists.c" .text .Ltext0: .p2align 4,,15 .globl foo .type foo, @function foo: .LFB0: .file 1 "fission-loclists.c" # fission-loclists.c:3 .loc 1 3 0 .cfi_startproc .LVL0: # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) # fission-loclists.c:3 .loc 1 3 0 movl (%rdi), %eax movl %eax, v(%rip) # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE0: .size foo, .-foo .text # was .section .text.startup,"ax",@progbits .p2align 4,,15 .globl main .type main, @function main: .LFB1: # fission-loclists.c:7 .loc 1 7 0 .cfi_startproc .LVL1: # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) subq $8, %rsp .cfi_def_cfa_offset 16 # fission-loclists.c:7 .loc 1 7 0 movl %edi, 4(%rsp) # fission-loclists.c:8 .loc 1 8 0 leaq 4(%rsp), %rdi .LVL2: call foo .LVL3: # fission-loclists.c:10 .loc 1 10 0 xorl %eax, %eax addq $8, %rsp .cfi_def_cfa_offset 8 # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE1: .size main, .-main .comm v,4,4 .text .Letext0: .section .debug_addr,"",@progbits .Ldebug_addr0: .8byte .LVL1 # 0x0 .8byte v # 0x1 .8byte .LVL3 # 0x2 .8byte .LFB0 # 0x3 .8byte .LFB1 # 0x4 .8byte .LVL3-1 # 0x5 .8byte .LVL2 # 0x6 .section .debug_info.dwo,"",@progbits .Ldebug_info0: .4byte .Ldebug_info0_end - .Ldebug_info0 - 4 # Length of Compilation Unit Info .value 0x4 # DWARF version number .4byte .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x8 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .ascii "GNU C 4.7.x-fission\0" # DW_AT_producer .byte 0x1 # DW_AT_language .ascii "fission-loclists.c\0" # DW_AT_name .ascii "/tmp\0" # DW_AT_comp_dir .byte 0xcb # DW_AT_GNU_dwo_id .byte 0x64 .byte 0x3e .byte 0x34 .byte 0x1b .byte 0x8a .byte 0xd6 .byte 0x5 .Lfoo_func: .uleb128 0x2 # (DIE (0x5c) DW_TAG_subprogram) # DW_AT_external .ascii "foo\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (fission-loclists.c) .byte 0x3 # DW_AT_decl_line # DW_AT_prototyped .uleb128 0x3 # DW_AT_low_pc .8byte .LFE0-.LFB0 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .4byte .Lint_ptr_type - .Ldebug_info0 # DW_AT_sibling .uleb128 0x3 # (DIE (0x72) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (fission-loclists.c) .byte 0x3 # DW_AT_decl_line .4byte .Lint_ptr_type - .Ldebug_info0 # DW_AT_type .uleb128 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .byte 0 # end of children of DIE 0x5c .Lint_ptr_type: .uleb128 0x4 # (DIE (0x7e) DW_TAG_pointer_type) .byte 0x8 # DW_AT_byte_size .4byte .Lint_type - .Ldebug_info0 # DW_AT_type .Lint_type: .uleb128 0x5 # (DIE (0x84) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .uleb128 0x6 # (DIE (0x8b) DW_TAG_subprogram) # DW_AT_external .ascii "main\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (fission-loclists.c) .byte 0x6 # DW_AT_decl_line # DW_AT_prototyped .4byte .Lint_type - .Ldebug_info0 # DW_AT_type .uleb128 0x4 # DW_AT_low_pc .8byte .LFE1-.LFB1 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .4byte .Lchar_ptr_ptr_type - .Ldebug_info0 # DW_AT_sibling .uleb128 0x7 # (DIE (0xa6) DW_TAG_formal_parameter) .ascii "argc\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (fission-loclists.c) .byte 0x6 # DW_AT_decl_line .4byte .Lint_type - .Ldebug_info0 # DW_AT_type .4byte .LLST0-.Ldebug_loc0 # DW_AT_location .uleb128 0x7 # (DIE (0xb6) DW_TAG_formal_parameter) .ascii "argv\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (fission-loclists.c) .byte 0x6 # DW_AT_decl_line .4byte .Lchar_ptr_ptr_type - .Ldebug_info0 # DW_AT_type .4byte .LLST1-.Ldebug_loc0 # DW_AT_location .uleb128 0x8 # (DIE (0xc6) DW_TAG_GNU_call_site) .uleb128 0x2 # DW_AT_low_pc .4byte .Lfoo_func - .Ldebug_info0 # DW_AT_abstract_origin .uleb128 0x9 # (DIE (0xcc) DW_TAG_GNU_call_site_parameter) .uleb128 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .uleb128 0x2 # DW_AT_GNU_call_site_value .byte 0x91 # DW_OP_fbreg .sleb128 -12 .byte 0 # end of children of DIE 0xc6 .byte 0 # end of children of DIE 0x8b .Lchar_ptr_ptr_type: .uleb128 0x4 # (DIE (0xd4) DW_TAG_pointer_type) .byte 0x8 # DW_AT_byte_size .4byte .Lchar_ptr_type - .Ldebug_info0 # DW_AT_type .Lchar_ptr_type: .uleb128 0x4 # (DIE (0xda) DW_TAG_pointer_type) .byte 0x8 # DW_AT_byte_size .4byte .Lchar_type - .Ldebug_info0 # DW_AT_type .Lchar_type: .uleb128 0x5 # (DIE (0xe0) DW_TAG_base_type) .byte 0x1 # DW_AT_byte_size .byte 0x6 # DW_AT_encoding .ascii "char\0" # DW_AT_name .uleb128 0xa # (DIE (0xe8) DW_TAG_variable) .ascii "v\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (fission-loclists.c) .byte 0x1 # DW_AT_decl_line .4byte .Lvolatile_int_type - .Ldebug_info0 # DW_AT_type # DW_AT_external .uleb128 0x2 # DW_AT_location .byte 0xfb # DW_OP_GNU_addr_index .uleb128 0x1 # (index into .debug_addr) .Lvolatile_int_type: .uleb128 0xb # (DIE (0xf4) DW_TAG_volatile_type) .4byte .Lint_type - .Ldebug_info0 # DW_AT_type .byte 0 # end of children of DIE 0xb .Ldebug_info0_end: .section .debug_info,"",@progbits .Lskeleton_debug_info0: .4byte .Lskeleton_debug_info0_end - .Lskeleton_debug_info0 - 4 # Length of Compilation Unit Info .value 0x4 # DWARF version number .4byte .Lskeleton_debug_abbrev0 # Offset Into Abbrev. Section .byte 0x8 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0) DW_TAG_compile_unit) .4byte .Ldebug_ranges0+0 # DW_AT_ranges # This next line is the core of the test. # We want a non-zero value for low_pc to verify gdb is *not* using it # (the initial base address) when evaluating location list addresses in # .debug_loc.dwo. # Note: Setting a non-zero value here means we had to adjust the # values in .debug_ranges. .8byte .Ltext0 # DW_AT_low_pc .4byte .Ldebug_line0 # DW_AT_stmt_list .byte 0xcb # DW_AT_GNU_dwo_id .byte 0x64 .byte 0x3e .byte 0x34 .byte 0x1b .byte 0x8a .byte 0xd6 .byte 0x5 .4byte .Ldebug_ranges0 # DW_AT_GNU_ranges_base .ascii "/tmp/src/gdb/testsuite\0" # DW_AT_comp_dir .asciz DWO # DW_AT_GNU_dwo_name .4byte .Ldebug_pubnames0 # DW_AT_GNU_pubnames .4byte .Ldebug_pubtypes0 # DW_AT_GNU_pubtypes .4byte .Ldebug_addr0 # DW_AT_GNU_addr_base .Lskeleton_debug_info0_end: .section .debug_abbrev,"",@progbits .Lskeleton_debug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0 # DW_children_no .uleb128 0x55 # (DW_AT_ranges) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x2131 # (DW_AT_GNU_dwo_id) .uleb128 0x7 # (DW_FORM_data8) .uleb128 0x2132 # (DW_AT_GNU_ranges_base) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x2130 # (DW_AT_GNU_dwo_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x2134 # (DW_AT_GNU_pubnames) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x2135 # (DW_AT_GNU_pubtypes) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x2133 # (DW_AT_GNU_addr_base) .uleb128 0x17 # (DW_FORM_sec_offset) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x41 # (TAG: DW_TAG_type_unit) .byte 0 # DW_children_no .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x2130 # (DW_AT_GNU_dwo_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x2134 # (DW_AT_GNU_pubnames) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x2135 # (DW_AT_GNU_pubtypes) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x2133 # (DW_AT_GNU_addr_base) .uleb128 0x17 # (DW_FORM_sec_offset) .byte 0 .byte 0 .byte 0 # end of skeleton .debug_abbrev .section .debug_abbrev.dwo,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x2131 # (DW_AT_GNU_dwo_id) .uleb128 0x7 # (DW_FORM_data8) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1f01 # (DW_FORM_GNU_addr_index) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x7 # (DW_FORM_data8) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x3 # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 .uleb128 0x4 # (abbrev code) .uleb128 0xf # (TAG: DW_TAG_pointer_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x5 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0 .byte 0 .uleb128 0x6 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1f01 # (DW_FORM_GNU_addr_index) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x7 # (DW_FORM_data8) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x7 # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x17 # (DW_FORM_sec_offset) .byte 0 .byte 0 .uleb128 0x8 # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0x1 # DW_children_yes .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1f01 # (DW_FORM_GNU_addr_index) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x9 # (abbrev code) .uleb128 0x410a # (TAG: DW_TAG_GNU_call_site_parameter) .byte 0 # DW_children_no .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2111 # (DW_AT_GNU_call_site_value) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 .uleb128 0xa # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 .uleb128 0xb # (abbrev code) .uleb128 0x35 # (TAG: DW_TAG_volatile_type) .byte 0 # DW_children_no .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .byte 0 .section .debug_loc.dwo,"",@progbits .Ldebug_loc0: .LLST0: .byte 0x3 # Location list start/length entry (*.LLST0) .uleb128 0 # Location list range start index (*.LVL1) .4byte .LVL2-.LVL1 # Location list range length (*.LLST0) .value 0x1 # Location expression size .byte 0x55 # DW_OP_reg5 .byte 0x3 # Location list start/length entry (*.LLST0) .uleb128 0x6 # Location list range start index (*.LVL2) .4byte .LFE1-.LVL2 # Location list range length (*.LLST0) .value 0x2 # Location expression size .byte 0x91 # DW_OP_fbreg .sleb128 -12 .byte 0 # Location list terminator (*.LLST0) .LLST1: .byte 0x3 # Location list start/length entry (*.LLST1) .uleb128 0 # Location list range start index (*.LVL1) .4byte .LVL3-1-.LVL1 # Location list range length (*.LLST1) .value 0x1 # Location expression size .byte 0x54 # DW_OP_reg4 .byte 0x3 # Location list start/length entry (*.LLST1) .uleb128 0x5 # Location list range start index (*.LVL3-1) .4byte .LFE1-.LVL3-1 # Location list range length (*.LLST1) .value 0x4 # Location expression size .byte 0xf3 # DW_OP_GNU_entry_value .uleb128 0x1 .byte 0x54 # DW_OP_reg4 .byte 0x9f # DW_OP_stack_value .byte 0 # Location list terminator (*.LLST1) .section .debug_gnu_pubnames,"",@progbits .Ldebug_pubnames0: .long 0x28 # Pub Info Length .value 0x2 # DWARF Version .long .Lskeleton_debug_info0 # Offset of Compilation Unit Info .long 0xa6 # Compilation Unit Length .long 0x18 # DIE offset .byte 0x30 # GDB-index flags .ascii "foo\0" # external name .long 0x47 # DIE offset .byte 0x30 # GDB-index flags .ascii "main\0" # external name .long 0x94 # DIE offset .byte 0x20 # GDB-index flags .ascii "v\0" # external name .long 0 .section .debug_gnu_pubtypes,"",@progbits .Ldebug_pubtypes0: .long 0x21 # Pub Info Length .value 0x2 # DWARF Version .long .Lskeleton_debug_info0 # Offset of Compilation Unit Info .long 0xa6 # Compilation Unit Length .long 0x40 # DIE offset .byte 0x90 # GDB-index flags .ascii "int\0" # external name .long 0x90 # DIE offset .byte 0x90 # GDB-index flags .ascii "char\0" # external name .long 0 .section .debug_aranges,"",@progbits .long 0x3c # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Lskeleton_debug_info0 # Offset of Compilation Unit Info .byte 0x8 # Size of Address .byte 0 # Size of Segment Descriptor .value 0 # Pad to 16 byte boundary .value 0 .quad .Ltext0 # Address .quad .Letext0-.Ltext0 # Length .quad .LFB1 # Address .quad .LFE1-.LFB1 # Length .quad 0 .quad 0 .section .debug_aranges,"",@progbits .4byte 0x3c # Length of Address Ranges Info .value 0x2 # DWARF Version .4byte .Lskeleton_debug_info0 # Offset of Compilation Unit Info .byte 0x8 # Size of Address .byte 0 # Size of Segment Descriptor .value 0 # Pad to 16 byte boundary .value 0 .8byte .Ltext0 # Address .8byte .Letext0-.Ltext0 # Length .8byte .LFB1 # Address .8byte .LFE1-.LFB1 # Length .8byte 0 .8byte 0 .section .debug_ranges,"",@progbits .Ldebug_ranges0: .8byte .Ltext0 - .Ltext0 # Offset 0 .8byte .Letext0 - .Ltext0 .8byte .LFB1 - .Ltext0 # Offset 0x10 .8byte .LFE1 - .Ltext0 .8byte 0 .8byte 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_line.dwo,"",@progbits .Lskeleton_debug_line0: .4byte .LELT0-.LSLT0 # Length of Source Line Info .LSLT0: .value 0x4 # DWARF Version .4byte .LELTP0-.LASLTP0 # Prolog Length .LASLTP0: .byte 0x1 # Minimum Instruction Length .byte 0x1 # Maximum Operations Per Instruction .byte 0x1 # Default is_stmt_start flag .byte 0xf6 # Line Base Value (Special Opcodes) .byte 0xf2 # Line Range Value (Special Opcodes) .byte 0xd # Special Opcode Base .byte 0 # opcode: 0x1 has 0 args .byte 0x1 # opcode: 0x2 has 1 args .byte 0x1 # opcode: 0x3 has 1 args .byte 0x1 # opcode: 0x4 has 1 args .byte 0x1 # opcode: 0x5 has 1 args .byte 0 # opcode: 0x6 has 0 args .byte 0 # opcode: 0x7 has 0 args .byte 0 # opcode: 0x8 has 0 args .byte 0x1 # opcode: 0x9 has 1 args .byte 0 # opcode: 0xa has 0 args .byte 0 # opcode: 0xb has 0 args .byte 0x1 # opcode: 0xc has 1 args .byte 0 # End directory table .ascii "fission-loclists.c\0" # File Entry: 0x1 .uleb128 0 .uleb128 0 .uleb128 0 .byte 0 # End file name table .LELTP0: .LELT0: .section .debug_str_offsets.dwo,"",@progbits .section .debug_str.dwo,"",@progbits .ident "GCC: 4.7.x-fission" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
48,387
gdb/testsuite/gdb.dwarf2/dw2-inline-break.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2012-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This source file was generated using the following command line: gcc -S -dA -g -O2 ../gdb.opt/inline-break.c -o inline-break.S */ .file "inline-break.c" .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .section .debug_info,"",@progbits .Ldebug_info0: .section .debug_line,"",@progbits .Ldebug_line0: .text .Ltext0: .p2align 4,,15 .globl func2 .type func2, @function func2: .LFB1: .file 1 "../gdb.opt/inline-break.c" # ../gdb.opt/inline-break.c:39 .loc 1 39 0 .cfi_startproc .LVL0: # basic block 2 # ../gdb.opt/inline-break.c:40 .loc 1 40 0 movl %edi, %eax sall $4, %eax addl %edi, %eax # ../gdb.opt/inline-break.c:41 .loc 1 41 0 ret .cfi_endproc .LFE1: .size func2, .-func2 .p2align 4,,15 .globl func4a .type func4a, @function func4a: .LFB5: # ../gdb.opt/inline-break.c:69 .loc 1 69 0 .cfi_startproc .LVL1: # basic block 2 # ../gdb.opt/inline-break.c:70 .loc 1 70 0 movl %edi, %eax sall $4, %eax leal (%rax,%rdi), %edi .LVL2: .LBB46: .LBB47: # ../gdb.opt/inline-break.c:64 .loc 1 64 0 xorl %eax, %eax cmpl $12, %edi setg %al addl $1, %eax .LBE47: .LBE46: # ../gdb.opt/inline-break.c:71 .loc 1 71 0 ret .cfi_endproc .LFE5: .size func4a, .-func4a .p2align 4,,15 .globl func5b .type func5b, @function func5b: .LFB6: # ../gdb.opt/inline-break.c:78 .loc 1 78 0 .cfi_startproc .LVL3: # basic block 2 # ../gdb.opt/inline-break.c:79 .loc 1 79 0 xorl %eax, %eax cmpl $11, %edi setg %al addl $1, %eax # ../gdb.opt/inline-break.c:80 .loc 1 80 0 ret .cfi_endproc .LFE6: .size func5b, .-func5b .p2align 4,,15 .globl func6b .type func6b, @function func6b: .LFB8: # ../gdb.opt/inline-break.c:93 .loc 1 93 0 .cfi_startproc .LVL4: # basic block 2 # ../gdb.opt/inline-break.c:94 .loc 1 94 0 xorl %eax, %eax cmpl $13, %edi setle %al addl $2, %eax # ../gdb.opt/inline-break.c:95 .loc 1 95 0 ret .cfi_endproc .LFE8: .size func6b, .-func6b .p2align 4,,15 .globl func6a .type func6a, @function func6a: .LFB9: # ../gdb.opt/inline-break.c:99 .loc 1 99 0 .cfi_startproc .LVL5: # basic block 2 # ../gdb.opt/inline-break.c:100 .loc 1 100 0 movl %edi, %eax sall $4, %eax leal (%rax,%rdi), %edi .LVL6: .LBB48: .LBB49: # ../gdb.opt/inline-break.c:94 .loc 1 94 0 xorl %eax, %eax cmpl $13, %edi setle %al addl $2, %eax .LBE49: .LBE48: # ../gdb.opt/inline-break.c:101 .loc 1 101 0 ret .cfi_endproc .LFE9: .size func6a, .-func6a .p2align 4,,15 .globl func8b .type func8b, @function func8b: .LFB12: # ../gdb.opt/inline-break.c:121 .loc 1 121 0 .cfi_startproc .LVL7: # basic block 2 # ../gdb.opt/inline-break.c:122 .loc 1 122 0 xorl %eax, %eax cmpl $6, %edi setle %al leal 9(%rax,%rax), %eax # ../gdb.opt/inline-break.c:123 .loc 1 123 0 ret .cfi_endproc .LFE12: .size func8b, .-func8b .p2align 4,,15 .globl main .type main, @function main: .LFB14: # ../gdb.opt/inline-break.c:135 .loc 1 135 0 .cfi_startproc .LVL8: # basic block 2 # ../gdb.opt/inline-break.c:140 .loc 1 140 0 movl %edi, -4(%rsp) .LVL9: # ../gdb.opt/inline-break.c:142 .loc 1 142 0 movl -4(%rsp), %eax .LVL10: .LBB50: .LBB51: # ../gdb.opt/inline-break.c:32 .loc 1 32 0 movl $23, %edi .LVL11: .LBE51: .LBE50: .LBB53: .LBB54: # ../gdb.opt/inline-break.c:55 .loc 1 55 0 movl $23, %esi .LVL12: .LBE54: .LBE53: .LBB58: .LBB59: # ../gdb.opt/inline-break.c:85 .loc 1 85 0 movl $23, %ecx .LBE59: .LBE58: .LBB63: .LBB52: # ../gdb.opt/inline-break.c:32 .loc 1 32 0 imull %edi, %eax .LVL13: .LBE52: .LBE63: # ../gdb.opt/inline-break.c:142 .loc 1 142 0 movl %eax, -4(%rsp) # ../gdb.opt/inline-break.c:144 .loc 1 144 0 movl -4(%rsp), %eax .LVL14: .LBB64: .LBB65: # ../gdb.opt/inline-break.c:40 .loc 1 40 0 movl %eax, %edx sall $4, %edx leal (%rdx,%rax), %eax .LVL15: .LBE65: .LBE64: # ../gdb.opt/inline-break.c:144 .loc 1 144 0 movl %eax, -4(%rsp) # ../gdb.opt/inline-break.c:146 .loc 1 146 0 movl -4(%rsp), %eax .LVL16: .LBB66: .LBB57: # ../gdb.opt/inline-break.c:55 .loc 1 55 0 imull %esi, %eax .LVL17: .LBB55: .LBB56: # ../gdb.opt/inline-break.c:49 .loc 1 49 0 cmpl $13, %eax setg %al .LVL18: movzbl %al, %eax addl $1, %eax .LBE56: .LBE55: .LBE57: .LBE66: # ../gdb.opt/inline-break.c:146 .loc 1 146 0 movl %eax, -4(%rsp) # ../gdb.opt/inline-break.c:148 .loc 1 148 0 movl -4(%rsp), %eax .LVL19: .LBB67: .LBB68: # ../gdb.opt/inline-break.c:70 .loc 1 70 0 movl %eax, %edx sall $4, %edx leal (%rdx,%rax), %eax .LVL20: .LBB69: .LBB70: # ../gdb.opt/inline-break.c:64 .loc 1 64 0 cmpl $12, %eax setg %al movzbl %al, %eax addl $1, %eax .LBE70: .LBE69: .LBE68: .LBE67: # ../gdb.opt/inline-break.c:148 .loc 1 148 0 movl %eax, -4(%rsp) # ../gdb.opt/inline-break.c:150 .loc 1 150 0 movl -4(%rsp), %eax .LVL21: .LBB71: .LBB62: # ../gdb.opt/inline-break.c:85 .loc 1 85 0 imull %ecx, %eax .LVL22: .LBB60: .LBB61: # ../gdb.opt/inline-break.c:79 .loc 1 79 0 cmpl $11, %eax setg %al .LVL23: movzbl %al, %eax addl $1, %eax .LBE61: .LBE60: .LBE62: .LBE71: # ../gdb.opt/inline-break.c:150 .loc 1 150 0 movl %eax, -4(%rsp) # ../gdb.opt/inline-break.c:152 .loc 1 152 0 movl -4(%rsp), %eax .LVL24: .LBB72: .LBB73: # ../gdb.opt/inline-break.c:100 .loc 1 100 0 movl %eax, %edx sall $4, %edx leal (%rdx,%rax), %eax .LVL25: .LBE73: .LBE72: .LBB77: .LBB80: # ../gdb.opt/inline-break.c:114 .loc 1 114 0 movl $29, %edx .LBE80: .LBE77: .LBB89: .LBB76: .LBB74: .LBB75: # ../gdb.opt/inline-break.c:94 .loc 1 94 0 cmpl $13, %eax setle %al movzbl %al, %eax addl $2, %eax .LBE75: .LBE74: .LBE76: .LBE89: # ../gdb.opt/inline-break.c:152 .loc 1 152 0 movl %eax, -4(%rsp) # ../gdb.opt/inline-break.c:154 .loc 1 154 0 movl -4(%rsp), %eax .LVL26: .LBB90: .LBB79: # ../gdb.opt/inline-break.c:114 .loc 1 114 0 imull %edx, %eax .LVL27: .LBE79: .LBE90: # ../gdb.opt/inline-break.c:154 .loc 1 154 0 movl -4(%rsp), %edx .LVL28: .LBB91: .LBB87: .LBB82: .LBB84: # ../gdb.opt/inline-break.c:108 .loc 1 108 0 cmpl $22, %eax setg %al .LVL29: .LBE84: .LBE82: .LBE87: .LBE91: .LBB92: .LBB94: cmpl $22, %edx setg %dl .LVL30: .LBE94: .LBE92: .LBB96: .LBB78: .LBB81: .LBB83: movzbl %al, %eax .LBE83: .LBE81: .LBE78: .LBE96: .LBB97: .LBB93: movzbl %dl, %edx .LBE93: .LBE97: .LBB98: .LBB88: .LBB86: .LBB85: leal 1(%rax,%rax,2), %eax .LBE85: .LBE86: .LBE88: .LBE98: .LBB99: .LBB95: leal 1(%rdx,%rdx,2), %edx .LBE95: .LBE99: # ../gdb.opt/inline-break.c:154 .loc 1 154 0 leal (%rdx,%rax), %eax .LVL31: movl %eax, -4(%rsp) .LVL32: # ../gdb.opt/inline-break.c:156 .loc 1 156 0 movl -4(%rsp), %edx .LVL33: .LBB100: .LBB101: # ../gdb.opt/inline-break.c:128 .loc 1 128 0 movl %edx, %eax .LVL34: sall $5, %eax subl %edx, %eax .LBB102: .LBB103: # ../gdb.opt/inline-break.c:122 .loc 1 122 0 xorl %edx, %edx .LVL35: cmpl $6, %eax .LBE103: .LBE102: .LBE101: .LBE100: # ../gdb.opt/inline-break.c:156 .loc 1 156 0 movl -4(%rsp), %eax .LVL36: .LBB107: .LBB106: .LBB105: .LBB104: # ../gdb.opt/inline-break.c:122 .loc 1 122 0 setle %dl .LBE104: .LBE105: .LBE106: .LBE107: .LBB108: .LBB109: cmpl $6, %eax setle %al .LVL37: movzbl %al, %eax leal 9(%rax,%rax), %eax .LBE109: .LBE108: # ../gdb.opt/inline-break.c:156 .loc 1 156 0 leal 9(%rax,%rdx,2), %eax .LVL38: movl %eax, -4(%rsp) .LVL39: # ../gdb.opt/inline-break.c:158 .loc 1 158 0 movl -4(%rsp), %eax .LVL40: # ../gdb.opt/inline-break.c:159 .loc 1 159 0 ret .cfi_endproc .LFE14: .size main, .-main .Letext0: .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .quad .LVL1-.Ltext0 # Location list begin address (*.LLST0) .quad .LVL2-.Ltext0 # Location list end address (*.LLST0) .value 0x1 # Location expression size .byte 0x55 # DW_OP_reg5 .quad 0x0 # Location list terminator begin (*.LLST0) .quad 0x0 # Location list terminator end (*.LLST0) .LLST1: .quad .LVL1-.Ltext0 # Location list begin address (*.LLST1) .quad .LVL2-.Ltext0 # Location list end address (*.LLST1) .value 0x5 # Location expression size .byte 0x75 # DW_OP_breg5 .sleb128 0 .byte 0x41 # DW_OP_lit17 .byte 0x1e # DW_OP_mul .byte 0x9f # DW_OP_stack_value .quad 0x0 # Location list terminator begin (*.LLST1) .quad 0x0 # Location list terminator end (*.LLST1) .LLST2: .quad .LVL5-.Ltext0 # Location list begin address (*.LLST2) .quad .LVL6-.Ltext0 # Location list end address (*.LLST2) .value 0x1 # Location expression size .byte 0x55 # DW_OP_reg5 .quad 0x0 # Location list terminator begin (*.LLST2) .quad 0x0 # Location list terminator end (*.LLST2) .LLST3: .quad .LVL5-.Ltext0 # Location list begin address (*.LLST3) .quad .LVL6-.Ltext0 # Location list end address (*.LLST3) .value 0x5 # Location expression size .byte 0x75 # DW_OP_breg5 .sleb128 0 .byte 0x41 # DW_OP_lit17 .byte 0x1e # DW_OP_mul .byte 0x9f # DW_OP_stack_value .quad 0x0 # Location list terminator begin (*.LLST3) .quad 0x0 # Location list terminator end (*.LLST3) .LLST4: .quad .LVL8-.Ltext0 # Location list begin address (*.LLST4) .quad .LVL11-.Ltext0 # Location list end address (*.LLST4) .value 0x1 # Location expression size .byte 0x55 # DW_OP_reg5 .quad .LVL11-.Ltext0 # Location list begin address (*.LLST4) .quad .LFE14-.Ltext0 # Location list end address (*.LLST4) .value 0x2 # Location expression size .byte 0x91 # DW_OP_fbreg .sleb128 -12 .quad 0x0 # Location list terminator begin (*.LLST4) .quad 0x0 # Location list terminator end (*.LLST4) .LLST5: .quad .LVL8-.Ltext0 # Location list begin address (*.LLST5) .quad .LVL12-.Ltext0 # Location list end address (*.LLST5) .value 0x1 # Location expression size .byte 0x54 # DW_OP_reg4 .quad 0x0 # Location list terminator begin (*.LLST5) .quad 0x0 # Location list terminator end (*.LLST5) .LLST6: .quad .LVL9-.Ltext0 # Location list begin address (*.LLST6) .quad .LVL31-.Ltext0 # Location list end address (*.LLST6) .value 0x2 # Location expression size .byte 0x91 # DW_OP_fbreg .sleb128 -12 .quad .LVL32-.Ltext0 # Location list begin address (*.LLST6) .quad .LVL34-.Ltext0 # Location list end address (*.LLST6) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad .LVL34-.Ltext0 # Location list begin address (*.LLST6) .quad .LVL38-.Ltext0 # Location list end address (*.LLST6) .value 0x2 # Location expression size .byte 0x91 # DW_OP_fbreg .sleb128 -12 .quad .LVL39-.Ltext0 # Location list begin address (*.LLST6) .quad .LVL40-.Ltext0 # Location list end address (*.LLST6) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad .LVL40-.Ltext0 # Location list begin address (*.LLST6) .quad .LFE14-.Ltext0 # Location list end address (*.LLST6) .value 0x2 # Location expression size .byte 0x91 # DW_OP_fbreg .sleb128 -12 .quad 0x0 # Location list terminator begin (*.LLST6) .quad 0x0 # Location list terminator end (*.LLST6) .LLST7: .quad .LVL10-.Ltext0 # Location list begin address (*.LLST7) .quad .LVL13-.Ltext0 # Location list end address (*.LLST7) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad 0x0 # Location list terminator begin (*.LLST7) .quad 0x0 # Location list terminator end (*.LLST7) .LLST8: .quad .LVL16-.Ltext0 # Location list begin address (*.LLST8) .quad .LVL17-.Ltext0 # Location list end address (*.LLST8) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad 0x0 # Location list terminator begin (*.LLST8) .quad 0x0 # Location list terminator end (*.LLST8) .LLST9: .quad .LVL16-.Ltext0 # Location list begin address (*.LLST9) .quad .LVL17-.Ltext0 # Location list end address (*.LLST9) .value 0x5 # Location expression size .byte 0x70 # DW_OP_breg0 .sleb128 0 .byte 0x47 # DW_OP_lit23 .byte 0x1e # DW_OP_mul .byte 0x9f # DW_OP_stack_value .quad .LVL17-.Ltext0 # Location list begin address (*.LLST9) .quad .LVL18-.Ltext0 # Location list end address (*.LLST9) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad 0x0 # Location list terminator begin (*.LLST9) .quad 0x0 # Location list terminator end (*.LLST9) .LLST10: .quad .LVL21-.Ltext0 # Location list begin address (*.LLST10) .quad .LVL22-.Ltext0 # Location list end address (*.LLST10) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad 0x0 # Location list terminator begin (*.LLST10) .quad 0x0 # Location list terminator end (*.LLST10) .LLST11: .quad .LVL21-.Ltext0 # Location list begin address (*.LLST11) .quad .LVL22-.Ltext0 # Location list end address (*.LLST11) .value 0x5 # Location expression size .byte 0x70 # DW_OP_breg0 .sleb128 0 .byte 0x47 # DW_OP_lit23 .byte 0x1e # DW_OP_mul .byte 0x9f # DW_OP_stack_value .quad .LVL22-.Ltext0 # Location list begin address (*.LLST11) .quad .LVL23-.Ltext0 # Location list end address (*.LLST11) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad 0x0 # Location list terminator begin (*.LLST11) .quad 0x0 # Location list terminator end (*.LLST11) .LLST12: .quad .LVL14-.Ltext0 # Location list begin address (*.LLST12) .quad .LVL15-.Ltext0 # Location list end address (*.LLST12) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad 0x0 # Location list terminator begin (*.LLST12) .quad 0x0 # Location list terminator end (*.LLST12) .LLST13: .quad .LVL19-.Ltext0 # Location list begin address (*.LLST13) .quad .LVL20-.Ltext0 # Location list end address (*.LLST13) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad 0x0 # Location list terminator begin (*.LLST13) .quad 0x0 # Location list terminator end (*.LLST13) .LLST14: .quad .LVL19-.Ltext0 # Location list begin address (*.LLST14) .quad .LVL20-.Ltext0 # Location list end address (*.LLST14) .value 0x5 # Location expression size .byte 0x70 # DW_OP_breg0 .sleb128 0 .byte 0x41 # DW_OP_lit17 .byte 0x1e # DW_OP_mul .byte 0x9f # DW_OP_stack_value .quad 0x0 # Location list terminator begin (*.LLST14) .quad 0x0 # Location list terminator end (*.LLST14) .LLST15: .quad .LVL24-.Ltext0 # Location list begin address (*.LLST15) .quad .LVL25-.Ltext0 # Location list end address (*.LLST15) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad 0x0 # Location list terminator begin (*.LLST15) .quad 0x0 # Location list terminator end (*.LLST15) .LLST16: .quad .LVL24-.Ltext0 # Location list begin address (*.LLST16) .quad .LVL25-.Ltext0 # Location list end address (*.LLST16) .value 0x5 # Location expression size .byte 0x70 # DW_OP_breg0 .sleb128 0 .byte 0x41 # DW_OP_lit17 .byte 0x1e # DW_OP_mul .byte 0x9f # DW_OP_stack_value .quad 0x0 # Location list terminator begin (*.LLST16) .quad 0x0 # Location list terminator end (*.LLST16) .LLST17: .quad .LVL26-.Ltext0 # Location list begin address (*.LLST17) .quad .LVL27-.Ltext0 # Location list end address (*.LLST17) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad 0x0 # Location list terminator begin (*.LLST17) .quad 0x0 # Location list terminator end (*.LLST17) .LLST18: .quad .LVL26-.Ltext0 # Location list begin address (*.LLST18) .quad .LVL27-.Ltext0 # Location list end address (*.LLST18) .value 0x5 # Location expression size .byte 0x70 # DW_OP_breg0 .sleb128 0 .byte 0x4d # DW_OP_lit29 .byte 0x1e # DW_OP_mul .byte 0x9f # DW_OP_stack_value .quad .LVL27-.Ltext0 # Location list begin address (*.LLST18) .quad .LVL29-.Ltext0 # Location list end address (*.LLST18) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad 0x0 # Location list terminator begin (*.LLST18) .quad 0x0 # Location list terminator end (*.LLST18) .LLST19: .quad .LVL28-.Ltext0 # Location list begin address (*.LLST19) .quad .LVL30-.Ltext0 # Location list end address (*.LLST19) .value 0x1 # Location expression size .byte 0x51 # DW_OP_reg1 .quad 0x0 # Location list terminator begin (*.LLST19) .quad 0x0 # Location list terminator end (*.LLST19) .LLST20: .quad .LVL33-.Ltext0 # Location list begin address (*.LLST20) .quad .LVL35-.Ltext0 # Location list end address (*.LLST20) .value 0x1 # Location expression size .byte 0x51 # DW_OP_reg1 .quad 0x0 # Location list terminator begin (*.LLST20) .quad 0x0 # Location list terminator end (*.LLST20) .LLST21: .quad .LVL33-.Ltext0 # Location list begin address (*.LLST21) .quad .LVL35-.Ltext0 # Location list end address (*.LLST21) .value 0x5 # Location expression size .byte 0x71 # DW_OP_breg1 .sleb128 0 .byte 0x4f # DW_OP_lit31 .byte 0x1e # DW_OP_mul .byte 0x9f # DW_OP_stack_value .quad 0x0 # Location list terminator begin (*.LLST21) .quad 0x0 # Location list terminator end (*.LLST21) .LLST22: .quad .LVL36-.Ltext0 # Location list begin address (*.LLST22) .quad .LVL37-.Ltext0 # Location list end address (*.LLST22) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad 0x0 # Location list terminator begin (*.LLST22) .quad 0x0 # Location list terminator end (*.LLST22) .section .debug_info .long 0x540 # Length of Compilation Unit Info .value 0x3 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x8 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .long .LASF17 # DW_AT_producer: "GNU C 4.5.1 20100924 (Red Hat 4.5.1-4)" .byte 0x1 # DW_AT_language .long .LASF18 # DW_AT_name: "../gdb.opt/inline-break.c" .long .LASF19 # DW_AT_comp_dir: "/home/gary/work/archer/src/gdb/testsuite/gdb.dwarf2" .quad .Ltext0 # DW_AT_low_pc .quad .Letext0 # DW_AT_high_pc .long .Ldebug_line0 # DW_AT_stmt_list .uleb128 0x2 # (DIE (0x2d) DW_TAG_subprogram) .long .LASF0 # DW_AT_name: "func3b" .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x2f # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .byte 0x3 # DW_AT_inline .long 0x48 # DW_AT_sibling .uleb128 0x3 # (DIE (0x3e) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x2f # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x0 # end of children of DIE 0x2d .uleb128 0x4 # (DIE (0x48) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .uleb128 0x2 # (DIE (0x4f) DW_TAG_subprogram) .long .LASF1 # DW_AT_name: "func7b" .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x6a # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .byte 0x3 # DW_AT_inline .long 0x6a # DW_AT_sibling .uleb128 0x3 # (DIE (0x60) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x6a # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x0 # end of children of DIE 0x4f .uleb128 0x2 # (DIE (0x6a) DW_TAG_subprogram) .long .LASF2 # DW_AT_name: "func4b" .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x3e # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .byte 0x3 # DW_AT_inline .long 0x85 # DW_AT_sibling .uleb128 0x3 # (DIE (0x7b) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x3e # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x0 # end of children of DIE 0x6a .uleb128 0x5 # (DIE (0x85) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .long .LASF3 # DW_AT_name: "func5b" .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x4d # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .byte 0x3 # DW_AT_inline .long 0xa1 # DW_AT_sibling .uleb128 0x3 # (DIE (0x97) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x4d # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x0 # end of children of DIE 0x85 .uleb128 0x5 # (DIE (0xa1) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .long .LASF4 # DW_AT_name: "func6b" .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x5c # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .byte 0x3 # DW_AT_inline .long 0xbd # DW_AT_sibling .uleb128 0x3 # (DIE (0xb3) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x5c # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x0 # end of children of DIE 0xa1 .uleb128 0x5 # (DIE (0xbd) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .long .LASF5 # DW_AT_name: "func8b" .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x78 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .byte 0x3 # DW_AT_inline .long 0xd9 # DW_AT_sibling .uleb128 0x3 # (DIE (0xcf) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x78 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x0 # end of children of DIE 0xbd .uleb128 0x2 # (DIE (0xd9) DW_TAG_subprogram) .long .LASF6 # DW_AT_name: "func1" .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x1e # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .byte 0x3 # DW_AT_inline .long 0xf4 # DW_AT_sibling .uleb128 0x3 # (DIE (0xea) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x1e # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x0 # end of children of DIE 0xd9 .uleb128 0x5 # (DIE (0xf4) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .long .LASF7 # DW_AT_name: "func2" .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x26 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .byte 0x3 # DW_AT_inline .long 0x110 # DW_AT_sibling .uleb128 0x3 # (DIE (0x106) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x26 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x0 # end of children of DIE 0xf4 .uleb128 0x2 # (DIE (0x110) DW_TAG_subprogram) .long .LASF8 # DW_AT_name: "func3a" .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x35 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .byte 0x3 # DW_AT_inline .long 0x12b # DW_AT_sibling .uleb128 0x3 # (DIE (0x121) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x35 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x0 # end of children of DIE 0x110 .uleb128 0x5 # (DIE (0x12b) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .long .LASF9 # DW_AT_name: "func4a" .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x44 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .byte 0x3 # DW_AT_inline .long 0x147 # DW_AT_sibling .uleb128 0x3 # (DIE (0x13d) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x44 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x0 # end of children of DIE 0x12b .uleb128 0x2 # (DIE (0x147) DW_TAG_subprogram) .long .LASF10 # DW_AT_name: "func5a" .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x53 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .byte 0x3 # DW_AT_inline .long 0x162 # DW_AT_sibling .uleb128 0x3 # (DIE (0x158) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x53 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x0 # end of children of DIE 0x147 .uleb128 0x5 # (DIE (0x162) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .long .LASF11 # DW_AT_name: "func6a" .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x62 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .byte 0x3 # DW_AT_inline .long 0x17e # DW_AT_sibling .uleb128 0x3 # (DIE (0x174) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x62 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x0 # end of children of DIE 0x162 .uleb128 0x2 # (DIE (0x17e) DW_TAG_subprogram) .long .LASF12 # DW_AT_name: "func7a" .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x70 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .byte 0x3 # DW_AT_inline .long 0x199 # DW_AT_sibling .uleb128 0x3 # (DIE (0x18f) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x70 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x0 # end of children of DIE 0x17e .uleb128 0x2 # (DIE (0x199) DW_TAG_subprogram) .long .LASF13 # DW_AT_name: "func8a" .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x7e # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .byte 0x3 # DW_AT_inline .long 0x1b4 # DW_AT_sibling .uleb128 0x3 # (DIE (0x1aa) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x7e # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x0 # end of children of DIE 0x199 .uleb128 0x6 # (DIE (0x1b4) DW_TAG_subprogram) .long 0xf4 # DW_AT_abstract_origin .quad .LFB1 # DW_AT_low_pc .quad .LFE1 # DW_AT_high_pc .byte 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa .long 0x1d7 # DW_AT_sibling .uleb128 0x7 # (DIE (0x1cf) DW_TAG_formal_parameter) .long 0x106 # DW_AT_abstract_origin .byte 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .byte 0x0 # end of children of DIE 0x1b4 .uleb128 0x6 # (DIE (0x1d7) DW_TAG_subprogram) .long 0x12b # DW_AT_abstract_origin .quad .LFB5 # DW_AT_low_pc .quad .LFE5 # DW_AT_high_pc .byte 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa .long 0x21d # DW_AT_sibling .uleb128 0x8 # (DIE (0x1f2) DW_TAG_formal_parameter) .long 0x13d # DW_AT_abstract_origin .long .LLST0 # DW_AT_location .uleb128 0x9 # (DIE (0x1fb) DW_TAG_inlined_subroutine) .long 0x6a # DW_AT_abstract_origin .quad .LBB46 # DW_AT_low_pc .quad .LBE46 # DW_AT_high_pc .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x46 # DW_AT_call_line .uleb128 0x8 # (DIE (0x212) DW_TAG_formal_parameter) .long 0x7b # DW_AT_abstract_origin .long .LLST1 # DW_AT_location .byte 0x0 # end of children of DIE 0x1fb .byte 0x0 # end of children of DIE 0x1d7 .uleb128 0x6 # (DIE (0x21d) DW_TAG_subprogram) .long 0x85 # DW_AT_abstract_origin .quad .LFB6 # DW_AT_low_pc .quad .LFE6 # DW_AT_high_pc .byte 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa .long 0x240 # DW_AT_sibling .uleb128 0x7 # (DIE (0x238) DW_TAG_formal_parameter) .long 0x97 # DW_AT_abstract_origin .byte 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .byte 0x0 # end of children of DIE 0x21d .uleb128 0x6 # (DIE (0x240) DW_TAG_subprogram) .long 0xa1 # DW_AT_abstract_origin .quad .LFB8 # DW_AT_low_pc .quad .LFE8 # DW_AT_high_pc .byte 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa .long 0x263 # DW_AT_sibling .uleb128 0x7 # (DIE (0x25b) DW_TAG_formal_parameter) .long 0xb3 # DW_AT_abstract_origin .byte 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .byte 0x0 # end of children of DIE 0x240 .uleb128 0x6 # (DIE (0x263) DW_TAG_subprogram) .long 0x162 # DW_AT_abstract_origin .quad .LFB9 # DW_AT_low_pc .quad .LFE9 # DW_AT_high_pc .byte 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa .long 0x2a9 # DW_AT_sibling .uleb128 0x8 # (DIE (0x27e) DW_TAG_formal_parameter) .long 0x174 # DW_AT_abstract_origin .long .LLST2 # DW_AT_location .uleb128 0x9 # (DIE (0x287) DW_TAG_inlined_subroutine) .long 0xa1 # DW_AT_abstract_origin .quad .LBB48 # DW_AT_low_pc .quad .LBE48 # DW_AT_high_pc .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x64 # DW_AT_call_line .uleb128 0x8 # (DIE (0x29e) DW_TAG_formal_parameter) .long 0xb3 # DW_AT_abstract_origin .long .LLST3 # DW_AT_location .byte 0x0 # end of children of DIE 0x287 .byte 0x0 # end of children of DIE 0x263 .uleb128 0x6 # (DIE (0x2a9) DW_TAG_subprogram) .long 0xbd # DW_AT_abstract_origin .quad .LFB12 # DW_AT_low_pc .quad .LFE12 # DW_AT_high_pc .byte 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa .long 0x2cc # DW_AT_sibling .uleb128 0x7 # (DIE (0x2c4) DW_TAG_formal_parameter) .long 0xcf # DW_AT_abstract_origin .byte 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .byte 0x0 # end of children of DIE 0x2a9 .uleb128 0xa # (DIE (0x2cc) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .long .LASF20 # DW_AT_name: "main" .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x86 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .quad .LFB14 # DW_AT_low_pc .quad .LFE14 # DW_AT_high_pc .byte 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa .long 0x52b # DW_AT_sibling .uleb128 0xb # (DIE (0x2ef) DW_TAG_formal_parameter) .long .LASF14 # DW_AT_name: "argc" .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x86 # DW_AT_decl_line .long 0x48 # DW_AT_type .long .LLST4 # DW_AT_location .uleb128 0xb # (DIE (0x2fe) DW_TAG_formal_parameter) .long .LASF15 # DW_AT_name: "argv" .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x86 # DW_AT_decl_line .long 0x52b # DW_AT_type .long .LLST5 # DW_AT_location .uleb128 0xc # (DIE (0x30d) DW_TAG_variable) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.opt/inline-break.c) .byte 0x8c # DW_AT_decl_line .long 0x53e # DW_AT_type .long .LLST6 # DW_AT_location .uleb128 0xd # (DIE (0x31a) DW_TAG_inlined_subroutine) .long 0xd9 # DW_AT_abstract_origin .quad .LBB50 # DW_AT_entry_pc .long .Ldebug_ranges0+0x0 # DW_AT_ranges .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x8e # DW_AT_call_line .long 0x33b # DW_AT_sibling .uleb128 0x8 # (DIE (0x331) DW_TAG_formal_parameter) .long 0xea # DW_AT_abstract_origin .long .LLST7 # DW_AT_location .byte 0x0 # end of children of DIE 0x31a .uleb128 0xd # (DIE (0x33b) DW_TAG_inlined_subroutine) .long 0x110 # DW_AT_abstract_origin .quad .LBB53 # DW_AT_entry_pc .long .Ldebug_ranges0+0x30 # DW_AT_ranges .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x92 # DW_AT_call_line .long 0x37d # DW_AT_sibling .uleb128 0x8 # (DIE (0x352) DW_TAG_formal_parameter) .long 0x121 # DW_AT_abstract_origin .long .LLST8 # DW_AT_location .uleb128 0x9 # (DIE (0x35b) DW_TAG_inlined_subroutine) .long 0x2d # DW_AT_abstract_origin .quad .LBB55 # DW_AT_low_pc .quad .LBE55 # DW_AT_high_pc .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x37 # DW_AT_call_line .uleb128 0x8 # (DIE (0x372) DW_TAG_formal_parameter) .long 0x3e # DW_AT_abstract_origin .long .LLST9 # DW_AT_location .byte 0x0 # end of children of DIE 0x35b .byte 0x0 # end of children of DIE 0x33b .uleb128 0xd # (DIE (0x37d) DW_TAG_inlined_subroutine) .long 0x147 # DW_AT_abstract_origin .quad .LBB58 # DW_AT_entry_pc .long .Ldebug_ranges0+0x60 # DW_AT_ranges .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x96 # DW_AT_call_line .long 0x3bf # DW_AT_sibling .uleb128 0x8 # (DIE (0x394) DW_TAG_formal_parameter) .long 0x158 # DW_AT_abstract_origin .long .LLST10 # DW_AT_location .uleb128 0x9 # (DIE (0x39d) DW_TAG_inlined_subroutine) .long 0x85 # DW_AT_abstract_origin .quad .LBB60 # DW_AT_low_pc .quad .LBE60 # DW_AT_high_pc .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x55 # DW_AT_call_line .uleb128 0x8 # (DIE (0x3b4) DW_TAG_formal_parameter) .long 0x97 # DW_AT_abstract_origin .long .LLST11 # DW_AT_location .byte 0x0 # end of children of DIE 0x39d .byte 0x0 # end of children of DIE 0x37d .uleb128 0xe # (DIE (0x3bf) DW_TAG_inlined_subroutine) .long 0xf4 # DW_AT_abstract_origin .quad .LBB64 # DW_AT_low_pc .quad .LBE64 # DW_AT_high_pc .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x90 # DW_AT_call_line .long 0x3e4 # DW_AT_sibling .uleb128 0x8 # (DIE (0x3da) DW_TAG_formal_parameter) .long 0x106 # DW_AT_abstract_origin .long .LLST12 # DW_AT_location .byte 0x0 # end of children of DIE 0x3bf .uleb128 0xe # (DIE (0x3e4) DW_TAG_inlined_subroutine) .long 0x12b # DW_AT_abstract_origin .quad .LBB67 # DW_AT_low_pc .quad .LBE67 # DW_AT_high_pc .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x94 # DW_AT_call_line .long 0x42a # DW_AT_sibling .uleb128 0x8 # (DIE (0x3ff) DW_TAG_formal_parameter) .long 0x13d # DW_AT_abstract_origin .long .LLST13 # DW_AT_location .uleb128 0x9 # (DIE (0x408) DW_TAG_inlined_subroutine) .long 0x6a # DW_AT_abstract_origin .quad .LBB69 # DW_AT_low_pc .quad .LBE69 # DW_AT_high_pc .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x46 # DW_AT_call_line .uleb128 0x8 # (DIE (0x41f) DW_TAG_formal_parameter) .long 0x7b # DW_AT_abstract_origin .long .LLST14 # DW_AT_location .byte 0x0 # end of children of DIE 0x408 .byte 0x0 # end of children of DIE 0x3e4 .uleb128 0xd # (DIE (0x42a) DW_TAG_inlined_subroutine) .long 0x162 # DW_AT_abstract_origin .quad .LBB72 # DW_AT_entry_pc .long .Ldebug_ranges0+0x90 # DW_AT_ranges .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x98 # DW_AT_call_line .long 0x46c # DW_AT_sibling .uleb128 0x8 # (DIE (0x441) DW_TAG_formal_parameter) .long 0x174 # DW_AT_abstract_origin .long .LLST15 # DW_AT_location .uleb128 0x9 # (DIE (0x44a) DW_TAG_inlined_subroutine) .long 0xa1 # DW_AT_abstract_origin .quad .LBB74 # DW_AT_low_pc .quad .LBE74 # DW_AT_high_pc .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x64 # DW_AT_call_line .uleb128 0x8 # (DIE (0x461) DW_TAG_formal_parameter) .long 0xb3 # DW_AT_abstract_origin .long .LLST16 # DW_AT_location .byte 0x0 # end of children of DIE 0x44a .byte 0x0 # end of children of DIE 0x42a .uleb128 0xd # (DIE (0x46c) DW_TAG_inlined_subroutine) .long 0x17e # DW_AT_abstract_origin .quad .LBB77 # DW_AT_entry_pc .long .Ldebug_ranges0+0xc0 # DW_AT_ranges .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x9a # DW_AT_call_line .long 0x4aa # DW_AT_sibling .uleb128 0x8 # (DIE (0x483) DW_TAG_formal_parameter) .long 0x18f # DW_AT_abstract_origin .long .LLST17 # DW_AT_location .uleb128 0xf # (DIE (0x48c) DW_TAG_inlined_subroutine) .long 0x4f # DW_AT_abstract_origin .quad .LBB82 # DW_AT_entry_pc .long .Ldebug_ranges0+0x120 # DW_AT_ranges .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x72 # DW_AT_call_line .uleb128 0x8 # (DIE (0x49f) DW_TAG_formal_parameter) .long 0x60 # DW_AT_abstract_origin .long .LLST18 # DW_AT_location .byte 0x0 # end of children of DIE 0x48c .byte 0x0 # end of children of DIE 0x46c .uleb128 0xd # (DIE (0x4aa) DW_TAG_inlined_subroutine) .long 0x4f # DW_AT_abstract_origin .quad .LBB92 # DW_AT_entry_pc .long .Ldebug_ranges0+0x160 # DW_AT_ranges .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x9a # DW_AT_call_line .long 0x4cb # DW_AT_sibling .uleb128 0x8 # (DIE (0x4c1) DW_TAG_formal_parameter) .long 0x60 # DW_AT_abstract_origin .long .LLST19 # DW_AT_location .byte 0x0 # end of children of DIE 0x4aa .uleb128 0xd # (DIE (0x4cb) DW_TAG_inlined_subroutine) .long 0x199 # DW_AT_abstract_origin .quad .LBB100 # DW_AT_entry_pc .long .Ldebug_ranges0+0x1a0 # DW_AT_ranges .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x9c # DW_AT_call_line .long 0x509 # DW_AT_sibling .uleb128 0x8 # (DIE (0x4e2) DW_TAG_formal_parameter) .long 0x1aa # DW_AT_abstract_origin .long .LLST20 # DW_AT_location .uleb128 0xf # (DIE (0x4eb) DW_TAG_inlined_subroutine) .long 0xbd # DW_AT_abstract_origin .quad .LBB102 # DW_AT_entry_pc .long .Ldebug_ranges0+0x1d0 # DW_AT_ranges .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x80 # DW_AT_call_line .uleb128 0x8 # (DIE (0x4fe) DW_TAG_formal_parameter) .long 0xcf # DW_AT_abstract_origin .long .LLST21 # DW_AT_location .byte 0x0 # end of children of DIE 0x4eb .byte 0x0 # end of children of DIE 0x4cb .uleb128 0x9 # (DIE (0x509) DW_TAG_inlined_subroutine) .long 0xbd # DW_AT_abstract_origin .quad .LBB108 # DW_AT_low_pc .quad .LBE108 # DW_AT_high_pc .byte 0x1 # DW_AT_call_file (../gdb.opt/inline-break.c) .byte 0x9c # DW_AT_call_line .uleb128 0x8 # (DIE (0x520) DW_TAG_formal_parameter) .long 0xcf # DW_AT_abstract_origin .long .LLST22 # DW_AT_location .byte 0x0 # end of children of DIE 0x509 .byte 0x0 # end of children of DIE 0x2cc .uleb128 0x10 # (DIE (0x52b) DW_TAG_pointer_type) .byte 0x8 # DW_AT_byte_size .long 0x531 # DW_AT_type .uleb128 0x10 # (DIE (0x531) DW_TAG_pointer_type) .byte 0x8 # DW_AT_byte_size .long 0x537 # DW_AT_type .uleb128 0x11 # (DIE (0x537) DW_TAG_base_type) .byte 0x1 # DW_AT_byte_size .byte 0x6 # DW_AT_encoding .long .LASF16 # DW_AT_name: "char" .uleb128 0x12 # (DIE (0x53e) DW_TAG_volatile_type) .long 0x48 # DW_AT_type .byte 0x0 # end of children of DIE 0xb .section .debug_abbrev .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x6 # (DW_FORM_data4) .byte 0x0 .byte 0x0 .uleb128 0x2 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x20 # (DW_AT_inline) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0x0 .byte 0x0 .uleb128 0x3 # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0x0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .byte 0x0 .byte 0x0 .uleb128 0x4 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0x0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0x0 .byte 0x0 .uleb128 0x5 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x20 # (DW_AT_inline) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0x0 .byte 0x0 .uleb128 0x6 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0xa # (DW_FORM_block1) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0x0 .byte 0x0 .uleb128 0x7 # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0x0 # DW_children_no .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0xa # (DW_FORM_block1) .byte 0x0 .byte 0x0 .uleb128 0x8 # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0x0 # DW_children_no .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x6 # (DW_FORM_data4) .byte 0x0 .byte 0x0 .uleb128 0x9 # (abbrev code) .uleb128 0x1d # (TAG: DW_TAG_inlined_subroutine) .byte 0x1 # DW_children_yes .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x58 # (DW_AT_call_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x59 # (DW_AT_call_line) .uleb128 0xb # (DW_FORM_data1) .byte 0x0 .byte 0x0 .uleb128 0xa # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0xa # (DW_FORM_block1) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0x0 .byte 0x0 .uleb128 0xb # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0x0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x6 # (DW_FORM_data4) .byte 0x0 .byte 0x0 .uleb128 0xc # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0x0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x6 # (DW_FORM_data4) .byte 0x0 .byte 0x0 .uleb128 0xd # (abbrev code) .uleb128 0x1d # (TAG: DW_TAG_inlined_subroutine) .byte 0x1 # DW_children_yes .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x52 # (DW_AT_entry_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x55 # (DW_AT_ranges) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x58 # (DW_AT_call_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x59 # (DW_AT_call_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0x0 .byte 0x0 .uleb128 0xe # (abbrev code) .uleb128 0x1d # (TAG: DW_TAG_inlined_subroutine) .byte 0x1 # DW_children_yes .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x58 # (DW_AT_call_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x59 # (DW_AT_call_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0x0 .byte 0x0 .uleb128 0xf # (abbrev code) .uleb128 0x1d # (TAG: DW_TAG_inlined_subroutine) .byte 0x1 # DW_children_yes .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x52 # (DW_AT_entry_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x55 # (DW_AT_ranges) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x58 # (DW_AT_call_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x59 # (DW_AT_call_line) .uleb128 0xb # (DW_FORM_data1) .byte 0x0 .byte 0x0 .uleb128 0x10 # (abbrev code) .uleb128 0xf # (TAG: DW_TAG_pointer_type) .byte 0x0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .byte 0x0 .byte 0x0 .uleb128 0x11 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0x0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .byte 0x0 .byte 0x0 .uleb128 0x12 # (abbrev code) .uleb128 0x35 # (TAG: DW_TAG_volatile_type) .byte 0x0 # DW_children_no .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .byte 0x0 .byte 0x0 .byte 0x0 .section .debug_pubnames,"",@progbits .long 0x58 # Length of Public Names Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .long 0x544 # Compilation Unit Length .long 0x1b4 # DIE offset .ascii "func2\0" # external name .long 0x1d7 # DIE offset .ascii "func4a\0" # external name .long 0x21d # DIE offset .ascii "func5b\0" # external name .long 0x240 # DIE offset .ascii "func6b\0" # external name .long 0x263 # DIE offset .ascii "func6a\0" # external name .long 0x2a9 # DIE offset .ascii "func8b\0" # external name .long 0x2cc # DIE offset .ascii "main\0" # external name .long 0x0 .section .debug_aranges,"",@progbits .long 0x2c # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .byte 0x8 # Size of Address .byte 0x0 # Size of Segment Descriptor .value 0x0 # Pad to 16 byte boundary .value 0x0 .quad .Ltext0 # Address .quad .Letext0-.Ltext0 # Length .quad 0x0 .quad 0x0 .section .debug_ranges,"",@progbits .Ldebug_ranges0: .quad .LBB50-.Ltext0 # Offset 0x0 .quad .LBE50-.Ltext0 .quad .LBB63-.Ltext0 .quad .LBE63-.Ltext0 .quad 0x0 .quad 0x0 .quad .LBB53-.Ltext0 # Offset 0x30 .quad .LBE53-.Ltext0 .quad .LBB66-.Ltext0 .quad .LBE66-.Ltext0 .quad 0x0 .quad 0x0 .quad .LBB58-.Ltext0 # Offset 0x60 .quad .LBE58-.Ltext0 .quad .LBB71-.Ltext0 .quad .LBE71-.Ltext0 .quad 0x0 .quad 0x0 .quad .LBB72-.Ltext0 # Offset 0x90 .quad .LBE72-.Ltext0 .quad .LBB89-.Ltext0 .quad .LBE89-.Ltext0 .quad 0x0 .quad 0x0 .quad .LBB77-.Ltext0 # Offset 0xc0 .quad .LBE77-.Ltext0 .quad .LBB98-.Ltext0 .quad .LBE98-.Ltext0 .quad .LBB96-.Ltext0 .quad .LBE96-.Ltext0 .quad .LBB91-.Ltext0 .quad .LBE91-.Ltext0 .quad .LBB90-.Ltext0 .quad .LBE90-.Ltext0 .quad 0x0 .quad 0x0 .quad .LBB82-.Ltext0 # Offset 0x120 .quad .LBE82-.Ltext0 .quad .LBB86-.Ltext0 .quad .LBE86-.Ltext0 .quad .LBB81-.Ltext0 .quad .LBE81-.Ltext0 .quad 0x0 .quad 0x0 .quad .LBB92-.Ltext0 # Offset 0x160 .quad .LBE92-.Ltext0 .quad .LBB99-.Ltext0 .quad .LBE99-.Ltext0 .quad .LBB97-.Ltext0 .quad .LBE97-.Ltext0 .quad 0x0 .quad 0x0 .quad .LBB100-.Ltext0 # Offset 0x1a0 .quad .LBE100-.Ltext0 .quad .LBB107-.Ltext0 .quad .LBE107-.Ltext0 .quad 0x0 .quad 0x0 .quad .LBB102-.Ltext0 # Offset 0x1d0 .quad .LBE102-.Ltext0 .quad .LBB105-.Ltext0 .quad .LBE105-.Ltext0 .quad 0x0 .quad 0x0 .section .debug_str,"MS",@progbits,1 .LASF12: .string "func7a" .LASF1: .string "func7b" .LASF19: .string "/home/gary/work/archer/src/gdb/testsuite/gdb.dwarf2" .LASF20: .string "main" .LASF18: .string "../gdb.opt/inline-break.c" .LASF6: .string "func1" .LASF17: .string "GNU C 4.5.1 20100924 (Red Hat 4.5.1-4)" .LASF14: .string "argc" .LASF8: .string "func3a" .LASF0: .string "func3b" .LASF16: .string "char" .LASF9: .string "func4a" .LASF2: .string "func4b" .LASF11: .string "func6a" .LASF10: .string "func5a" .LASF3: .string "func5b" .LASF5: .string "func8b" .LASF13: .string "func8a" .LASF7: .string "func2" .LASF4: .string "func6b" .LASF15: .string "argv" .ident "GCC: (GNU) 4.5.1 20100924 (Red Hat 4.5.1-4)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
56,968
gdb/testsuite/gdb.dwarf2/typeddwarf.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This source file was generated from typeddwarf.c using the following command line: gcc -m32 -dA -S -g -O2 typeddwarf.c -o typeddwarf.S */ .file "typeddwarf.c" .text .Ltext0: .p2align 4,,15 .globl f1 .type f1, @function f1: .LFB0: # typeddwarf.c:10 .LM1: .LVL0: # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) # typeddwarf.c:29 .LM2: movl vv, %eax addl $1, %eax movl %eax, vv # SUCC: EXIT [100.0%] # typeddwarf.c:30 .LM3: ret .LFE0: .size f1, .-f1 .p2align 4,,15 .globl f2 .type f2, @function f2: .LFB1: # typeddwarf.c:34 .LM4: .LVL1: # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) subl $12, %esp .LCFI0: # typeddwarf.c:53 .LM5: movl vv, %eax # typeddwarf.c:54 .LM6: fnstcw 6(%esp) # typeddwarf.c:34 .LM7: flds 40(%esp) .LVL2: # typeddwarf.c:54 .LM8: fldl 16(%esp) # typeddwarf.c:53 .LM9: addl $1, %eax movl %eax, vv # typeddwarf.c:54 .LM10: movzwl 6(%esp), %eax movb $12, %ah movw %ax, 4(%esp) fldcw 4(%esp) fistpl (%esp) fldcw 6(%esp) movl (%esp), %eax # typeddwarf.c:55 .LM11: fldl 24(%esp) fldcw 4(%esp) fistpl (%esp) fldcw 6(%esp) # typeddwarf.c:54 .LM12: movl %eax, vv # typeddwarf.c:55 .LM13: movl (%esp), %eax # typeddwarf.c:56 .LM14: fldl 32(%esp) fldcw 4(%esp) fistpl (%esp) fldcw 6(%esp) # typeddwarf.c:55 .LM15: movl %eax, vv # typeddwarf.c:56 .LM16: movl (%esp), %eax # typeddwarf.c:57 .LM17: fldcw 4(%esp) fistl (%esp) fldcw 6(%esp) # typeddwarf.c:56 .LM18: movl %eax, vv # typeddwarf.c:57 .LM19: movl (%esp), %eax # typeddwarf.c:58 .LM20: flds 44(%esp) # typeddwarf.c:57 .LM21: movl %eax, vv # typeddwarf.c:58 .LM22: fldcw 4(%esp) fistpl (%esp) fldcw 6(%esp) movl (%esp), %eax movl %eax, vv # typeddwarf.c:59 .LM23: movl 48(%esp), %eax # typeddwarf.c:63 .LM24: fldcw 4(%esp) fistpl (%esp) fldcw 6(%esp) # typeddwarf.c:59 .LM25: movl %eax, vv # typeddwarf.c:60 .LM26: movl 52(%esp), %eax movl %eax, vv # typeddwarf.c:61 .LM27: movl 56(%esp), %eax movl %eax, vv # typeddwarf.c:62 .LM28: movl 64(%esp), %eax movl %eax, vv # typeddwarf.c:63 .LM29: movl (%esp), %eax movl %eax, vv # typeddwarf.c:64 .LM30: addl $12, %esp .LCFI1: # SUCC: EXIT [100.0%] ret .LFE1: .size f2, .-f2 .p2align 4,,15 .globl f3 .type f3, @function f3: .LFB2: # typeddwarf.c:68 .LM31: .LVL3: # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) # typeddwarf.c:73 .LM32: movl vv, %eax addl $1, %eax movl %eax, vv # SUCC: EXIT [100.0%] # typeddwarf.c:74 .LM33: ret .LFE2: .size f3, .-f3 .p2align 4,,15 .globl f4 .type f4, @function f4: .LFB3: # typeddwarf.c:78 .LM34: .LVL4: # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) # typeddwarf.c:82 .LM35: movl vv, %eax addl $1, %eax movl %eax, vv # SUCC: EXIT [100.0%] # typeddwarf.c:83 .LM36: ret .LFE3: .size f4, .-f4 .section .text.startup,"ax",@progbits .p2align 4,,15 .globl _start .type _start, @function _start: .LFB4: # typeddwarf.c:87 .LM37: # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) pushl %ebp .LCFI2: movl %esp, %ebp .LCFI3: pushl %esi .LCFI4: # typeddwarf.c:88 .LM38: movl $0x40a00000, %esi # typeddwarf.c:87 .LM39: pushl %ebx .LCFI5: # typeddwarf.c:88 .LM40: movl $0x40800000, %ebx # typeddwarf.c:87 .LM41: andl $-16, %esp subl $112, %esp .LCFI6: # typeddwarf.c:88 .LM42: flds .LC3 fstl 16(%esp) movl %esi, 28(%esp) flds .LC4 fstl 8(%esp) movl %ebx, 24(%esp) fld1 fstl (%esp) movl $9, 48(%esp) fstps 64(%esp) fstps 80(%esp) movl $0, 52(%esp) fstps 96(%esp) movl $8, 40(%esp) movl $0, 44(%esp) movl $7, 36(%esp) movl $6, 32(%esp) call f1 .LVL5: # typeddwarf.c:89 .LM43: movl %esi, 28(%esp) movl %ebx, 24(%esp) movl $9, 48(%esp) movl $0, 52(%esp) movl $8, 40(%esp) flds 96(%esp) fstpl 16(%esp) movl $0, 44(%esp) flds 80(%esp) fstpl 8(%esp) movl $7, 36(%esp) flds 64(%esp) fstpl (%esp) movl $6, 32(%esp) call f2 .LVL6: # typeddwarf.c:90 .LM44: movl $4, 20(%esp) movl $3, 12(%esp) movl $0, 16(%esp) movl $2, 8(%esp) movl $1, (%esp) movl $0, 4(%esp) call f3 .LVL7: # typeddwarf.c:91 .LM45: movl $640, 16(%esp) movl $0, 20(%esp) movl $0, 24(%esp) movl $809369600, 28(%esp) movl $160, 4(%esp) movl $832569344, 8(%esp) movl $838860880, (%esp) call f4 .LVL8: # typeddwarf.c:93 .LM46: leal -8(%ebp), %esp xorl %eax, %eax popl %ebx .LCFI7: popl %esi .LCFI8: popl %ebp .LCFI9: # SUCC: EXIT [100.0%] ret .LFE4: .size _start, .-_start .comm vv,4,4 .section .rodata.cst4,"aM",@progbits,4 .align 4 .LC3: .long 1077936128 .align 4 .LC4: .long 1073741824 #APP .section .debug_frame,"",@progbits .Lframe0: .long .LECIE0-.LSCIE0 # Length of Common Information Entry .LSCIE0: .long 0xffffffff # CIE Identifier Tag .byte 0x1 # CIE Version .ascii "\0" # CIE Augmentation .uleb128 0x1 # CIE Code Alignment Factor .sleb128 -4 # CIE Data Alignment Factor .byte 0x8 # CIE RA Column .byte 0xc # DW_CFA_def_cfa .uleb128 0x4 .uleb128 0x4 .byte 0x88 # DW_CFA_offset, column 0x8 .uleb128 0x1 .align 4 .LECIE0: .LSFDE0: .long .LEFDE0-.LASFDE0 # FDE Length .LASFDE0: .long .Lframe0 # FDE CIE offset .long .LFB0 # FDE initial location .long .LFE0-.LFB0 # FDE address range .align 4 .LEFDE0: .LSFDE2: .long .LEFDE2-.LASFDE2 # FDE Length .LASFDE2: .long .Lframe0 # FDE CIE offset .long .LFB1 # FDE initial location .long .LFE1-.LFB1 # FDE address range .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI0-.LFB1 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x10 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI1-.LCFI0 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x4 .align 4 .LEFDE2: .LSFDE4: .long .LEFDE4-.LASFDE4 # FDE Length .LASFDE4: .long .Lframe0 # FDE CIE offset .long .LFB2 # FDE initial location .long .LFE2-.LFB2 # FDE address range .align 4 .LEFDE4: .LSFDE6: .long .LEFDE6-.LASFDE6 # FDE Length .LASFDE6: .long .Lframe0 # FDE CIE offset .long .LFB3 # FDE initial location .long .LFE3-.LFB3 # FDE address range .align 4 .LEFDE6: .LSFDE8: .long .LEFDE8-.LASFDE8 # FDE Length .LASFDE8: .long .Lframe0 # FDE CIE offset .long .LFB4 # FDE initial location .long .LFE4-.LFB4 # FDE address range .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI2-.LFB4 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x8 .byte 0x85 # DW_CFA_offset, column 0x5 .uleb128 0x2 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI3-.LCFI2 .byte 0xd # DW_CFA_def_cfa_register .uleb128 0x5 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI4-.LCFI3 .byte 0x86 # DW_CFA_offset, column 0x6 .uleb128 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI5-.LCFI4 .byte 0x83 # DW_CFA_offset, column 0x3 .uleb128 0x4 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI7-.LCFI5 .byte 0xc3 # DW_CFA_restore, column 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI8-.LCFI7 .byte 0xc6 # DW_CFA_restore, column 0x6 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI9-.LCFI8 .byte 0xc # DW_CFA_def_cfa .uleb128 0x4 .uleb128 0x4 .byte 0xc5 # DW_CFA_restore, column 0x5 .align 4 .LEFDE8: #NO_APP #APP .section .eh_frame,"aw",@progbits .Lframe1: .long .LECIE1-.LSCIE1 # Length of Common Information Entry .LSCIE1: .long 0 # CIE Identifier Tag .byte 0x1 # CIE Version .ascii "\0" # CIE Augmentation .uleb128 0x1 # CIE Code Alignment Factor .sleb128 -4 # CIE Data Alignment Factor .byte 0x8 # CIE RA Column .byte 0xc # DW_CFA_def_cfa .uleb128 0x4 .uleb128 0x4 .byte 0x88 # DW_CFA_offset, column 0x8 .uleb128 0x1 .align 4 .LECIE1: .LSFDE11: .long .LEFDE11-.LASFDE11 # FDE Length .LASFDE11: .long .LASFDE11-.Lframe1 # FDE CIE offset .long .LFB0 # FDE initial location .long .LFE0-.LFB0 # FDE address range .align 4 .LEFDE11: .LSFDE13: .long .LEFDE13-.LASFDE13 # FDE Length .LASFDE13: .long .LASFDE13-.Lframe1 # FDE CIE offset .long .LFB1 # FDE initial location .long .LFE1-.LFB1 # FDE address range .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI0-.LFB1 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x10 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI1-.LCFI0 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x4 .align 4 .LEFDE13: .LSFDE15: .long .LEFDE15-.LASFDE15 # FDE Length .LASFDE15: .long .LASFDE15-.Lframe1 # FDE CIE offset .long .LFB2 # FDE initial location .long .LFE2-.LFB2 # FDE address range .align 4 .LEFDE15: .LSFDE17: .long .LEFDE17-.LASFDE17 # FDE Length .LASFDE17: .long .LASFDE17-.Lframe1 # FDE CIE offset .long .LFB3 # FDE initial location .long .LFE3-.LFB3 # FDE address range .align 4 .LEFDE17: .LSFDE19: .long .LEFDE19-.LASFDE19 # FDE Length .LASFDE19: .long .LASFDE19-.Lframe1 # FDE CIE offset .long .LFB4 # FDE initial location .long .LFE4-.LFB4 # FDE address range .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI2-.LFB4 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x8 .byte 0x85 # DW_CFA_offset, column 0x5 .uleb128 0x2 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI3-.LCFI2 .byte 0xd # DW_CFA_def_cfa_register .uleb128 0x5 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI4-.LCFI3 .byte 0x86 # DW_CFA_offset, column 0x6 .uleb128 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI5-.LCFI4 .byte 0x83 # DW_CFA_offset, column 0x3 .uleb128 0x4 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI7-.LCFI5 .byte 0xc3 # DW_CFA_restore, column 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI8-.LCFI7 .byte 0xc6 # DW_CFA_restore, column 0x6 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI9-.LCFI8 .byte 0xc # DW_CFA_def_cfa .uleb128 0x4 .uleb128 0x4 .byte 0xc5 # DW_CFA_restore, column 0x5 .align 4 .LEFDE19: #NO_APP .text .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0x64e # Length of Compilation Unit Info .value 0x2 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x4 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .long .LASF5 # DW_AT_producer: "GNU C 4.7.0 20110504 (experimental)" .byte 0x1 # DW_AT_language .long .LASF6 # DW_AT_name: "typeddwarf.c" .long .LASF7 # DW_AT_comp_dir: "/usr/src/gcc/obj/gcc" .long .Ldebug_ranges0+0 # DW_AT_ranges .long 0 # DW_AT_low_pc .long 0 # DW_AT_entry_pc .long .Ldebug_line0 # DW_AT_stmt_list .uleb128 0x2 # (DIE (0x29) DW_TAG_base_type) .byte 0x8 # DW_AT_byte_size .byte 0x4 # DW_AT_encoding .long .LASF0 # DW_AT_name: "double" .uleb128 0x2 # (DIE (0x30) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x4 # DW_AT_encoding .long .LASF1 # DW_AT_name: "float" .uleb128 0x2 # (DIE (0x37) DW_TAG_base_type) .byte 0x8 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .long .LASF2 # DW_AT_name: "long long int" .uleb128 0x3 # (DIE (0x3e) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .uleb128 0x2 # (DIE (0x45) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x7 # DW_AT_encoding .long .LASF3 # DW_AT_name: "unsigned int" .uleb128 0x2 # (DIE (0x4c) DW_TAG_base_type) .byte 0x8 # DW_AT_byte_size .byte 0x7 # DW_AT_encoding .long .LASF4 # DW_AT_name: "long long unsigned int" .uleb128 0x4 # (DIE (0x53) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .ascii "f1\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x9 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long .LFB0 # DW_AT_low_pc .long .LFE0 # DW_AT_high_pc .byte 0x2 # DW_AT_frame_base .byte 0x74 # DW_OP_breg4 .sleb128 4 .byte 0x1 # DW_AT_GNU_all_call_sites .long 0x232 # DW_AT_sibling .uleb128 0x5 # (DIE (0x6b) DW_TAG_formal_parameter) .ascii "a\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x9 # DW_AT_decl_line .long 0x29 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .uleb128 0x5 # (DIE (0x77) DW_TAG_formal_parameter) .ascii "b\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x9 # DW_AT_decl_line .long 0x29 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 8 .uleb128 0x5 # (DIE (0x83) DW_TAG_formal_parameter) .ascii "c\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x9 # DW_AT_decl_line .long 0x29 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 16 .uleb128 0x5 # (DIE (0x8f) DW_TAG_formal_parameter) .ascii "d\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x9 # DW_AT_decl_line .long 0x30 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 24 .uleb128 0x5 # (DIE (0x9b) DW_TAG_formal_parameter) .ascii "e\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x9 # DW_AT_decl_line .long 0x30 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 28 .uleb128 0x5 # (DIE (0xa7) DW_TAG_formal_parameter) .ascii "f\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x9 # DW_AT_decl_line .long 0x3e # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 32 .uleb128 0x5 # (DIE (0xb3) DW_TAG_formal_parameter) .ascii "g\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x9 # DW_AT_decl_line .long 0x45 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 36 .uleb128 0x5 # (DIE (0xbf) DW_TAG_formal_parameter) .ascii "h\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x9 # DW_AT_decl_line .long 0x37 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 40 .uleb128 0x5 # (DIE (0xcb) DW_TAG_formal_parameter) .ascii "i\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x9 # DW_AT_decl_line .long 0x4c # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 48 .uleb128 0x6 # (DIE (0xd7) DW_TAG_variable) .ascii "j\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0xb # DW_AT_decl_line .long 0x29 # DW_AT_type .byte 0x8 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 24 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x4 .uleb128 0x30 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x29 .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0xe9) DW_TAG_variable) .ascii "l\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0xc # DW_AT_decl_line .long 0x37 # DW_AT_type .byte 0xa # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 24 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x4 .uleb128 0x30 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x29 .byte 0xf9 # DW_OP_GNU_reinterpret .uleb128 0x37 .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0xfd) DW_TAG_variable) .ascii "m\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0xe # DW_AT_decl_line .long 0x37 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 16 .uleb128 0x6 # (DIE (0x109) DW_TAG_variable) .ascii "n\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x10 # DW_AT_decl_line .long 0x30 # DW_AT_type .byte 0xa # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 48 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x37 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x4c .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x30 .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x11d) DW_TAG_variable) .ascii "o\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x11 # DW_AT_decl_line .long 0x29 # DW_AT_type .byte 0x8 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 40 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x37 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x29 .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x12f) DW_TAG_variable) .ascii "p\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x12 # DW_AT_decl_line .long 0x30 # DW_AT_type .byte 0x8 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 36 .byte 0x6 # DW_OP_deref .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x45 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x30 .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x141) DW_TAG_variable) .ascii "q\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x13 # DW_AT_decl_line .long 0x29 # DW_AT_type .byte 0x8 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 32 .byte 0x6 # DW_OP_deref .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x3e .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x29 .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x153) DW_TAG_variable) .ascii "r\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x14 # DW_AT_decl_line .long 0x4c # DW_AT_type .byte 0xa # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x29 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x4c .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x37 .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x167) DW_TAG_variable) .ascii "s\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x15 # DW_AT_decl_line .long 0x37 # DW_AT_type .byte 0x8 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 16 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x29 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x37 .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x179) DW_TAG_variable) .ascii "t\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x16 # DW_AT_decl_line .long 0x45 # DW_AT_type .byte 0xa # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 24 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x4 .uleb128 0x30 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x45 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x3e .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x18d) DW_TAG_variable) .ascii "u\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x17 # DW_AT_decl_line .long 0x3e # DW_AT_type .byte 0x8 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 8 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x29 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x3e .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x19f) DW_TAG_variable) .ascii "v\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x18 # DW_AT_decl_line .long 0x30 # DW_AT_type .byte 0x8 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x29 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x30 .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x1b1) DW_TAG_variable) .ascii "w\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x19 # DW_AT_decl_line .long 0x29 # DW_AT_type .byte 0x14 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 24 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x4 .uleb128 0x30 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x29 .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x29 .byte 0x8 .long 0 # fp or vector constant word 0 .long 0x3fd00000 # fp or vector constant word 1 .byte 0x1e # DW_OP_mul .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x1cf) DW_TAG_variable) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x1a # DW_AT_decl_line .long 0x29 # DW_AT_type .byte 0x18 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x29 .byte 0x91 # DW_OP_fbreg .sleb128 8 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x29 .byte 0x22 # DW_OP_plus .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x29 .byte 0x8 .long 0 # fp or vector constant word 0 .long 0x3ff00000 # fp or vector constant word 1 .byte 0x22 # DW_OP_plus .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x1f1) DW_TAG_variable) .ascii "y\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x1b # DW_AT_decl_line .long 0x29 # DW_AT_type .byte 0x18 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 8 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x29 .byte 0x91 # DW_OP_fbreg .sleb128 16 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x29 .byte 0x22 # DW_OP_plus .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x29 .byte 0x8 .long 0 # fp or vector constant word 0 .long 0x40000000 # fp or vector constant word 1 .byte 0x22 # DW_OP_plus .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x213) DW_TAG_variable) .ascii "z\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x1c # DW_AT_decl_line .long 0x30 # DW_AT_type .byte 0x14 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 24 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x4 .uleb128 0x30 .byte 0x91 # DW_OP_fbreg .sleb128 28 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x4 .uleb128 0x30 .byte 0x22 # DW_OP_plus .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x30 .byte 0x4 .long 0x40400000 # fp or vector constant word 0 .byte 0x22 # DW_OP_plus .byte 0x9f # DW_OP_stack_value .byte 0 # end of children of DIE 0x53 .uleb128 0x7 # (DIE (0x232) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .ascii "f2\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x21 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long .LFB1 # DW_AT_low_pc .long .LFE1 # DW_AT_high_pc .long .LLST0 # DW_AT_frame_base .byte 0x1 # DW_AT_GNU_all_call_sites .long 0x40a # DW_AT_sibling .uleb128 0x5 # (DIE (0x24b) DW_TAG_formal_parameter) .ascii "a\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x21 # DW_AT_decl_line .long 0x29 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .uleb128 0x5 # (DIE (0x257) DW_TAG_formal_parameter) .ascii "b\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x21 # DW_AT_decl_line .long 0x29 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 8 .uleb128 0x5 # (DIE (0x263) DW_TAG_formal_parameter) .ascii "c\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x21 # DW_AT_decl_line .long 0x29 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 16 .uleb128 0x5 # (DIE (0x26f) DW_TAG_formal_parameter) .ascii "d\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x21 # DW_AT_decl_line .long 0x30 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 24 .uleb128 0x5 # (DIE (0x27b) DW_TAG_formal_parameter) .ascii "e\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x21 # DW_AT_decl_line .long 0x30 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 28 .uleb128 0x5 # (DIE (0x287) DW_TAG_formal_parameter) .ascii "f\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x21 # DW_AT_decl_line .long 0x3e # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 32 .uleb128 0x5 # (DIE (0x293) DW_TAG_formal_parameter) .ascii "g\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x21 # DW_AT_decl_line .long 0x45 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 36 .uleb128 0x5 # (DIE (0x29f) DW_TAG_formal_parameter) .ascii "h\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x21 # DW_AT_decl_line .long 0x37 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 40 .uleb128 0x5 # (DIE (0x2ab) DW_TAG_formal_parameter) .ascii "i\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x21 # DW_AT_decl_line .long 0x4c # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 48 .uleb128 0x6 # (DIE (0x2b7) DW_TAG_variable) .ascii "j\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x23 # DW_AT_decl_line .long 0x29 # DW_AT_type .byte 0x8 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 24 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x4 .uleb128 0x30 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x29 .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x2c9) DW_TAG_variable) .ascii "l\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x24 # DW_AT_decl_line .long 0x37 # DW_AT_type .byte 0xa # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 24 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x4 .uleb128 0x30 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x29 .byte 0xf9 # DW_OP_GNU_reinterpret .uleb128 0x37 .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x2dd) DW_TAG_variable) .ascii "m\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x26 # DW_AT_decl_line .long 0x37 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 16 .uleb128 0x8 # (DIE (0x2e9) DW_TAG_variable) .ascii "n\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x28 # DW_AT_decl_line .long 0x30 # DW_AT_type .uleb128 0x8 # (DIE (0x2f2) DW_TAG_variable) .ascii "o\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x29 # DW_AT_decl_line .long 0x29 # DW_AT_type .uleb128 0x6 # (DIE (0x2fb) DW_TAG_variable) .ascii "p\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x2a # DW_AT_decl_line .long 0x30 # DW_AT_type .byte 0x8 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 36 .byte 0x6 # DW_OP_deref .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x45 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x30 .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x30d) DW_TAG_variable) .ascii "q\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x2b # DW_AT_decl_line .long 0x29 # DW_AT_type .byte 0x8 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 32 .byte 0x6 # DW_OP_deref .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x3e .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x29 .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x31f) DW_TAG_variable) .ascii "r\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x2c # DW_AT_decl_line .long 0x4c # DW_AT_type .byte 0xa # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x29 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x4c .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x37 .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x333) DW_TAG_variable) .ascii "s\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x2d # DW_AT_decl_line .long 0x37 # DW_AT_type .byte 0x8 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 16 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x29 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x37 .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x345) DW_TAG_variable) .ascii "t\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x2e # DW_AT_decl_line .long 0x45 # DW_AT_type .byte 0xa # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 24 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x4 .uleb128 0x30 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x45 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x3e .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x359) DW_TAG_variable) .ascii "u\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x2f # DW_AT_decl_line .long 0x3e # DW_AT_type .byte 0x8 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 8 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x29 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x3e .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x36b) DW_TAG_variable) .ascii "v\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x30 # DW_AT_decl_line .long 0x30 # DW_AT_type .byte 0x8 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x29 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x30 .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x37d) DW_TAG_variable) .ascii "w\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x31 # DW_AT_decl_line .long 0x29 # DW_AT_type .byte 0x14 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 24 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x4 .uleb128 0x30 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x29 .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x29 .byte 0x8 .long 0 # fp or vector constant word 0 .long 0x3fd00000 # fp or vector constant word 1 .byte 0x1e # DW_OP_mul .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x39b) DW_TAG_variable) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x32 # DW_AT_decl_line .long 0x29 # DW_AT_type .byte 0x24 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x29 .byte 0x91 # DW_OP_fbreg .sleb128 8 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x29 .byte 0x22 # DW_OP_plus .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x29 .byte 0x8 .long 0 # fp or vector constant word 0 .long 0x40080000 # fp or vector constant word 1 .byte 0x1c # DW_OP_minus .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x29 .byte 0x8 .long 0x78b58c40 # fp or vector constant word 0 .long 0x4415af1d # fp or vector constant word 1 .byte 0x22 # DW_OP_plus .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x3c9) DW_TAG_variable) .ascii "y\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x33 # DW_AT_decl_line .long 0x29 # DW_AT_type .byte 0x18 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 16 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x29 .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x29 .byte 0x8 .long 0 # fp or vector constant word 0 .long 0x401c0000 # fp or vector constant word 1 .byte 0x1e # DW_OP_mul .byte 0x91 # DW_OP_fbreg .sleb128 8 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x29 .byte 0x22 # DW_OP_plus .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x3eb) DW_TAG_variable) .ascii "z\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x34 # DW_AT_decl_line .long 0x30 # DW_AT_type .byte 0x14 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 24 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x4 .uleb128 0x30 .byte 0x91 # DW_OP_fbreg .sleb128 28 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x4 .uleb128 0x30 .byte 0x22 # DW_OP_plus .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x30 .byte 0x4 .long 0x40400000 # fp or vector constant word 0 .byte 0x22 # DW_OP_plus .byte 0x9f # DW_OP_stack_value .byte 0 # end of children of DIE 0x232 .uleb128 0x4 # (DIE (0x40a) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .ascii "f3\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x43 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long .LFB2 # DW_AT_low_pc .long .LFE2 # DW_AT_high_pc .byte 0x2 # DW_AT_frame_base .byte 0x74 # DW_OP_breg4 .sleb128 4 .byte 0x1 # DW_AT_GNU_all_call_sites .long 0x4fd # DW_AT_sibling .uleb128 0x5 # (DIE (0x422) DW_TAG_formal_parameter) .ascii "a\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x43 # DW_AT_decl_line .long 0x37 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .uleb128 0x5 # (DIE (0x42e) DW_TAG_formal_parameter) .ascii "b\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x43 # DW_AT_decl_line .long 0x3e # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 8 .uleb128 0x5 # (DIE (0x43a) DW_TAG_formal_parameter) .ascii "c\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x43 # DW_AT_decl_line .long 0x37 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 12 .uleb128 0x5 # (DIE (0x446) DW_TAG_formal_parameter) .ascii "d\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x43 # DW_AT_decl_line .long 0x45 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 20 .uleb128 0x6 # (DIE (0x452) DW_TAG_variable) .ascii "w\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x45 # DW_AT_decl_line .long 0x37 # DW_AT_type .byte 0x16 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 20 .byte 0x6 # DW_OP_deref .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x45 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x37 .byte 0x12 # DW_OP_dup .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x37 .byte 0x16 # DW_OP_swap .byte 0x14 # DW_OP_over .byte 0x2b # DW_OP_gt .byte 0x28 # DW_OP_bra .value 0x1 .byte 0x16 # DW_OP_swap .byte 0x13 # DW_OP_drop .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x472) DW_TAG_variable) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x46 # DW_AT_decl_line .long 0x37 # DW_AT_type .byte 0x1a # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 8 .byte 0x6 # DW_OP_deref .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x3e .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x37 .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x37 .byte 0x22 # DW_OP_plus .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x37 .byte 0x8 .quad 0x7 .byte 0x22 # DW_OP_plus .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x496) DW_TAG_variable) .ascii "y\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x47 # DW_AT_decl_line .long 0x37 # DW_AT_type .byte 0x1a # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 20 .byte 0x6 # DW_OP_deref .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x45 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x37 .byte 0x91 # DW_OP_fbreg .sleb128 12 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x37 .byte 0x22 # DW_OP_plus .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x37 .byte 0x8 .quad 0x912345678 .byte 0x22 # DW_OP_plus .byte 0x9f # DW_OP_stack_value .uleb128 0x6 # (DIE (0x4ba) DW_TAG_variable) .ascii "z\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x48 # DW_AT_decl_line .long 0x3e # DW_AT_type .byte 0x38 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 8 .byte 0x6 # DW_OP_deref .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x3e .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x37 .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x37 .byte 0x22 # DW_OP_plus .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x37 .byte 0x8 .quad 0x7 .byte 0x22 # DW_OP_plus .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x3e .byte 0x91 # DW_OP_fbreg .sleb128 20 .byte 0x6 # DW_OP_deref .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x45 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x37 .byte 0x91 # DW_OP_fbreg .sleb128 12 .byte 0xf6 # DW_OP_GNU_deref_type .byte 0x8 .uleb128 0x37 .byte 0x22 # DW_OP_plus .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x37 .byte 0x8 .quad 0x912345678 .byte 0x22 # DW_OP_plus .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x3e .byte 0x22 # DW_OP_plus .byte 0x9f # DW_OP_stack_value .byte 0 # end of children of DIE 0x40a .uleb128 0x4 # (DIE (0x4fd) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .ascii "f4\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x4d # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long .LFB3 # DW_AT_low_pc .long .LFE3 # DW_AT_high_pc .byte 0x2 # DW_AT_frame_base .byte 0x74 # DW_OP_breg4 .sleb128 4 .byte 0x1 # DW_AT_GNU_all_call_sites .long 0x555 # DW_AT_sibling .uleb128 0x5 # (DIE (0x515) DW_TAG_formal_parameter) .ascii "a\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x4d # DW_AT_decl_line .long 0x555 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .uleb128 0x5 # (DIE (0x521) DW_TAG_formal_parameter) .ascii "b\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x4d # DW_AT_decl_line .long 0x55c # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 4 .uleb128 0x5 # (DIE (0x52d) DW_TAG_formal_parameter) .ascii "c\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x4d # DW_AT_decl_line .long 0x563 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 16 .uleb128 0x8 # (DIE (0x539) DW_TAG_variable) .ascii "w\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x4f # DW_AT_decl_line .long 0x555 # DW_AT_type .uleb128 0x8 # (DIE (0x542) DW_TAG_variable) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x50 # DW_AT_decl_line .long 0x55c # DW_AT_type .uleb128 0x8 # (DIE (0x54b) DW_TAG_variable) .ascii "y\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x51 # DW_AT_decl_line .long 0x563 # DW_AT_type .byte 0 # end of children of DIE 0x4fd .uleb128 0x2 # (DIE (0x555) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0xf # DW_AT_encoding .long .LASF8 # DW_AT_name: "_Decimal32" .uleb128 0x2 # (DIE (0x55c) DW_TAG_base_type) .byte 0x8 # DW_AT_byte_size .byte 0xf # DW_AT_encoding .long .LASF9 # DW_AT_name: "_Decimal64" .uleb128 0x2 # (DIE (0x563) DW_TAG_base_type) .byte 0x10 # DW_AT_byte_size .byte 0xf # DW_AT_encoding .long .LASF10 # DW_AT_name: "_Decimal128" .uleb128 0x9 # (DIE (0x56a) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .long .LASF11 # DW_AT_name: "main" .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x56 # DW_AT_decl_line .long 0x3e # DW_AT_type .long .LFB4 # DW_AT_low_pc .long .LFE4 # DW_AT_high_pc .long .LLST1 # DW_AT_frame_base .byte 0x1 # DW_AT_GNU_all_call_sites .long 0x62f # DW_AT_sibling .uleb128 0xa # (DIE (0x587) DW_TAG_GNU_call_site) .long .LVL5 # DW_AT_low_pc .long 0x53 # DW_AT_abstract_origin .long 0x5e1 # DW_AT_sibling .uleb128 0xb # (DIE (0x594) DW_TAG_GNU_call_site_parameter) .byte 0x2 # DW_AT_location .byte 0x74 # DW_OP_breg4 .sleb128 0 .byte 0xb # DW_AT_GNU_call_site_value .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x29 .byte 0x8 .long 0 # fp or vector constant word 0 .long 0x3ff00000 # fp or vector constant word 1 .uleb128 0xb # (DIE (0x5a4) DW_TAG_GNU_call_site_parameter) .byte 0x2 # DW_AT_location .byte 0x74 # DW_OP_breg4 .sleb128 8 .byte 0xb # DW_AT_GNU_call_site_value .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x29 .byte 0x8 .long 0 # fp or vector constant word 0 .long 0x40000000 # fp or vector constant word 1 .uleb128 0xb # (DIE (0x5b4) DW_TAG_GNU_call_site_parameter) .byte 0x2 # DW_AT_location .byte 0x74 # DW_OP_breg4 .sleb128 16 .byte 0xb # DW_AT_GNU_call_site_value .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x29 .byte 0x8 .long 0 # fp or vector constant word 0 .long 0x40080000 # fp or vector constant word 1 .uleb128 0xb # (DIE (0x5c4) DW_TAG_GNU_call_site_parameter) .byte 0x2 # DW_AT_location .byte 0x74 # DW_OP_breg4 .sleb128 24 .byte 0x3 # DW_AT_GNU_call_site_value .byte 0xf5 # DW_OP_GNU_regval_type .uleb128 0x3 .uleb128 0x30 .uleb128 0xb # (DIE (0x5cc) DW_TAG_GNU_call_site_parameter) .byte 0x2 # DW_AT_location .byte 0x74 # DW_OP_breg4 .sleb128 28 .byte 0x3 # DW_AT_GNU_call_site_value .byte 0xf5 # DW_OP_GNU_regval_type .uleb128 0x6 .uleb128 0x30 .uleb128 0xb # (DIE (0x5d4) DW_TAG_GNU_call_site_parameter) .byte 0x2 # DW_AT_location .byte 0x74 # DW_OP_breg4 .sleb128 32 .byte 0x1 # DW_AT_GNU_call_site_value .byte 0x36 # DW_OP_lit6 .uleb128 0xb # (DIE (0x5da) DW_TAG_GNU_call_site_parameter) .byte 0x2 # DW_AT_location .byte 0x74 # DW_OP_breg4 .sleb128 36 .byte 0x1 # DW_AT_GNU_call_site_value .byte 0x37 # DW_OP_lit7 .byte 0 # end of children of DIE 0x587 .uleb128 0xa # (DIE (0x5e1) DW_TAG_GNU_call_site) .long .LVL6 # DW_AT_low_pc .long 0x232 # DW_AT_abstract_origin .long 0x60b # DW_AT_sibling .uleb128 0xb # (DIE (0x5ee) DW_TAG_GNU_call_site_parameter) .byte 0x2 # DW_AT_location .byte 0x74 # DW_OP_breg4 .sleb128 24 .byte 0x3 # DW_AT_GNU_call_site_value .byte 0xf5 # DW_OP_GNU_regval_type .uleb128 0x3 .uleb128 0x30 .uleb128 0xb # (DIE (0x5f6) DW_TAG_GNU_call_site_parameter) .byte 0x2 # DW_AT_location .byte 0x74 # DW_OP_breg4 .sleb128 28 .byte 0x3 # DW_AT_GNU_call_site_value .byte 0xf5 # DW_OP_GNU_regval_type .uleb128 0x6 .uleb128 0x30 .uleb128 0xb # (DIE (0x5fe) DW_TAG_GNU_call_site_parameter) .byte 0x2 # DW_AT_location .byte 0x74 # DW_OP_breg4 .sleb128 32 .byte 0x1 # DW_AT_GNU_call_site_value .byte 0x36 # DW_OP_lit6 .uleb128 0xb # (DIE (0x604) DW_TAG_GNU_call_site_parameter) .byte 0x2 # DW_AT_location .byte 0x74 # DW_OP_breg4 .sleb128 36 .byte 0x1 # DW_AT_GNU_call_site_value .byte 0x37 # DW_OP_lit7 .byte 0 # end of children of DIE 0x5e1 .uleb128 0xa # (DIE (0x60b) DW_TAG_GNU_call_site) .long .LVL7 # DW_AT_low_pc .long 0x40a # DW_AT_abstract_origin .long 0x625 # DW_AT_sibling .uleb128 0xb # (DIE (0x618) DW_TAG_GNU_call_site_parameter) .byte 0x2 # DW_AT_location .byte 0x74 # DW_OP_breg4 .sleb128 8 .byte 0x1 # DW_AT_GNU_call_site_value .byte 0x32 # DW_OP_lit2 .uleb128 0xb # (DIE (0x61e) DW_TAG_GNU_call_site_parameter) .byte 0x2 # DW_AT_location .byte 0x74 # DW_OP_breg4 .sleb128 20 .byte 0x1 # DW_AT_GNU_call_site_value .byte 0x34 # DW_OP_lit4 .byte 0 # end of children of DIE 0x60b .uleb128 0xc # (DIE (0x625) DW_TAG_GNU_call_site) .long .LVL8 # DW_AT_low_pc .long 0x4fd # DW_AT_abstract_origin .byte 0 # end of children of DIE 0x56a .uleb128 0xd # (DIE (0x62f) DW_TAG_variable) .ascii "vv\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x5 # DW_AT_decl_line .long 0x63b # DW_AT_type .byte 0x1 # DW_AT_external .byte 0x1 # DW_AT_declaration .uleb128 0xe # (DIE (0x63b) DW_TAG_volatile_type) .long 0x3e # DW_AT_type .uleb128 0xf # (DIE (0x640) DW_TAG_variable) .ascii "vv\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (typeddwarf.c) .byte 0x5 # DW_AT_decl_line .long 0x63b # DW_AT_type .byte 0x1 # DW_AT_external .byte 0x5 # DW_AT_location .byte 0x3 # DW_OP_addr .long vv .byte 0 # end of children of DIE 0xb .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x55 # (DW_AT_ranges) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x52 # (DW_AT_entry_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x6 # (DW_FORM_data4) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .byte 0 .byte 0 .uleb128 0x3 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0 .byte 0 .uleb128 0x4 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0xa # (DW_FORM_block1) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x5 # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0xa # (DW_FORM_block1) .byte 0 .byte 0 .uleb128 0x6 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0xa # (DW_FORM_block1) .byte 0 .byte 0 .uleb128 0x7 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x8 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x9 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0xa # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0x1 # DW_children_yes .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0xb # (abbrev code) .uleb128 0x410a # (TAG: DW_TAG_GNU_call_site_parameter) .byte 0 # DW_children_no .uleb128 0x2 # (DW_AT_location) .uleb128 0xa # (DW_FORM_block1) .uleb128 0x2111 # (DW_AT_GNU_call_site_value) .uleb128 0xa # (DW_FORM_block1) .byte 0 .byte 0 .uleb128 0xc # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0 # DW_children_no .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0xd # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x3c # (DW_AT_declaration) .uleb128 0xc # (DW_FORM_flag) .byte 0 .byte 0 .uleb128 0xe # (abbrev code) .uleb128 0x35 # (TAG: DW_TAG_volatile_type) .byte 0 # DW_children_no .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0xf # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x2 # (DW_AT_location) .uleb128 0xa # (DW_FORM_block1) .byte 0 .byte 0 .byte 0 .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .long .LFB1 # Location list begin address (*.LLST0) .long .LCFI0 # Location list end address (*.LLST0) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long .LCFI0 # Location list begin address (*.LLST0) .long .LCFI1 # Location list end address (*.LLST0) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 16 .long .LCFI1 # Location list begin address (*.LLST0) .long .LFE1 # Location list end address (*.LLST0) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long 0 # Location list terminator begin (*.LLST0) .long 0 # Location list terminator end (*.LLST0) .LLST1: .long .LFB4 # Location list begin address (*.LLST1) .long .LCFI2 # Location list end address (*.LLST1) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long .LCFI2 # Location list begin address (*.LLST1) .long .LCFI3 # Location list end address (*.LLST1) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 8 .long .LCFI3 # Location list begin address (*.LLST1) .long .LCFI9 # Location list end address (*.LLST1) .value 0x2 # Location expression size .byte 0x75 # DW_OP_breg5 .sleb128 8 .long .LCFI9 # Location list begin address (*.LLST1) .long .LFE4 # Location list end address (*.LLST1) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long 0 # Location list terminator begin (*.LLST1) .long 0 # Location list terminator end (*.LLST1) .section .debug_aranges,"",@progbits .long 0x24 # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .byte 0x4 # Size of Address .byte 0 # Size of Segment Descriptor .value 0 # Pad to 8 byte boundary .value 0 .long .Ltext0 # Address .long .Letext0-.Ltext0 # Length .long .LFB4 # Address .long .LFE4-.LFB4 # Length .long 0 .long 0 .section .debug_ranges,"",@progbits .Ldebug_ranges0: .long .Ltext0 # Offset 0 .long .Letext0 .long .LFB4 # Offset 0x8 .long .LFE4 .long 0 .long 0 .section .debug_line,"",@progbits .Ldebug_line0: .long .LELT0-.LSLT0 # Length of Source Line Info .LSLT0: .value 0x2 # DWARF Version .long .LELTP0-.LASLTP0 # Prolog Length .LASLTP0: .byte 0x1 # Minimum Instruction Length .byte 0x1 # Default is_stmt_start flag .byte 0xf6 # Line Base Value (Special Opcodes) .byte 0xf2 # Line Range Value (Special Opcodes) .byte 0xd # Special Opcode Base .byte 0 # opcode: 0x1 has 0 args .byte 0x1 # opcode: 0x2 has 1 args .byte 0x1 # opcode: 0x3 has 1 args .byte 0x1 # opcode: 0x4 has 1 args .byte 0x1 # opcode: 0x5 has 1 args .byte 0 # opcode: 0x6 has 0 args .byte 0 # opcode: 0x7 has 0 args .byte 0 # opcode: 0x8 has 0 args .byte 0x1 # opcode: 0x9 has 1 args .byte 0 # opcode: 0xa has 0 args .byte 0 # opcode: 0xb has 0 args .byte 0x1 # opcode: 0xc has 1 args .byte 0 # End directory table .ascii "typeddwarf.c\0" # File Entry: 0x1 .uleb128 0 .uleb128 0 .uleb128 0 .byte 0 # End file name table .LELTP0: .byte 0 # set address *.LM37 .uleb128 0x5 .byte 0x2 .long .LM37 .byte 0x6d # line 87 .byte 0 # set address *.LM38 .uleb128 0x5 .byte 0x2 .long .LM38 .byte 0x18 # line 88 .byte 0 # set address *.LM39 .uleb128 0x5 .byte 0x2 .long .LM39 .byte 0x16 # line 87 .byte 0 # set address *.LM40 .uleb128 0x5 .byte 0x2 .long .LM40 .byte 0x18 # line 88 .byte 0 # set address *.LM41 .uleb128 0x5 .byte 0x2 .long .LM41 .byte 0x16 # line 87 .byte 0 # set address *.LM42 .uleb128 0x5 .byte 0x2 .long .LM42 .byte 0x18 # line 88 .byte 0 # set address *.LM43 .uleb128 0x5 .byte 0x2 .long .LM43 .byte 0x18 # line 89 .byte 0 # set address *.LM44 .uleb128 0x5 .byte 0x2 .long .LM44 .byte 0x18 # line 90 .byte 0 # set address *.LM45 .uleb128 0x5 .byte 0x2 .long .LM45 .byte 0x18 # line 91 .byte 0 # set address *.LM46 .uleb128 0x5 .byte 0x2 .long .LM46 .byte 0x19 # line 93 .byte 0 # set address *.LFE4 .uleb128 0x5 .byte 0x2 .long .LFE4 .byte 0 # end sequence .uleb128 0x1 .byte 0x1 .byte 0 # set address *.LM1 .uleb128 0x5 .byte 0x2 .long .LM1 .byte 0x20 # line 10 .byte 0 # set address *.LM2 .uleb128 0x5 .byte 0x2 .long .LM2 .byte 0x2a # line 29 .byte 0 # set address *.LM3 .uleb128 0x5 .byte 0x2 .long .LM3 .byte 0x18 # line 30 .byte 0 # set address *.LM4 .uleb128 0x5 .byte 0x2 .long .LM4 .byte 0x1b # line 34 .byte 0 # set address *.LM5 .uleb128 0x5 .byte 0x2 .long .LM5 .byte 0x2a # line 53 .byte 0 # set address *.LM6 .uleb128 0x5 .byte 0x2 .long .LM6 .byte 0x18 # line 54 .byte 0 # set address *.LM7 .uleb128 0x5 .byte 0x2 .long .LM7 .byte 0x3 # advance to line 34 .sleb128 -20 .byte 0x1 .byte 0 # set address *.LM8 .uleb128 0x5 .byte 0x2 .long .LM8 .byte 0x2b # line 54 .byte 0 # set address *.LM9 .uleb128 0x5 .byte 0x2 .long .LM9 .byte 0x16 # line 53 .byte 0 # set address *.LM10 .uleb128 0x5 .byte 0x2 .long .LM10 .byte 0x18 # line 54 .byte 0 # set address *.LM11 .uleb128 0x5 .byte 0x2 .long .LM11 .byte 0x18 # line 55 .byte 0 # set address *.LM12 .uleb128 0x5 .byte 0x2 .long .LM12 .byte 0x16 # line 54 .byte 0 # set address *.LM13 .uleb128 0x5 .byte 0x2 .long .LM13 .byte 0x18 # line 55 .byte 0 # set address *.LM14 .uleb128 0x5 .byte 0x2 .long .LM14 .byte 0x18 # line 56 .byte 0 # set address *.LM15 .uleb128 0x5 .byte 0x2 .long .LM15 .byte 0x16 # line 55 .byte 0 # set address *.LM16 .uleb128 0x5 .byte 0x2 .long .LM16 .byte 0x18 # line 56 .byte 0 # set address *.LM17 .uleb128 0x5 .byte 0x2 .long .LM17 .byte 0x18 # line 57 .byte 0 # set address *.LM18 .uleb128 0x5 .byte 0x2 .long .LM18 .byte 0x16 # line 56 .byte 0 # set address *.LM19 .uleb128 0x5 .byte 0x2 .long .LM19 .byte 0x18 # line 57 .byte 0 # set address *.LM20 .uleb128 0x5 .byte 0x2 .long .LM20 .byte 0x18 # line 58 .byte 0 # set address *.LM21 .uleb128 0x5 .byte 0x2 .long .LM21 .byte 0x16 # line 57 .byte 0 # set address *.LM22 .uleb128 0x5 .byte 0x2 .long .LM22 .byte 0x18 # line 58 .byte 0 # set address *.LM23 .uleb128 0x5 .byte 0x2 .long .LM23 .byte 0x18 # line 59 .byte 0 # set address *.LM24 .uleb128 0x5 .byte 0x2 .long .LM24 .byte 0x1b # line 63 .byte 0 # set address *.LM25 .uleb128 0x5 .byte 0x2 .long .LM25 .byte 0x13 # line 59 .byte 0 # set address *.LM26 .uleb128 0x5 .byte 0x2 .long .LM26 .byte 0x18 # line 60 .byte 0 # set address *.LM27 .uleb128 0x5 .byte 0x2 .long .LM27 .byte 0x18 # line 61 .byte 0 # set address *.LM28 .uleb128 0x5 .byte 0x2 .long .LM28 .byte 0x18 # line 62 .byte 0 # set address *.LM29 .uleb128 0x5 .byte 0x2 .long .LM29 .byte 0x18 # line 63 .byte 0 # set address *.LM30 .uleb128 0x5 .byte 0x2 .long .LM30 .byte 0x18 # line 64 .byte 0 # set address *.LM31 .uleb128 0x5 .byte 0x2 .long .LM31 .byte 0x1b # line 68 .byte 0 # set address *.LM32 .uleb128 0x5 .byte 0x2 .long .LM32 .byte 0x1c # line 73 .byte 0 # set address *.LM33 .uleb128 0x5 .byte 0x2 .long .LM33 .byte 0x18 # line 74 .byte 0 # set address *.LM34 .uleb128 0x5 .byte 0x2 .long .LM34 .byte 0x1b # line 78 .byte 0 # set address *.LM35 .uleb128 0x5 .byte 0x2 .long .LM35 .byte 0x1b # line 82 .byte 0 # set address *.LM36 .uleb128 0x5 .byte 0x2 .long .LM36 .byte 0x18 # line 83 .byte 0 # set address *.Letext0 .uleb128 0x5 .byte 0x2 .long .Letext0 .byte 0 # end sequence .uleb128 0x1 .byte 0x1 .LELT0: .section .debug_str,"MS",@progbits,1 .LASF2: .string "long long int" .LASF3: .string "unsigned int" .LASF8: .string "_Decimal32" .LASF4: .string "long long unsigned int" .LASF11: .string "main" .LASF9: .string "_Decimal64" .LASF0: .string "double" .LASF10: .string "_Decimal128" .LASF7: .string "/usr/src/gcc/obj/gcc" .LASF1: .string "float" .LASF6: .string "typeddwarf.c" .LASF5: .string "GNU C 4.7.0 20110504 (experimental)" .ident "GCC: (GNU) 4.7.0 20110504 (experimental)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
11,227
gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2010-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* The goal of this test is to provide anonymous DW_TAG_structure_type containing __pfn + __delta (read in by quirk_gcc_member_function_pointer) before DW_TAG_structure_type of "class C" to exploit the forward reference through "__pfn" and back from DW_TAG_member "fp" of "class C". As the compiler may place the DIEs in arbitrary order they are rather prepared as a .S file. class C; typedef int (C::*fp_t) (); fp_t fp; class C { int (C::*fp) (); } c; */ .file "member-ptr-forwardref.cc" .section .debug_abbrev,"",%progbits .Ldebug_abbrev0: .section .debug_info,"",%progbits .Ldebug_info0: .section .debug_line,"",%progbits .Ldebug_line0: .text .Ltext0: .globl fp .data .align 4 .type fp, %object .size fp, 8 fp: .zero 8 .globl c .align 4 .type c, %object .size c, 8 c: .zero 8 .text .Letext0: .file 1 "gdb.dwarf2/member-ptr-forwardref.cc" .section .debug_info .4byte 0xa9 /* Length of Compilation Unit Info */ .2byte 0x3 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */ .4byte .LASF2 /* DW_AT_producer: "GNU C++ 4.4.2 20091222 (Red Hat 4.4.2-20)" */ .byte 0x4 /* DW_AT_language */ .4byte .LASF3 /* DW_AT_name: "gdb.dwarf2/member-ptr-forwardref.cc" */ .4byte .LASF4 /* DW_AT_comp_dir: "gdb/testsuite" */ .4byte .Ltext0 /* DW_AT_low_pc */ .4byte .Letext0 /* DW_AT_high_pc */ .4byte .Ldebug_line0 /* DW_AT_stmt_list */ .uleb128 0x2 /* (DIE (0x25) DW_TAG_typedef) */ .4byte .LASF5 /* DW_AT_name: "fp_t" */ .byte 0x1 /* DW_AT_decl_file (gdb.dwarf2/member-ptr-forwardref.cc) */ .byte 0x13 /* DW_AT_decl_line */ .4byte 0x30 /* DW_AT_type */ .uleb128 0x3 /* (DIE (0x30) DW_TAG_structure_type) */ .byte 0x8 /* DW_AT_byte_size */ .byte 0x1 /* DW_AT_decl_file (gdb.dwarf2/member-ptr-forwardref.cc) */ .byte 0x13 /* DW_AT_decl_line */ .4byte 0x51 /* DW_AT_sibling */ .uleb128 0x4 /* (DIE (0x38) DW_TAG_member) */ .4byte .LASF0 /* DW_AT_name: "__pfn" */ .byte 0x1 /* DW_AT_decl_file (gdb.dwarf2/member-ptr-forwardref.cc) */ .byte 0x13 /* DW_AT_decl_line */ .4byte 0x85 /* DW_AT_type */ .sleb128 0 /* DW_AT_data_member_location */ .uleb128 0x4 /* (DIE (0x44) DW_TAG_member) */ .4byte .LASF1 /* DW_AT_name: "__delta" */ .byte 0x1 /* DW_AT_decl_file (gdb.dwarf2/member-ptr-forwardref.cc) */ .byte 0x13 /* DW_AT_decl_line */ .4byte 0x61 /* DW_AT_type */ .sleb128 4 /* DW_AT_data_member_location */ .byte 0x0 /* end of children of DIE 0x30 */ .uleb128 0x5 /* (DIE (0x51) DW_TAG_subroutine_type) */ .4byte 0x61 /* DW_AT_type */ .4byte 0x61 /* DW_AT_sibling */ .uleb128 0x6 /* (DIE (0x5a) DW_TAG_formal_parameter) */ .4byte 0x68 /* DW_AT_type */ .byte 0x1 /* DW_AT_artificial */ .byte 0x0 /* end of children of DIE 0x51 */ .uleb128 0x7 /* (DIE (0x61) DW_TAG_base_type) */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding */ .ascii "int\0" /* DW_AT_name */ .uleb128 0x8 /* (DIE (0x68) DW_TAG_pointer_type) */ .byte 0x4 /* DW_AT_byte_size */ .4byte 0x6e /* DW_AT_type */ .uleb128 0x9 /* (DIE (0x6e) DW_TAG_structure_type) */ .ascii "C\0" /* DW_AT_name */ .byte 0x8 /* DW_AT_byte_size */ .byte 0x1 /* DW_AT_decl_file (gdb.dwarf2/member-ptr-forwardref.cc) */ .byte 0x16 /* DW_AT_decl_line */ .4byte 0x85 /* DW_AT_sibling */ .uleb128 0xa /* (DIE (0x78) DW_TAG_member) */ .ascii "fp\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_decl_file (gdb.dwarf2/member-ptr-forwardref.cc) */ .byte 0x17 /* DW_AT_decl_line */ .4byte 0x30 /* DW_AT_type */ .sleb128 0 /* DW_AT_data_member_location */ .byte 0x3 /* DW_AT_accessibility */ .byte 0x0 /* end of children of DIE 0x6e */ .uleb128 0x8 /* (DIE (0x85) DW_TAG_pointer_type) */ .byte 0x4 /* DW_AT_byte_size */ .4byte 0x51 /* DW_AT_type */ .uleb128 0xb /* (DIE (0x8b) DW_TAG_variable) */ .ascii "fp\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_decl_file (gdb.dwarf2/member-ptr-forwardref.cc) */ .byte 0x14 /* DW_AT_decl_line */ .4byte 0x25 /* DW_AT_type */ .byte 0x1 /* DW_AT_external */ .byte 0x5 /* DW_AT_location */ .byte 0x3 /* DW_OP_addr */ .4byte fp .uleb128 0xb /* (DIE (0x9c) DW_TAG_variable) */ .ascii "c\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_decl_file (gdb.dwarf2/member-ptr-forwardref.cc) */ .byte 0x18 /* DW_AT_decl_line */ .4byte 0x6e /* DW_AT_type */ .byte 0x1 /* DW_AT_external */ .byte 0x5 /* DW_AT_location */ .byte 0x3 /* DW_OP_addr */ .4byte c .byte 0x0 /* end of children of DIE 0xb */ .section .debug_abbrev .uleb128 0x1 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0xe /* (DW_FORM_strp) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0xe /* (DW_FORM_strp) */ .uleb128 0x1b /* (DW_AT_comp_dir) */ .uleb128 0xe /* (DW_FORM_strp) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x10 /* (DW_AT_stmt_list) */ .uleb128 0x6 /* (DW_FORM_data4) */ .byte 0x0 .byte 0x0 .uleb128 0x2 /* (abbrev code) */ .uleb128 0x16 /* (TAG: DW_TAG_typedef) */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0xe /* (DW_FORM_strp) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0x0 .byte 0x0 .uleb128 0x3 /* (abbrev code) */ .uleb128 0x13 /* (TAG: DW_TAG_structure_type) */ .byte 0x1 /* DW_children_yes */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x1 /* (DW_AT_sibling) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0x0 .byte 0x0 .uleb128 0x4 /* (abbrev code) */ .uleb128 0xd /* (TAG: DW_TAG_member) */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0xe /* (DW_FORM_strp) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x38 /* (DW_AT_data_member_location) */ .uleb128 0xd /* (DW_FORM_sdata) */ .byte 0x0 .byte 0x0 .uleb128 0x5 /* (abbrev code) */ .uleb128 0x15 /* (TAG: DW_TAG_subroutine_type) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x1 /* (DW_AT_sibling) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0x0 .byte 0x0 .uleb128 0x6 /* (abbrev code) */ .uleb128 0x5 /* (TAG: DW_TAG_formal_parameter) */ .byte 0x0 /* DW_children_no */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x34 /* (DW_AT_artificial) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0x0 .byte 0x0 .uleb128 0x7 /* (abbrev code) */ .uleb128 0x24 /* (TAG: DW_TAG_base_type) */ .byte 0x0 /* DW_children_no */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3e /* (DW_AT_encoding) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .byte 0x0 .byte 0x0 .uleb128 0x8 /* (abbrev code) */ .uleb128 0xf /* (TAG: DW_TAG_pointer_type) */ .byte 0x0 /* DW_children_no */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0x0 .byte 0x0 .uleb128 0x9 /* (abbrev code) */ .uleb128 0x13 /* (TAG: DW_TAG_structure_type) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x1 /* (DW_AT_sibling) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0x0 .byte 0x0 .uleb128 0xa /* (abbrev code) */ .uleb128 0xd /* (TAG: DW_TAG_member) */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x38 /* (DW_AT_data_member_location) */ .uleb128 0xd /* (DW_FORM_sdata) */ .uleb128 0x32 /* (DW_AT_accessibility) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0x0 .byte 0x0 .uleb128 0xb /* (abbrev code) */ .uleb128 0x34 /* (TAG: DW_TAG_variable) */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0xc /* (DW_FORM_flag) */ .uleb128 0x2 /* (DW_AT_location) */ .uleb128 0xa /* (DW_FORM_block1) */ .byte 0x0 .byte 0x0 .byte 0x0 .section .debug_pubnames,"",%progbits .4byte 0x1b /* Length of Public Names Info */ .2byte 0x2 /* DWARF Version */ .4byte .Ldebug_info0 /* Offset of Compilation Unit Info */ .4byte 0xad /* Compilation Unit Length */ .4byte 0x8b /* DIE offset */ .ascii "fp\0" /* external name */ .4byte 0x9c /* DIE offset */ .ascii "c\0" /* external name */ .4byte 0x0 .section .debug_pubtypes,"",%progbits .4byte 0x1d /* Length of Public Type Names Info */ .2byte 0x2 /* DWARF Version */ .4byte .Ldebug_info0 /* Offset of Compilation Unit Info */ .4byte 0xad /* Compilation Unit Length */ .4byte 0x25 /* DIE offset */ .ascii "fp_t\0" /* external name */ .4byte 0x6e /* DIE offset */ .ascii "C\0" /* external name */ .4byte 0x0 .section .debug_str,"MS",%progbits,1 .LASF5: .string "fp_t" .LASF2: .string "GNU C++ 4.4.2 20091222 (Red Hat 4.4.2-20)" .LASF0: .string "__pfn" .LASF4: .string "gdb/testsuite" .LASF3: .string "gdb.dwarf2/member-ptr-forwardref.cc" .LASF1: .string "__delta" .ident "GCC: (GNU) 4.4.2 20091222 (Red Hat 4.4.2-20)" .section .note.GNU-stack,"",%progbits
tactcomplabs/xbgas-binutils-gdb
10,708
gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #if PTRBITS == 64 # define PTRBYTE .8byte #elif PTRBITS == 32 # define PTRBYTE .4byte #else # error "Unsupported pointer size" #endif .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte PTRBITS / 8 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lline1_begin /* DW_AT_stmt_list */ PTRBYTE func_start /* DW_AT_low_pc */ PTRBYTE func_end /* DW_AT_high_pc */ .ascii "main.c\0" /* DW_AT_name */ .ascii "GNU C 4.5.0\0" /* DW_AT_producer must be >= 4.5 */ .byte 2 /* DW_AT_language (DW_LANG_C) */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .ascii "func\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ PTRBYTE func_start /* DW_AT_low_pc */ PTRBYTE func_end /* DW_AT_high_pc */ /* GDB `has_loclist' detection of -O2 -g code needs to see a DW_AT_location location list. There may exist -O2 -g CUs still not needing/using any such location list - exactly like this CU. Make one up. */ .uleb128 0x7 /* (DIE (0x42) DW_TAG_formal_parameter) */ .ascii "param\0" /* DW_AT_name */ .4byte .Ltype_int - .Lcu1_begin /* DW_AT_type */ .4byte loclist /* DW_AT_location */ .uleb128 4 /* Abbrev: DW_TAG_inlined_subroutine */ .ascii "inlined\0" /* DW_AT_name */ PTRBYTE func0 /* DW_AT_low_pc */ PTRBYTE func1 /* DW_AT_high_pc */ .byte 3 /* DW_AT_inline (DW_INL_declared_inlined) */ .byte 1 /* DW_AT_call_file */ .byte 8 /* DW_AT_call_line */ .uleb128 4 /* Abbrev: DW_TAG_inlined_subroutine */ .ascii "inlined2\0" /* DW_AT_name */ PTRBYTE func2 /* DW_AT_low_pc */ PTRBYTE func3 /* DW_AT_high_pc */ .byte 3 /* DW_AT_inline (DW_INL_declared_inlined) */ .byte 1 /* DW_AT_call_file */ .byte 11 /* DW_AT_call_line */ #ifdef INLINED .uleb128 4 /* Abbrev: DW_TAG_inlined_subroutine */ .ascii "otherinline\0" /* DW_AT_name */ PTRBYTE func3 /* DW_AT_low_pc */ PTRBYTE func_end /* DW_AT_high_pc */ .byte 3 /* DW_AT_inline (DW_INL_declared_inlined) */ .byte 1 /* DW_AT_call_file */ .byte 9 /* DW_AT_call_line */ #endif #ifdef LEXICAL .uleb128 5 /* Abbrev: DW_TAG_lexical_block */ PTRBYTE func3 /* DW_AT_low_pc */ PTRBYTE func_end /* DW_AT_high_pc */ /* GDB would otherwise ignore the DW_TAG_lexical_block. */ .uleb128 6 /* Abbrev: DW_TAG_variable */ .ascii "lexicalvar\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 0 /* End of children of DW_TAG_lexical_block */ #endif .byte 0 /* End of children of DW_TAG_subprogram */ /* Simulate `fund' is also named `func' so that the function name matches and fund's SAL is not discarded in expand_line_sal_maybe. */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .ascii "func\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ PTRBYTE fund_start /* DW_AT_low_pc */ PTRBYTE fund_end /* DW_AT_high_pc */ .byte 0 /* End of children of DW_TAG_subprogram */ .Ltype_int: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .byte 0 /* End of children of CU */ .Lcu1_end: .section .debug_loc loclist: /* Reset the location list base address first. */ PTRBYTE -1, 0 PTRBYTE func_start, func_end .2byte 2f-1f 1: .byte 0x50 /* DW_OP_reg0 */ 2: /* Location list end. */ .4byte 0, 0 /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 1 /* has_children */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 4 /* Abbrev code */ .uleb128 0x1d /* DW_TAG_inlined_subroutine */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x20 /* DW_AT_inline */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x58 /* DW_AT_call_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x59 /* DW_AT_call_line */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 5 /* Abbrev code */ .uleb128 0x0b /* DW_TAG_lexical_block */ .byte 1 /* has_children */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 6 /* Abbrev code */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 0x7 /* (abbrev code) */ .uleb128 0x5 /* (TAG: DW_TAG_formal_parameter) */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x02 /* (DW_AT_location) */ .uleb128 0x06 /* (DW_FORM_data4) */ .byte 0x0 .byte 0x0 .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ /* Line table */ .section .debug_line .Lline1_begin: .4byte .Lline1_end - .Lline1_start /* Initial length */ .Lline1_start: .2byte 2 /* Version */ .4byte .Lline1_lines - .Lline1_hdr /* header_length */ .Lline1_hdr: .byte 1 /* Minimum insn length */ .byte 1 /* default_is_stmt */ .byte 1 /* line_base */ .byte 1 /* line_range */ .byte 0x10 /* opcode_base */ /* Standard lengths */ .byte 0 .byte 1 .byte 1 .byte 1 .byte 1 .byte 0 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 0 /* Include directories */ .byte 0 /* File names */ .ascii "main.c\0" .uleb128 0 .uleb128 0 .uleb128 0 .ascii "other.c\0" .uleb128 0 .uleb128 0 .uleb128 0 .byte 0 .Lline1_lines: .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 PTRBYTE func_start .byte 3 /* DW_LNS_advance_line */ .sleb128 4 /* ... to 5 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 PTRBYTE func0 .byte 4 /* DW_LNS_set_file */ .uleb128 2 .byte 3 /* DW_LNS_advance_line */ .sleb128 -4 /* ... to 1 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 PTRBYTE func1 .byte 4 /* DW_LNS_set_file */ .uleb128 1 .byte 3 /* DW_LNS_advance_line */ .sleb128 8 /* ... to 9 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 PTRBYTE func2 .byte 4 /* DW_LNS_set_file */ .uleb128 2 .byte 3 /* DW_LNS_advance_line */ .sleb128 -8 /* ... to 1 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 PTRBYTE func3 .byte 4 /* DW_LNS_set_file */ .uleb128 1 .byte 3 /* DW_LNS_advance_line */ .sleb128 8 /* ... to 9 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 PTRBYTE func_end /* Equivalent copy but renamed s/func/fund/. */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 PTRBYTE fund_start .byte 3 /* DW_LNS_advance_line */ .sleb128 -4 /* ... to 5 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 PTRBYTE fund0 .byte 4 /* DW_LNS_set_file */ .uleb128 2 .byte 3 /* DW_LNS_advance_line */ .sleb128 -4 /* ... to 1 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 PTRBYTE fund1 .byte 4 /* DW_LNS_set_file */ .uleb128 1 .byte 3 /* DW_LNS_advance_line */ .sleb128 8 /* ... to 9 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 PTRBYTE fund2 .byte 4 /* DW_LNS_set_file */ .uleb128 2 .byte 3 /* DW_LNS_advance_line */ .sleb128 -8 /* ... to 1 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 PTRBYTE fund3 .byte 4 /* DW_LNS_set_file */ .uleb128 1 .byte 3 /* DW_LNS_advance_line */ .sleb128 8 /* ... to 9 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 PTRBYTE fund_end /* Line numbering end. */ .byte 0 /* DW_LNE_end_of_sequence */ .uleb128 1 .byte 1 .Lline1_end:
tactcomplabs/xbgas-binutils-gdb
3,514
gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S
/* Copyright 2010-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Compiled from: MODULE m; TYPE t = PROCEDURE (t); VAR v: t; BEGIN END m. But "v" has been removed afterwards. */ .data v: .long 0 .section .debug_info d: .4byte .Ldebug_info_end - 1f /* Length of Compilation Unit Info */ 1: .2byte 0x3 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ dieb: .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */ .4byte .LASF0 /* DW_AT_producer */ .byte 0xa /* DW_AT_language = DW_LANG_Modula2 */ .4byte .LASF1 /* DW_AT_name: "2.mod" */ .4byte .LASF2 /* DW_AT_comp_dir: "" */ die210: .uleb128 0x5 /* (DIE (0x210) DW_TAG_subroutine_type) */ die215: .uleb128 0x6 /* (DIE (0x215) DW_TAG_formal_parameter) */ .4byte die21b-d /* DW_AT_type */ .byte 0x0 /* end of children of DIE 0x210 */ die21b: .uleb128 0x7 /* (DIE (0x21b) DW_TAG_pointer_type) */ .byte 0x4 /* DW_AT_byte_size */ .4byte die210-d /* DW_AT_type */ die221: .uleb128 0x8 /* (DIE (0x221) DW_TAG_variable) */ .ascii "v\0" /* DW_AT_name */ .4byte die21b-d /* DW_AT_type */ .byte 2f-1f /* DW_AT_location */ 1: .byte 0x3 /* DW_OP_addr */ .4byte v 2: .byte 0x0 /* end of children of DIE 0xb */ .Ldebug_info_end: .section .debug_abbrev .Ldebug_abbrev0: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0xe /* (DW_FORM_strp) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0xe /* (DW_FORM_strp) */ .uleb128 0x1b /* (DW_AT_comp_dir) */ .uleb128 0xe /* (DW_FORM_strp) */ .byte 0x0 .byte 0x0 .uleb128 0x5 /* (abbrev code) */ .uleb128 0x15 /* (TAG: DW_TAG_subroutine_type) */ .byte 0x1 /* DW_children_yes */ .byte 0x0 .byte 0x0 .uleb128 0x6 /* (abbrev code) */ .uleb128 0x5 /* (TAG: DW_TAG_formal_parameter) */ .byte 0x0 /* DW_children_no */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0x0 .byte 0x0 .uleb128 0x7 /* (abbrev code) */ .uleb128 0xf /* (TAG: DW_TAG_pointer_type) */ .byte 0x0 /* DW_children_no */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0x0 .byte 0x0 .uleb128 0x8 /* (abbrev code) */ .uleb128 0x34 /* (TAG: DW_TAG_variable) */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x2 /* (DW_AT_location) */ .uleb128 0xa /* (DW_FORM_block1) */ .byte 0x0 .byte 0x0 .byte 0x0 .section .debug_str .LASF1: .string "2.mod" .LASF0: .string "GNU Modula-2 0.78 (20100402) grafted onto GCC 4.1.2" .LASF2: .string ""
tactcomplabs/xbgas-binutils-gdb
3,246
gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2004-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define CONCAT1(a, b) CONCAT2(a, b) #define CONCAT2(a, b) a ## b #ifdef SYMBOL_PREFIX # define SYMBOL(str) CONCAT1(SYMBOL_PREFIX, str) #else # define SYMBOL(str) str #endif .text .Lbegin_text1: .globl SYMBOL(main) .type SYMBOL(main), %function SYMBOL(main): .Lbegin_main: .int 0 .Lend_main: .size SYMBOL(main), .-SYMBOL(main) .globl func2 .type func2, %function func2: .int 0 .size func2, .-func2 .Lend_text1: /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lend_text1 /* DW_AT_high_pc */ .4byte .Lbegin_text1 /* DW_AT_low_pc */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ /* main */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .ascii "main\0" /* DW_AT_name */ .4byte .Ldebug_ranges /* DW_AT_ranges */ .byte 0 /* End of children of CU */ .Lcu1_end: /* DW_AT_ranges. */ .section .debug_ranges .Ldebug_ranges: .4byte .Lbegin_main .4byte .Lend_main - 1 /* Make it slightly more interesting to set pending_addrmap_interesting. */ .4byte .Lend_main - 1 .4byte .Lend_main .4byte 0 .4byte 0 /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0 /* has_children */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x55 /* DW_AT_ranges */ .uleb128 0x6 /* DW_FORM_data4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */
tactcomplabs/xbgas-binutils-gdb
9,022
gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.S
/* Copyright 2013-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* The FDE entry for "stop_frame" in the .debug_frame section has been hand modified to mark a set of registers as undefined. Otherwise this file is as generated by gcc 4.7.2 for x86_64. */ .file "dw2-reg-undefined.c" .text .Ltext0: .globl stop_frame .type stop_frame, @function stop_frame: .LFB0: .file 1 "dw2-reg-undefined.c" .loc 1 19 0 pushq %rbp .LCFI0: movq %rsp, %rbp .LCFI1: .loc 1 22 0 popq %rbp .LCFI2: ret .LFE0: .size stop_frame, .-stop_frame .globl first_frame .type first_frame, @function first_frame: .LFB1: .loc 1 26 0 pushq %rbp .LCFI3: movq %rsp, %rbp .LCFI4: .loc 1 27 0 movl $0, %eax call stop_frame .loc 1 28 0 popq %rbp .LCFI5: ret .LFE1: .size first_frame, .-first_frame .globl main .type main, @function main: .LFB2: .loc 1 32 0 pushq %rbp .LCFI6: movq %rsp, %rbp .LCFI7: .loc 1 33 0 movl $0, %eax call first_frame .loc 1 35 0 movl $0, %eax .loc 1 36 0 popq %rbp .LCFI8: ret .LFE2: .size main, .-main .section .debug_frame,"",@progbits .Lframe0: .long .LECIE0-.LSCIE0 .LSCIE0: .long 0xffffffff .byte 0x1 .string "" .uleb128 0x1 .sleb128 -8 .byte 0x10 .byte 0xc .uleb128 0x7 .uleb128 0x8 .byte 0x90 .uleb128 0x1 .align 8 .LECIE0: /* This FDE entry, for stop_frame was modified to mark registers 0 -> 6 as being undefined. */ .LSFDE0: .long .LEFDE0-.LASFDE0 .LASFDE0: .long .Lframe0 .quad .LFB0 .quad .LFE0-.LFB0 /* START OF NEW CONTENT. */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x0 /* ULEB128 register */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x1 /* ULEB128 register */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x2 /* ULEB128 register */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x3 /* ULEB128 register */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x4 /* ULEB128 register */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x5 /* ULEB128 register */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x6 /* ULEB128 register */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x7 /* ULEB128 register */ /* END OF NEW CONTENT. */ .byte 0x4 .long .LCFI0-.LFB0 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI1-.LCFI0 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI2-.LCFI1 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE0: .LSFDE2: .long .LEFDE2-.LASFDE2 .LASFDE2: .long .Lframe0 .quad .LFB1 .quad .LFE1-.LFB1 .byte 0x4 .long .LCFI3-.LFB1 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI4-.LCFI3 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI5-.LCFI4 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE2: .LSFDE4: .long .LEFDE4-.LASFDE4 .LASFDE4: .long .Lframe0 .quad .LFB2 .quad .LFE2-.LFB2 .byte 0x4 .long .LCFI6-.LFB2 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI7-.LCFI6 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI8-.LCFI7 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE4: .section .eh_frame,"a",@progbits .Lframe1: .long .LECIE1-.LSCIE1 .LSCIE1: .long 0 .byte 0x1 .string "zR" .uleb128 0x1 .sleb128 -8 .byte 0x10 .uleb128 0x1 .byte 0x3 .byte 0xc .uleb128 0x7 .uleb128 0x8 .byte 0x90 .uleb128 0x1 .align 8 .LECIE1: .LSFDE7: .long .LEFDE7-.LASFDE7 .LASFDE7: .long .LASFDE7-.Lframe1 .long .LFB0 .long .LFE0-.LFB0 .uleb128 0 .byte 0x4 .long .LCFI0-.LFB0 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI1-.LCFI0 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI2-.LCFI1 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE7: .LSFDE9: .long .LEFDE9-.LASFDE9 .LASFDE9: .long .LASFDE9-.Lframe1 .long .LFB1 .long .LFE1-.LFB1 .uleb128 0 .byte 0x4 .long .LCFI3-.LFB1 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI4-.LCFI3 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI5-.LCFI4 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE9: .LSFDE11: .long .LEFDE11-.LASFDE11 .LASFDE11: .long .LASFDE11-.Lframe1 .long .LFB2 .long .LFE2-.LFB2 .uleb128 0 .byte 0x4 .long .LCFI6-.LFB2 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI7-.LCFI6 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI8-.LCFI7 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE11: .text .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0x8c .value 0x2 .long .Ldebug_abbrev0 .byte 0x8 .uleb128 0x1 .long .LASF2 .byte 0x1 .long .LASF3 .long .LASF4 .quad .Ltext0 .quad .Letext0 .long .Ldebug_line0 .uleb128 0x2 .byte 0x1 .long .LASF0 .byte 0x1 .byte 0x12 .quad .LFB0 .quad .LFE0 .long .LLST0 .byte 0x1 .uleb128 0x3 .byte 0x1 .long .LASF1 .byte 0x1 .byte 0x19 .quad .LFB1 .quad .LFE1 .long .LLST1 .byte 0x1 .uleb128 0x4 .byte 0x1 .long .LASF5 .byte 0x1 .byte 0x1f .long 0x88 .quad .LFB2 .quad .LFE2 .long .LLST2 .byte 0x1 .uleb128 0x5 .byte 0x4 .byte 0x5 .string "int" .byte 0 .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 .uleb128 0x11 .byte 0x1 .uleb128 0x25 .uleb128 0xe .uleb128 0x13 .uleb128 0xb .uleb128 0x3 .uleb128 0xe .uleb128 0x1b .uleb128 0xe .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x10 .uleb128 0x6 .byte 0 .byte 0 .uleb128 0x2 .uleb128 0x2e .byte 0 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x6 .uleb128 0x2117 .uleb128 0xc .byte 0 .byte 0 .uleb128 0x3 .uleb128 0x2e .byte 0 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x6 .uleb128 0x2116 .uleb128 0xc .byte 0 .byte 0 .uleb128 0x4 .uleb128 0x2e .byte 0 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x6 .uleb128 0x2116 .uleb128 0xc .byte 0 .byte 0 .uleb128 0x5 .uleb128 0x24 .byte 0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0x8 .byte 0 .byte 0 .byte 0 .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .quad .LFB0-.Ltext0 .quad .LCFI0-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad .LCFI0-.Ltext0 .quad .LCFI1-.Ltext0 .value 0x2 .byte 0x77 .sleb128 16 .quad .LCFI1-.Ltext0 .quad .LCFI2-.Ltext0 .value 0x2 .byte 0x76 .sleb128 16 .quad .LCFI2-.Ltext0 .quad .LFE0-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad 0 .quad 0 .LLST1: .quad .LFB1-.Ltext0 .quad .LCFI3-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad .LCFI3-.Ltext0 .quad .LCFI4-.Ltext0 .value 0x2 .byte 0x77 .sleb128 16 .quad .LCFI4-.Ltext0 .quad .LCFI5-.Ltext0 .value 0x2 .byte 0x76 .sleb128 16 .quad .LCFI5-.Ltext0 .quad .LFE1-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad 0 .quad 0 .LLST2: .quad .LFB2-.Ltext0 .quad .LCFI6-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad .LCFI6-.Ltext0 .quad .LCFI7-.Ltext0 .value 0x2 .byte 0x77 .sleb128 16 .quad .LCFI7-.Ltext0 .quad .LCFI8-.Ltext0 .value 0x2 .byte 0x76 .sleb128 16 .quad .LCFI8-.Ltext0 .quad .LFE2-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad 0 .quad 0 .section .debug_aranges,"",@progbits .long 0x2c .value 0x2 .long .Ldebug_info0 .byte 0x8 .byte 0 .value 0 .value 0 .quad .Ltext0 .quad .Letext0-.Ltext0 .quad 0 .quad 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF0: .string "stop_frame" .LASF3: .string "dw2-reg-undefined.c" .LASF2: .string "GNU C 4.7.2" .LASF1: .string "first_frame" .LASF5: .string "main" .LASF4: .string "/home/username/src/gdb/testsuite/gdb.dwarf2" .ident "GCC: (GNU) 4.7.2" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
24,419
gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2012-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Test the behaviour of gdb in the following situation, the dwarf debug information describes a parameter as being in a register but a more recent (inner) frame marks the register as being undefined. This can arrise if the dwarf producer has the location of a parameter in a callee clobbered register at the time of a call. Older versions of gcc used to do this, newer versions seem to avoid this issue. Though it could be argued that such dwarf is incorrect, we would still like gdb to behave in a user friendly, and helpful way when presented with such dwarf. */ /* There are 4 test cases in this assembler file. In each case function main calls each test function in turn, each test case then calls the breakpt function. We don't actually pass any parameters around, we don't need to, instead the dwarf for each test function declares that the function has some parameters, and tells us which registers these parameters are in. The breakpt function marks some of these registers as undefined. The main function helpfully places some marker values into all the registers that are used as parameters so we can see if they ever get printed. We use gdb to break in the breakpt function for each of the 4 test cases, and then backtrace through the test function back to main. In each case some or all of the parameters to the test function should be marked as optimized out, due to the breakpt function effectively clobbering them. The dwarf register numbering is different to the gdb register number. In some of the tests we rely on gdb behaviour of being able to specify a struct using a single register location, the structure will then "flow" into the next gdb register. The initial register is specified using a dwarf register number, but the "next" register will depend on gdb register ordering. Exposing this internal gdb register numbering is really a gdb bug, the functionality for selecting the "next" register should be moved into target dependent code (such as AVR). Right now we work around this bug in this test; if the bug is ever fixed this test is going to need some tweaking. The breakpt function always marks rcx, rsi, and rdi as undefined. register | dwarf | gdb | | name | reg # | reg # | breakpt | ----------|-------|-------|---------| rdx | 1 | 3 | | rcx | 2 | 2 | undef | rbx | 3 | 1 | | rsi | 4 | 4 | undef | rdi | 5 | 5 | undef | We declare the test parameters to be in the register rdx, rcx, rbx, rsi, and rdi. Of these, rdx and rbx are not traditionally used for parameter passing, but that really doesn't matter for this test. int_param_single_reg_loc: Passes 8-byte integer parameters in 8-byte registers using DW_OP_regn style location information. The parameters are placed as follows, operand0 (rcx), operand1 (rbx), operand2 (rsi). We expect operand0 and operand2 to be marked as optimised out, but operand1 to be valid. struct_param_single_reg_loc: Passes 16-byte structures in two 8-byte registers using dwarf DW_OP_regn location information to describe a single register, gdb will assume that the structure flows into the next sequential register. The parameters are placed as follows, operand0 (rbx/rcx), operand1 (rcx/rdx), and operand2 (rsi/rdi). The reuse of rcx between operand0 and operand1 is intentional. struct_param_two_reg_pieces: Passes 16-byte structure in two 8-byte registers using dwarf DW_OP_piece based location information to describe both registers. The parameters are placed as follows, operand0 (rdx/rcx), operand1 (rcx/rbx), and operand2 (rsi/rdi). The reuse of rcx between operand0 and operand1 is intentional. int_param_two_reg_pieces: Passes 8-byte integer values in two 8-byte registers with 4-bytes being placed in each register, using dwarf DW_OP_piece based location information to describe how the parameters are split up.The parameters are placed as follows, operand0 (rdx/rcx), operand1 (rcx/rbx), and operand2 (rsi/rdi). The reuse of rcx between operand0 and operand1 is intentional. */ .text .Ltext0: /* main */ .globl main .type main, @function main: .Ltext1: sub $0x8,%rsp .Ltext2: movq $0xdeadbe00deadbe01, %rbx movq $0xdeadbe02deadbe03, %rcx movq $0xdeadbe04deadbe05, %rdx movq $0xdeadbe06deadbe07, %rsi movq $0xdeadbe08deadbe09, %rdi callq int_param_single_reg_loc nop callq struct_param_single_reg_loc nop callq struct_param_two_reg_pieces nop callq int_param_two_reg_pieces nop add $0x8,%rsp retq .Ltext3: .size main, .-main /* breakpt */ .globl breakpt .type breakpt, @function breakpt: .Ltext4: sub $0x8,%rsp add $0x8, %rsp retq .Ltext5a: .size breakpt, .-breakpt /* int_param_single_reg_loc */ .globl int_param_single_reg_loc .type int_param_single_reg_loc, @function int_param_single_reg_loc: .Ltext5b: sub $0x8,%rsp .Ltext6: nop callq breakpt nop add $0x8,%rsp retq .Ltext7: .size int_param_single_reg_loc, .-int_param_single_reg_loc /* struct_param_single_reg_loc */ .globl struct_param_single_reg_loc .type struct_param_single_reg_loc, @function struct_param_single_reg_loc: .Ltext8: sub $0x8,%rsp .Ltext9: nop callq breakpt nop add $0x8,%rsp retq .Ltext10: .size struct_param_single_reg_loc, .-struct_param_single_reg_loc /* struct_param_two_reg_pieces */ .globl struct_param_two_reg_pieces .type struct_param_two_reg_pieces, @function struct_param_two_reg_pieces: .Ltext11: sub $0x8,%rsp .Ltext12: nop callq breakpt nop add $0x8,%rsp retq .Ltext13: .size struct_param_two_reg_pieces, .-struct_param_two_reg_pieces /* int_param_two_reg_pieces */ .globl int_param_two_reg_pieces .type int_param_two_reg_pieces, @function int_param_two_reg_pieces: .Ltext14: sub $0x8,%rsp .Ltext15: nop callq breakpt nop add $0x8,%rsp retq .Ltext16: .size int_param_two_reg_pieces, .-int_param_two_reg_pieces .Letext0: /*******************************************************/ .section .debug_frame,"",@progbits /* CIE */ .Lframe0: .long .LECIE0-.LSCIE0 /* length */ .LSCIE0: .long 0xffffffff /* CIE_id */ .byte 0x1 /* version */ .string "" /* augmentation */ .uleb128 0x1 /* code alignment */ .sleb128 -8 /* data alignment */ .byte 0x10 /* R/A column */ /* Initial instructions */ .byte 0xc /* DW_CFA_def_cfa */ .uleb128 0x7 /* reg# */ .uleb128 0x8 /* offset */ .byte 0x90 /* DW_CFA_offset (r16) */ .uleb128 0x1 /* offset */ .align 8 .LECIE0: /* FDE : breakpt */ .LSFDE0: .long .LEFDE0-.LASFDE0 /* length */ .LASFDE0: .long .Lframe0 /* CIE reference */ .quad .Ltext4 /* start */ .quad .Ltext5a-.Ltext4 /* length */ /* Instructions */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x2 /* reg# */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x4 /* reg# */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x5 /* reg# */ .align 8 .LEFDE0: /* FDE : int_param_single_reg_loc */ .LSFDE2: .long .LEFDE2-.LASFDE2 /* length */ .LASFDE2: .long .Lframe0 /* CIE reference */ .quad .Ltext5b /* start */ .quad .Ltext7-.Ltext5b /* length */ /* Instructions */ .byte 0x4 .long .Ltext6-.Ltext5b .byte 0xe .uleb128 0x10 .align 8 .LEFDE2: /* FDE : struct_param_single_reg_loc */ .LSFDE3: .long .LEFDE3-.LASFDE3 /* length */ .LASFDE3: .long .Lframe0 /* CIE reference */ .quad .Ltext8 /* start */ .quad .Ltext10-.Ltext8 /* length */ /* Instructions */ .byte 0x4 .long .Ltext9-.Ltext8 .byte 0xe .uleb128 0x10 .align 8 .LEFDE3: /* FDE : struct_param_two_reg_pieces */ .LSFDE4: .long .LEFDE4-.LASFDE4 /* length */ .LASFDE4: .long .Lframe0 /* CIE reference */ .quad .Ltext11 /* start */ .quad .Ltext13-.Ltext11 /* length */ /* Instructions */ .byte 0x4 .long .Ltext12-.Ltext11 .byte 0xe .uleb128 0x10 .align 8 .LEFDE4: /* FDE : int_param_two_reg_pieces */ .LSFDE5: .long .LEFDE5-.LASFDE5 /* length */ .LASFDE5: .long .Lframe0 /* CIE reference */ .quad .Ltext14 /* start */ .quad .Ltext16-.Ltext14 /* length */ /* Instructions */ .byte 0x4 .long .Ltext15-.Ltext14 .byte 0xe .uleb128 0x10 .align 8 .LEFDE5: /* FDE : main */ .LSFDE9: .long .LEFDE9-.LASFDE9 /* length */ .LASFDE9: .long .Lframe0 /* CIE reference */ .quad .Ltext1 /* start */ .quad .Ltext3-.Ltext1 /* length */ /* Instructions */ .byte 0x4 .long .Ltext2-.Ltext1 .byte 0xe .uleb128 0x10 .align 8 .LEFDE9: /*******************************************************/ .section .debug_info,"",@progbits .Ldebug_info0: .long .Ldebug_info_end - .Ldebug_info_start /* Length */ .Ldebug_info_start: .value 0x2 /* DWARF version number. */ .long .Ldebug_abbrev0 /* Offset into .debug_abbrev */ .byte 0x8 /* Pointer size */ .LDI0: .uleb128 0x1 /* DW_TAG_compile_unit */ .string "GNU C 4.2.1" /* DW_AT_producer */ .byte 0x1 /* DW_AT_language */ .quad .Ltext0 /* DW_AT_low_pc */ .quad .Letext0 /* DW_AT_high_pc */ .LDI1: .uleb128 0x2 /* DW_TAG_subprogram */ .byte 0x1 /* DW_AT_external */ .string "breakpt" /* DW_AT_name */ .byte 0x1 /* DW_AT_prototyped */ .quad .Ltext4 /* DW_AT_low_pc */ .quad .Ltext5a /* DW_AT_high_pc */ .LDI2: .uleb128 0x5 /* DW_TAG_base_type */ .byte 0x8 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding (DW_ATE_signed) */ .string "long int" /* DW_AT_name */ .LDI3: .uleb128 0x7 /* DW_TAG_structure_type */ .string "big" /* DW_AT_name */ .byte 0x10 /* DW_AT_byte_size */ .long .LDI6 - .Ldebug_info0 /* DW_AT_sibling */ .LDI4: .uleb128 0x8 /* DW_TAG_member */ .string "a" /* DW_AT_name */ .long .LDI2 - .Ldebug_info0 /* DW_AT_type */ .byte 0x2 /* DW_AT_data_member_location : length */ .byte 0x23 /* DW_OP_plus_uconst */ .uleb128 0x0 /* + 0 */ .LDI5: .uleb128 0x8 /* DW_TAG_member */ .string "b" /* DW_AT_name */ .long .LDI2 - .Ldebug_info0 /* DW_AT_type */ .byte 0x2 /* DW_AT_data_member_location : length */ .byte 0x23 /* DW_OP_plus_uconst */ .uleb128 0x8 /* + 8 */ .byte 0x0 .LDI6: .uleb128 0x6 /* DW_TAG_subprogram */ .byte 0x1 /* DW_AT_external */ .string "main" /* DW_AT_name */ .long .LDI2 - .Ldebug_info0 /* DW_AT_type */ .quad .Ltext1 /* DW_AT_low_pc */ .quad .Ltext3 /* DW_AT_high_pc */ .LDI7: .uleb128 0x3 /* DW_TAG_subprogram */ .byte 0x1 /* DW_AT_external */ .string "int_param_single_reg_loc" /* DW_AT_name */ .byte 0x1 /* DW_AT_prototyped */ .quad .Ltext5b /* DW_AT_low_pc */ .quad .Ltext7 /* DW_AT_high_pc */ .long .LDI11 - .Ldebug_info0 /* DW_AT_sibling */ .LDI8: .uleb128 0x4 /* DW_TAG_formal_parameter */ .string "operand0" /* DW_AT_name */ .long .LDI2 - .Ldebug_info0 /* DW_AT_type */ .byte 1 /* DW_AT_location : length */ .byte 0x52 /* DW_OP_reg2 */ .LDI9: .uleb128 0x4 /* DW_TAG_formal_parameter */ .string "operand1" /* DW_AT_name */ .long .LDI2 - .Ldebug_info0 /* DW_AT_type */ .byte 1 /* DW_AT_location : length */ .byte 0x53 /* DW_OP_reg3 */ .LDI10: .uleb128 0x4 /* DW_TAG_formal_parameter */ .string "operand2" /* DW_AT_name */ .long .LDI2 - .Ldebug_info0 /* DW_AT_type */ .byte 1 /* DW_AT_location : length */ .byte 0x54 /* DW_OP_reg4 */ .byte 0x0 .LDI11: .uleb128 0x3 /* DW_TAG_subprogram */ .byte 0x1 /* DW_AT_external */ .string "struct_param_single_reg_loc" /* DW_AT_name */ .byte 0x1 /* DW_AT_prototyped */ .quad .Ltext8 /* DW_AT_low_pc */ .quad .Ltext10 /* DW_AT_high_pc */ .long .LDI15 - .Ldebug_info0 /* DW_AT_sibling */ .LDI12: .uleb128 0x4 /* DW_TAG_formal_parameter */ .string "operand0" /* DW_AT_name */ .long .LDI3 - .Ldebug_info0 /* DW_AT_type */ .byte 1 /* DW_AT_location : length */ .byte 0x53 /* DW_OP_reg3 */ .LDI13: .uleb128 0x4 /* DW_TAG_formal_parameter */ .string "operand1" /* DW_AT_name */ .long .LDI3 - .Ldebug_info0 /* DW_AT_type */ .byte 1 /* DW_AT_location : length */ .byte 0x52 /* DW_OP_reg2 */ .LDI14: .uleb128 0x4 /* DW_TAG_formal_parameter */ .string "operand2" /* DW_AT_name */ .long .LDI3 - .Ldebug_info0 /* DW_AT_type */ .byte 1 /* DW_AT_location : length */ .byte 0x54 /* DW_OP_reg4 */ .byte 0x0 .LDI15: .uleb128 0x3 /* DW_TAG_subprogram */ .byte 0x1 /* DW_AT_external */ .string "struct_param_two_reg_pieces" /* DW_AT_name */ .byte 0x1 /* DW_AT_prototyped */ .quad .Ltext11 /* DW_AT_low_pc */ .quad .Ltext13 /* DW_AT_high_pc */ .long .LDI19 - .Ldebug_info0 /* DW_AT_sibling */ .LDI16: .uleb128 0x4 /* DW_TAG_formal_parameter */ .string "operand0" /* DW_AT_name */ .long .LDI3 - .Ldebug_info0 /* DW_AT_type */ .byte 6 /* DW_AT_location : length */ .byte 0x51 /* DW_OP_reg1 */ .byte 0x93 /* DW_OP_piece */ .uleb128 0x8 /* 8 bytes */ .byte 0x52 /* DW_OP_reg2 */ .byte 0x93 /* DW_OP_piece */ .uleb128 0x8 /* 8 bytes */ .LDI17: .uleb128 0x4 /* DW_TAG_formal_parameter */ .string "operand1" /* DW_AT_name */ .long .LDI3 - .Ldebug_info0 /* DW_AT_type */ .byte 6 /* DW_AT_location : length */ .byte 0x52 /* DW_OP_reg2 */ .byte 0x93 /* DW_OP_piece */ .uleb128 0x8 /* 8 bytes */ .byte 0x53 /* DW_OP_reg3 */ .byte 0x93 /* DW_OP_piece */ .uleb128 0x8 /* 8 bytes */ .LDI18: .uleb128 0x4 /* DW_TAG_formal_parameter */ .string "operand2" /* DW_AT_name */ .long .LDI3 - .Ldebug_info0 /* DW_AT_type */ .byte 6 /* DW_AT_location : length */ .byte 0x54 /* DW_OP_reg4 */ .byte 0x93 /* DW_OP_piece */ .uleb128 0x8 /* 8 bytes */ .byte 0x55 /* DW_OP_reg5 */ .byte 0x93 /* DW_OP_piece */ .uleb128 0x8 /* 8 bytes */ .byte 0x0 .LDI19: .uleb128 0x3 /* DW_TAG_subprogram */ .byte 0x1 /* DW_AT_external */ .string "int_param_two_reg_pieces" /* DW_AT_name */ .byte 0x1 /* DW_AT_prototyped */ .quad .Ltext14 /* DW_AT_low_pc */ .quad .Ltext16 /* DW_AT_high_pc */ .long .LDIE0 - .Ldebug_info0 /* DW_AT_sibling */ .LDI20: .uleb128 0x4 /* DW_TAG_formal_parameter */ .string "operand0" /* DW_AT_name */ .long .LDI2 - .Ldebug_info0 /* DW_AT_type */ .byte 6 /* DW_AT_location : length */ .byte 0x51 /* DW_OP_reg1 */ .byte 0x93 /* DW_OP_piece */ .uleb128 0x4 /* 4 bytes */ .byte 0x52 /* DW_OP_reg2 */ .byte 0x93 /* DW_OP_piece */ .uleb128 0x4 /* 4 bytes */ .LDI21: .uleb128 0x4 /* DW_TAG_formal_parameter */ .string "operand1" /* DW_AT_name */ .long .LDI2 - .Ldebug_info0 /* DW_AT_type */ .byte 6 /* DW_AT_location : length */ .byte 0x52 /* DW_OP_reg2 */ .byte 0x93 /* DW_OP_piece */ .uleb128 0x4 /* 4 bytes */ .byte 0x53 /* DW_OP_reg3 */ .byte 0x93 /* DW_OP_piece */ .uleb128 0x4 /* 4 bytes */ .LDI22: .uleb128 0x4 /* DW_TAG_formal_parameter */ .string "operand2" /* DW_AT_name */ .long .LDI2 - .Ldebug_info0 /* DW_AT_type */ .byte 6 /* DW_AT_location : length */ .byte 0x54 /* DW_OP_reg4 */ .byte 0x93 /* DW_OP_piece */ .uleb128 0x4 /* 4 bytes */ .byte 0x55 /* DW_OP_reg5 */ .byte 0x93 /* DW_OP_piece */ .uleb128 0x4 /* 4 bytes */ .byte 0x0 .LDIE0: .byte 0x0 .Ldebug_info_end: /*******************************************************/ .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 /* abbrev code */ .uleb128 0x11 /* TAG: DW_TAG_compile_unit */ .byte 0x1 /* DW_CHILDREN_yes */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 .byte 0x0 .uleb128 0x2 /* abbrev code */ .uleb128 0x2e /* TAG: DW_TAG_subprogram */ .byte 0x0 /* DW_CHILDREN_no */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x27 /* DW_AT_prototyped */ .uleb128 0xc /* DW_FORM_flag*/ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 .byte 0x0 .uleb128 0x3 /* abbrev code */ .uleb128 0x2e /* TAG: DW_TAG_subprogram */ .byte 0x1 /* DW_CHILDREN_yes */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x27 /* DW_AT_prototyped */ .uleb128 0xc /* DW_FORM_flag*/ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x1 /* DW_AT_sibling */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 .byte 0x0 .uleb128 0x4 /* abbrev code */ .uleb128 0x5 /* TAG: DW_TAG_formal_parameter */ .byte 0x0 /* DW_CHILDREN_no */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x2 /* DW_AT_location */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 .byte 0x0 .uleb128 0x5 /* abbrev code */ .uleb128 0x24 /* TAG: DW_TAG_base_type */ .byte 0x0 /* DW_CHILDREN_no */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .byte 0x0 .byte 0x0 .uleb128 0x6 /* abbrev code */ .uleb128 0x2e /* TAG: DW_TAG_subprogram */ .byte 0x0 /* DW_CHILDREN_no */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 .byte 0x0 .uleb128 0x7 /* abbrev code */ .uleb128 0x13 /* DW_TAG_structure_type */ .byte 0x1 /* DW_CHILDREN_yes */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x1 /* DW_AT_sibling */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 .byte 0x0 .uleb128 0x8 /* abbrev code */ .uleb128 0xd /* DW_TAG_member */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x38 /* DW_AT_data_member_location */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 .byte 0x0 .byte 0x0
tactcomplabs/xbgas-binutils-gdb
2,575
gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S
/* Copyright 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .text pc_start: .4byte 0 pc_end: .section .debug_info d: .4byte .Ldebug_info_end - 1f /* Length of Compilation Unit Info */ 1: .2byte 0x3 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ dieb: .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */ .ascii "GCC\0" /* DW_AT_producer */ .byte 0x2 /* DW_AT_language = DW_LANG_C */ .ascii "1.c\0" /* DW_AT_name */ .uleb128 0x2 /* (DIE (0xd3) DW_TAG_subprogram) */ .byte 0x1 /* DW_AT_external */ .ascii "realrange\0" /* DW_AT_name */ .4byte pc_start /* DW_AT_low_pc */ .4byte pc_end /* DW_AT_high_pc */ .byte 0x1 /* DW_AT_prototyped */ .uleb128 0x2 /* (DIE (0xd3) DW_TAG_subprogram) */ .byte 0x1 /* DW_AT_external */ .ascii "emptyrange\0" /* DW_AT_name */ .4byte pc_start /* DW_AT_low_pc */ .4byte pc_start /* DW_AT_high_pc */ .byte 0x1 /* DW_AT_prototyped */ .byte 0x0 /* end of children of DIE 0xb */ .Ldebug_info_end: .section .debug_abbrev .Ldebug_abbrev0: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .byte 0x0 .byte 0x0 .uleb128 0x2 /* (abbrev code) */ .uleb128 0x2e /* (DW_TAG_subprogram) */ .byte 0x0 /* DW_children_no */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0xc /* (DW_FORM_flag) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x27 /* (DW_AT_prototyped) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0x0 .byte 0x0 .byte 0x0
tactcomplabs/xbgas-binutils-gdb
4,226
gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #if PTRBITS == 64 # define PTRBYTE .8byte #elif PTRBITS == 32 # define PTRBYTE .4byte #else # error "Unsupported pointer size" #endif .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte PTRBITS / 8 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 8 /* DW_AT_language (DW_LANG_Fortran90) */ PTRBYTE cu_text_start /* DW_AT_low_pc */ PTRBYTE cu_text_end /* DW_AT_high_pc */ .uleb128 3 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .ascii "FUNC_lang\0" /* DW_AT_name */ PTRBYTE FUNC_lang_start /* DW_AT_low_pc */ PTRBYTE FUNC_lang_end /* DW_AT_high_pc */ .byte 1 /* DW_AT_prototyped */ .4byte .Ltype - .Lcu1_begin /* DW_AT_type */ .Ltype: .uleb128 0x5 /* Abbrev: DW_TAG_base_type */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding */ .ascii "foo\0" /* DW_AT_name */ .byte 0 /* End of children of CU */ .Lcu1_end: /* The .debug_names-based index support depends on .debug_aranges generated by GCC. (.gdb_index includes a gdb-generated map instead.) */ .section .debug_aranges,"",@progbits .4byte .Laranges_end - .Laranges_start // Length of Address Ranges Info .Laranges_start: .2byte 0x2 // DWARF Version .4byte .Lcu1_begin // .Ldebug_info0 - Offset of Compilation Unit Info .byte PTRBITS / 8 // Size of Address .byte 0 // Size of Segment Descriptor .2byte 0 // Pad to 16 byte boundary .2byte 0 PTRBYTE cu_text_start // Address PTRBYTE 0x1000 // cu_text_end - cu_text_start // Length PTRBYTE 0 PTRBYTE 0 .Laranges_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0 /* has_children */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x27 /* DW_AT_prototyped */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 0x5 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0x0 /* DW_children_no */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */
tactcomplabs/xbgas-binutils-gdb
5,649
gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-world-dbg.S
/* Copyright 2014-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .section .debug_info .4byte .Ledebug_info0 - .Lsdebug_info0 /* Length of Compilation Unit Info */ .Lsdebug_info0: .2byte 0x2 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */ .ascii "GNU C 4.7.4 20140206 for GNAT Pro 7.3.0w (20140206)\0" .byte 0x1 /* DW_AT_language */ .ascii "dw2-abs-hi-pc-world.c\0" /* DW_AT_name */ .ascii "/tmp\0" /* DW_AT_comp_dir */ .4byte WORLD_START /* DW_AT_low_pc */ .4byte WORLD_END /* DW_AT_high_pc */ .4byte .Ldebug_line0 /* DW_AT_stmt_list */ .uleb128 0x2 /* (DIE (0x2d) DW_TAG_subprogram) */ .byte 0x1 /* DW_AT_external */ .ascii "world\0" .byte 0x1 /* DW_AT_decl_file (world.c) */ .byte 0x13 /* DW_AT_decl_line */ .byte 0x1 /* DW_AT_prototyped */ .4byte WORLD_START /* DW_AT_low_pc */ .4byte WORLD_END /* DW_AT_high_pc */ .byte 0 /* end of children of DIE 0xb */ .Ledebug_info0: .section .debug_abbrev .Ldebug_abbrev0: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x1b /* (DW_AT_comp_dir) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x6 /* (DW_FORM_data4) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x6 /* (DW_FORM_data4) */ .uleb128 0x10 /* (DW_AT_stmt_list) */ .uleb128 0x6 /* (DW_FORM_data4) */ .byte 0 .byte 0 .uleb128 0x2 /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0 /* DW_children_no */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0xc /* (DW_FORM_flag) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x27 /* (DW_AT_prototyped) */ .uleb128 0xc /* (DW_FORM_flag) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x6 /* (DW_FORM_data4) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x6 /* (DW_FORM_data4) */ .byte 0 .byte 0 .byte 0 .section .debug_line .Ldebug_line0: .4byte LELT-LSLT /* Length of Source Line Info */ LSLT: .2byte 0x2 /* DWARF Version */ .4byte LELTP-LASLTP /* Prolog Length */ LASLTP: .byte 0x1 /* Minimum Instruction Length */ .byte 0x1 /* Default is_stmt_start flag */ .byte 0x1 /* Line Base Value (Special Opcodes) */ .byte 0x1 /* Line Range Value (Special Opcodes) */ .byte 0xd /* Special Opcode Base */ .byte 0 /* opcode: 0x1 has 0 args */ .byte 0x1 /* opcode: 0x2 has 1 args */ .byte 0x1 /* opcode: 0x3 has 1 args */ .byte 0x1 /* opcode: 0x4 has 1 args */ .byte 0x1 /* opcode: 0x5 has 1 args */ .byte 0 /* opcode: 0x6 has 0 args */ .byte 0 /* opcode: 0x7 has 0 args */ .byte 0 /* opcode: 0x8 has 0 args */ .byte 0x1 /* opcode: 0x9 has 1 args */ .byte 0 /* opcode: 0xa has 0 args */ .byte 0 /* opcode: 0xb has 0 args */ .byte 0x1 /* opcode: 0xc has 1 args */ .byte 0 /* End directory table */ .ascii "dw2-abs-hi-pc-world.c\0" /* File Entry: 0x1 */ .uleb128 0 .uleb128 0 .uleb128 0 .byte 0 /* End file name table */ LELTP: .byte 0 /* set address to .world_start */ .uleb128 0x5 .byte 0x2 .4byte WORLD_START .byte 0x3 /* DW_LNS_advance_line */ .sleb128 22 /* ... to 23 */ .byte 0x5 /* column 0 */ .uleb128 0 /* 0 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* set address to .world0 */ .uleb128 0x5 .byte 0x2 .4byte .world0 .byte 0x3 /* DW_LNS_advance_line */ .sleb128 1 /* ... to 24 */ .byte 0x5 /* column 0 */ .uleb128 0 /* 0 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* set address to .world1 */ .uleb128 0x5 .byte 0x2 .4byte .world1 .byte 0x3 /* DW_LNS_advance_line */ .sleb128 1 /* ... to 25 */ .byte 0x5 /* column 0 */ .uleb128 0 /* 0 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* set address to .world_end */ .uleb128 0x5 .byte 0x2 .4byte WORLD_END .byte 0 /* end sequence */ .uleb128 0x1 .byte 0x1 LELT:
tactcomplabs/xbgas-binutils-gdb
4,477
gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .text .globl _start _start: .globl inner .type inner, %function inner: .Lbegin_inner: .int 0 .Lend_inner: .size inner, . - inner /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lline1_begin /* DW_AT_stmt_list */ .4byte 0 /* DW_AT_low_pc */ .4byte .Ldebug_ranges /* DW_AT_ranges */ .ascii "inner.c\0" /* DW_AT_name */ .ascii "/tmp\0" /* DW_AT_comp_dir */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ /* inner */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_decl_file */ .byte 1 /* DW_AT_decl_line */ .ascii "inner\0" /* DW_AT_name */ .4byte .Lbegin_inner /* DW_AT_low_pc */ .4byte .Lend_inner /* DW_AT_high_pc */ .byte 0 /* End of children of CU */ .Lcu1_end: /* DW_AT_ranges. */ .section .debug_ranges .Ldebug_ranges: .4byte .Lbegin_inner .4byte .Lend_inner .4byte 0 .4byte 0 /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x55 /* DW_AT_ranges */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x1b /* DW_AT_comp_dir */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0 /* has_children */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3a /* DW_AT_decl_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3b /* DW_AT_decl_line */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ /* Line table */ .section .debug_line .Lline1_begin: .4byte .Lline1_end - .Lline1_start /* Initial length */ .Lline1_start: .2byte 2 /* Version */ .4byte .Lline1_lines - .Lline1_hdr /* header_length */ .Lline1_hdr: .byte 1 /* Minimum insn length */ .byte 1 /* default_is_stmt */ .byte 1 /* line_base */ .byte 1 /* line_range */ .byte 0x10 /* opcode_base */ /* Standard lengths */ .byte 0 .byte 1 .byte 1 .byte 1 .byte 1 .byte 0 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 0 /* Include directories */ .ascii "/tmp\0" .byte 0 /* File names */ .ascii "inner.c\0" .uleb128 1 .uleb128 0 .uleb128 0 .byte 0 .Lline1_lines: .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lbegin_inner .byte 3 /* DW_LNS_advance_line */ .sleb128 1 /* ... to 2 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lend_inner .byte 0 /* DW_LNE_end_of_sequence */ .uleb128 1 .byte 1 .Lline1_end:
tactcomplabs/xbgas-binutils-gdb
9,137
gdb/testsuite/gdb.dwarf2/dw2-intercu.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2004-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Test a minimal file containing DWARF-2 information. This test also serves as a skeleton for other DWARF-2 tests. Most other tests will not be this extensively itemized and commented... */ /* Dummy function to provide debug information for. */ .text .Lbegin_text1: .globl func_cu1 .type func_cu1, %function func_cu1: .Lbegin_func_cu1: .int 0 .Lend_func_cu1: .size func_cu1, .-func_cu1 .Lend_text1: /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lline1_begin /* DW_AT_stmt_list */ .4byte .Lend_text1 /* DW_AT_high_pc */ .4byte .Lbegin_text1 /* DW_AT_low_pc */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ /* func_cu1 */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_decl_file */ .byte 2 /* DW_AT_decl_line */ .ascii "func_cu1\0" /* DW_AT_name */ .4byte .Ltype_int2_in_cu2 /* DW_AT_type */ .4byte .Lbegin_func_cu1 /* DW_AT_low_pc */ .4byte .Lend_func_cu1 /* DW_AT_high_pc */ .byte 1 /* DW_AT_frame_base: length */ .byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */ /* This type is named "int1" and not "int" to ensure it is unique, and thus we can easily ensure we expand this CU and not some other CU with "int". */ .Ltype_int1_in_cu1: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int1\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .Ltype_const_int1_in_cu1: .uleb128 4 /* Abbrev: DW_TAG_const_type */ .4byte .Ltype_int1_in_cu1-.Lcu1_begin /* DW_AT_type */ .uleb128 5 /* Abbrev: DW_TAG_variable */ .ascii "one\0" /* DW_AT_name */ .4byte .Ltype_const_int1_in_cu1-.Lcu1_begin /* DW_AT_type */ .byte 1 /* DW_AT_const_value */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Second compilation unit. */ .Lcu2_begin: /* CU header */ .4byte .Lcu2_end - .Lcu2_start /* Length of Compilation Unit */ .Lcu2_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev2_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ /* This type is named "int2" and not "int" to ensure it is unique, and thus we can easily ensure we expand this CU and not some other CU with "int". */ .Ltype_int2_in_cu2: .uleb128 2 /* Abbrev: DW_TAG_base_type */ .ascii "int2\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .Ltype_const_int2_in_cu2: .uleb128 3 /* Abbrev: DW_TAG_const_type */ .4byte .Ltype_int2_in_cu2-.Lcu2_begin /* DW_AT_type */ .uleb128 4 /* Abbrev: DW_TAG_variable */ .ascii "two\0" /* DW_AT_name */ .4byte .Ltype_const_int2_in_cu2-.Lcu2_begin /* DW_AT_type */ .byte 2 /* DW_AT_const_value */ .byte 0 /* End of children of CU */ .Lcu2_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0 /* has_children */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3a /* DW_AT_decl_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3b /* DW_AT_decl_line */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x10 /* DW_FORM_ref_addr */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x40 /* DW_AT_frame_base */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 4 /* Abbrev code */ .uleb128 0x26 /* DW_TAG_const_type */ .byte 0x0 /* DW_children_no */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 5 /* Abbrev code */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x1c /* DW_AT_const_value */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .Labbrev2_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x26 /* DW_TAG_const_type */ .byte 0x0 /* DW_children_no */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 4 /* Abbrev code */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x1c /* DW_AT_const_value */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ /* Line table */ .section .debug_line .Lline1_begin: .4byte .Lline1_end - .Lline1_start /* Initial length */ .Lline1_start: .2byte 2 /* Version */ .4byte .Lline1_lines - .Lline1_hdr /* header_length */ .Lline1_hdr: .byte 1 /* Minimum insn length */ .byte 1 /* default_is_stmt */ .byte 1 /* line_base */ .byte 1 /* line_range */ .byte 0x10 /* opcode_base */ /* Standard lengths */ .byte 0 .byte 1 .byte 1 .byte 1 .byte 1 .byte 0 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 0 /* Include directories */ .byte 0 /* File names */ .ascii "file1.txt\0" .uleb128 0 .uleb128 0 .uleb128 0 .byte 0 .Lline1_lines: .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lbegin_func_cu1 .byte 3 /* DW_LNS_advance_line */ .sleb128 3 /* ... to 4 */ .byte 1 /* DW_LNS_copy */ .byte 1 /* DW_LNS_copy (second time as an end-of-prologue marker) */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lend_func_cu1 .byte 0 /* DW_LNE_end_of_sequence */ .uleb128 1 .byte 1 .Lline1_end:
tactcomplabs/xbgas-binutils-gdb
5,324
gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S
/* Copyright 2012-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define CONCAT1(a, b) CONCAT2(a, b) #define CONCAT2(a, b) a ## b #ifdef SYMBOL_PREFIX # define SYMBOL(str) CONCAT1(SYMBOL_PREFIX, str) #else # define SYMBOL(str) str #endif .text .globl SYMBOL(main) SYMBOL(main): .4byte 0 .Lmain_end: .section .debug_info debug_start: .4byte debug_end - 1f /* Length of Compilation Unit Info */ 1: .2byte 0x3 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */ .ascii "GNU C 4.4.3\0" /* DW_AT_producer */ .byte 0x4 /* DW_AT_language = DW_LANG_C_plus_plus */ .ascii "1.c\0" /* DW_AT_name */ .4byte SYMBOL(main) /* DW_AT_low_pc */ .4byte .Lmain_end /* DW_AT_high_pc */ .uleb128 0x4 /* (DIE (0x3c) DW_TAG_subprogram) */ .ascii "f\0" /* DW_AT_name */ /* Value 0 would require has_section_at_zero != 0 (which is true, though). */ .4byte SYMBOL(main) /* DW_AT_low_pc */ .4byte .Lmain_end /* DW_AT_high_pc */ .byte 0x1 /* DW_AT_prototyped */ .uleb128 0x5 /* (DIE (0x42) DW_TAG_formal_parameter) */ .4byte .Ltype_sizeof - debug_start /* DW_AT_type */ .ascii "param_sizeof\0" /* DW_AT_name */ .uleb128 0x5 /* (DIE (0x42) DW_TAG_formal_parameter) */ .4byte .Ltype_opnew - debug_start /* DW_AT_type */ .ascii "param_opnew\0" /* DW_AT_name */ .uleb128 0x5 /* (DIE (0x42) DW_TAG_formal_parameter) */ .4byte .Ltype_opdelete - debug_start /* DW_AT_type */ .ascii "param_opdelete\0" /* DW_AT_name */ .uleb128 0x5 /* (DIE (0x42) DW_TAG_formal_parameter) */ .4byte .Ltype_opnewarray - debug_start /* DW_AT_type */ .ascii "param_opnewarray\0" /* DW_AT_name */ .uleb128 0x5 /* (DIE (0x42) DW_TAG_formal_parameter) */ .4byte .Ltype_opdeletearray - debug_start /* DW_AT_type */ .ascii "param_opdeletearray\0" /* DW_AT_name */ .byte 0x0 /* end of children of DIE 0x3c */ .Ltype_sizeof: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "typename<sizeof(int)>\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .Ltype_opnew: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "C::operator new(int)\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .Ltype_opdelete: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "C::operator delete(void *)\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .Ltype_opnewarray: .uleb128 3 /* Abbrev: DW_TAG_base_type */ /* The correct new[] syntax is probably unsupported by GDB. */ .ascii "C::operator new[](int)\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .Ltype_opdeletearray: .uleb128 3 /* Abbrev: DW_TAG_base_type */ /* The correct delete[] syntax is probably unsupported by GDB. */ .ascii "C::operator delete[](void *)\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .byte 0x0 /* end of children of DIE 0xb */ debug_end: .section .debug_abbrev .Ldebug_abbrev0: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .byte 0x0 .byte 0x0 .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 0x4 /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x27 /* (DW_AT_prototyped) */ .uleb128 0xc /* (DW_FORM_flag) */ .byte 0x0 .byte 0x0 .uleb128 0x5 /* (abbrev code) */ .uleb128 0x5 /* (TAG: DW_TAG_formal_parameter) */ .byte 0x0 /* DW_children_no */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .byte 0x0 .byte 0x0 .byte 0x0
tactcomplabs/xbgas-binutils-gdb
1,977
gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S
/* Copyright 2010-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .section .debug_info debug_start: .4byte debug_end - 1f /* Length of Compilation Unit Info */ 1: .2byte 0x3 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */ .ascii "GNU C 4.4.3\0" /* DW_AT_producer */ .byte 0x03 /* DW_AT_language = DW_LANG_Ada83 */ .ascii "1.adb\0" /* DW_AT_name */ .uleb128 0x4 /* DW_TAG_structure_type */ .ascii "t\0" /* DW_AT_name */ .4byte 0xffffffff /* DW_AT_byte_size */ .byte 0x0 /* end of children of CU */ debug_end: .section .debug_abbrev .Ldebug_abbrev0: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .byte 0x0 .byte 0x0 .uleb128 0x4 /* (abbrev code) */ .uleb128 0x13 /* (TAG: DW_TAG_structure_type) */ .byte 0x0 /* DW_children_yes */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x0b /* (DW_AT_byte_size) */ .uleb128 0x6 /* (DW_FORM_data4) */ .byte 0x0 .byte 0x0 .byte 0x0
tactcomplabs/xbgas-binutils-gdb
7,652
gdb/testsuite/gdb.dwarf2/dw2-const.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2010-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Dummy function to provide debug information for. */ .text .Lbegin_text1: .globl func_cu1 .type func_cu1, %function func_cu1: .Lbegin_func_cu1: .int 0 .Lend_func_cu1: .size func_cu1, .-func_cu1 .Lend_text1: /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 8 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lline1_begin /* DW_AT_stmt_list */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ .uleb128 0x8 /* Abbrev: DW_TAG_constant */ .ascii "twelve\0" /* DW_AT_name */ .4byte .Ltype_const-.Lcu1_begin /* DW_AT_type */ .byte 0xc /* DW_AT_const_value */ .Ltype_const: .uleb128 0x9 /* Abbrev: DW_TAG_const_type */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .uleb128 0xa /* Abbrev: DW_TAG_variable */ .ascii "val8\0" /* DW_AT_name */ .4byte .Ltype_const8-.Lcu1_begin /* DW_AT_type */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 0x11 /* DW_OP_consts */ #if 0 /* gas encodes it explicitly. */ .slab128 0xffffffff00000000 #endif #if 0 /* gas encoded it correctly - formed GDB FAILed. */ .sleb128 -4294967296 #endif #if 1 /* Rather encode sleb128 by hand. */ .byte 0x80, 0x80, 0x80, 0x80, 0x70 #endif .byte 0x9f /* DW_OP_stack_value */ 2: .Ltype_const8: .uleb128 0x9 /* Abbrev: DW_TAG_const_type */ .4byte .Ltype_int8-.Lcu1_begin /* DW_AT_type */ /* func_cu1 */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_decl_file */ .byte 2 /* DW_AT_decl_line */ .ascii "func_cu1\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 1 /* DW_AT_frame_base: length */ .byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */ .Ltype_int: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .Ltype_int8: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int8\0" /* DW_AT_name */ .byte 8 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0 /* has_children */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3a /* DW_AT_decl_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3b /* DW_AT_decl_line */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x40 /* DW_AT_frame_base */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 0x8 /* abbrev code */ .uleb128 0x27 /* TAG: DW_TAG_constant */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x1c /* DW_AT_const_value */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 0x9 /* abbrev code */ .uleb128 0x26 /* TAG: DW_TAG_const_type */ .byte 0x0 /* DW_children_no */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 0xa /* abbrev code */ .uleb128 0x34 /* TAG: DW_TAG_variable */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x02 /* DW_AT_location */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ /* Line table */ .section .debug_line .Lline1_begin: .4byte .Lline1_end - .Lline1_start /* Initial length */ .Lline1_start: .2byte 2 /* Version */ .4byte .Lline1_lines - .Lline1_hdr /* header_length */ .Lline1_hdr: .byte 1 /* Minimum insn length */ .byte 1 /* default_is_stmt */ .byte 1 /* line_base */ .byte 1 /* line_range */ .byte 0x10 /* opcode_base */ /* Standard lengths */ .byte 0 .byte 1 .byte 1 .byte 1 .byte 1 .byte 0 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 0 /* Include directories */ .byte 0 /* File names */ .ascii "file1.txt\0" .uleb128 0 .uleb128 0 .uleb128 0 .byte 0 .Lline1_lines: .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lbegin_func_cu1 .byte 3 /* DW_LNS_advance_line */ .sleb128 3 /* ... to 4 */ .byte 1 /* DW_LNS_copy */ .byte 1 /* DW_LNS_copy (second time as an end-of-prologue marker) */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lend_func_cu1 .byte 0 /* DW_LNE_end_of_sequence */ .uleb128 1 .byte 1 .Lline1_end:
tactcomplabs/xbgas-binutils-gdb
12,355
gdb/testsuite/gdb.dwarf2/implptr.S
.file "implptr.c" .text .Ltext0: .p2align 4,,15 .globl foo .type foo, @function foo: .LFB1: .file 1 "gdb.dwarf2/implptr.c" .loc 1 45 0 .cfi_startproc .LVL0: .loc 1 45 0 movl 4(%esp), %eax .LVL1: .LBB6: .LBB7: .loc 1 36 0 addl $1, u .LVL2: .loc 1 38 0 addl $1, u+4 .LVL3: .loc 1 40 0 addl $1, u+8 .LVL4: .LBE7: .LBE6: .LBB8: .LBB9: .loc 1 36 0 addl $1, u+12 .LVL5: .loc 1 38 0 addl $1, u+16 .LVL6: .loc 1 40 0 addl $1, u+20 .LBE9: .LBE8: .loc 1 52 0 leal (%eax,%eax,4), %eax .loc 1 53 0 ret .cfi_endproc .LFE1: .size foo, .-foo .p2align 4,,15 .globl bar .type bar, @function bar: .LFB2: .loc 1 61 0 .cfi_startproc .LVL7: .loc 1 65 0 movl 4(%esp), %eax addl $1, %eax .loc 1 67 0 ret .cfi_endproc .LFE2: .size bar, .-bar .section .text.startup,"ax",@progbits .p2align 4,,15 .globl main .type main, @function main: .LFB3: .loc 1 70 0 .cfi_startproc pushl %ebx .cfi_def_cfa_offset 8 .cfi_offset 3, -8 subl $4, %esp .cfi_def_cfa_offset 12 .loc 1 71 0 movl $5, (%esp) call bar .LVL8: movl $23, (%esp) movl %eax, %ebx call foo .LVL9: .loc 1 72 0 addl $4, %esp .cfi_def_cfa_offset 8 .loc 1 71 0 addl %ebx, %eax .loc 1 72 0 popl %ebx .cfi_def_cfa_offset 4 .cfi_restore 3 ret .cfi_endproc .LFE3: .size main, .-main .comm u,24,4 .text .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0x217 .value 0x4 .long .Ldebug_abbrev0 .byte 0x4 .uleb128 0x1 .long .LASF4 .byte 0x1 .long .LASF5 .long .LASF6 .long .Ldebug_ranges0+0 .long 0 .long .Ldebug_line0 .uleb128 0x2 .string "S" .byte 0x8 .byte 0x1 .byte 0x18 .long 0x44 .uleb128 0x3 .string "x" .byte 0x1 .byte 0x1a .long 0x44 .byte 0 .uleb128 0x3 .string "y" .byte 0x1 .byte 0x1a .long 0x4a .byte 0x4 .byte 0 .uleb128 0x4 .byte 0x4 .long 0x4a .uleb128 0x5 .byte 0x4 .byte 0x5 .string "int" .uleb128 0x6 .long .LASF0 .byte 0x1 .byte 0x37 .long 0x44 .uleb128 0x6 .long .LASF1 .byte 0x1 .byte 0x38 .long 0x67 .uleb128 0x4 .byte 0x4 .long 0x51 .uleb128 0x6 .long .LASF2 .byte 0x1 .byte 0x39 .long 0x78 .uleb128 0x4 .byte 0x4 .long 0x5c .uleb128 0x7 .string "add" .byte 0x1 .byte 0x20 .byte 0x3 .long 0xa6 .uleb128 0x8 .string "a" .byte 0x1 .byte 0x20 .long 0xa6 .uleb128 0x8 .string "b" .byte 0x1 .byte 0x20 .long 0xa6 .uleb128 0x8 .string "c" .byte 0x1 .byte 0x20 .long 0x4a .byte 0 .uleb128 0x4 .byte 0x4 .long 0x25 .uleb128 0x9 .string "foo" .byte 0x1 .byte 0x2c .long 0x4a .long .LFB1 .long .LFE1 .uleb128 0x1 .byte 0x9c .long 0x147 .uleb128 0xa .string "i" .byte 0x1 .byte 0x2c .long 0x4a .long .LLST0 .uleb128 0xb .string "j" .byte 0x1 .byte 0x2e .long 0x4a .long .LLST1 .uleb128 0xb .string "p" .byte 0x1 .byte 0x2f .long 0x147 .long .LLST2 .uleb128 0xc .long 0x7e .long .LBB6 .long .LBE6 .byte 0x1 .byte 0x30 .long 0x11b .uleb128 0xd .long 0x9c .byte 0 .uleb128 0xe .long 0x93 .uleb128 0x6 .byte 0xf2 .long .Ldebug_info0+223 .sleb128 8 .uleb128 0xf .long 0x8a .long .LLST3 .byte 0 .uleb128 0x10 .long 0x7e .long .LBB8 .long .LBE8 .byte 0x1 .byte 0x33 .uleb128 0xd .long 0x9c .byte 0x3 .uleb128 0xe .long 0x93 .uleb128 0x6 .byte 0xf2 .long .Ldebug_info0+223 .sleb128 8 .uleb128 0xf .long 0x8a .long .LLST4 .byte 0 .byte 0 .uleb128 0x11 .long 0x25 .long 0x157 .uleb128 0x12 .long 0x157 .byte 0x1 .byte 0 .uleb128 0x13 .byte 0x4 .byte 0x7 .long .LASF3 .uleb128 0x9 .string "bar" .byte 0x1 .byte 0x3c .long 0x4a .long .LFB2 .long .LFE2 .uleb128 0x1 .byte 0x9c .long 0x1b4 .uleb128 0x14 .string "i" .byte 0x1 .byte 0x3c .long 0x4a .uleb128 0x2 .byte 0x91 .sleb128 0 .uleb128 0x15 .string "j" .byte 0x1 .byte 0x3e .long 0x51 .uleb128 0x6 .byte 0xf2 .long .Ldebug_info0+375 .sleb128 0 .uleb128 0x15 .string "k" .byte 0x1 .byte 0x3f .long 0x5c .uleb128 0x6 .byte 0xf2 .long .Ldebug_info0+387 .sleb128 0 .uleb128 0x15 .string "l" .byte 0x1 .byte 0x40 .long 0x6d .uleb128 0x6 .byte 0xf2 .long .Ldebug_info0+403 .sleb128 0 .byte 0 .uleb128 0x16 .long .LASF7 .byte 0x1 .byte 0x45 .long 0x4a .long .LFB3 .long .LFE3 .uleb128 0x1 .byte 0x9c .long 0x1f2 .uleb128 0x17 .long .LVL8 .long 0x15e .long 0x1e1 .uleb128 0x18 .uleb128 0x2 .byte 0x74 .sleb128 0 .uleb128 0x1 .byte 0x35 .byte 0 .uleb128 0x19 .long .LVL9 .long 0xac .uleb128 0x18 .uleb128 0x2 .byte 0x74 .sleb128 0 .uleb128 0x1 .byte 0x47 .byte 0 .byte 0 .uleb128 0x11 .long 0x4a .long 0x202 .uleb128 0x12 .long 0x157 .byte 0x5 .byte 0 .uleb128 0x1a .string "u" .byte 0x1 .byte 0x1d .long 0x1f2 .uleb128 0x1b .string "u" .byte 0x1 .byte 0x1d .long 0x1f2 .uleb128 0x5 .byte 0x3 .long u .byte 0 .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 .uleb128 0x11 .byte 0x1 .uleb128 0x25 .uleb128 0xe .uleb128 0x13 .uleb128 0xb .uleb128 0x3 .uleb128 0xe .uleb128 0x1b .uleb128 0xe .uleb128 0x55 .uleb128 0x17 .uleb128 0x11 .uleb128 0x1 .uleb128 0x10 .uleb128 0x17 .byte 0 .byte 0 .uleb128 0x2 .uleb128 0x13 .byte 0x1 .uleb128 0x3 .uleb128 0x8 .uleb128 0xb .uleb128 0xb .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x1 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x3 .uleb128 0xd .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x38 .uleb128 0xb .byte 0 .byte 0 .uleb128 0x4 .uleb128 0xf .byte 0 .uleb128 0xb .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x5 .uleb128 0x24 .byte 0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0x8 .byte 0 .byte 0 .uleb128 0x6 .uleb128 0x16 .byte 0 .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x7 .uleb128 0x2e .byte 0x1 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x27 .uleb128 0x19 .uleb128 0x20 .uleb128 0xb .uleb128 0x1 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x8 .uleb128 0x5 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x9 .uleb128 0x2e .byte 0x1 .uleb128 0x3f .uleb128 0x19 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x27 .uleb128 0x19 .uleb128 0x49 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x18 .uleb128 0x2117 .uleb128 0x19 .uleb128 0x1 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0xa .uleb128 0x5 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0x17 .byte 0 .byte 0 .uleb128 0xb .uleb128 0x34 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0x17 .byte 0 .byte 0 .uleb128 0xc .uleb128 0x1d .byte 0x1 .uleb128 0x31 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x58 .uleb128 0xb .uleb128 0x59 .uleb128 0xb .uleb128 0x1 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0xd .uleb128 0x5 .byte 0 .uleb128 0x31 .uleb128 0x13 .uleb128 0x1c .uleb128 0xb .byte 0 .byte 0 .uleb128 0xe .uleb128 0x5 .byte 0 .uleb128 0x31 .uleb128 0x13 .uleb128 0x2 .uleb128 0x18 .byte 0 .byte 0 .uleb128 0xf .uleb128 0x5 .byte 0 .uleb128 0x31 .uleb128 0x13 .uleb128 0x2 .uleb128 0x17 .byte 0 .byte 0 .uleb128 0x10 .uleb128 0x1d .byte 0x1 .uleb128 0x31 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x58 .uleb128 0xb .uleb128 0x59 .uleb128 0xb .byte 0 .byte 0 .uleb128 0x11 .uleb128 0x1 .byte 0x1 .uleb128 0x49 .uleb128 0x13 .uleb128 0x1 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x12 .uleb128 0x21 .byte 0 .uleb128 0x49 .uleb128 0x13 .uleb128 0x2f .uleb128 0xb .byte 0 .byte 0 .uleb128 0x13 .uleb128 0x24 .byte 0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0xe .byte 0 .byte 0 .uleb128 0x14 .uleb128 0x5 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0x18 .byte 0 .byte 0 .uleb128 0x15 .uleb128 0x34 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0x18 .byte 0 .byte 0 .uleb128 0x16 .uleb128 0x2e .byte 0x1 .uleb128 0x3f .uleb128 0x19 .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x18 .uleb128 0x2117 .uleb128 0x19 .uleb128 0x1 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x17 .uleb128 0x4109 .byte 0x1 .uleb128 0x11 .uleb128 0x1 .uleb128 0x31 .uleb128 0x13 .uleb128 0x1 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x18 .uleb128 0x410a .byte 0 .uleb128 0x2 .uleb128 0x18 .uleb128 0x2111 .uleb128 0x18 .byte 0 .byte 0 .uleb128 0x19 .uleb128 0x4109 .byte 0x1 .uleb128 0x11 .uleb128 0x1 .uleb128 0x31 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x1a .uleb128 0x34 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x3f .uleb128 0x19 .uleb128 0x3c .uleb128 0x19 .byte 0 .byte 0 .uleb128 0x1b .uleb128 0x34 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x3f .uleb128 0x19 .uleb128 0x2 .uleb128 0x18 .byte 0 .byte 0 .byte 0 .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .long .LVL0 .long .LVL1 .value 0x2 .byte 0x91 .sleb128 0 .long .LVL1 .long .LFE1 .value 0x6 .byte 0x91 .sleb128 0 .byte 0x6 .byte 0x31 .byte 0x24 .byte 0x9f .long 0 .long 0 .LLST1: .long .LVL1 .long .LVL4 .value 0x2 .byte 0x91 .sleb128 0 .long .LVL4 .long .LFE1 .value 0x6 .byte 0x91 .sleb128 0 .byte 0x6 .byte 0x33 .byte 0x1e .byte 0x9f .long 0 .long 0 .LLST2: .long .LVL1 .long .LVL4 .value 0x20 .byte 0xf2 .long .Ldebug_info0+197 .sleb128 0 .byte 0x93 .uleb128 0x4 .byte 0x91 .sleb128 0 .byte 0x6 .byte 0x32 .byte 0x24 .byte 0x9f .byte 0x93 .uleb128 0x4 .byte 0xf2 .long .Ldebug_info0+210 .sleb128 0 .byte 0x93 .uleb128 0x4 .byte 0x91 .sleb128 0 .byte 0x6 .byte 0x31 .byte 0x24 .byte 0x9f .byte 0x93 .uleb128 0x4 .long .LVL4 .long .LFE1 .value 0x20 .byte 0xf2 .long .Ldebug_info0+210 .sleb128 0 .byte 0x93 .uleb128 0x4 .byte 0x91 .sleb128 0 .byte 0x6 .byte 0x36 .byte 0x1e .byte 0x9f .byte 0x93 .uleb128 0x4 .byte 0xf2 .long .Ldebug_info0+197 .sleb128 0 .byte 0x93 .uleb128 0x4 .byte 0x91 .sleb128 0 .byte 0x6 .byte 0x31 .byte 0x24 .byte 0x9f .byte 0x93 .uleb128 0x4 .long 0 .long 0 .LLST3: .long .LVL1 .long .LVL2 .value 0x6 .byte 0xf2 .long .Ldebug_info0+223 .sleb128 0 .long .LVL2 .long .LVL3 .value 0x2 .byte 0x30 .byte 0x9f .long .LVL3 .long .LFE1 .value 0x6 .byte 0xf2 .long .Ldebug_info0+223 .sleb128 8 .long 0 .long 0 .LLST4: .long .LVL4 .long .LVL5 .value 0x6 .byte 0xf2 .long .Ldebug_info0+223 .sleb128 0 .long .LVL5 .long .LVL6 .value 0x2 .byte 0x30 .byte 0x9f .long .LVL6 .long .LFE1 .value 0x6 .byte 0xf2 .long .Ldebug_info0+223 .sleb128 8 .long 0 .long 0 .section .debug_aranges,"",@progbits .long 0x24 .value 0x2 .long .Ldebug_info0 .byte 0x4 .byte 0 .value 0 .value 0 .long .Ltext0 .long .Letext0-.Ltext0 .long .LFB3 .long .LFE3-.LFB3 .long 0 .long 0 .section .debug_ranges,"",@progbits .Ldebug_ranges0: .long .Ltext0 .long .Letext0 .long .LFB3 .long .LFE3 .long 0 .long 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF5: .string "gdb.dwarf2/implptr.c" .LASF6: .string "" .LASF3: .string "unsigned int" .LASF7: .string "main" .LASF2: .string "intppp" .LASF4: .string "GNU C 4.6.1 20110627 (Red Hat 4.6.1-1)" .LASF0: .string "intp" .LASF1: .string "intpp" .ident "GCC: (GNU) 4.6.1 20110627 (Red Hat 4.6.1-1)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
14,398
gdb/testsuite/gdb.dwarf2/fission-reread.S
/* Copyright 2012-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Testcase to exercise the code path in bug 13961 for Fission. http://gcc.gnu.org/wiki/DebugFission Compiled from: class foo { public: int bar; }; foo baz; int main () { return 0; } And then manually edited to insert the necessary DW_AT_specification entries to trigger the desired code path. There's no real need to make this architecture-specific, so it has been further hand-edited to support that. */ #define CONCAT1(a, b) CONCAT2(a, b) #define CONCAT2(a, b) a ## b #ifdef SYMBOL_PREFIX # define SYMBOL(str) CONCAT1(SYMBOL_PREFIX, str) #else # define SYMBOL(str) str #endif .file "fission-reread.cc" .globl SYMBOL(baz) .data /* Previously this used .bss, but it's not portable. */ .align 4 .type SYMBOL(baz), %object .size SYMBOL(baz), 4 SYMBOL(baz): .zero 4 .text .Ltext0: .globl SYMBOL(main) .type SYMBOL(main), %function SYMBOL(main): .LFB0: .file 1 "fission-reread.cc" .loc 1 11 0 .4byte 0 .LFE0: .size SYMBOL(main), .-SYMBOL(main) .Letext0: .section .debug_types.dwo .Ltu_start_dwo: .4byte .Ltu_end_dwo - .Ltu_start_dwo - 4 /* Length of Compilation Unit Info */ .2byte 0x4 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .byte 0x19 /* Type Signature */ .byte 0x8b .byte 0x7e .byte 0xac .byte 0xce .byte 0xf1 .byte 0x22 .byte 0x90 .4byte .Ltu_class_type - .Ltu_start_dwo /* Offset to Type DIE */ .uleb128 0x1 /* (DIE (0x17) DW_TAG_type_unit) */ .byte 0x4 /* DW_AT_language */ .byte 0x73 /* DW_AT_GNU_odr_signature */ .byte 0xea .byte 0x85 .byte 0x23 .byte 0x75 .byte 0x8a .byte 0x7e .byte 0x87 .4byte .Lskeleton_debug_line0 /* DW_AT_stmt_list */ /* Manually inserted to have a DW_AT_specification refering to something and appearing ahead of it. */ .uleb128 0x8 /* DW_TAG_class_type */ .4byte .Ltu_class_type - .Ltu_start_dwo /* End of manual insertion */ .Ltu_class_type: .uleb128 0x2 /* (DIE (0x25) DW_TAG_class_type) */ .ascii "foo\0" /* DW_AT_name */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x1 /* DW_AT_decl_file (fission-reread.cc) */ .byte 0x1 /* DW_AT_decl_line */ .4byte .Ltu_int - .Ltu_start_dwo /* DW_AT_sibling */ .uleb128 0x3 /* (DIE (0x31) DW_TAG_member) */ .ascii "bar\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_decl_file (fission-reread.cc) */ .byte 0x4 /* DW_AT_decl_line */ .4byte .Ltu_int - .Ltu_start_dwo /* DW_AT_type */ .byte 0 /* DW_AT_data_member_location */ .byte 0x1 /* DW_AT_accessibility */ .byte 0 /* end of children of DIE 0x25 */ .Ltu_int: .uleb128 0x4 /* (DIE (0x3f) DW_TAG_base_type) */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding */ .ascii "int\0" /* DW_AT_name */ .byte 0 /* end of children of DIE 0x17 */ .Ltu_end_dwo: .section .debug_types .Ltu_start: .4byte .Ltu_end - .Ltu_start - 4 /* Length of Type Unit Info */ .2byte 0x4 /* DWARF version number */ .4byte .Lskeleton_debug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .byte 0x19 /* Type Signature */ .byte 0x8b .byte 0x7e .byte 0xac .byte 0xce .byte 0xf1 .byte 0x22 .byte 0x90 .4byte 0 /* Offset to Type DIE */ .uleb128 0x2 /* (DIE (0) DW_TAG_type_unit) */ .ascii "/tmp/src/gdb/testsuite\0" /* DW_AT_comp_dir */ .asciz DWO /* DW_AT_GNU_dwo_name */ .4byte .Ldebug_pubnames0 /* DW_AT_GNU_pubnames */ .4byte .Ldebug_pubtypes0 /* DW_AT_GNU_pubtypes */ .4byte .Ldebug_addr0 /* DW_AT_GNU_addr_base */ .Ltu_end: .section .debug_info.dwo .Lcu_start_dwo: .4byte .Lcu_end_dwo - .Lcu_start_dwo - 4 /* Length of Compilation Unit Info */ .2byte 0x4 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .uleb128 0x5 /* (DIE (0xb) DW_TAG_compile_unit) */ .ascii "GNU C++ 4.6.x-fission\0" /* DW_AT_producer */ .byte 0x4 /* DW_AT_language */ .ascii "gdb.dwarf2/fission-reread.cc\0" /* DW_AT_name */ .ascii "/tmp/src/gdb/testsuite\0" /* DW_AT_comp_dir */ .byte 1 /* DW_AT_GNU_dwo_id */ .byte 2 .byte 3 .byte 4 .byte 5 .byte 6 .byte 7 .byte 8 .Lcu_int: .uleb128 0x4 /* (DIE (0x7f) DW_TAG_base_type) */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding */ .ascii "int\0" /* DW_AT_name */ .uleb128 0x6 /* (DIE (0x86) DW_TAG_subprogram) */ /* DW_AT_external */ .ascii "main\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_decl_file (fission-reread.cc) */ .byte 0xa /* DW_AT_decl_line */ .4byte .Lcu_int - .Lcu_start_dwo /* DW_AT_type */ .uleb128 0 /* DW_AT_low_pc */ .4byte .LFE0-.LFB0 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_AT_frame_base */ .byte 0x9c /* DW_OP_call_frame_cfa */ .uleb128 0x7 /* (DIE (0x9d) DW_TAG_variable) */ .ascii "baz\0" /* DW_AT_name */ .byte 0x1 /* DW_AT_decl_file (fission-reread.cc) */ .byte 0x7 /* DW_AT_decl_line */ .byte 0x19 /* DW_AT_type */ .byte 0x8b .byte 0x7e .byte 0xac .byte 0xce .byte 0xf1 .byte 0x22 .byte 0x90 /* DW_AT_external */ .uleb128 0x2 /* DW_AT_location */ .byte 0xfb /* DW_OP_GNU_addr_index */ .uleb128 0x1 /* (index into .debug_addr) */ .byte 0 /* end of children of DIE 0xb */ .Lcu_end_dwo: .section .debug_info .Lskeleton_debug_info0: .Lcu_start: .4byte .Lcu_end - .Lcu_start - 4 /* Length of Compilation Unit Info */ .2byte 0x4 /* DWARF version number */ .4byte .Lskeleton_debug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .uleb128 0x1 /* (DIE (0) DW_TAG_compile_unit) */ .4byte .Ltext0 /* DW_AT_low_pc */ .4byte .Letext0-.Ltext0 /* DW_AT_high_pc */ .4byte .Ldebug_line0 /* DW_AT_stmt_list */ .ascii "/tmp/src/gdb/testsuite\0" /* DW_AT_comp_dir */ .asciz DWO /* DW_AT_GNU_dwo_name */ .4byte .Ldebug_pubnames0 /* DW_AT_GNU_pubnames */ .4byte .Ldebug_pubtypes0 /* DW_AT_GNU_pubtypes */ .4byte .Ldebug_addr0 /* DW_AT_GNU_addr_base */ .byte 1 /* DW_AT_GNU_dwo_id */ .byte 2 .byte 3 .byte 4 .byte 5 .byte 6 .byte 7 .byte 8 .Lcu_end: .section .debug_abbrev .Lskeleton_debug_abbrev0: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0 /* DW_children_no */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x1 /* (DW_FORM_addr) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x6 /* (DW_FORM_data4) */ .uleb128 0x10 /* (DW_AT_stmt_list) */ .uleb128 0x17 /* (DW_FORM_sec_offset) */ .uleb128 0x1b /* (DW_AT_comp_dir) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x2130 /* (DW_AT_GNU_dwo_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x2134 /* (DW_AT_GNU_pubnames) */ .uleb128 0x17 /* (DW_FORM_sec_offset) */ .uleb128 0x2135 /* (DW_AT_GNU_pubtypes) */ .uleb128 0x17 /* (DW_FORM_sec_offset) */ .uleb128 0x2133 /* (DW_AT_GNU_addr_base) */ .uleb128 0x17 /* (DW_FORM_sec_offset) */ .uleb128 0x2131 /* (DW_AT_GNU_dwo_id) */ .uleb128 0x7 /* (DW_FORM_data8) */ .byte 0 .byte 0 .uleb128 0x2 /* (abbrev code) */ .uleb128 0x41 /* (TAG: DW_TAG_type_unit) */ .byte 0 /* DW_children_no */ .uleb128 0x1b /* (DW_AT_comp_dir) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x2130 /* (DW_AT_GNU_dwo_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x2134 /* (DW_AT_GNU_pubnames) */ .uleb128 0x17 /* (DW_FORM_sec_offset) */ .uleb128 0x2135 /* (DW_AT_GNU_pubtypes) */ .uleb128 0x17 /* (DW_FORM_sec_offset) */ .uleb128 0x2133 /* (DW_AT_GNU_addr_base) */ .uleb128 0x17 /* (DW_FORM_sec_offset) */ .byte 0 .byte 0 .byte 0 /* end of skeleton .debug_abbrev */ .section .debug_abbrev.dwo .Ldebug_abbrev0: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x41 /* (TAG: DW_TAG_type_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x210f /* (DW_AT_GNU_odr_signature) */ .uleb128 0x7 /* (DW_FORM_data8) */ .uleb128 0x10 /* (DW_AT_stmt_list) */ .uleb128 0x17 /* (DW_FORM_sec_offset) */ .byte 0 .byte 0 .uleb128 0x2 /* (abbrev code) */ .uleb128 0x2 /* (TAG: DW_TAG_class_type) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x1 /* (DW_AT_sibling) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .byte 0 .byte 0 .uleb128 0x3 /* (abbrev code) */ .uleb128 0xd /* (TAG: DW_TAG_member) */ .byte 0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x38 /* (DW_AT_data_member_location) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x32 /* (DW_AT_accessibility) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0 .byte 0 .uleb128 0x4 /* (abbrev code) */ .uleb128 0x24 /* (TAG: DW_TAG_base_type) */ .byte 0 /* DW_children_no */ .uleb128 0xb /* (DW_AT_byte_size) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3e /* (DW_AT_encoding) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .byte 0 .byte 0 .uleb128 0x5 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x1b /* (DW_AT_comp_dir) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x2131 /* (DW_AT_GNU_dwo_id) */ .uleb128 0x7 /* (DW_FORM_data8) */ .byte 0 .byte 0 .uleb128 0x6 /* (abbrev code) */ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ .byte 0 /* DW_children_no */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0x19 /* (DW_FORM_flag_present) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x13 /* (DW_FORM_ref4) */ .uleb128 0x11 /* (DW_AT_low_pc) */ .uleb128 0x1f01 /* (DW_FORM_GNU_addr_index) */ .uleb128 0x12 /* (DW_AT_high_pc) */ .uleb128 0x6 /* (DW_FORM_data4) */ .uleb128 0x40 /* (DW_AT_frame_base) */ .uleb128 0x18 /* (DW_FORM_exprloc) */ .byte 0 .byte 0 .uleb128 0x7 /* (abbrev code) */ .uleb128 0x34 /* (TAG: DW_TAG_variable) */ .byte 0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x3a /* (DW_AT_decl_file) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3b /* (DW_AT_decl_line) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x49 /* (DW_AT_type) */ .uleb128 0x20 /* (DW_FORM_ref_sig8) */ .uleb128 0x3f /* (DW_AT_external) */ .uleb128 0x19 /* (DW_FORM_flag_present) */ .uleb128 0x2 /* (DW_AT_location) */ .uleb128 0x18 /* (DW_FORM_exprloc) */ .byte 0 .byte 0 /* Manually inserted. */ .uleb128 0x8 /* abbrev code */ .uleb128 0x2 /* DW_TAG_class_type */ .byte 0x0 /* DW_has_children_no */ .uleb128 0x47 /* DW_AT_specification */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ /* End of manual insertion. */ .byte 0 .section .debug_pubnames .Ldebug_pubnames0: .4byte 0x1f /* Length of Public Names Info */ .2byte 0x2 /* DWARF Version */ .4byte .Lskeleton_debug_info0 /* Offset of Compilation Unit Info */ .4byte 0xb0 /* Compilation Unit Length */ .4byte 0x86 /* DIE offset */ .ascii "main\0" /* external name */ .4byte 0x9d /* DIE offset */ .ascii "baz\0" /* external name */ .4byte 0 .section .debug_pubtypes .Ldebug_pubtypes0: .4byte 0x1e /* Length of Public Type Names Info */ .2byte 0x2 /* DWARF Version */ .4byte .Lskeleton_debug_info0 /* Offset of Compilation Unit Info */ .4byte 0xb0 /* Compilation Unit Length */ .4byte 0x7f /* DIE offset */ .ascii "int\0" /* external name */ .4byte 0x25 /* DIE offset */ .ascii "foo\0" /* external name */ .4byte 0 .section .debug_aranges .4byte 0x1c /* Length of Address Ranges Info */ .2byte 0x2 /* DWARF Version */ .4byte .Lskeleton_debug_info0 /* Offset of Compilation Unit Info */ .byte 0x4 /* Size of Address */ .byte 0 /* Size of Segment Descriptor */ .2byte 0 /* Pad to 16 byte boundary */ .2byte 0 .4byte .Ltext0 /* Address */ .4byte .Letext0-.Ltext0 /* Length */ .4byte 0 .4byte 0 .section .debug_line .Ldebug_line0: .section .debug_line.dwo .Lskeleton_debug_line0: .4byte .LELT0-.LSLT0 /* Length of Source Line Info */ .LSLT0: .2byte 0x4 /* DWARF Version */ .4byte .LELTP0-.LASLTP0 /* Prolog Length */ .LASLTP0: .byte 0x1 /* Minimum Instruction Length */ .byte 0x1 /* Maximum Operations Per Instruction */ .byte 0x1 /* Default is_stmt_start flag */ .byte 0xf6 /* Line Base Value (Special Opcodes) */ .byte 0xf5 /* Line Range Value (Special Opcodes) */ .byte 0xa /* Special Opcode Base */ .byte 0 /* opcode: 0x1 has 0 args */ .byte 0x1 /* opcode: 0x2 has 1 args */ .byte 0x1 /* opcode: 0x3 has 1 args */ .byte 0x1 /* opcode: 0x4 has 1 args */ .byte 0x1 /* opcode: 0x5 has 1 args */ .byte 0 /* opcode: 0x6 has 0 args */ .byte 0 /* opcode: 0x7 has 0 args */ .byte 0 /* opcode: 0x8 has 0 args */ .byte 0x1 /* opcode: 0x9 has 1 args */ .byte 0 /* End directory table */ .ascii "fission-reread.cc\0" /* File Entry: 0x1 */ .uleb128 0 .uleb128 0 .uleb128 0 .byte 0 /* End file name table */ .LELTP0: .LELT0: .section .debug_addr .Ldebug_addr0: .4byte .LFB0 /* DW_AT_low_pc */ .4byte SYMBOL(baz) /* DW_AT_location */
tactcomplabs/xbgas-binutils-gdb
24,358
gdb/testsuite/gdb.dwarf2/dw2-common-block.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2012-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This was made from ../gdb.fortran/common-block.f90 using gfortran -dA -S -g and then hand-editing the assembly a bit to introduce DW_AT_data_member_location. Search for "#if 0" in this file to see the important edits. */ .file "common-block.f90" .text .Ltext0: .globl in_ .type in_, @function in_: .LFB0: .file 1 "../gdb.fortran/common-block.f90" # ../gdb.fortran/common-block.f90:21 .loc 1 21 0 .cfi_startproc # basic block 2 pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 subq $16, %rsp # ../gdb.fortran/common-block.f90:34 .loc 1 34 0 movl $5, -4(%rbp) # ../gdb.fortran/common-block.f90:35 .loc 1 35 0 movl $55, -8(%rbp) # ../gdb.fortran/common-block.f90:21 .loc 1 21 0 movl fo_o_(%rip), %eax # ../gdb.fortran/common-block.f90:37 .loc 1 37 0 cmpl $11, %eax jne .L2 # basic block 3 # ../gdb.fortran/common-block.f90:21 .loc 1 21 0 discriminator 2 movss fo_o_+4(%rip), %xmm0 # ../gdb.fortran/common-block.f90:37 .loc 1 37 0 discriminator 2 ucomiss .LC0(%rip), %xmm0 jp .L2 # basic block 4 ucomiss .LC0(%rip), %xmm0 jne .L2 # basic block 5 # ../gdb.fortran/common-block.f90:21 .loc 1 21 0 discriminator 3 movsd fo_o_+8(%rip), %xmm0 # ../gdb.fortran/common-block.f90:37 .loc 1 37 0 discriminator 3 ucomisd .LC1(%rip), %xmm0 jp .L2 # basic block 6 ucomisd .LC1(%rip), %xmm0 je .L8 .L2: # basic block 7 # ../gdb.fortran/common-block.f90:37 .loc 1 37 0 is_stmt 0 discriminator 1 movl $0, %eax call _gfortran_abort .L8: # basic block 8 # ../gdb.fortran/common-block.f90:21 .loc 1 21 0 is_stmt 1 movl foo_(%rip), %eax # ../gdb.fortran/common-block.f90:38 .loc 1 38 0 cmpl $1, %eax jne .L5 # basic block 9 # ../gdb.fortran/common-block.f90:21 .loc 1 21 0 discriminator 2 movss foo_+4(%rip), %xmm0 # ../gdb.fortran/common-block.f90:38 .loc 1 38 0 discriminator 2 ucomiss .LC2(%rip), %xmm0 jp .L5 # basic block 10 ucomiss .LC2(%rip), %xmm0 jne .L5 # basic block 11 # ../gdb.fortran/common-block.f90:21 .loc 1 21 0 discriminator 3 movsd foo_+8(%rip), %xmm0 # ../gdb.fortran/common-block.f90:38 .loc 1 38 0 discriminator 3 ucomisd .LC3(%rip), %xmm0 jp .L5 # basic block 12 ucomisd .LC3(%rip), %xmm0 je .L9 .L5: # basic block 13 # ../gdb.fortran/common-block.f90:38 .loc 1 38 0 is_stmt 0 discriminator 1 movl $0, %eax call _gfortran_abort .L9: # basic block 14 # ../gdb.fortran/common-block.f90:40 .loc 1 40 0 is_stmt 1 movl $0, fo_o_(%rip) # ../gdb.fortran/common-block.f90:42 .loc 1 42 0 leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size in_, .-in_ .type MAIN__, @function MAIN__: .LFB1: # ../gdb.fortran/common-block.f90:44 .loc 1 44 0 .cfi_startproc # basic block 2 pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 # ../gdb.fortran/common-block.f90:57 .loc 1 57 0 movl $1, foo_(%rip) # ../gdb.fortran/common-block.f90:58 .loc 1 58 0 movl $0x40000000, %eax movl %eax, foo_+4(%rip) # ../gdb.fortran/common-block.f90:59 .loc 1 59 0 movabsq $4613937818241073152, %rax movq %rax, foo_+8(%rip) # ../gdb.fortran/common-block.f90:61 .loc 1 61 0 movl $11, fo_o_(%rip) # ../gdb.fortran/common-block.f90:62 .loc 1 62 0 movl $0x41b00000, %eax movl %eax, fo_o_+4(%rip) # ../gdb.fortran/common-block.f90:63 .loc 1 63 0 movabsq $4629841154425225216, %rax movq %rax, fo_o_+8(%rip) # ../gdb.fortran/common-block.f90:65 .loc 1 65 0 movl $0, %eax call in_ # ../gdb.fortran/common-block.f90:67 .loc 1 67 0 popq %rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE1: .size MAIN__, .-MAIN__ .globl main .type main, @function main: .LFB2: # ../gdb.fortran/common-block.f90:67 .loc 1 67 0 .cfi_startproc # basic block 2 pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 subq $16, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) # ../gdb.fortran/common-block.f90:67 .loc 1 67 0 movq -16(%rbp), %rdx movl -4(%rbp), %eax movq %rdx, %rsi movl %eax, %edi call _gfortran_set_args movl $options.0.1570, %esi movl $8, %edi call _gfortran_set_options call MAIN__ movl $0, %eax leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE2: .size main, .-main .comm foo_,16,16 .comm fo_o_,16,16 .section .rodata .align 32 .type options.0.1570, @object .size options.0.1570, 32 options.0.1570: .long 68 .long 511 .long 0 .long 0 .long 0 .long 1 .long 0 .long 1 .align 4 .LC0: .long 1102053376 .align 8 .LC1: .long 0 .long 1077968896 .align 4 .LC2: .long 1073741824 .align 8 .LC3: .long 0 .long 1074266112 .text .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: #if 0 .long 0x247 # Length of Compilation Unit Info #else .long .Ldebuginfo_end - .Ldebug_info1 # Length of Compilation Unit Info .Ldebug_info1: #endif .value 0x4 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x8 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .long .LASF13 # DW_AT_producer: "GNU Fortran 4.6.3 plus hand hackery" .byte 0xe # DW_AT_language .byte 0x2 # DW_AT_identifier_case .long .LASF14 # DW_AT_name: "../gdb.fortran/common-block.f90" .long .LASF15 # DW_AT_comp_dir: "gdb.dwarf2" .quad .Ltext0 # DW_AT_low_pc .quad .Letext0 # DW_AT_high_pc .long .Ldebug_line0 # DW_AT_stmt_list .uleb128 0x2 # (DIE (0x2e) DW_TAG_subprogram) # DW_AT_external .ascii "in\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x15 # DW_AT_decl_line .ascii "in_\0" # DW_AT_linkage_name .quad .LFB0 # DW_AT_low_pc .quad .LFE0 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_tail_call_sites .long 0x11a # DW_AT_sibling .uleb128 0x3 # (DIE (0x4e) DW_TAG_common_block) .long .LASF0 # DW_AT_name: "fo_o" .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x1f # DW_AT_decl_line .long .LASF8 # DW_AT_linkage_name: "fo_o_" .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad fo_o_ .long 0xa5 # DW_AT_sibling #if 0 .uleb128 0x4 # (DIE (0x67) DW_TAG_variable) #else .uleb128 0x10 # (DIE (0x1bb) DW_TAG_variable) #endif .ascii "ix\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x17 # DW_AT_decl_line .long 0x11a # DW_AT_type # DW_AT_external #if 0 .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad fo_o_ #else .uleb128 0x9 # DW_AT_data_member_location # (size chosen to avoid renumbering all DIEs) .byte 0x8 # DW_OP_const1u .byte 0x0 .byte 0x96 # DW_OP_nop .byte 0x96 # DW_OP_nop .byte 0x96 # DW_OP_nop .byte 0x96 # DW_OP_nop .byte 0x96 # DW_OP_nop .byte 0x96 # DW_OP_nop .byte 0x96 # DW_OP_nop #endif .uleb128 0x4 # (DIE (0x7b) DW_TAG_variable) .ascii "iy2\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x18 # DW_AT_decl_line .long 0x121 # DW_AT_type # DW_AT_external .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad fo_o_+4 .uleb128 0x4 # (DIE (0x90) DW_TAG_variable) .ascii "iz\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x19 # DW_AT_decl_line .long 0x128 # DW_AT_type # DW_AT_external .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad fo_o_+8 .byte 0 # end of children of DIE 0x4e .uleb128 0x5 # (DIE (0xa5) DW_TAG_common_block) .ascii "foo\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x20 # DW_AT_decl_line .long .LASF16 # DW_AT_linkage_name: "foo_" .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad foo_ .long 0xfe # DW_AT_sibling .uleb128 0x6 # (DIE (0xbe) DW_TAG_variable) .long .LASF1 # DW_AT_name: "ix_x" .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x1b # DW_AT_decl_line .long 0x11a # DW_AT_type # DW_AT_external .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad foo_ .uleb128 0x6 # (DIE (0xd3) DW_TAG_variable) .long .LASF2 # DW_AT_name: "iy_y" .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x1c # DW_AT_decl_line .long 0x121 # DW_AT_type # DW_AT_external .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad foo_+4 .uleb128 0x6 # (DIE (0xe8) DW_TAG_variable) .long .LASF3 # DW_AT_name: "iz_z2" .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x1d # DW_AT_decl_line .long 0x128 # DW_AT_type # DW_AT_external .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad foo_+8 .byte 0 # end of children of DIE 0xa5 .uleb128 0x7 # (DIE (0xfe) DW_TAG_variable) .ascii "iy\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x22 # DW_AT_decl_line .long 0x11a # DW_AT_type .uleb128 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 -20 .uleb128 0x8 # (DIE (0x10b) DW_TAG_variable) .long .LASF4 # DW_AT_name: "iz_z" .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x23 # DW_AT_decl_line .long 0x11a # DW_AT_type .uleb128 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 -24 .byte 0 # end of children of DIE 0x2e .uleb128 0x9 # (DIE (0x11a) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .long .LASF5 # DW_AT_name: "integer(kind=4)" .uleb128 0x9 # (DIE (0x121) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x4 # DW_AT_encoding .long .LASF6 # DW_AT_name: "real(kind=4)" .uleb128 0x9 # (DIE (0x128) DW_TAG_base_type) .byte 0x8 # DW_AT_byte_size .byte 0x4 # DW_AT_encoding .long .LASF7 # DW_AT_name: "real(kind=8)" .uleb128 0xa # (DIE (0x12f) DW_TAG_subprogram) .long .LASF17 # DW_AT_name: "common_test" .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x2c # DW_AT_decl_line .quad .LFB1 # DW_AT_low_pc .quad .LFE1 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_tail_call_sites # DW_AT_main_subprogram .byte 0x2 # DW_AT_calling_convention .long 0x1f9 # DW_AT_sibling .uleb128 0x3 # (DIE (0x14d) DW_TAG_common_block) .long .LASF0 # DW_AT_name: "fo_o" .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x1f # DW_AT_decl_line .long .LASF8 # DW_AT_linkage_name: "fo_o_" .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad fo_o_ .long 0x1a6 # DW_AT_sibling .uleb128 0x6 # (DIE (0x166) DW_TAG_variable) .long .LASF1 # DW_AT_name: "ix_x" .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x32 # DW_AT_decl_line .long 0x11a # DW_AT_type # DW_AT_external .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad fo_o_ .uleb128 0x6 # (DIE (0x17b) DW_TAG_variable) .long .LASF2 # DW_AT_name: "iy_y" .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x33 # DW_AT_decl_line .long 0x121 # DW_AT_type # DW_AT_external .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad fo_o_+4 .uleb128 0x6 # (DIE (0x190) DW_TAG_variable) .long .LASF4 # DW_AT_name: "iz_z" .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x34 # DW_AT_decl_line .long 0x128 # DW_AT_type # DW_AT_external .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad fo_o_+8 .byte 0 # end of children of DIE 0x14d .uleb128 0xb # (DIE (0x1a6) DW_TAG_common_block) .ascii "foo\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x20 # DW_AT_decl_line .long .LASF16 # DW_AT_linkage_name: "foo_" .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad foo_ #if 0 .uleb128 0x4 # (DIE (0x1bb) DW_TAG_variable) #else .uleb128 0x10 # (DIE (0x1bb) DW_TAG_variable) #endif .ascii "ix\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x2e # DW_AT_decl_line .long 0x11a # DW_AT_type # DW_AT_external #if 0 .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad foo_ #else .uleb128 0x9 # DW_AT_data_member_location # (size chosen to avoid renumbering all DIEs) .byte 0x8 # DW_OP_const1u .byte 0x0 .byte 0x96 # DW_OP_nop .byte 0x96 # DW_OP_nop .byte 0x96 # DW_OP_nop .byte 0x96 # DW_OP_nop .byte 0x96 # DW_OP_nop .byte 0x96 # DW_OP_nop .byte 0x96 # DW_OP_nop #endif .uleb128 0x4 # (DIE (0x1cf) DW_TAG_variable) .ascii "iy\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x2f # DW_AT_decl_line .long 0x121 # DW_AT_type # DW_AT_external .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad foo_+4 .uleb128 0x4 # (DIE (0x1e3) DW_TAG_variable) .ascii "iz\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x30 # DW_AT_decl_line .long 0x128 # DW_AT_type # DW_AT_external .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad foo_+8 .byte 0 # end of children of DIE 0x1a6 .byte 0 # end of children of DIE 0x12f .uleb128 0xc # (DIE (0x1f9) DW_TAG_subprogram) # DW_AT_external .long .LASF9 # DW_AT_name: "main" .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x43 # DW_AT_decl_line .long 0x11a # DW_AT_type .quad .LFB2 # DW_AT_low_pc .quad .LFE2 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_tail_call_sites .long 0x238 # DW_AT_sibling .uleb128 0xd # (DIE (0x21a) DW_TAG_formal_parameter) .long .LASF10 # DW_AT_name: "argc" .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x43 # DW_AT_decl_line .long 0x238 # DW_AT_type .uleb128 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 -20 .uleb128 0xd # (DIE (0x228) DW_TAG_formal_parameter) .long .LASF11 # DW_AT_name: "argv" .byte 0x1 # DW_AT_decl_file (../gdb.fortran/common-block.f90) .byte 0x43 # DW_AT_decl_line .long 0x23d # DW_AT_type .uleb128 0x3 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 -32 .byte 0x6 # DW_OP_deref .byte 0 # end of children of DIE 0x1f9 .uleb128 0xe # (DIE (0x238) DW_TAG_const_type) .long 0x11a # DW_AT_type .uleb128 0xf # (DIE (0x23d) DW_TAG_pointer_type) .byte 0x8 # DW_AT_byte_size .long 0x243 # DW_AT_type .uleb128 0x9 # (DIE (0x243) DW_TAG_base_type) .byte 0x1 # DW_AT_byte_size .byte 0x8 # DW_AT_encoding .long .LASF12 # DW_AT_name: "character(kind=1)" .byte 0 # end of children of DIE 0xb #if 0 #else .Ldebuginfo_end: #endif .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x42 # (DW_AT_identifier_case) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x17 # (DW_FORM_sec_offset) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x6e # (DW_AT_linkage_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2116 # (DW_AT_GNU_all_tail_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x3 # (abbrev code) .uleb128 0x1a # (TAG: DW_TAG_common_block) .byte 0x1 # DW_children_yes .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x6e # (DW_AT_linkage_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x4 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 .uleb128 0x5 # (abbrev code) .uleb128 0x1a # (TAG: DW_TAG_common_block) .byte 0x1 # DW_children_yes .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x6e # (DW_AT_linkage_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x6 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 .uleb128 0x7 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 .uleb128 0x8 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 .uleb128 0x9 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .byte 0 .byte 0 .uleb128 0xa # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2116 # (DW_AT_GNU_all_tail_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x6a # (DW_AT_main_subprogram) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x36 # (DW_AT_calling_convention) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0xb # (abbrev code) .uleb128 0x1a # (TAG: DW_TAG_common_block) .byte 0x1 # DW_children_yes .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x6e # (DW_AT_linkage_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 .uleb128 0xc # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2116 # (DW_AT_GNU_all_tail_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0xd # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 .uleb128 0xe # (abbrev code) .uleb128 0x26 # (TAG: DW_TAG_const_type) .byte 0 # DW_children_no .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0xf # (abbrev code) .uleb128 0xf # (TAG: DW_TAG_pointer_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 #if 0 #else .uleb128 0x10 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x38 # (DW_AT_data_member_location) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 #endif .byte 0 .section .debug_aranges,"",@progbits .long 0x2c # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .byte 0x8 # Size of Address .byte 0 # Size of Segment Descriptor .value 0 # Pad to 16 byte boundary .value 0 .quad .Ltext0 # Address .quad .Letext0-.Ltext0 # Length .quad 0 .quad 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF0: .string "fo_o" .LASF8: .string "fo_o_" .LASF3: .string "iz_z2" .LASF1: .string "ix_x" .LASF9: .string "main" .LASF4: .string "iz_z" .LASF13: .string "GNU Fortran 4.6.3 plus hand hackery" .LASF16: .string "foo_" .LASF7: .string "real(kind=8)" .LASF5: .string "integer(kind=4)" .LASF17: .string "common_test" .LASF12: .string "character(kind=1)" .LASF14: .string "../gdb.fortran/common-block.f90" .LASF10: .string "argc" .LASF2: .string "iy_y" .LASF11: .string "argv" .LASF15: .string "gdb.dwarf2" .LASF6: .string "real(kind=4)" .ident "GCC: (GNU) 4.6.3 20120306 (Red Hat 4.6.3-2)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
4,537
gdb/testsuite/gdb.dwarf2/dw2-compressed.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2008-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This tests that gdb can read compressed sections. The contents are the same as dw2-basic.S, but the .debug_abbrev section has been comrpessed using zlib. */ /* Dummy function to provide debug information for. */ .text .globl _start .globl __start _start: __start: .int 0 .Lbegin_text1: .globl func_cu1 .type func_cu1, %function func_cu1: .Lbegin_func_cu1: .int 0 .Lend_func_cu1: .size func_cu1, .-func_cu1 .Lend_text1: /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lline1_begin /* DW_AT_stmt_list */ .4byte .Lend_text1 /* DW_AT_high_pc */ .4byte .Lbegin_text1 /* DW_AT_low_pc */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ /* func_cu1 */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_decl_file */ .byte 2 /* DW_AT_decl_line */ .ascii "func_cu1\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .4byte .Lbegin_func_cu1 /* DW_AT_low_pc */ .4byte .Lend_func_cu1 /* DW_AT_high_pc */ .byte 1 /* DW_AT_frame_base: length */ .byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */ .Ltype_int: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Line table */ .section .debug_line .Lline1_begin: .4byte .Lline1_end - .Lline1_start /* Initial length */ .Lline1_start: .2byte 2 /* Version */ .4byte .Lline1_lines - .Lline1_hdr /* header_length */ .Lline1_hdr: .byte 1 /* Minimum insn length */ .byte 1 /* default_is_stmt */ .byte 1 /* line_base */ .byte 1 /* line_range */ .byte 0x10 /* opcode_base */ /* Standard lengths */ .byte 0 .byte 1 .byte 1 .byte 1 .byte 1 .byte 0 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 0 /* Include directories */ .byte 0 /* File names */ .ascii "file1.txt\0" .uleb128 0 .uleb128 0 .uleb128 0 .byte 0 .Lline1_lines: .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lbegin_func_cu1 .byte 3 /* DW_LNS_advance_line */ .sleb128 3 /* ... to 4 */ .byte 1 /* DW_LNS_copy */ .byte 1 /* DW_LNS_copy (second time as an end-of-prologue marker) */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lend_func_cu1 .byte 0 /* DW_LNE_end_of_sequence */ .uleb128 1 .byte 1 .Lline1_end: /* Abbrev table -- compressed */ .section .zdebug_abbrev .Labbrev1_begin: .ascii "ZLIB" .4byte 0 .2byte 0 .byte 0 .byte 51 .byte 0x78 .byte 0x5e .byte 0x63 .byte 0x14 .byte 0x64 .byte 0x14 .byte 0x60 .byte 0x13 .byte 0x62 .byte 0x14 .byte 0x64 .byte 0x64 .byte 0xe6 .byte 0x50 .byte 0xe5 .byte 0x10 .byte 0xe6 .byte 0x66 .byte 0x60 .byte 0x60 .byte 0xd2 .byte 0x63 .byte 0xb0 .byte 0xe7 .byte 0xb1 .byte 0xe2 .byte 0xb6 .byte 0xe6 .byte 0x66 .byte 0xe6 .byte 0xf0 .byte 0x14 .byte 0x16 .byte 0x64 .byte 0x14 .byte 0x62 .byte 0x74 .byte 0xe0 .byte 0x02 .byte 0x00 .byte 0x25 .byte 0x78 .byte 0x02 .byte 0x81 .byte 0x78 .byte 0x9c .byte 0x63 .byte 0x60 .byte 0x60 .byte 0x56 .byte 0x61 .byte 0x60 .byte 0xe6 .byte 0xe0 .byte 0xe6 .byte 0xb6 .byte 0xe3 .byte 0x66 .byte 0x00 .byte 0x02 .byte 0x00 .byte 0x04 .byte 0x9c .byte 0x00 .byte 0x92
tactcomplabs/xbgas-binutils-gdb
5,227
gdb/testsuite/gdb.dwarf2/dw2-op-call.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2009-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Test DW_OP_call2 and DW_OP_call4, PR gdb/10640. */ .section .data array1: .2byte 1 array2: .2byte 2 array3: .2byte 3 .section .debug_info .Lcu0_begin: /* CU header */ .4byte .Lcu0_end - .Lcu0_start /* Length of Compilation Unit */ .Lcu0_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .ascii "file0.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 2 /* DW_LANG_C (C) */ .byte 0 /* End of children of CU */ .Lcu0_end: .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 2 /* DW_LANG_C (C) */ .L2byte_type: .uleb128 2 /* Abbrev: DW_TAG_base_type */ .ascii "2byte\0" /* DW_AT_name */ .byte 2 /* DW_AT_byte_size */ .byte 7 /* DW_AT_encoding: DW_ATE_unsigned */ .Larray1: .uleb128 3 /* Abbrev: DW_TAG_variable */ .ascii "array1\0" /* DW_AT_name */ .4byte .L2byte_type-.Lcu1_begin /* DW_AT_type */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 3 /* DW_OP_addr */ .4byte array1 /* <addr> */ 2: .uleb128 3 /* Abbrev: DW_TAG_variable */ .ascii "array2\0" /* DW_AT_name */ .4byte .L2byte_type-.Lcu1_begin /* DW_AT_type */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 0x98 /* DW_OP_call2 */ .2byte .Larray1-.Lcu1_begin /* <current CU offset> */ .byte 0x23 /* DW_OP_plus_uconst */ .uleb128 array2-array1 /* <uconst> */ 2: .uleb128 3 /* Abbrev: DW_TAG_variable */ .ascii "array3\0" /* DW_AT_name */ .4byte .L2byte_type-.Lcu1_begin /* DW_AT_type */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 0x99 /* DW_OP_call4 */ .4byte .Larray1-.Lcu1_begin /* <current CU offset> */ .byte 0x23 /* DW_OP_plus_uconst */ .uleb128 array3-array1 /* <uconst> */ 2: .uleb128 3 /* Abbrev: DW_TAG_variable */ .ascii "arraycallnoloc\0" /* DW_AT_name */ .4byte .L2byte_type-.Lcu1_begin /* DW_AT_type */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 0x99 /* DW_OP_call4 */ .4byte .Larraynoloc-.Lcu1_begin /* <current CU offset> */ 2: .Larraynoloc: .uleb128 4 /* Abbrev: DW_TAG_variable-loclist */ .ascii "arraynoloc\0" /* DW_AT_name */ .4byte .L2byte_type-.Lcu1_begin /* DW_AT_type */ .4byte loclist /* DW_AT_location */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Location list. */ .section .debug_loc loclist: /* Location list end. */ .4byte 0, 0 /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x2 /* DW_AT_location */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 4 /* Abbrev code */ .uleb128 0x34 /* DW_TAG_variable-loclist */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x2 /* DW_AT_location */ .uleb128 0x06 /* DW_FORM_data4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */
tactcomplabs/xbgas-binutils-gdb
2,826
gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S
/* Copyright 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .section .debug_info debug_start: .4byte debug_end - 1f /* Length of Compilation Unit Info */ 1: .2byte 0x4 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ .uleb128 0x3 /* (DIE (0xb) DW_TAG_compile_unit) */ .ascii "GNU C 4.4.3\0" /* DW_AT_producer */ .byte 0x0c /* DW_AT_language = DW_LANG_C99 */ .ascii "1.c\0" /* DW_AT_name */ debug_end: .section .debug_types types_start: .macro unit sig1 sig2 name .4byte 2f - 1f /* Length of Compilation Unit Info */ 1: .2byte 0x4 /* DWARF version number */ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ .byte 0x4 /* Pointer Size (in bytes) */ /* signature */ .4byte \sig1 .4byte \sig2 .4byte 3f-types_start /* offset into type DIE */ .uleb128 0x1 /* DW_TAG_type_unit) */ .byte 0x0c /* DW_AT_language = DW_LANG_C99 */ 3: .uleb128 0x2 /* DW_TAG_structure_type */ .ascii "\name" /* DW_AT_name ... */ .byte 0 /* ... DW_AT_name */ .4byte 0 /* DW_AT_byte_size */ .byte 0x0 /* end of children of CU */ 2: .endm unit 0x01234567, 0x01234567, foo /* One duplicate. */ unit 0x01234567, 0x01234567, foo /* One different, but still unused. */ unit 0x89abcdef, 0x89abcdef, bar .section .debug_abbrev .Ldebug_abbrev0: .uleb128 0x1 /* (abbrev code) */ .uleb128 0x41 /* (TAG: DW_TAG_type_unit) */ .byte 0x1 /* DW_children_yes */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .byte 0x0 .byte 0x0 .uleb128 0x2 /* (abbrev code) */ .uleb128 0x13 /* (TAG: DW_TAG_structure_type) */ .byte 0x0 /* DW_children_no */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x0b /* (DW_AT_byte_size) */ .uleb128 0x6 /* (DW_FORM_data4) */ .byte 0x0 .byte 0x0 .uleb128 0x3 /* (abbrev code) */ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ .byte 0x0 /* DW_children_no */ .uleb128 0x25 /* (DW_AT_producer) */ .uleb128 0x8 /* (DW_FORM_string) */ .uleb128 0x13 /* (DW_AT_language) */ .uleb128 0xb /* (DW_FORM_data1) */ .uleb128 0x3 /* (DW_AT_name) */ .uleb128 0x8 /* (DW_FORM_string) */ .byte 0x0 .byte 0x0 .byte 0x0
tactcomplabs/xbgas-binutils-gdb
3,140
gdb/testsuite/gdb.dwarf2/dw2-inheritance.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2009-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Test DW_TAG_inheritance using constant DW_AT_data_member_location introduced by GCC PR debug/40659. */ /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lline1_begin /* DW_AT_stmt_list */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 4 /* DW_LANG_C_plus_plus (C++) */ .Lbase: .uleb128 3 /* Abbrev: DW_TAG_class_type */ .ascii "base\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 0 /* End of children of "base" */ .uleb128 3 /* Abbrev: DW_TAG_class_type */ .ascii "inherited\0" /* DW_AT_name */ .byte 8 /* DW_AT_byte_size */ .uleb128 2 /* Abbrev: DW_TAG_inheritance */ .4byte .Lbase-.Lcu1_begin /* DW_AT_type */ .byte 0 /* DW_AT_data_member_location */ .byte 0 /* End of children of "inherited" */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x1c /* DW_TAG_inheritance */ .byte 0 /* has_children */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x38 /* DW_AT_data_member_location */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x02 /* DW_TAG_class_type */ .byte 1 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */
tactcomplabs/xbgas-binutils-gdb
5,389
gdb/testsuite/gdb.dwarf2/dup-psym.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2005-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Dummy function to provide debug information for. */ .text .Lbegin_text1: .globl func_cu1 .type func_cu1, %function func_cu1: .Lbegin_func_cu1: .int 0 .Lend_func_cu1: .size func_cu1, .-func_cu1 .Lend_text1: /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lline1_begin /* DW_AT_stmt_list */ .4byte .Lend_text1 /* DW_AT_high_pc */ .4byte .Lbegin_text1 /* DW_AT_low_pc */ .ascii "foo/file1.txt\0" /* DW_AT_name */ .ascii "/tmp/dup\0" /* DW_AT_comp_dir */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ /* func_cu1 */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_decl_file */ .byte 2 /* DW_AT_decl_line */ .ascii "func_cu1\0" /* DW_AT_name */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .4byte .Lbegin_func_cu1 /* DW_AT_low_pc */ .4byte .Lend_func_cu1 /* DW_AT_high_pc */ .byte 1 /* DW_AT_frame_base: length */ .byte 0x55 /* DW_AT_frame_base: DW_OP_reg5 */ .Ltype_int: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x1b /* DW_AT_comp_dir */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0 /* has_children */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3a /* DW_AT_decl_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3b /* DW_AT_decl_line */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x40 /* DW_AT_frame_base */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ /* Line table */ .section .debug_line .Lline1_begin: .4byte .Lline1_end - .Lline1_start /* Initial length */ .Lline1_start: .2byte 2 /* Version */ .4byte .Lline1_lines - .Lline1_hdr /* header_length */ .Lline1_hdr: .byte 1 /* Minimum insn length */ .byte 1 /* default_is_stmt */ .byte 1 /* line_base */ .byte 1 /* line_range */ .byte 0x10 /* opcode_base */ /* Standard lengths */ .byte 0 .byte 1 .byte 1 .byte 1 .byte 1 .byte 0 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 0 /* Include directories */ .ascii "/tmp/dup/foo\0" .byte 0 /* File names */ .ascii "file1.txt\0" .uleb128 1 .uleb128 0 .uleb128 0 .byte 0 .Lline1_lines: .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lbegin_func_cu1 .byte 3 /* DW_LNS_advance_line */ .sleb128 3 /* ... to 4 */ .byte 1 /* DW_LNS_copy */ .byte 1 /* DW_LNS_copy (second time as an end-of-prologue marker) */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lend_func_cu1 .byte 0 /* DW_LNE_end_of_sequence */ .uleb128 1 .byte 1 .Lline1_end:
tactcomplabs/xbgas-binutils-gdb
8,082
gdb/testsuite/gdb.dwarf2/valop.S
/* Copyright 2009-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This was compiled from a trivial program just to test the DW_OP_stack_value and DW_OP_implicit_value operators: unsigned int func (unsigned int arg) __attribute__ ((__noinline__)); unsigned int func (unsigned int arg) { unsigned int uses_stack_op = 23; unsigned int uses_lit_op = 0x7fffffff; unsigned int result = arg; if (arg % 2) result += uses_lit_op + uses_stack_op; else { ++uses_stack_op; ++uses_lit_op; result -= uses_stack_op + uses_lit_op; } return result * uses_stack_op; // line 19, see the .exp file } int main (int argc, char *argv[]) { return func (1024); } Then it was compiled with: gcc -fvar-tracking{,-assignments} -gdwarf-3 -fno-inline{,-functions,-small-functions,-functions-called-once} -O2 */ .file "valop.c" .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .section .debug_info,"",@progbits .Ldebug_info0: .section .debug_line,"",@progbits .Ldebug_line0: .text .Ltext0: .p2align 4,,15 .globl func .type func, @function func: .LFB0: .file 1 "valop.c" .loc 1 4 0 .cfi_startproc .LVL0: pushl %ebp .cfi_def_cfa_offset 8 movl %esp, %ebp .cfi_offset 5, -8 .cfi_def_cfa_register 5 .loc 1 4 0 movl 8(%ebp), %eax .LVL1: .loc 1 9 0 testb $1, %al jne .L5 .LVL2: .loc 1 16 0 addl $2147483624, %eax .LVL3: .loc 1 13 0 movl $24, %edx .LVL4: .loc 1 16 0 imull %edx, %eax .LVL5: .loc 1 20 0 popl %ebp .cfi_remember_state .cfi_restore 5 .cfi_def_cfa 4, 4 ret .LVL6: .p2align 4,,7 .p2align 3 .L5: .cfi_restore_state .loc 1 10 0 subl $2147483626, %eax .LVL7: .loc 1 5 0 movl $23, %edx .LVL8: .loc 1 16 0 imull %edx, %eax .LVL9: .loc 1 20 0 popl %ebp .cfi_def_cfa 4, 4 .cfi_restore 5 ret .cfi_endproc .LFE0: .size func, .-func .p2align 4,,15 .globl _start .type _start, @function _start: .LFB1: .loc 1 23 0 .cfi_startproc .LVL10: pushl %ebp .cfi_def_cfa_offset 8 movl %esp, %ebp .cfi_offset 5, -8 .cfi_def_cfa_register 5 subl $4, %esp .loc 1 24 0 movl $1024, (%esp) call func .LVL11: .loc 1 25 0 leave .cfi_restore 5 .cfi_def_cfa 4, 4 ret .cfi_endproc .LFE1: .size _start, .-_start .Letext0: .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .long .LVL0-.Ltext0 .long .LVL2-.Ltext0 .value 0x4 .byte 0x47 .byte 0x9f .byte 0x93 .uleb128 0x4 .long .LVL2-.Ltext0 .long .LVL4-.Ltext0 .value 0x4 .byte 0x48 .byte 0x9f .byte 0x93 .uleb128 0x4 .long .LVL4-.Ltext0 .long .LVL6-.Ltext0 .value 0x1 .byte 0x52 .long .LVL6-.Ltext0 .long .LVL8-.Ltext0 .value 0x4 .byte 0x47 .byte 0x9f .byte 0x93 .uleb128 0x4 .long .LVL8-.Ltext0 .long .LFE0-.Ltext0 .value 0x1 .byte 0x52 .long 0x0 .long 0x0 .LLST1: .long .LVL0-.Ltext0 .long .LVL2-.Ltext0 .value 0x6 .byte 0x9e .uleb128 0x4 .long 0x7fffffff .long .LVL2-.Ltext0 .long .LVL6-.Ltext0 .value 0x6 .byte 0x9e .uleb128 0x4 .long 0x80000000 .long .LVL6-.Ltext0 .long .LFE0-.Ltext0 .value 0x6 .byte 0x9e .uleb128 0x4 .long 0x7fffffff .long 0x0 .long 0x0 .LLST2: .long .LVL1-.Ltext0 .long .LVL3-.Ltext0 .value 0x1 .byte 0x50 .long .LVL3-.Ltext0 .long .LVL5-.Ltext0 .value 0x1 .byte 0x50 .long .LVL6-.Ltext0 .long .LVL7-.Ltext0 .value 0x1 .byte 0x50 .long .LVL7-.Ltext0 .long .LVL9-.Ltext0 .value 0x1 .byte 0x50 .long 0x0 .long 0x0 .LLST3: .long .LVL10-.Ltext0 .long .LVL11-1-.Ltext0 .value 0x2 .byte 0x91 .sleb128 0 .long 0x0 .long 0x0 .LLST4: .long .LVL10-.Ltext0 .long .LVL11-1-.Ltext0 .value 0x2 .byte 0x91 .sleb128 4 .long 0x0 .long 0x0 .section .debug_info .long 0xd4 .value 0x3 .long .Ldebug_abbrev0 .byte 0x4 .uleb128 0x1 .long .LASF9 .byte 0x1 .long .LASF10 .long .LASF11 .long .Ltext0 .long .Letext0 .long .Ldebug_line0 .uleb128 0x2 .byte 0x1 .long .LASF3 .byte 0x1 .byte 0x3 .byte 0x1 .long 0x7c .long .LFB0 .long .LFE0 .byte 0x1 .byte 0x9c .long 0x7c .uleb128 0x3 .string "arg" .byte 0x1 .byte 0x3 .long 0x7c .byte 0x2 .byte 0x91 .sleb128 0 .uleb128 0x4 .long .LASF0 .byte 0x1 .byte 0x5 .long 0x7c .long .LLST0 .uleb128 0x4 .long .LASF1 .byte 0x1 .byte 0x6 .long 0x7c .long .LLST1 .uleb128 0x4 .long .LASF2 .byte 0x1 .byte 0x7 .long 0x7c .long .LLST2 .byte 0x0 .uleb128 0x5 .byte 0x4 .byte 0x7 .long .LASF7 .uleb128 0x2 .byte 0x1 .long .LASF4 .byte 0x1 .byte 0x16 .byte 0x1 .long 0xbd .long .LFB1 .long .LFE1 .byte 0x1 .byte 0x9c .long 0xbd .uleb128 0x6 .long .LASF5 .byte 0x1 .byte 0x16 .long 0xbd .long .LLST3 .uleb128 0x6 .long .LASF6 .byte 0x1 .byte 0x16 .long 0xc4 .long .LLST4 .byte 0x0 .uleb128 0x7 .byte 0x4 .byte 0x5 .string "int" .uleb128 0x8 .byte 0x4 .long 0xca .uleb128 0x8 .byte 0x4 .long 0xd0 .uleb128 0x5 .byte 0x1 .byte 0x6 .long .LASF8 .byte 0x0 .section .debug_abbrev .uleb128 0x1 .uleb128 0x11 .byte 0x1 .uleb128 0x25 .uleb128 0xe .uleb128 0x13 .uleb128 0xb .uleb128 0x3 .uleb128 0xe .uleb128 0x1b .uleb128 0xe .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x10 .uleb128 0x6 .byte 0x0 .byte 0x0 .uleb128 0x2 .uleb128 0x2e .byte 0x1 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x27 .uleb128 0xc .uleb128 0x49 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0xa .uleb128 0x1 .uleb128 0x13 .byte 0x0 .byte 0x0 .uleb128 0x3 .uleb128 0x5 .byte 0x0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0xa .byte 0x0 .byte 0x0 .uleb128 0x4 .uleb128 0x34 .byte 0x0 .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0x6 .byte 0x0 .byte 0x0 .uleb128 0x5 .uleb128 0x24 .byte 0x0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0xe .byte 0x0 .byte 0x0 .uleb128 0x6 .uleb128 0x5 .byte 0x0 .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0x6 .byte 0x0 .byte 0x0 .uleb128 0x7 .uleb128 0x24 .byte 0x0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0x8 .byte 0x0 .byte 0x0 .uleb128 0x8 .uleb128 0xf .byte 0x0 .uleb128 0xb .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .byte 0x0 .byte 0x0 .byte 0x0 .section .debug_pubnames,"",@progbits .long 0x20 .value 0x2 .long .Ldebug_info0 .long 0xd8 .long 0x25 .string "func" .long 0x83 .string "main" .long 0x0 .section .debug_aranges,"",@progbits .long 0x1c .value 0x2 .long .Ldebug_info0 .byte 0x4 .byte 0x0 .value 0x0 .value 0x0 .long .Ltext0 .long .Letext0-.Ltext0 .long 0x0 .long 0x0 .section .debug_str,"MS",@progbits,1 .LASF7: .string "unsigned int" .LASF3: .string "func" .LASF0: .string "uses_stack_op" .LASF5: .string "argc" .LASF10: .string "valop.c" .LASF2: .string "result" .LASF8: .string "char" .LASF9: .string "GNU C 4.5.0 20090818 (experimental) [var-tracking-assignments-branch revision 150964]" .LASF4: .string "main" .LASF11: .string "/tmp" .LASF1: .string "uses_lit_op" .LASF6: .string "argv" .ident "GCC: (GNU) 4.5.0 20090818 (experimental) [var-tracking-assignments-branch revision 150964]" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
10,833
gdb/testsuite/gdb.dwarf2/fission-base.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2012-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. This file was created by doing: gcc -gdwarf-4 -gsplit-debug -S -dA fission-base.c and then massaging the output. */ .file "fission-base.c" .text .Ltext0: .globl func .type func, @function func: .LFB0: .file 1 "fission-base.c" # fission-base.c:20 .loc 1 20 0 .cfi_startproc pushq %rbp # .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp #, .cfi_def_cfa_register 6 movl %edi, -4(%rbp) # arg, arg # fission-base.c:21 .loc 1 21 0 movl -4(%rbp), %eax # arg, tmp61 addl $1, %eax #, D.1617 # fission-base.c:22 .loc 1 22 0 popq %rbp # .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func, .-func .globl main .type main, @function main: .LFB1: # fission-base.c:26 .loc 1 26 0 .cfi_startproc pushq %rbp # .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp #, .cfi_def_cfa_register 6 # fission-base.c:27 .loc 1 27 0 movl $-1, %edi #, call func # # fission-base.c:28 .loc 1 28 0 popq %rbp # .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE1: .size main, .-main .Letext0: .section .debug_info.dwo,"e",@progbits .Ldebug_info0: .4byte .Ldebug_info0_end - .Ldebug_info0 - 4 # Length of Compilation Unit Info .2byte 0x4 # DWARF version number .4byte .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x8 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .ascii "GNU C 4.6.x-fission\0" # DW_AT_producer .byte 0x1 # DW_AT_language .ascii "fission-base.c\0" # DW_AT_name .ascii "/tmp/src/gdb/testsuite\0" # DW_AT_comp_dir .byte 1 # DW_AT_GNU_dwo_id .byte 2 .byte 3 .byte 4 .byte 5 .byte 6 .byte 7 .byte 8 .uleb128 0x2 # (DIE (0x89) DW_TAG_subprogram) # DW_AT_external .ascii "func\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (fission-base.c) .byte 0x13 # DW_AT_decl_line # DW_AT_prototyped .4byte .Ldebug_info0_int - .Ldebug_info0 # DW_AT_type .4byte 0x0 # DW_AT_ranges .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa .4byte .Ldebug_info0_int - .Ldebug_info0 # DW_AT_sibling .uleb128 0x3 # (DIE (0xa4) DW_TAG_formal_parameter) .ascii "arg\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (fission-base.c) .byte 0x13 # DW_AT_decl_line .4byte .Ldebug_info0_int - .Ldebug_info0 # DW_AT_type .uleb128 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 -20 .byte 0 # end of children of DIE 0x89 .Ldebug_info0_int: .uleb128 0x4 # (DIE (0xb3) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .uleb128 0x5 # (DIE (0xba) DW_TAG_subprogram) # DW_AT_external .ascii "main\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (fission-base.c) .byte 0x19 # DW_AT_decl_line .4byte .Ldebug_info0_int - .Ldebug_info0 # DW_AT_type .uleb128 0x1 # DW_AT_low_pc .8byte .LFE1-.LFB1 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa .byte 0 # end of children of DIE 0xb .Ldebug_info0_end: .section .debug_info,"",@progbits .Lskeleton_debug_info0: .4byte .Lskeleton_debug_info0_end - .Lskeleton_debug_info0 - 4 # Length of Compilation Unit Info .2byte 0x4 # DWARF version number .4byte .Lskeleton_debug_abbrev0 # Offset Into Abbrev. Section .byte 0x8 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0) DW_TAG_compile_unit) .8byte .Ltext0 # DW_AT_low_pc .8byte .Letext0-.Ltext0 # DW_AT_high_pc .4byte .Ldebug_line0 # DW_AT_stmt_list .ascii "/tmp/src/gdb/testsuite\0" # DW_AT_comp_dir .asciz DWO # DW_AT_GNU_dwo_name .4byte .Ldebug_pubnames0 # DW_AT_GNU_pubnames .4byte .Ldebug_pubtypes0 # DW_AT_GNU_pubtypes .4byte .Ldebug_addr0_begin # DW_AT_GNU_addr_base .4byte .Ldebug_ranges0_begin # DW_AT_GNU_ranges_base .byte 1 # DW_AT_GNU_dwo_id .byte 2 .byte 3 .byte 4 .byte 5 .byte 6 .byte 7 .byte 8 .Lskeleton_debug_info0_end: .section .debug_abbrev,"",@progbits .Lskeleton_debug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0 # DW_children_no .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x7 # (DW_FORM_data8) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x2130 # (DW_AT_GNU_dwo_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x2134 # (DW_AT_GNU_pubnames) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x2135 # (DW_AT_GNU_pubtypes) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x2133 # (DW_AT_GNU_addr_base) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x2132 # (DW_AT_GNU_ranges_base) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x2131 # (DW_AT_GNU_dwo_id) .uleb128 0x7 # (DW_FORM_data8) .byte 0 .byte 0 .byte 0 # end of skeleton .debug_abbrev .section .debug_abbrev.dwo,"e",@progbits .Ldebug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x2131 # (DW_AT_GNU_dwo_id) .uleb128 0x7 # (DW_FORM_data8) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x55 # (DW_AT_ranges) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x3 # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 .uleb128 0x4 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0 .byte 0 .uleb128 0x5 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0 # DW_children_no .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1f01 # (DW_FORM_GNU_addr_index) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x7 # (DW_FORM_data8) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 .byte 0 .section .debug_gnu_pubnames,"",@progbits .Ldebug_pubnames0: .long 0x22 # Pub Info Length .value 0x2 # DWARF Version .long .Lskeleton_debug_info0 # Offset of Compilation Unit Info .long 0x59 # Compilation Unit Length .long 0x18 # DIE offset .byte 0x30 # GDB-index flags .ascii "func\0" # external name .long 0x45 # DIE offset .byte 0x30 # GDB-index flags .ascii "main\0" # external name .long 0 .section .debug_gnu_pubtypes,"",@progbits .Ldebug_pubtypes0: .long 0x17 # Pub Info Length .value 0x2 # DWARF Version .long .Lskeleton_debug_info0 # Offset of Compilation Unit Info .long 0x59 # Compilation Unit Length .long 0x3e # DIE offset .byte 0x90 # GDB-index flags .ascii "int\0" # external name .long 0 .section .debug_aranges,"",@progbits .4byte 0x2c # Length of Address Ranges Info .2byte 0x2 # DWARF Version .4byte .Lskeleton_debug_info0 # Offset of Compilation Unit Info .byte 0x8 # Size of Address .byte 0 # Size of Segment Descriptor .2byte 0 # Pad to 16 byte boundary .2byte 0 .8byte .Ltext0 # Address .8byte .Letext0-.Ltext0 # Length .8byte 0 .8byte 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_line.dwo,"e",@progbits .Lskeleton_debug_line0: .4byte .LELT0-.LSLT0 # Length of Source Line Info .LSLT0: .2byte 0x4 # DWARF Version .4byte .LELTP0-.LASLTP0 # Prolog Length .LASLTP0: .byte 0x1 # Minimum Instruction Length .byte 0x1 # Maximum Operations Per Instruction .byte 0x1 # Default is_stmt_start flag .byte 0xf6 # Line Base Value (Special Opcodes) .byte 0xf5 # Line Range Value (Special Opcodes) .byte 0xa # Special Opcode Base .byte 0 # opcode: 0x1 has 0 args .byte 0x1 # opcode: 0x2 has 1 args .byte 0x1 # opcode: 0x3 has 1 args .byte 0x1 # opcode: 0x4 has 1 args .byte 0x1 # opcode: 0x5 has 1 args .byte 0 # opcode: 0x6 has 0 args .byte 0 # opcode: 0x7 has 0 args .byte 0 # opcode: 0x8 has 0 args .byte 0x1 # opcode: 0x9 has 1 args .byte 0 # End directory table .ascii "fission-base.c\0" # File Entry: 0x1 .uleb128 0 .uleb128 0 .uleb128 0 .byte 0 # End file name table .LELTP0: .LELT0: .section .debug_addr,"",@progbits .Ldebug_addr0: # Shift the real entries down by a non-zero amount to test # DW_AT_GNU_addr_base. .8byte 0,0 .Ldebug_addr0_begin: .8byte .LFB0 # DW_AT_low_pc .8byte .LFB1 # DW_AT_low_pc .section .debug_ranges,"",@progbits .Ldebug_ranges0: # Shift the real entries down by a non-zero amount to test # DW_AT_GNU_ranges_base. .8byte 0,0 .Ldebug_ranges0_begin: # Note: Since the DW_TAG_compile_unit specifies low_pc, that sets # the base address, and thus we have to subtract it here. .8byte .LFB0 - .Ltext0 # Offset 0 .8byte .LFE0 - .Ltext0 .8byte 0 .8byte 0 .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
3,724
gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2010-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte cu_text_start /* DW_AT_low_pc */ .4byte cu_text_end /* DW_AT_high_pc */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 4 /* DW_AT_language (DW_LANG_C_plus_plus) */ .Ltype_class: .uleb128 3 /* Abbrev: DW_TAG_class_type */ .ascii "C\0" /* DW_AT_name */ .uleb128 4 /* Abbrev: DW_TAG_member */ .ascii "s\0" /* DW_AT_name */ .4byte .Ltype_class-.Lcu1_begin /* DW_AT_type */ .byte 1 /* DW_AT_declaration */ .byte 1 /* DW_AT_external */ .byte 0 /* End of children of DW_TAG_class_type */ .uleb128 5 /* Abbrev: DW_TAG_subprogram */ .ascii "f\0" /* DW_AT_name */ .4byte .Ltype_class-.Lcu1_begin /* DW_AT_type */ .4byte f_start /* DW_AT_low_pc */ .4byte f_end /* DW_AT_high_pc */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x2 /* DW_TAG_class_type */ .byte 1 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 4 /* Abbrev code */ .uleb128 0xd /* DW_TAG_member */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x3c /* DW_AT_declaration */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 5 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */
tactcomplabs/xbgas-binutils-gdb
12,197
gdb/testsuite/gdb.dwarf2/dw2-restrict.S
/* Copyright (C) 2012-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. This was created using clang -g -S dw2-restrict.c. */ .text .file "dw2-restrict.c" .globl f # -- Begin function f .p2align 4, 0x90 .type f,@function f: # @f .Lfunc_begin0: .file 1 "dw2-restrict.c" .loc 1 19 0 # dw2-restrict.c:19:0 .cfi_startproc # BB#0: pushq %rbp .Lcfi0: .cfi_def_cfa_offset 16 .Lcfi1: .cfi_offset %rbp, -16 movq %rsp, %rbp .Lcfi2: .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) .Ltmp0: .loc 1 20 10 prologue_end # dw2-restrict.c:20:10 movq -8(%rbp), %rdi movsbl (%rdi), %eax .loc 1 20 3 is_stmt 0 # dw2-restrict.c:20:3 popq %rbp retq .Ltmp1: .Lfunc_end0: .size f, .Lfunc_end0-f .cfi_endproc # -- End function .globl main # -- Begin function main .p2align 4, 0x90 .type main,@function main: # @main .Lfunc_begin1: .loc 1 24 0 is_stmt 1 # dw2-restrict.c:24:0 .cfi_startproc # BB#0: pushq %rbp .Lcfi3: .cfi_def_cfa_offset 16 .Lcfi4: .cfi_offset %rbp, -16 movq %rsp, %rbp .Lcfi5: .cfi_def_cfa_register %rbp subq $16, %rsp movabsq $.L.str, %rdi movl $0, -4(%rbp) .Ltmp2: .loc 1 25 10 prologue_end # dw2-restrict.c:25:10 callq f .loc 1 25 3 is_stmt 0 # dw2-restrict.c:25:3 addq $16, %rsp popq %rbp retq .Ltmp3: .Lfunc_end1: .size main, .Lfunc_end1-main .cfi_endproc # -- End function .type .L.str,@object # @.str .section .rodata.str1.1,"aMS",@progbits,1 .L.str: .asciz "hi bob" .size .L.str, 7 .section .debug_str,"MS",@progbits,1 .Linfo_string0: .asciz "clang version 5.0.1 (tags/RELEASE_501/final 312548)" # string offset=0 .Linfo_string1: .asciz "dw2-restrict.c" # string offset=52 .Linfo_string2: .asciz "/data/gdb_versions/devel/src/gdb/testsuite/gdb.dwarf2" # string offset=67 .Linfo_string3: .asciz "f" # string offset=121 .Linfo_string4: .asciz "int" # string offset=123 .Linfo_string5: .asciz "main" # string offset=127 .Linfo_string6: .asciz "x" # string offset=132 .Linfo_string7: .asciz "char" # string offset=134 .section .debug_abbrev,"",@progbits .byte 1 # Abbreviation Code .byte 17 # DW_TAG_compile_unit .byte 1 # DW_CHILDREN_yes .byte 37 # DW_AT_producer .byte 14 # DW_FORM_strp .byte 19 # DW_AT_language .byte 5 # DW_FORM_data2 .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 16 # DW_AT_stmt_list .byte 23 # DW_FORM_sec_offset .byte 27 # DW_AT_comp_dir .byte 14 # DW_FORM_strp .ascii "\264B" # DW_AT_GNU_pubnames .byte 25 # DW_FORM_flag_present .byte 17 # DW_AT_low_pc .byte 1 # DW_FORM_addr .byte 18 # DW_AT_high_pc .byte 6 # DW_FORM_data4 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 2 # Abbreviation Code .byte 46 # DW_TAG_subprogram .byte 1 # DW_CHILDREN_yes .byte 17 # DW_AT_low_pc .byte 1 # DW_FORM_addr .byte 18 # DW_AT_high_pc .byte 6 # DW_FORM_data4 .byte 64 # DW_AT_frame_base .byte 24 # DW_FORM_exprloc .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 39 # DW_AT_prototyped .byte 25 # DW_FORM_flag_present .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 63 # DW_AT_external .byte 25 # DW_FORM_flag_present .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 3 # Abbreviation Code .byte 5 # DW_TAG_formal_parameter .byte 0 # DW_CHILDREN_no .byte 2 # DW_AT_location .byte 24 # DW_FORM_exprloc .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 4 # Abbreviation Code .byte 46 # DW_TAG_subprogram .byte 0 # DW_CHILDREN_no .byte 17 # DW_AT_low_pc .byte 1 # DW_FORM_addr .byte 18 # DW_AT_high_pc .byte 6 # DW_FORM_data4 .byte 64 # DW_AT_frame_base .byte 24 # DW_FORM_exprloc .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 58 # DW_AT_decl_file .byte 11 # DW_FORM_data1 .byte 59 # DW_AT_decl_line .byte 11 # DW_FORM_data1 .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 63 # DW_AT_external .byte 25 # DW_FORM_flag_present .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 5 # Abbreviation Code .byte 36 # DW_TAG_base_type .byte 0 # DW_CHILDREN_no .byte 3 # DW_AT_name .byte 14 # DW_FORM_strp .byte 62 # DW_AT_encoding .byte 11 # DW_FORM_data1 .byte 11 # DW_AT_byte_size .byte 11 # DW_FORM_data1 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 6 # Abbreviation Code .byte 55 # DW_TAG_restrict_type .byte 0 # DW_CHILDREN_no .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 7 # Abbreviation Code .byte 15 # DW_TAG_pointer_type .byte 0 # DW_CHILDREN_no .byte 73 # DW_AT_type .byte 19 # DW_FORM_ref4 .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 0 # EOM(3) .section .debug_info,"",@progbits .Lcu_begin0: .long 128 # Length of Unit .short 4 # DWARF version number .long .debug_abbrev # Offset Into Abbrev. Section .byte 8 # Address Size (in bytes) .byte 1 # Abbrev [1] 0xb:0x79 DW_TAG_compile_unit .long .Linfo_string0 # DW_AT_producer .short 12 # DW_AT_language .long .Linfo_string1 # DW_AT_name .long .Lline_table_start0 # DW_AT_stmt_list .long .Linfo_string2 # DW_AT_comp_dir # DW_AT_GNU_pubnames .quad .Lfunc_begin0 # DW_AT_low_pc .long .Lfunc_end1-.Lfunc_begin0 # DW_AT_high_pc .byte 2 # Abbrev [2] 0x2a:0x28 DW_TAG_subprogram .quad .Lfunc_begin0 # DW_AT_low_pc .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc .byte 1 # DW_AT_frame_base .byte 86 .long .Linfo_string3 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 18 # DW_AT_decl_line # DW_AT_prototyped .long 107 # DW_AT_type # DW_AT_external .byte 3 # Abbrev [3] 0x43:0xe DW_TAG_formal_parameter .byte 2 # DW_AT_location .byte 145 .byte 120 .long .Linfo_string6 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 18 # DW_AT_decl_line .long 114 # DW_AT_type .byte 0 # End Of Children Mark .byte 4 # Abbrev [4] 0x52:0x19 DW_TAG_subprogram .quad .Lfunc_begin1 # DW_AT_low_pc .long .Lfunc_end1-.Lfunc_begin1 # DW_AT_high_pc .byte 1 # DW_AT_frame_base .byte 86 .long .Linfo_string5 # DW_AT_name .byte 1 # DW_AT_decl_file .byte 23 # DW_AT_decl_line .long 107 # DW_AT_type # DW_AT_external .byte 5 # Abbrev [5] 0x6b:0x7 DW_TAG_base_type .long .Linfo_string4 # DW_AT_name .byte 5 # DW_AT_encoding .byte 4 # DW_AT_byte_size .byte 6 # Abbrev [6] 0x72:0x5 DW_TAG_restrict_type .long 119 # DW_AT_type .byte 7 # Abbrev [7] 0x77:0x5 DW_TAG_pointer_type .long 124 # DW_AT_type .byte 5 # Abbrev [5] 0x7c:0x7 DW_TAG_base_type .long .Linfo_string7 # DW_AT_name .byte 6 # DW_AT_encoding .byte 1 # DW_AT_byte_size .byte 0 # End Of Children Mark .section .debug_ranges,"",@progbits .section .debug_macinfo,"",@progbits .Lcu_macro_begin0: .byte 0 # End Of Macro List Mark .section .debug_pubnames,"",@progbits .long .LpubNames_end0-.LpubNames_begin0 # Length of Public Names Info .LpubNames_begin0: .short 2 # DWARF Version .long .Lcu_begin0 # Offset of Compilation Unit Info .long 132 # Compilation Unit Length .long 82 # DIE offset .asciz "main" # External Name .long 42 # DIE offset .asciz "f" # External Name .long 0 # End Mark .LpubNames_end0: .section .debug_pubtypes,"",@progbits .long .LpubTypes_end0-.LpubTypes_begin0 # Length of Public Types Info .LpubTypes_begin0: .short 2 # DWARF Version .long .Lcu_begin0 # Offset of Compilation Unit Info .long 132 # Compilation Unit Length .long 107 # DIE offset .asciz "int" # External Name .long 124 # DIE offset .asciz "char" # External Name .long 0 # End Mark .LpubTypes_end0: .ident "clang version 5.0.1 (tags/RELEASE_501/final 312548)" .section ".note.GNU-stack","",@progbits .section .debug_line,"",@progbits .Lline_table_start0:
tactcomplabs/xbgas-binutils-gdb
51,319
gdb/testsuite/gdb.dwarf2/pieces.S
/* Copyright 2010-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This was compiled with a version of gcc modified to emit better debuginfo for SRA'd structures. See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43983 The original program is "pieces.c", in this directory. */ .file "pieces.c" .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .section .debug_info,"",@progbits .Ldebug_info0: .section .debug_line,"",@progbits .Ldebug_line0: .text .Ltext0: .p2align 4,,15 .globl bar .type bar, @function bar: .LFB0: .file 1 "pieces.c" # pieces.c:29 .loc 1 29 0 .LVL0: # basic block 2 pushl %ebp .LCFI0: movl %esp, %ebp .LCFI1: # pieces.c:30 .loc 1 30 0 movl 8(%ebp), %eax # pieces.c:31 .loc 1 31 0 popl %ebp .LCFI2: ret .LFE0: .size bar, .-bar .p2align 4,,15 .globl f1 .type f1, @function f1: .LFB1: # pieces.c:35 .loc 1 35 0 .LVL1: # basic block 2 pushl %ebp .LCFI3: movl %esp, %ebp .LCFI4: .LVL2: subl $12, %esp .LCFI5: movl %esi, -4(%ebp) .LCFI6: # pieces.c:38 .loc 1 38 0 movl 8(%ebp), %esi # pieces.c:35 .loc 1 35 0 movl %ebx, -8(%ebp) .LCFI7: # pieces.c:37 .loc 1 37 0 movl $4, %ebx .LVL3: # pieces.c:39 .loc 1 39 0 movl %ebx, (%esp) # pieces.c:38 .loc 1 38 0 addl $7, %esi .LVL4: # pieces.c:39 .loc 1 39 0 call bar # pieces.c:40 .loc 1 40 0 movl %esi, (%esp) call bar # pieces.c:41 .loc 1 41 0 leal (%ebx,%esi), %eax # pieces.c:42 .loc 1 42 0 movl -8(%ebp), %ebx .LVL5: movl -4(%ebp), %esi .LVL6: movl %ebp, %esp .LCFI8: popl %ebp .LCFI9: ret .LFE1: .size f1, .-f1 .p2align 4,,15 .globl f2 .type f2, @function f2: .LFB2: # pieces.c:46 .loc 1 46 0 .LVL7: # basic block 2 pushl %ebp .LCFI10: movl %esp, %ebp .LCFI11: .LVL8: subl $12, %esp .LCFI12: movl %esi, -4(%ebp) .LCFI13: # pieces.c:49 .loc 1 49 0 movl 8(%ebp), %esi # pieces.c:46 .loc 1 46 0 movl %ebx, -8(%ebp) .LCFI14: # pieces.c:48 .loc 1 48 0 movl $4, %ebx .LVL9: # pieces.c:50 .loc 1 50 0 movl %ebx, (%esp) # pieces.c:49 .loc 1 49 0 addl $7, %esi .LVL10: # pieces.c:50 .loc 1 50 0 call bar # pieces.c:51 .loc 1 51 0 movl %esi, (%esp) call bar # pieces.c:52 .loc 1 52 0 leal (%ebx,%esi), %eax # pieces.c:53 .loc 1 53 0 movl -8(%ebp), %ebx .LVL11: movl -4(%ebp), %esi .LVL12: movl %ebp, %esp .LCFI15: popl %ebp .LCFI16: ret .LFE2: .size f2, .-f2 .p2align 4,,15 .globl f3 .type f3, @function f3: .LFB3: # pieces.c:57 .loc 1 57 0 .LVL13: # basic block 2 pushl %ebp .LCFI17: # pieces.c:59 .loc 1 59 0 movl $4, %edx # pieces.c:57 .loc 1 57 0 movl %esp, %ebp .LCFI18: .LVL14: subl $12, %esp .LCFI19: # pieces.c:59 .loc 1 59 0 .LVL15: # pieces.c:57 .loc 1 57 0 movl %esi, -4(%ebp) .LCFI20: # pieces.c:61 .loc 1 61 0 movswl %dx, %esi # pieces.c:57 .loc 1 57 0 movl %ebx, -8(%ebp) .LCFI21: # pieces.c:61 .loc 1 61 0 movl %esi, (%esp) call bar .LVL16: # pieces.c:58 .loc 1 58 0 movl 8(%ebp), %edx sall $4, %edx # pieces.c:60 .loc 1 60 0 addl $112, %edx sarw $4, %dx # pieces.c:62 .loc 1 62 0 movswl %dx, %ebx movl %ebx, (%esp) call bar # pieces.c:63 .loc 1 63 0 leal (%esi,%ebx), %eax # pieces.c:64 .loc 1 64 0 movl -8(%ebp), %ebx movl -4(%ebp), %esi .LVL17: movl %ebp, %esp .LCFI22: popl %ebp .LCFI23: ret .LFE3: .size f3, .-f3 .p2align 4,,15 .globl f4 .type f4, @function f4: .LFB4: # pieces.c:68 .loc 1 68 0 .LVL18: # basic block 2 pushl %ebp .LCFI24: movl %esp, %ebp .LCFI25: subl $12, %esp .LCFI26: movl %esi, -4(%ebp) .LCFI27: movl 8(%ebp), %esi .LVL19: movl %ebx, -8(%ebp) .LCFI28: # pieces.c:70 .loc 1 70 0 movl %esi, %ebx # pieces.c:71 .loc 1 71 0 addl $1, %esi # pieces.c:70 .loc 1 70 0 .LVL20: # pieces.c:72 .loc 1 72 0 movl %ebx, (%esp) call bar # pieces.c:73 .loc 1 73 0 movl %esi, (%esp) call bar # pieces.c:74 .loc 1 74 0 leal (%ebx,%esi), %eax # pieces.c:75 .loc 1 75 0 movl -8(%ebp), %ebx .LVL21: movl -4(%ebp), %esi .LVL22: movl %ebp, %esp .LCFI29: popl %ebp .LCFI30: ret .LFE4: .size f4, .-f4 .p2align 4,,15 .globl f5 .type f5, @function f5: .LFB5: # pieces.c:79 .loc 1 79 0 .LVL23: # basic block 2 pushl %ebp .LCFI31: movl %esp, %ebp .LCFI32: subl $12, %esp .LCFI33: movl %esi, -4(%ebp) .LCFI34: movl 8(%ebp), %esi .LVL24: movl %ebx, -8(%ebp) .LCFI35: # pieces.c:81 .loc 1 81 0 movl %esi, %ebx # pieces.c:82 .loc 1 82 0 addl $1, %esi # pieces.c:81 .loc 1 81 0 .LVL25: # pieces.c:83 .loc 1 83 0 movl %ebx, (%esp) call bar # pieces.c:84 .loc 1 84 0 movl %esi, (%esp) call bar # pieces.c:85 .loc 1 85 0 leal (%ebx,%esi), %eax # pieces.c:86 .loc 1 86 0 movl -8(%ebp), %ebx .LVL26: movl -4(%ebp), %esi .LVL27: movl %ebp, %esp .LCFI36: popl %ebp .LCFI37: ret .LFE5: .size f5, .-f5 .p2align 4,,15 .globl f6 .type f6, @function f6: .LFB6: # pieces.c:90 .loc 1 90 0 .LVL28: # basic block 2 pushl %ebp .LCFI38: movl %esp, %ebp .LCFI39: subl $12, %esp .LCFI40: movl %esi, -4(%ebp) .LCFI41: movl 8(%ebp), %esi .LVL29: movl %ebx, -8(%ebp) .LCFI42: # pieces.c:93 .loc 1 93 0 movl %esi, %ebx # pieces.c:94 .loc 1 94 0 addl $1, %esi # pieces.c:93 .loc 1 93 0 .LVL30: # pieces.c:95 .loc 1 95 0 movl %ebx, (%esp) call bar # pieces.c:96 .loc 1 96 0 movl %esi, (%esp) call bar # pieces.c:97 .loc 1 97 0 leal (%ebx,%esi), %eax # pieces.c:98 .loc 1 98 0 movl -8(%ebp), %ebx .LVL31: movl -4(%ebp), %esi .LVL32: movl %ebp, %esp .LCFI43: popl %ebp .LCFI44: ret .LFE6: .size f6, .-f6 .p2align 4,,15 .globl main .type main, @function main: .LFB7: # pieces.c:102 .loc 1 102 0 # basic block 2 pushl %ebp .LCFI45: movl %esp, %ebp .LCFI46: pushl %ebx .LCFI47: # pieces.c:104 .loc 1 104 0 movl $7, %ebx # pieces.c:102 .loc 1 102 0 subl $4, %esp .LCFI48: # pieces.c:104 .loc 1 104 0 .LVL33: # pieces.c:105 .loc 1 105 0 movl %ebx, (%esp) call f1 # pieces.c:106 .loc 1 106 0 movl %ebx, (%esp) call f2 # pieces.c:107 .loc 1 107 0 movl %ebx, (%esp) call f3 # pieces.c:108 .loc 1 108 0 movl %ebx, (%esp) call f4 # pieces.c:109 .loc 1 109 0 movl %ebx, (%esp) call f5 # pieces.c:110 .loc 1 110 0 movl %ebx, (%esp) call f6 # pieces.c:112 .loc 1 112 0 addl $4, %esp xorl %eax, %eax popl %ebx .LCFI49: .LVL34: popl %ebp .LCFI50: ret .LFE7: .size main, .-main #APP .section .debug_frame,"",@progbits .Lframe0: .long .LECIE0-.LSCIE0 # Length of Common Information Entry .LSCIE0: .long 0xffffffff # CIE Identifier Tag .byte 0x1 # CIE Version .ascii "\0" # CIE Augmentation .uleb128 0x1 # CIE Code Alignment Factor .sleb128 -4 # CIE Data Alignment Factor .byte 0x8 # CIE RA Column .byte 0xc # DW_CFA_def_cfa .uleb128 0x4 .uleb128 0x4 .byte 0x88 # DW_CFA_offset, column 0x8 .uleb128 0x1 .align 4 .LECIE0: .LSFDE0: .long .LEFDE0-.LASFDE0 # FDE Length .LASFDE0: .long .Lframe0 # FDE CIE offset .long .LFB0 # FDE initial location .long .LFE0-.LFB0 # FDE address range .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI0-.LFB0 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x8 .byte 0x85 # DW_CFA_offset, column 0x5 .uleb128 0x2 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI1-.LCFI0 .byte 0xd # DW_CFA_def_cfa_register .uleb128 0x5 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI2-.LCFI1 .byte 0xc5 # DW_CFA_restore, column 0x5 .byte 0xc # DW_CFA_def_cfa .uleb128 0x4 .uleb128 0x4 .align 4 .LEFDE0: .LSFDE2: .long .LEFDE2-.LASFDE2 # FDE Length .LASFDE2: .long .Lframe0 # FDE CIE offset .long .LFB1 # FDE initial location .long .LFE1-.LFB1 # FDE address range .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI3-.LFB1 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x8 .byte 0x85 # DW_CFA_offset, column 0x5 .uleb128 0x2 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI4-.LCFI3 .byte 0xd # DW_CFA_def_cfa_register .uleb128 0x5 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI6-.LCFI4 .byte 0x86 # DW_CFA_offset, column 0x6 .uleb128 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI7-.LCFI6 .byte 0x83 # DW_CFA_offset, column 0x3 .uleb128 0x4 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI8-.LCFI7 .byte 0xd # DW_CFA_def_cfa_register .uleb128 0x4 .byte 0xc6 # DW_CFA_restore, column 0x6 .byte 0xc3 # DW_CFA_restore, column 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI9-.LCFI8 .byte 0xc5 # DW_CFA_restore, column 0x5 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x4 .align 4 .LEFDE2: .LSFDE4: .long .LEFDE4-.LASFDE4 # FDE Length .LASFDE4: .long .Lframe0 # FDE CIE offset .long .LFB2 # FDE initial location .long .LFE2-.LFB2 # FDE address range .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI10-.LFB2 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x8 .byte 0x85 # DW_CFA_offset, column 0x5 .uleb128 0x2 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI11-.LCFI10 .byte 0xd # DW_CFA_def_cfa_register .uleb128 0x5 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI13-.LCFI11 .byte 0x86 # DW_CFA_offset, column 0x6 .uleb128 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI14-.LCFI13 .byte 0x83 # DW_CFA_offset, column 0x3 .uleb128 0x4 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI15-.LCFI14 .byte 0xd # DW_CFA_def_cfa_register .uleb128 0x4 .byte 0xc6 # DW_CFA_restore, column 0x6 .byte 0xc3 # DW_CFA_restore, column 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI16-.LCFI15 .byte 0xc5 # DW_CFA_restore, column 0x5 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x4 .align 4 .LEFDE4: .LSFDE6: .long .LEFDE6-.LASFDE6 # FDE Length .LASFDE6: .long .Lframe0 # FDE CIE offset .long .LFB3 # FDE initial location .long .LFE3-.LFB3 # FDE address range .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI17-.LFB3 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x8 .byte 0x85 # DW_CFA_offset, column 0x5 .uleb128 0x2 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI18-.LCFI17 .byte 0xd # DW_CFA_def_cfa_register .uleb128 0x5 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI20-.LCFI18 .byte 0x86 # DW_CFA_offset, column 0x6 .uleb128 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI21-.LCFI20 .byte 0x83 # DW_CFA_offset, column 0x3 .uleb128 0x4 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI22-.LCFI21 .byte 0xd # DW_CFA_def_cfa_register .uleb128 0x4 .byte 0xc6 # DW_CFA_restore, column 0x6 .byte 0xc3 # DW_CFA_restore, column 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI23-.LCFI22 .byte 0xc5 # DW_CFA_restore, column 0x5 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x4 .align 4 .LEFDE6: .LSFDE8: .long .LEFDE8-.LASFDE8 # FDE Length .LASFDE8: .long .Lframe0 # FDE CIE offset .long .LFB4 # FDE initial location .long .LFE4-.LFB4 # FDE address range .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI24-.LFB4 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x8 .byte 0x85 # DW_CFA_offset, column 0x5 .uleb128 0x2 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI25-.LCFI24 .byte 0xd # DW_CFA_def_cfa_register .uleb128 0x5 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI27-.LCFI25 .byte 0x86 # DW_CFA_offset, column 0x6 .uleb128 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI28-.LCFI27 .byte 0x83 # DW_CFA_offset, column 0x3 .uleb128 0x4 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI29-.LCFI28 .byte 0xd # DW_CFA_def_cfa_register .uleb128 0x4 .byte 0xc6 # DW_CFA_restore, column 0x6 .byte 0xc3 # DW_CFA_restore, column 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI30-.LCFI29 .byte 0xc5 # DW_CFA_restore, column 0x5 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x4 .align 4 .LEFDE8: .LSFDE10: .long .LEFDE10-.LASFDE10 # FDE Length .LASFDE10: .long .Lframe0 # FDE CIE offset .long .LFB5 # FDE initial location .long .LFE5-.LFB5 # FDE address range .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI31-.LFB5 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x8 .byte 0x85 # DW_CFA_offset, column 0x5 .uleb128 0x2 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI32-.LCFI31 .byte 0xd # DW_CFA_def_cfa_register .uleb128 0x5 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI34-.LCFI32 .byte 0x86 # DW_CFA_offset, column 0x6 .uleb128 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI35-.LCFI34 .byte 0x83 # DW_CFA_offset, column 0x3 .uleb128 0x4 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI36-.LCFI35 .byte 0xd # DW_CFA_def_cfa_register .uleb128 0x4 .byte 0xc6 # DW_CFA_restore, column 0x6 .byte 0xc3 # DW_CFA_restore, column 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI37-.LCFI36 .byte 0xc5 # DW_CFA_restore, column 0x5 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x4 .align 4 .LEFDE10: .LSFDE12: .long .LEFDE12-.LASFDE12 # FDE Length .LASFDE12: .long .Lframe0 # FDE CIE offset .long .LFB6 # FDE initial location .long .LFE6-.LFB6 # FDE address range .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI38-.LFB6 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x8 .byte 0x85 # DW_CFA_offset, column 0x5 .uleb128 0x2 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI39-.LCFI38 .byte 0xd # DW_CFA_def_cfa_register .uleb128 0x5 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI41-.LCFI39 .byte 0x86 # DW_CFA_offset, column 0x6 .uleb128 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI42-.LCFI41 .byte 0x83 # DW_CFA_offset, column 0x3 .uleb128 0x4 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI43-.LCFI42 .byte 0xd # DW_CFA_def_cfa_register .uleb128 0x4 .byte 0xc6 # DW_CFA_restore, column 0x6 .byte 0xc3 # DW_CFA_restore, column 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI44-.LCFI43 .byte 0xc5 # DW_CFA_restore, column 0x5 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x4 .align 4 .LEFDE12: .LSFDE14: .long .LEFDE14-.LASFDE14 # FDE Length .LASFDE14: .long .Lframe0 # FDE CIE offset .long .LFB7 # FDE initial location .long .LFE7-.LFB7 # FDE address range .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI45-.LFB7 .byte 0xe # DW_CFA_def_cfa_offset .uleb128 0x8 .byte 0x85 # DW_CFA_offset, column 0x5 .uleb128 0x2 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI46-.LCFI45 .byte 0xd # DW_CFA_def_cfa_register .uleb128 0x5 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI47-.LCFI46 .byte 0x83 # DW_CFA_offset, column 0x3 .uleb128 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI49-.LCFI47 .byte 0xc3 # DW_CFA_restore, column 0x3 .byte 0x4 # DW_CFA_advance_loc4 .long .LCFI50-.LCFI49 .byte 0xc5 # DW_CFA_restore, column 0x5 .byte 0xc # DW_CFA_def_cfa .uleb128 0x4 .uleb128 0x4 .align 4 .LEFDE14: #NO_APP .text .Letext0: .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .long .LFB0-.Ltext0 # Location list begin address (*.LLST0) .long .LCFI0-.Ltext0 # Location list end address (*.LLST0) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long .LCFI0-.Ltext0 # Location list begin address (*.LLST0) .long .LCFI1-.Ltext0 # Location list end address (*.LLST0) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 8 .long .LCFI1-.Ltext0 # Location list begin address (*.LLST0) .long .LCFI2-.Ltext0 # Location list end address (*.LLST0) .value 0x2 # Location expression size .byte 0x75 # DW_OP_breg5 .sleb128 8 .long .LCFI2-.Ltext0 # Location list begin address (*.LLST0) .long .LFE0-.Ltext0 # Location list end address (*.LLST0) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long 0 # Location list terminator begin (*.LLST0) .long 0 # Location list terminator end (*.LLST0) .LLST1: .long .LFB1-.Ltext0 # Location list begin address (*.LLST1) .long .LCFI3-.Ltext0 # Location list end address (*.LLST1) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long .LCFI3-.Ltext0 # Location list begin address (*.LLST1) .long .LCFI4-.Ltext0 # Location list end address (*.LLST1) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 8 .long .LCFI4-.Ltext0 # Location list begin address (*.LLST1) .long .LCFI8-.Ltext0 # Location list end address (*.LLST1) .value 0x2 # Location expression size .byte 0x75 # DW_OP_breg5 .sleb128 8 .long .LCFI8-.Ltext0 # Location list begin address (*.LLST1) .long .LCFI9-.Ltext0 # Location list end address (*.LLST1) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 8 .long .LCFI9-.Ltext0 # Location list begin address (*.LLST1) .long .LFE1-.Ltext0 # Location list end address (*.LLST1) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long 0 # Location list terminator begin (*.LLST1) .long 0 # Location list terminator end (*.LLST1) .LLST2: .long .LVL1-.Ltext0 # Location list begin address (*.LLST2) .long .LVL2-.Ltext0 # Location list end address (*.LLST2) .value 0x6 # Location expression size .byte 0x34 # DW_OP_lit4 .byte 0x9f # DW_OP_stack_value .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x93 # DW_OP_piece .uleb128 0x4 .long .LVL2-.Ltext0 # Location list begin address (*.LLST2) .long .LVL3-.Ltext0 # Location list end address (*.LLST2) .value 0xc # Location expression size .byte 0x34 # DW_OP_lit4 .byte 0x9f # DW_OP_stack_value .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0x6 # DW_OP_deref .byte 0x23 # DW_OP_plus_uconst .uleb128 0x6 .byte 0x9f # DW_OP_stack_value .byte 0x93 # DW_OP_piece .uleb128 0x4 .long .LVL3-.Ltext0 # Location list begin address (*.LLST2) .long .LVL4-.Ltext0 # Location list end address (*.LLST2) .value 0xb # Location expression size .byte 0x53 # DW_OP_reg3 .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0x6 # DW_OP_deref .byte 0x23 # DW_OP_plus_uconst .uleb128 0x6 .byte 0x9f # DW_OP_stack_value .byte 0x93 # DW_OP_piece .uleb128 0x4 .long .LVL4-.Ltext0 # Location list begin address (*.LLST2) .long .LVL5-.Ltext0 # Location list end address (*.LLST2) .value 0x6 # Location expression size .byte 0x53 # DW_OP_reg3 .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x56 # DW_OP_reg6 .byte 0x93 # DW_OP_piece .uleb128 0x4 .long .LVL5-.Ltext0 # Location list begin address (*.LLST2) .long .LVL6-.Ltext0 # Location list end address (*.LLST2) .value 0x5 # Location expression size .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x56 # DW_OP_reg6 .byte 0x93 # DW_OP_piece .uleb128 0x4 .long 0 # Location list terminator begin (*.LLST2) .long 0 # Location list terminator end (*.LLST2) .LLST3: .long .LFB2-.Ltext0 # Location list begin address (*.LLST3) .long .LCFI10-.Ltext0 # Location list end address (*.LLST3) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long .LCFI10-.Ltext0 # Location list begin address (*.LLST3) .long .LCFI11-.Ltext0 # Location list end address (*.LLST3) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 8 .long .LCFI11-.Ltext0 # Location list begin address (*.LLST3) .long .LCFI15-.Ltext0 # Location list end address (*.LLST3) .value 0x2 # Location expression size .byte 0x75 # DW_OP_breg5 .sleb128 8 .long .LCFI15-.Ltext0 # Location list begin address (*.LLST3) .long .LCFI16-.Ltext0 # Location list end address (*.LLST3) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 8 .long .LCFI16-.Ltext0 # Location list begin address (*.LLST3) .long .LFE2-.Ltext0 # Location list end address (*.LLST3) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long 0 # Location list terminator begin (*.LLST3) .long 0 # Location list terminator end (*.LLST3) .LLST4: .long .LVL7-.Ltext0 # Location list begin address (*.LLST4) .long .LVL8-.Ltext0 # Location list end address (*.LLST4) .value 0x6 # Location expression size .byte 0x34 # DW_OP_lit4 .byte 0x9f # DW_OP_stack_value .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x93 # DW_OP_piece .uleb128 0x4 .long .LVL8-.Ltext0 # Location list begin address (*.LLST4) .long .LVL9-.Ltext0 # Location list end address (*.LLST4) .value 0xc # Location expression size .byte 0x34 # DW_OP_lit4 .byte 0x9f # DW_OP_stack_value .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0x6 # DW_OP_deref .byte 0x23 # DW_OP_plus_uconst .uleb128 0x6 .byte 0x9f # DW_OP_stack_value .byte 0x93 # DW_OP_piece .uleb128 0x4 .long .LVL9-.Ltext0 # Location list begin address (*.LLST4) .long .LVL10-.Ltext0 # Location list end address (*.LLST4) .value 0xb # Location expression size .byte 0x53 # DW_OP_reg3 .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0x6 # DW_OP_deref .byte 0x23 # DW_OP_plus_uconst .uleb128 0x6 .byte 0x9f # DW_OP_stack_value .byte 0x93 # DW_OP_piece .uleb128 0x4 .long .LVL10-.Ltext0 # Location list begin address (*.LLST4) .long .LVL11-.Ltext0 # Location list end address (*.LLST4) .value 0x6 # Location expression size .byte 0x53 # DW_OP_reg3 .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x56 # DW_OP_reg6 .byte 0x93 # DW_OP_piece .uleb128 0x4 .long .LVL11-.Ltext0 # Location list begin address (*.LLST4) .long .LVL12-.Ltext0 # Location list end address (*.LLST4) .value 0x5 # Location expression size .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x56 # DW_OP_reg6 .byte 0x93 # DW_OP_piece .uleb128 0x4 .long 0 # Location list terminator begin (*.LLST4) .long 0 # Location list terminator end (*.LLST4) .LLST5: .long .LFB3-.Ltext0 # Location list begin address (*.LLST5) .long .LCFI17-.Ltext0 # Location list end address (*.LLST5) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long .LCFI17-.Ltext0 # Location list begin address (*.LLST5) .long .LCFI18-.Ltext0 # Location list end address (*.LLST5) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 8 .long .LCFI18-.Ltext0 # Location list begin address (*.LLST5) .long .LCFI22-.Ltext0 # Location list end address (*.LLST5) .value 0x2 # Location expression size .byte 0x75 # DW_OP_breg5 .sleb128 8 .long .LCFI22-.Ltext0 # Location list begin address (*.LLST5) .long .LCFI23-.Ltext0 # Location list end address (*.LLST5) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 8 .long .LCFI23-.Ltext0 # Location list begin address (*.LLST5) .long .LFE3-.Ltext0 # Location list end address (*.LLST5) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long 0 # Location list terminator begin (*.LLST5) .long 0 # Location list terminator end (*.LLST5) .LLST6: .long .LVL13-.Ltext0 # Location list begin address (*.LLST6) .long .LVL14-.Ltext0 # Location list end address (*.LLST6) .value 0x8 # Location expression size .byte 0x34 # DW_OP_lit4 .byte 0x9f # DW_OP_stack_value .byte 0x9d # DW_OP_bit_piece .uleb128 0xc .uleb128 0 .byte 0x9d # DW_OP_bit_piece .uleb128 0x14 .uleb128 0 .long .LVL14-.Ltext0 # Location list begin address (*.LLST6) .long .LVL15-.Ltext0 # Location list end address (*.LLST6) .value 0x11 # Location expression size .byte 0x34 # DW_OP_lit4 .byte 0x9f # DW_OP_stack_value .byte 0x9d # DW_OP_bit_piece .uleb128 0xc .uleb128 0 .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0x94 # DW_OP_deref_size .byte 0x2 .byte 0x23 # DW_OP_plus_uconst .uleb128 0x6 .byte 0x9f # DW_OP_stack_value .byte 0x9d # DW_OP_bit_piece .uleb128 0xc .uleb128 0 .byte 0x93 # DW_OP_piece .uleb128 0x1 .long .LVL15-.Ltext0 # Location list begin address (*.LLST6) .long .LVL16-1-.Ltext0 # Location list end address (*.LLST6) .value 0x10 # Location expression size .byte 0x52 # DW_OP_reg2 .byte 0x9d # DW_OP_bit_piece .uleb128 0xc .uleb128 0 .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0x94 # DW_OP_deref_size .byte 0x2 .byte 0x23 # DW_OP_plus_uconst .uleb128 0x7 .byte 0x9f # DW_OP_stack_value .byte 0x9d # DW_OP_bit_piece .uleb128 0xc .uleb128 0 .byte 0x93 # DW_OP_piece .uleb128 0x1 .long .LVL16-1-.Ltext0 # Location list begin address (*.LLST6) .long .LVL17-.Ltext0 # Location list end address (*.LLST6) .value 0x10 # Location expression size .byte 0x56 # DW_OP_reg6 .byte 0x9d # DW_OP_bit_piece .uleb128 0xc .uleb128 0 .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0x94 # DW_OP_deref_size .byte 0x2 .byte 0x23 # DW_OP_plus_uconst .uleb128 0x7 .byte 0x9f # DW_OP_stack_value .byte 0x9d # DW_OP_bit_piece .uleb128 0xc .uleb128 0 .byte 0x93 # DW_OP_piece .uleb128 0x1 .long .LVL17-.Ltext0 # Location list begin address (*.LLST6) .long .LFE3-.Ltext0 # Location list end address (*.LLST6) .value 0xf # Location expression size .byte 0x9d # DW_OP_bit_piece .uleb128 0xc .uleb128 0 .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0x94 # DW_OP_deref_size .byte 0x2 .byte 0x23 # DW_OP_plus_uconst .uleb128 0x7 .byte 0x9f # DW_OP_stack_value .byte 0x9d # DW_OP_bit_piece .uleb128 0xc .uleb128 0 .byte 0x93 # DW_OP_piece .uleb128 0x1 .long 0 # Location list terminator begin (*.LLST6) .long 0 # Location list terminator end (*.LLST6) .LLST7: .long .LFB4-.Ltext0 # Location list begin address (*.LLST7) .long .LCFI24-.Ltext0 # Location list end address (*.LLST7) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long .LCFI24-.Ltext0 # Location list begin address (*.LLST7) .long .LCFI25-.Ltext0 # Location list end address (*.LLST7) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 8 .long .LCFI25-.Ltext0 # Location list begin address (*.LLST7) .long .LCFI29-.Ltext0 # Location list end address (*.LLST7) .value 0x2 # Location expression size .byte 0x75 # DW_OP_breg5 .sleb128 8 .long .LCFI29-.Ltext0 # Location list begin address (*.LLST7) .long .LCFI30-.Ltext0 # Location list end address (*.LLST7) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 8 .long .LCFI30-.Ltext0 # Location list begin address (*.LLST7) .long .LFE4-.Ltext0 # Location list end address (*.LLST7) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long 0 # Location list terminator begin (*.LLST7) .long 0 # Location list terminator end (*.LLST7) .LLST8: .long .LVL19-.Ltext0 # Location list begin address (*.LLST8) .long .LVL20-.Ltext0 # Location list end address (*.LLST8) .value 0x8 # Location expression size .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0x93 # DW_OP_piece .uleb128 0x4 .long .LVL20-.Ltext0 # Location list begin address (*.LLST8) .long .LVL21-.Ltext0 # Location list end address (*.LLST8) .value 0x6 # Location expression size .byte 0x53 # DW_OP_reg3 .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x56 # DW_OP_reg6 .byte 0x93 # DW_OP_piece .uleb128 0x4 .long .LVL21-.Ltext0 # Location list begin address (*.LLST8) .long .LVL22-.Ltext0 # Location list end address (*.LLST8) .value 0x5 # Location expression size .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x56 # DW_OP_reg6 .byte 0x93 # DW_OP_piece .uleb128 0x4 .long 0 # Location list terminator begin (*.LLST8) .long 0 # Location list terminator end (*.LLST8) .LLST9: .long .LFB5-.Ltext0 # Location list begin address (*.LLST9) .long .LCFI31-.Ltext0 # Location list end address (*.LLST9) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long .LCFI31-.Ltext0 # Location list begin address (*.LLST9) .long .LCFI32-.Ltext0 # Location list end address (*.LLST9) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 8 .long .LCFI32-.Ltext0 # Location list begin address (*.LLST9) .long .LCFI36-.Ltext0 # Location list end address (*.LLST9) .value 0x2 # Location expression size .byte 0x75 # DW_OP_breg5 .sleb128 8 .long .LCFI36-.Ltext0 # Location list begin address (*.LLST9) .long .LCFI37-.Ltext0 # Location list end address (*.LLST9) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 8 .long .LCFI37-.Ltext0 # Location list begin address (*.LLST9) .long .LFE5-.Ltext0 # Location list end address (*.LLST9) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long 0 # Location list terminator begin (*.LLST9) .long 0 # Location list terminator end (*.LLST9) .LLST10: .long .LVL24-.Ltext0 # Location list begin address (*.LLST10) .long .LVL25-.Ltext0 # Location list end address (*.LLST10) .value 0x8 # Location expression size .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0x93 # DW_OP_piece .uleb128 0x4 .long .LVL25-.Ltext0 # Location list begin address (*.LLST10) .long .LVL26-.Ltext0 # Location list end address (*.LLST10) .value 0x6 # Location expression size .byte 0x53 # DW_OP_reg3 .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x56 # DW_OP_reg6 .byte 0x93 # DW_OP_piece .uleb128 0x4 .long .LVL26-.Ltext0 # Location list begin address (*.LLST10) .long .LVL27-.Ltext0 # Location list end address (*.LLST10) .value 0x5 # Location expression size .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x56 # DW_OP_reg6 .byte 0x93 # DW_OP_piece .uleb128 0x4 .long 0 # Location list terminator begin (*.LLST10) .long 0 # Location list terminator end (*.LLST10) .LLST11: .long .LFB6-.Ltext0 # Location list begin address (*.LLST11) .long .LCFI38-.Ltext0 # Location list end address (*.LLST11) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long .LCFI38-.Ltext0 # Location list begin address (*.LLST11) .long .LCFI39-.Ltext0 # Location list end address (*.LLST11) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 8 .long .LCFI39-.Ltext0 # Location list begin address (*.LLST11) .long .LCFI43-.Ltext0 # Location list end address (*.LLST11) .value 0x2 # Location expression size .byte 0x75 # DW_OP_breg5 .sleb128 8 .long .LCFI43-.Ltext0 # Location list begin address (*.LLST11) .long .LCFI44-.Ltext0 # Location list end address (*.LLST11) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 8 .long .LCFI44-.Ltext0 # Location list begin address (*.LLST11) .long .LFE6-.Ltext0 # Location list end address (*.LLST11) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long 0 # Location list terminator begin (*.LLST11) .long 0 # Location list terminator end (*.LLST11) .LLST12: .long .LVL29-.Ltext0 # Location list begin address (*.LLST12) .long .LVL30-.Ltext0 # Location list end address (*.LLST12) .value 0xa # Location expression size .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x93 # DW_OP_piece .uleb128 0x4 .long .LVL30-.Ltext0 # Location list begin address (*.LLST12) .long .LVL31-.Ltext0 # Location list end address (*.LLST12) .value 0x8 # Location expression size .byte 0x53 # DW_OP_reg3 .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x56 # DW_OP_reg6 .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x93 # DW_OP_piece .uleb128 0x4 .long .LVL31-.Ltext0 # Location list begin address (*.LLST12) .long .LVL32-.Ltext0 # Location list end address (*.LLST12) .value 0x7 # Location expression size .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x56 # DW_OP_reg6 .byte 0x93 # DW_OP_piece .uleb128 0x4 .byte 0x93 # DW_OP_piece .uleb128 0x4 .long 0 # Location list terminator begin (*.LLST12) .long 0 # Location list terminator end (*.LLST12) .LLST13: .long .LFB7-.Ltext0 # Location list begin address (*.LLST13) .long .LCFI45-.Ltext0 # Location list end address (*.LLST13) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long .LCFI45-.Ltext0 # Location list begin address (*.LLST13) .long .LCFI46-.Ltext0 # Location list end address (*.LLST13) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 8 .long .LCFI46-.Ltext0 # Location list begin address (*.LLST13) .long .LCFI50-.Ltext0 # Location list end address (*.LLST13) .value 0x2 # Location expression size .byte 0x75 # DW_OP_breg5 .sleb128 8 .long .LCFI50-.Ltext0 # Location list begin address (*.LLST13) .long .LFE7-.Ltext0 # Location list end address (*.LLST13) .value 0x2 # Location expression size .byte 0x74 # DW_OP_breg4 .sleb128 4 .long 0 # Location list terminator begin (*.LLST13) .long 0 # Location list terminator end (*.LLST13) .LLST14: .long .LVL33-.Ltext0 # Location list begin address (*.LLST14) .long .LVL34-.Ltext0 # Location list end address (*.LLST14) .value 0x1 # Location expression size .byte 0x53 # DW_OP_reg3 .long 0 # Location list terminator begin (*.LLST14) .long 0 # Location list terminator end (*.LLST14) .section .debug_info .long 0x252 # Length of Compilation Unit Info .value 0x2 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x4 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .long .LASF1 # DW_AT_producer: "GNU C 4.6.0 20100506 (experimental) [trunk revision 159117]" .byte 0x1 # DW_AT_language .long .LASF2 # DW_AT_name: "pieces.c" .long .LASF3 # DW_AT_comp_dir: "/home/tromey/gnu/archer/archer/gdb/testsuite/gdb.dwarf2" .long .Ltext0 # DW_AT_low_pc .long .Letext0 # DW_AT_high_pc .long .Ldebug_line0 # DW_AT_stmt_list .uleb128 0x2 # (DIE (0x25) DW_TAG_structure_type) .ascii "A\0" # DW_AT_name .byte 0x8 # DW_AT_byte_size .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x17 # DW_AT_decl_line .long 0x48 # DW_AT_sibling .uleb128 0x3 # (DIE (0x2f) DW_TAG_member) .ascii "i\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x17 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x2 # DW_AT_data_member_location .byte 0x23 # DW_OP_plus_uconst .uleb128 0 .uleb128 0x3 # (DIE (0x3b) DW_TAG_member) .ascii "j\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x17 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x2 # DW_AT_data_member_location .byte 0x23 # DW_OP_plus_uconst .uleb128 0x4 .byte 0 # end of children of DIE 0x25 .uleb128 0x4 # (DIE (0x48) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .uleb128 0x2 # (DIE (0x4f) DW_TAG_structure_type) .ascii "B\0" # DW_AT_name .byte 0x4 # DW_AT_byte_size .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x18 # DW_AT_decl_line .long 0x78 # DW_AT_sibling .uleb128 0x5 # (DIE (0x59) DW_TAG_member) .ascii "i\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x18 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x4 # DW_AT_byte_size .byte 0xc # DW_AT_bit_size .byte 0x14 # DW_AT_bit_offset .byte 0x2 # DW_AT_data_member_location .byte 0x23 # DW_OP_plus_uconst .uleb128 0 .uleb128 0x5 # (DIE (0x68) DW_TAG_member) .ascii "j\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x18 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x4 # DW_AT_byte_size .byte 0xc # DW_AT_bit_size .byte 0x8 # DW_AT_bit_offset .byte 0x2 # DW_AT_data_member_location .byte 0x23 # DW_OP_plus_uconst .uleb128 0 .byte 0 # end of children of DIE 0x4f .uleb128 0x2 # (DIE (0x78) DW_TAG_structure_type) .ascii "C\0" # DW_AT_name .byte 0xc # DW_AT_byte_size .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x19 # DW_AT_decl_line .long 0xa7 # DW_AT_sibling .uleb128 0x3 # (DIE (0x82) DW_TAG_member) .ascii "i\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x19 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x2 # DW_AT_data_member_location .byte 0x23 # DW_OP_plus_uconst .uleb128 0 .uleb128 0x3 # (DIE (0x8e) DW_TAG_member) .ascii "j\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x19 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x2 # DW_AT_data_member_location .byte 0x23 # DW_OP_plus_uconst .uleb128 0x4 .uleb128 0x3 # (DIE (0x9a) DW_TAG_member) .ascii "q\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x19 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x2 # DW_AT_data_member_location .byte 0x23 # DW_OP_plus_uconst .uleb128 0x8 .byte 0 # end of children of DIE 0x78 .uleb128 0x6 # (DIE (0xa7) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .ascii "bar\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x1c # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long .LFB0 # DW_AT_low_pc .long .LFE0 # DW_AT_high_pc .long .LLST0 # DW_AT_frame_base .long 0xcd # DW_AT_sibling .uleb128 0x7 # (DIE (0xc0) DW_TAG_formal_parameter) .ascii "x\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x1c # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .byte 0 # end of children of DIE 0xa7 .uleb128 0x8 # (DIE (0xcd) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .ascii "f1\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x22 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .long .LFB1 # DW_AT_low_pc .long .LFE1 # DW_AT_high_pc .long .LLST1 # DW_AT_frame_base .long 0x103 # DW_AT_sibling .uleb128 0x7 # (DIE (0xe9) DW_TAG_formal_parameter) .ascii "k\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x22 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .uleb128 0x9 # (DIE (0xf5) DW_TAG_variable) .ascii "a\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x24 # DW_AT_decl_line .long 0x25 # DW_AT_type .long .LLST2 # DW_AT_location .byte 0 # end of children of DIE 0xcd .uleb128 0x8 # (DIE (0x103) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .ascii "f2\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x2d # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .long .LFB2 # DW_AT_low_pc .long .LFE2 # DW_AT_high_pc .long .LLST3 # DW_AT_frame_base .long 0x139 # DW_AT_sibling .uleb128 0x7 # (DIE (0x11f) DW_TAG_formal_parameter) .ascii "k\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x2d # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .uleb128 0x9 # (DIE (0x12b) DW_TAG_variable) .ascii "a\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x2f # DW_AT_decl_line .long 0x139 # DW_AT_type .long .LLST4 # DW_AT_location .byte 0 # end of children of DIE 0x103 .uleb128 0xa # (DIE (0x139) DW_TAG_array_type) .long 0x48 # DW_AT_type .long 0x149 # DW_AT_sibling .uleb128 0xb # (DIE (0x142) DW_TAG_subrange_type) .long 0x149 # DW_AT_type .byte 0x1 # DW_AT_upper_bound .byte 0 # end of children of DIE 0x139 .uleb128 0xc # (DIE (0x149) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x7 # DW_AT_encoding .uleb128 0x8 # (DIE (0x14c) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .ascii "f3\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x38 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .long .LFB3 # DW_AT_low_pc .long .LFE3 # DW_AT_high_pc .long .LLST5 # DW_AT_frame_base .long 0x182 # DW_AT_sibling .uleb128 0x7 # (DIE (0x168) DW_TAG_formal_parameter) .ascii "k\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x38 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .uleb128 0x9 # (DIE (0x174) DW_TAG_variable) .ascii "a\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x3a # DW_AT_decl_line .long 0x4f # DW_AT_type .long .LLST6 # DW_AT_location .byte 0 # end of children of DIE 0x14c .uleb128 0x8 # (DIE (0x182) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .ascii "f4\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x43 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .long .LFB4 # DW_AT_low_pc .long .LFE4 # DW_AT_high_pc .long .LLST7 # DW_AT_frame_base .long 0x1b8 # DW_AT_sibling .uleb128 0x7 # (DIE (0x19e) DW_TAG_formal_parameter) .ascii "k\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x43 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .uleb128 0x9 # (DIE (0x1aa) DW_TAG_variable) .ascii "a\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x45 # DW_AT_decl_line .long 0x139 # DW_AT_type .long .LLST8 # DW_AT_location .byte 0 # end of children of DIE 0x182 .uleb128 0x8 # (DIE (0x1b8) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .ascii "f5\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x4e # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .long .LFB5 # DW_AT_low_pc .long .LFE5 # DW_AT_high_pc .long .LLST9 # DW_AT_frame_base .long 0x1ee # DW_AT_sibling .uleb128 0x7 # (DIE (0x1d4) DW_TAG_formal_parameter) .ascii "k\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x4e # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .uleb128 0x9 # (DIE (0x1e0) DW_TAG_variable) .ascii "a\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x50 # DW_AT_decl_line .long 0x25 # DW_AT_type .long .LLST10 # DW_AT_location .byte 0 # end of children of DIE 0x1b8 .uleb128 0x8 # (DIE (0x1ee) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .ascii "f6\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x59 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .long .LFB6 # DW_AT_low_pc .long .LFE6 # DW_AT_high_pc .long .LLST11 # DW_AT_frame_base .long 0x22e # DW_AT_sibling .uleb128 0x7 # (DIE (0x20a) DW_TAG_formal_parameter) .ascii "k\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x59 # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 0 .uleb128 0xd # (DIE (0x216) DW_TAG_variable) .ascii "z\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x5b # DW_AT_decl_line .long 0x48 # DW_AT_type .byte 0x17 # DW_AT_const_value .uleb128 0x9 # (DIE (0x220) DW_TAG_variable) .ascii "a\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x5c # DW_AT_decl_line .long 0x78 # DW_AT_type .long .LLST12 # DW_AT_location .byte 0 # end of children of DIE 0x1ee .uleb128 0xe # (DIE (0x22e) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .long .LASF0 # DW_AT_name: "main" .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x65 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x48 # DW_AT_type .long .LFB7 # DW_AT_low_pc .long .LFE7 # DW_AT_high_pc .long .LLST13 # DW_AT_frame_base .uleb128 0x9 # (DIE (0x247) DW_TAG_variable) .ascii "k\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (pieces.c) .byte 0x67 # DW_AT_decl_line .long 0x48 # DW_AT_type .long .LLST14 # DW_AT_location .byte 0 # end of children of DIE 0x22e .byte 0 # end of children of DIE 0xb .section .debug_abbrev .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x6 # (DW_FORM_data4) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x13 # (TAG: DW_TAG_structure_type) .byte 0x1 # DW_children_yes .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x3 # (abbrev code) .uleb128 0xd # (TAG: DW_TAG_member) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x38 # (DW_AT_data_member_location) .uleb128 0xa # (DW_FORM_block1) .byte 0 .byte 0 .uleb128 0x4 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0 .byte 0 .uleb128 0x5 # (abbrev code) .uleb128 0xd # (TAG: DW_TAG_member) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0xd # (DW_AT_bit_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0xc # (DW_AT_bit_offset) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x38 # (DW_AT_data_member_location) .uleb128 0xa # (DW_FORM_block1) .byte 0 .byte 0 .uleb128 0x6 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x7 # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0xa # (DW_FORM_block1) .byte 0 .byte 0 .uleb128 0x8 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x9 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x6 # (DW_FORM_data4) .byte 0 .byte 0 .uleb128 0xa # (abbrev code) .uleb128 0x1 # (TAG: DW_TAG_array_type) .byte 0x1 # DW_children_yes .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0xb # (abbrev code) .uleb128 0x21 # (TAG: DW_TAG_subrange_type) .byte 0 # DW_children_no .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2f # (DW_AT_upper_bound) .uleb128 0xb # (DW_FORM_data1) .byte 0 .byte 0 .uleb128 0xc # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .byte 0 .byte 0 .uleb128 0xd # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x1c # (DW_AT_const_value) .uleb128 0xb # (DW_FORM_data1) .byte 0 .byte 0 .uleb128 0xe # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x6 # (DW_FORM_data4) .byte 0 .byte 0 .byte 0 .section .debug_pubnames,"",@progbits .long 0x49 # Length of Public Names Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .long 0x256 # Compilation Unit Length .long 0xa7 # DIE offset .ascii "bar\0" # external name .long 0xcd # DIE offset .ascii "f1\0" # external name .long 0x103 # DIE offset .ascii "f2\0" # external name .long 0x14c # DIE offset .ascii "f3\0" # external name .long 0x182 # DIE offset .ascii "f4\0" # external name .long 0x1b8 # DIE offset .ascii "f5\0" # external name .long 0x1ee # DIE offset .ascii "f6\0" # external name .long 0x22e # DIE offset .ascii "main\0" # external name .long 0 .section .debug_pubtypes,"",@progbits .long 0x20 # Length of Public Type Names Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .long 0x256 # Compilation Unit Length .long 0x25 # DIE offset .ascii "A\0" # external name .long 0x4f # DIE offset .ascii "B\0" # external name .long 0x78 # DIE offset .ascii "C\0" # external name .long 0 .section .debug_aranges,"",@progbits .long 0x1c # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .byte 0x4 # Size of Address .byte 0 # Size of Segment Descriptor .value 0 # Pad to 8 byte boundary .value 0 .long .Ltext0 # Address .long .Letext0-.Ltext0 # Length .long 0 .long 0 .section .debug_str,"MS",@progbits,1 .LASF2: .string "pieces.c" .LASF3: .string "/home/tromey/gnu/archer/archer/gdb/testsuite/gdb.dwarf2" .LASF1: .string "GNU C 4.6.0 20100506 (experimental) [trunk revision 159117]" .LASF0: .string "main" .ident "GCC: (GNU) 4.6.0 20100506 (experimental) [trunk revision 159117]" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
4,976
gdb/testsuite/gdb.dwarf2/dw2-inline-param.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2010-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte cu_text_start /* DW_AT_low_pc */ .4byte cu_text_end /* DW_AT_high_pc */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ .Ltype_int: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .uleb128 4 /* Abbrev: DW_TAG_subprogram */ .ascii "main\0" /* DW_AT_name */ .4byte cu_text_start /* DW_AT_low_pc */ .4byte cu_text_end /* DW_AT_high_pc */ .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_prototyped */ .uleb128 6 /* Abbrev: DW_TAG_formal_parameter */ .ascii "mainparam\0" /* DW_AT_name */ .uleb128 5 /* Abbrev: DW_TAG_inlined_subroutine */ .ascii "func\0" /* DW_AT_name */ .4byte block_start /* DW_AT_low_pc */ .4byte block_end /* DW_AT_high_pc */ .byte 3 /* DW_AT_inline (DW_INL_declared_inlined) */ .byte 1 /* DW_AT_prototyped */ .byte 0 /* DW_AT_call_file */ .byte 1 /* DW_AT_call_line */ .uleb128 6 /* Abbrev: DW_TAG_formal_parameter */ .ascii "funcparam\0" /* DW_AT_name */ .byte 0 /* End of children of func */ .byte 0 /* End of children of main */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 4 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 1 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x27 /* DW_AT_prototyped */ .uleb128 0xc /* DW_FORM_flag */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 5 /* Abbrev code */ .uleb128 0x1d /* DW_TAG_inlined_subroutine */ .byte 1 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x20 /* DW_AT_inline */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x27 /* DW_AT_prototyped */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x58 /* DW_AT_call_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x59 /* DW_AT_call_line */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 6 /* Abbrev code */ .uleb128 0x05 /* DW_TAG_formal_parameter */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */
tactcomplabs/xbgas-binutils-gdb
3,412
gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2009-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Test G++ 4.1 producing DW_TAG_namespace with DW_AT_name "::". */ .data var: .4byte 1 .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 4 /* DW_LANG_C_plus_plus (C++) */ .Ltype_int: .uleb128 2 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ .uleb128 3 /* Abbrev: DW_TAG_namespace */ .ascii "::\0" /* DW_AT_name */ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */ .ascii "var\0" /* DW_AT_name */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 3 /* DW_OP_addr */ .4byte var /* <addr> */ 2: .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 0 /* End of children of DW_TAG_namespace */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x39 /* DW_TAG_namespace */ .byte 1 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 7 /* Abbrev code (location) */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x2 /* DW_AT_location */ .uleb128 0xa /* DW_FORM_block1 */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */
tactcomplabs/xbgas-binutils-gdb
5,271
gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .text .globl _start _start: .globl outer_before .type outer_before, %function outer_before: .Lbegin_outer_before: .int 0 .Lend_outer_before: .size outer_before, . - outer_before .globl outer_inner outer_inner: .int 0 .globl outer_after .type outer_after, %function outer_after: .Lbegin_outer_after: .int 0 .Lend_outer_after: .size outer_after, . - outer_after /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lline1_begin /* DW_AT_stmt_list */ .4byte 0 /* DW_AT_low_pc */ .4byte .Ldebug_ranges /* DW_AT_ranges */ .ascii "outer.c\0" /* DW_AT_name */ .ascii "/tmp\0" /* DW_AT_comp_dir */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ /* outer_before */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_decl_file */ .byte 1 /* DW_AT_decl_line */ .ascii "outer_before\0" /* DW_AT_name */ .4byte .Lbegin_outer_before /* DW_AT_low_pc */ .4byte .Lend_outer_before /* DW_AT_high_pc */ /* outer_after */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ .byte 1 /* DW_AT_external */ .byte 1 /* DW_AT_decl_file */ .byte 2 /* DW_AT_decl_line */ .ascii "outer_after\0" /* DW_AT_name */ .4byte .Lbegin_outer_after /* DW_AT_low_pc */ .4byte .Lend_outer_after /* DW_AT_high_pc */ .byte 0 /* End of children of CU */ .Lcu1_end: /* DW_AT_ranges. */ .section .debug_ranges .Ldebug_ranges: .4byte .Lbegin_outer_before .4byte .Lend_outer_before .4byte .Lbegin_outer_after .4byte .Lend_outer_after .4byte 0 .4byte 0 /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x55 /* DW_AT_ranges */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x1b /* DW_AT_comp_dir */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 2 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram */ .byte 0 /* has_children */ .uleb128 0x3f /* DW_AT_external */ .uleb128 0xc /* DW_FORM_flag */ .uleb128 0x3a /* DW_AT_decl_file */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3b /* DW_AT_decl_line */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ /* Line table */ .section .debug_line .Lline1_begin: .4byte .Lline1_end - .Lline1_start /* Initial length */ .Lline1_start: .2byte 2 /* Version */ .4byte .Lline1_lines - .Lline1_hdr /* header_length */ .Lline1_hdr: .byte 1 /* Minimum insn length */ .byte 1 /* default_is_stmt */ .byte 1 /* line_base */ .byte 1 /* line_range */ .byte 0x10 /* opcode_base */ /* Standard lengths */ .byte 0 .byte 1 .byte 1 .byte 1 .byte 1 .byte 0 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 1 .byte 0 .byte 0 .byte 0 /* Include directories */ .ascii "/tmp\0" .byte 0 /* File names */ .ascii "outer.c\0" .uleb128 1 .uleb128 0 .uleb128 0 .byte 0 .Lline1_lines: .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lbegin_outer_before .byte 1 /* DW_LNS_copy */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lbegin_outer_after .byte 3 /* DW_LNS_advance_line */ .sleb128 2 /* ... to 3 */ .byte 1 /* DW_LNS_copy */ .byte 0 /* DW_LNE_set_address */ .uleb128 5 .byte 2 .4byte .Lend_outer_after .byte 0 /* DW_LNE_end_of_sequence */ .uleb128 1 .byte 1 .Lline1_end:
tactcomplabs/xbgas-binutils-gdb
12,801
gdb/testsuite/gdb.btrace/i686-tailcall-only.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2016-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. This file has been generated using: gcc -m32 -march=i686 -S -O2 -dA -g tailcall-only.c -o i686-tailcall-only.S */ .file "tailcall-only.c" .text .Ltext0: .p2align 4,,15 .type bar_1, @function bar_1: .LFB0: .file 1 "tailcall-only.c" # tailcall-only.c:22 .loc 1 22 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) # tailcall-only.c:24 .loc 1 24 0 movl $42, %eax # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE0: .size bar_1, .-bar_1 .p2align 4,,15 .type bar, @function bar: .LFB1: # tailcall-only.c:28 .loc 1 28 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) # tailcall-only.c:29 .loc 1 29 0 jmp bar_1 # SUCC: EXIT [100.0%] (ABNORMAL,SIBCALL) .LVL0: .cfi_endproc .LFE1: .size bar, .-bar .p2align 4,,15 .type foo_1, @function foo_1: .LFB2: # tailcall-only.c:34 .loc 1 34 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) # tailcall-only.c:35 .loc 1 35 0 jmp bar # SUCC: EXIT [100.0%] (ABNORMAL,SIBCALL) .LVL1: .cfi_endproc .LFE2: .size foo_1, .-foo_1 .p2align 4,,15 .type foo, @function foo: .LFB3: # tailcall-only.c:40 .loc 1 40 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) # tailcall-only.c:41 .loc 1 41 0 jmp foo_1 # SUCC: EXIT [100.0%] (ABNORMAL,SIBCALL) .LVL2: .cfi_endproc .LFE3: .size foo, .-foo .section .text.startup,"ax",@progbits .p2align 4,,15 .globl main .type main, @function main: .LFB4: # tailcall-only.c:46 .loc 1 46 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) # tailcall-only.c:49 .loc 1 49 0 call foo .LVL3: # tailcall-only.c:50 .loc 1 50 0 addl $1, %eax .LVL4: # SUCC: EXIT [100.0%] # tailcall-only.c:53 .loc 1 53 0 ret .cfi_endproc .LFE4: .size main, .-main .text .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0xd5 # Length of Compilation Unit Info .value 0x4 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x4 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .long .LASF1 # DW_AT_producer: "GNU C 4.8.3 20140911 (Red Hat 4.8.3-9) -m32 -march=i686 -g -O2" .byte 0x1 # DW_AT_language .long .LASF2 # DW_AT_name: "tailcall-only.c" .long .LASF3 # DW_AT_comp_dir: "" .long .Ldebug_ranges0+0 # DW_AT_ranges .long 0 # DW_AT_low_pc .long .Ldebug_line0 # DW_AT_stmt_list .uleb128 0x2 # (DIE (0x25) DW_TAG_subprogram) .long .LASF4 # DW_AT_name: "bar_1" .byte 0x1 # DW_AT_decl_file (tailcall-only.c) .byte 0x15 # DW_AT_decl_line # DW_AT_prototyped .long 0x3a # DW_AT_type .long .LFB0 # DW_AT_low_pc .long .LFE0-.LFB0 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .uleb128 0x3 # (DIE (0x3a) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .uleb128 0x4 # (DIE (0x41) DW_TAG_subprogram) .ascii "bar\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (tailcall-only.c) .byte 0x1b # DW_AT_decl_line # DW_AT_prototyped .long 0x3a # DW_AT_type .long .LFB1 # DW_AT_low_pc .long .LFE1-.LFB1 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .long 0x64 # DW_AT_sibling .uleb128 0x5 # (DIE (0x5a) DW_TAG_GNU_call_site) .long .LVL0 # DW_AT_low_pc # DW_AT_GNU_tail_call .long 0x25 # DW_AT_abstract_origin .byte 0 # end of children of DIE 0x41 .uleb128 0x6 # (DIE (0x64) DW_TAG_subprogram) .long .LASF0 # DW_AT_name: "foo_1" .byte 0x1 # DW_AT_decl_file (tailcall-only.c) .byte 0x21 # DW_AT_decl_line # DW_AT_prototyped .long 0x3a # DW_AT_type .long .LFB2 # DW_AT_low_pc .long .LFE2-.LFB2 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .long 0x87 # DW_AT_sibling .uleb128 0x5 # (DIE (0x7d) DW_TAG_GNU_call_site) .long .LVL1 # DW_AT_low_pc # DW_AT_GNU_tail_call .long 0x41 # DW_AT_abstract_origin .byte 0 # end of children of DIE 0x64 .uleb128 0x4 # (DIE (0x87) DW_TAG_subprogram) .ascii "foo\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (tailcall-only.c) .byte 0x27 # DW_AT_decl_line # DW_AT_prototyped .long 0x3a # DW_AT_type .long .LFB3 # DW_AT_low_pc .long .LFE3-.LFB3 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .long 0xaa # DW_AT_sibling .uleb128 0x5 # (DIE (0xa0) DW_TAG_GNU_call_site) .long .LVL2 # DW_AT_low_pc # DW_AT_GNU_tail_call .long 0x64 # DW_AT_abstract_origin .byte 0 # end of children of DIE 0x87 .uleb128 0x7 # (DIE (0xaa) DW_TAG_subprogram) # DW_AT_external .long .LASF5 # DW_AT_name: "main" .byte 0x1 # DW_AT_decl_file (tailcall-only.c) .byte 0x2d # DW_AT_decl_line # DW_AT_prototyped .long 0x3a # DW_AT_type .long .LFB4 # DW_AT_low_pc .long .LFE4-.LFB4 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .uleb128 0x8 # (DIE (0xbf) DW_TAG_variable) .long .LASF6 # DW_AT_name: "answer" .byte 0x1 # DW_AT_decl_file (tailcall-only.c) .byte 0x2f # DW_AT_decl_line .long 0x3a # DW_AT_type .long .LLST0 # DW_AT_location .uleb128 0x9 # (DIE (0xce) DW_TAG_GNU_call_site) .long .LVL3 # DW_AT_low_pc .long 0x87 # DW_AT_abstract_origin .byte 0 # end of children of DIE 0xaa .byte 0 # end of children of DIE 0xb .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x55 # (DW_AT_ranges) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x17 # (DW_FORM_sec_offset) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .byte 0 .byte 0 .uleb128 0x3 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0 .byte 0 .uleb128 0x4 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x5 # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0 # DW_children_no .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x2115 # (DW_AT_GNU_tail_call) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x6 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x7 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .byte 0 .byte 0 .uleb128 0x8 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x17 # (DW_FORM_sec_offset) .byte 0 .byte 0 .uleb128 0x9 # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0 # DW_children_no .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .byte 0 .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .long .LVL3 # Location list begin address (*.LLST0) .long .LVL4 # Location list end address (*.LLST0) .value 0x3 # Location expression size .byte 0x70 # DW_OP_breg0 .sleb128 1 .byte 0x9f # DW_OP_stack_value .long .LVL4 # Location list begin address (*.LLST0) .long .LFE4 # Location list end address (*.LLST0) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .long 0 # Location list terminator begin (*.LLST0) .long 0 # Location list terminator end (*.LLST0) .section .debug_aranges,"",@progbits .long 0x24 # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .byte 0x4 # Size of Address .byte 0 # Size of Segment Descriptor .value 0 # Pad to 8 byte boundary .value 0 .long .Ltext0 # Address .long .Letext0-.Ltext0 # Length .long .LFB4 # Address .long .LFE4-.LFB4 # Length .long 0 .long 0 .section .debug_ranges,"",@progbits .Ldebug_ranges0: .long .Ltext0 # Offset 0 .long .Letext0 .long .LFB4 # Offset 0x8 .long .LFE4 .long 0 .long 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF4: .string "bar_1" .LASF2: .string "tailcall-only.c" .LASF1: .string "GNU C 4.8.3 20140911 (Red Hat 4.8.3-9) -m32 -march=i686 -g -O2" .LASF6: .string "answer" .LASF5: .string "main" .LASF3: .string "" .LASF0: .string "foo_1" .ident "GCC: (GNU) 4.8.3 20140911 (Red Hat 4.8.3-9)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
8,990
gdb/testsuite/gdb.btrace/x86_64-record_goto.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2013-2022 Free Software Foundation, Inc. Contributed by Intel Corp. <markus.t.metzger@intel.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. This file has been generated using: gcc -S -dA -g record_goto.c -o x86_64-record_goto.S */ .file "record_goto.c" .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .section .debug_info,"",@progbits .Ldebug_info0: .section .debug_line,"",@progbits .Ldebug_line0: .text .Ltext0: .globl fun1 .type fun1, @function fun1: .LFB0: .file 1 "record_goto.c" # record_goto.c:22 .loc 1 22 0 .cfi_startproc # basic block 2 pushq %rbp .cfi_def_cfa_offset 16 movq %rsp, %rbp .cfi_offset 6, -16 .cfi_def_cfa_register 6 # record_goto.c:23 .loc 1 23 0 leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size fun1, .-fun1 .globl fun2 .type fun2, @function fun2: .LFB1: # record_goto.c:27 .loc 1 27 0 .cfi_startproc # basic block 2 pushq %rbp .cfi_def_cfa_offset 16 movq %rsp, %rbp .cfi_offset 6, -16 .cfi_def_cfa_register 6 # record_goto.c:28 .loc 1 28 0 call fun1 # record_goto.c:29 .loc 1 29 0 leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE1: .size fun2, .-fun2 .globl fun3 .type fun3, @function fun3: .LFB2: # record_goto.c:33 .loc 1 33 0 .cfi_startproc # basic block 2 pushq %rbp .cfi_def_cfa_offset 16 movq %rsp, %rbp .cfi_offset 6, -16 .cfi_def_cfa_register 6 # record_goto.c:34 .loc 1 34 0 call fun1 # record_goto.c:35 .loc 1 35 0 call fun2 # record_goto.c:36 .loc 1 36 0 leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE2: .size fun3, .-fun3 .globl fun4 .type fun4, @function fun4: .LFB3: # record_goto.c:40 .loc 1 40 0 .cfi_startproc # basic block 2 pushq %rbp .cfi_def_cfa_offset 16 movq %rsp, %rbp .cfi_offset 6, -16 .cfi_def_cfa_register 6 # record_goto.c:41 .loc 1 41 0 call fun1 # record_goto.c:42 .loc 1 42 0 call fun2 # record_goto.c:43 .loc 1 43 0 call fun3 # record_goto.c:44 .loc 1 44 0 leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE3: .size fun4, .-fun4 .globl main .type main, @function main: .LFB4: # record_goto.c:48 .loc 1 48 0 .cfi_startproc # basic block 2 pushq %rbp .cfi_def_cfa_offset 16 movq %rsp, %rbp .cfi_offset 6, -16 .cfi_def_cfa_register 6 # record_goto.c:49 .loc 1 49 0 call fun4 # record_goto.c:50 .loc 1 50 0 movl $0, %eax # record_goto.c:51 .loc 1 51 0 leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE4: .size main, .-main .Letext0: .section .debug_info .long 0xbc # Length of Compilation Unit Info .value 0x3 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x8 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .long .LASF4 # DW_AT_producer: "GNU C 4.4.4 20100726 (Red Hat 4.4.4-13)" .byte 0x1 # DW_AT_language .long .LASF5 # DW_AT_name: "record_goto.c" .long .LASF6 # DW_AT_comp_dir: "" .quad .Ltext0 # DW_AT_low_pc .quad .Letext0 # DW_AT_high_pc .long .Ldebug_line0 # DW_AT_stmt_list .uleb128 0x2 # (DIE (0x2d) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .long .LASF0 # DW_AT_name: "fun1" .byte 0x1 # DW_AT_decl_file (record_goto.c) .byte 0x15 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .quad .LFB0 # DW_AT_low_pc .quad .LFE0 # DW_AT_high_pc .byte 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa .uleb128 0x2 # (DIE (0x48) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .long .LASF1 # DW_AT_name: "fun2" .byte 0x1 # DW_AT_decl_file (record_goto.c) .byte 0x1a # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .quad .LFB1 # DW_AT_low_pc .quad .LFE1 # DW_AT_high_pc .byte 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa .uleb128 0x2 # (DIE (0x63) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .long .LASF2 # DW_AT_name: "fun3" .byte 0x1 # DW_AT_decl_file (record_goto.c) .byte 0x20 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .quad .LFB2 # DW_AT_low_pc .quad .LFE2 # DW_AT_high_pc .byte 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa .uleb128 0x2 # (DIE (0x7e) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .long .LASF3 # DW_AT_name: "fun4" .byte 0x1 # DW_AT_decl_file (record_goto.c) .byte 0x27 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .quad .LFB3 # DW_AT_low_pc .quad .LFE3 # DW_AT_high_pc .byte 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa .uleb128 0x3 # (DIE (0x99) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .long .LASF7 # DW_AT_name: "main" .byte 0x1 # DW_AT_decl_file (record_goto.c) .byte 0x2f # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0xb8 # DW_AT_type .quad .LFB4 # DW_AT_low_pc .quad .LFE4 # DW_AT_high_pc .byte 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa .uleb128 0x4 # (DIE (0xb8) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .byte 0x0 # end of children of DIE 0xb .section .debug_abbrev .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x6 # (DW_FORM_data4) .byte 0x0 .byte 0x0 .uleb128 0x2 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x0 # DW_children_no .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0xa # (DW_FORM_block1) .byte 0x0 .byte 0x0 .uleb128 0x3 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x0 # DW_children_no .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0xa # (DW_FORM_block1) .byte 0x0 .byte 0x0 .uleb128 0x4 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0x0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0x0 .byte 0x0 .byte 0x0 .section .debug_pubnames,"",@progbits .long 0x3b # Length of Public Names Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .long 0xc0 # Compilation Unit Length .long 0x2d # DIE offset .ascii "fun1\0" # external name .long 0x48 # DIE offset .ascii "fun2\0" # external name .long 0x63 # DIE offset .ascii "fun3\0" # external name .long 0x7e # DIE offset .ascii "fun4\0" # external name .long 0x99 # DIE offset .ascii "main\0" # external name .long 0x0 .section .debug_aranges,"",@progbits .long 0x2c # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .byte 0x8 # Size of Address .byte 0x0 # Size of Segment Descriptor .value 0x0 # Pad to 16 byte boundary .value 0x0 .quad .Ltext0 # Address .quad .Letext0-.Ltext0 # Length .quad 0x0 .quad 0x0 .section .debug_str,"MS",@progbits,1 .LASF3: .string "fun4" .LASF5: .string "record_goto.c" .LASF4: .string "GNU C 4.4.4 20100726 (Red Hat 4.4.4-13)" .LASF7: .string "main" .LASF1: .string "fun2" .LASF0: .string "fun1" .LASF6: .string "" .LASF2: .string "fun3" .ident "GCC: (GNU) 4.4.4 20100726 (Red Hat 4.4.4-13)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
10,168
gdb/testsuite/gdb.btrace/i686-tailcall.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2013-2022 Free Software Foundation, Inc. Contributed by Intel Corp. <markus.t.metzger@intel.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. This file has been generated using: gcc -S -O2 -dA -g tailcall.c -o i686-tailcall.S */ .file "tailcall.c" .text .Ltext0: .p2align 4,,15 .type bar, @function bar: .LFB0: .file 1 "tailcall.c" # tailcall.c:22 .loc 1 22 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) # tailcall.c:24 .loc 1 24 0 movl $42, %eax # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE0: .size bar, .-bar .p2align 4,,15 .type foo, @function foo: .LFB1: # tailcall.c:28 .loc 1 28 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) # tailcall.c:29 .loc 1 29 0 jmp bar # SUCC: EXIT [100.0%] (ABNORMAL,SIBCALL) .LVL0: .cfi_endproc .LFE1: .size foo, .-foo .section .text.startup,"ax",@progbits .p2align 4,,15 .globl main .type main, @function main: .LFB2: # tailcall.c:34 .loc 1 34 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) # tailcall.c:37 .loc 1 37 0 call foo .LVL1: # tailcall.c:38 .loc 1 38 0 addl $1, %eax .LVL2: # SUCC: EXIT [100.0%] # tailcall.c:41 .loc 1 41 0 ret .cfi_endproc .LFE2: .size main, .-main .text .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0x8f # Length of Compilation Unit Info .value 0x4 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x4 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .long .LASF0 # DW_AT_producer: "GNU C 4.8.3 20140911 (Red Hat 4.8.3-7) -mtune=generic -march=i686 -g -O2" .byte 0x1 # DW_AT_language .long .LASF1 # DW_AT_name: "tailcall.c" .long .LASF2 # DW_AT_comp_dir: "" .long .Ldebug_ranges0+0 # DW_AT_ranges .long 0 # DW_AT_low_pc .long .Ldebug_line0 # DW_AT_stmt_list .uleb128 0x2 # (DIE (0x25) DW_TAG_subprogram) .ascii "bar\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (tailcall.c) .byte 0x15 # DW_AT_decl_line # DW_AT_prototyped .long 0x3a # DW_AT_type .long .LFB0 # DW_AT_low_pc .long .LFE0-.LFB0 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .uleb128 0x3 # (DIE (0x3a) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .uleb128 0x4 # (DIE (0x41) DW_TAG_subprogram) .ascii "foo\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (tailcall.c) .byte 0x1b # DW_AT_decl_line # DW_AT_prototyped .long 0x3a # DW_AT_type .long .LFB1 # DW_AT_low_pc .long .LFE1-.LFB1 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .long 0x64 # DW_AT_sibling .uleb128 0x5 # (DIE (0x5a) DW_TAG_GNU_call_site) .long .LVL0 # DW_AT_low_pc # DW_AT_GNU_tail_call .long 0x25 # DW_AT_abstract_origin .byte 0 # end of children of DIE 0x41 .uleb128 0x6 # (DIE (0x64) DW_TAG_subprogram) # DW_AT_external .long .LASF3 # DW_AT_name: "main" .byte 0x1 # DW_AT_decl_file (tailcall.c) .byte 0x21 # DW_AT_decl_line # DW_AT_prototyped .long 0x3a # DW_AT_type .long .LFB2 # DW_AT_low_pc .long .LFE2-.LFB2 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .uleb128 0x7 # (DIE (0x79) DW_TAG_variable) .long .LASF4 # DW_AT_name: "answer" .byte 0x1 # DW_AT_decl_file (tailcall.c) .byte 0x23 # DW_AT_decl_line .long 0x3a # DW_AT_type .long .LLST0 # DW_AT_location .uleb128 0x8 # (DIE (0x88) DW_TAG_GNU_call_site) .long .LVL1 # DW_AT_low_pc .long 0x41 # DW_AT_abstract_origin .byte 0 # end of children of DIE 0x64 .byte 0 # end of children of DIE 0xb .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x55 # (DW_AT_ranges) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x17 # (DW_FORM_sec_offset) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .byte 0 .byte 0 .uleb128 0x3 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0 .byte 0 .uleb128 0x4 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x5 # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0 # DW_children_no .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x2115 # (DW_AT_GNU_tail_call) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x6 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .byte 0 .byte 0 .uleb128 0x7 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x17 # (DW_FORM_sec_offset) .byte 0 .byte 0 .uleb128 0x8 # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0 # DW_children_no .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .byte 0 .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .long .LVL1 # Location list begin address (*.LLST0) .long .LVL2 # Location list end address (*.LLST0) .value 0x3 # Location expression size .byte 0x70 # DW_OP_breg0 .sleb128 1 .byte 0x9f # DW_OP_stack_value .long .LVL2 # Location list begin address (*.LLST0) .long .LFE2 # Location list end address (*.LLST0) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .long 0 # Location list terminator begin (*.LLST0) .long 0 # Location list terminator end (*.LLST0) .section .debug_aranges,"",@progbits .long 0x24 # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .byte 0x4 # Size of Address .byte 0 # Size of Segment Descriptor .value 0 # Pad to 8 byte boundary .value 0 .long .Ltext0 # Address .long .Letext0-.Ltext0 # Length .long .LFB2 # Address .long .LFE2-.LFB2 # Length .long 0 .long 0 .section .debug_ranges,"",@progbits .Ldebug_ranges0: .long .Ltext0 # Offset 0 .long .Letext0 .long .LFB2 # Offset 0x8 .long .LFE2 .long 0 .long 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF1: .string "tailcall.c" .LASF3: .string "main" .LASF0: .string "GNU C 4.8.3 20140911 (Red Hat 4.8.3-7) -mtune=generic -march=i686 -g -O2" .LASF4: .string "answer" .LASF2: .string "" .ident "GCC: (GNU) 4.8.3 20140911 (Red Hat 4.8.3-7)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
9,903
gdb/testsuite/gdb.btrace/i686-record_goto.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2013-2022 Free Software Foundation, Inc. Contributed by Intel Corp. <markus.t.metzger@intel.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. This file has been generated using: gcc -S -dA -g record_goto.c -o i686-record_goto.S */ .file "record_goto.c" .text .Ltext0: .globl fun1 .type fun1, @function fun1: .LFB0: .file 1 "record_goto.c" # record_goto.c:22 .loc 1 22 0 .cfi_startproc # BLOCK 2 seq:0 # PRED: ENTRY (FALLTHRU) pushl %ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 movl %esp, %ebp .cfi_def_cfa_register 5 # record_goto.c:23 .loc 1 23 0 popl %ebp .cfi_restore 5 .cfi_def_cfa 4, 4 # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE0: .size fun1, .-fun1 .globl fun2 .type fun2, @function fun2: .LFB1: # record_goto.c:27 .loc 1 27 0 .cfi_startproc # BLOCK 2 seq:0 # PRED: ENTRY (FALLTHRU) pushl %ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 movl %esp, %ebp .cfi_def_cfa_register 5 # record_goto.c:28 .loc 1 28 0 call fun1 # record_goto.c:29 .loc 1 29 0 popl %ebp .cfi_restore 5 .cfi_def_cfa 4, 4 # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE1: .size fun2, .-fun2 .globl fun3 .type fun3, @function fun3: .LFB2: # record_goto.c:33 .loc 1 33 0 .cfi_startproc # BLOCK 2 seq:0 # PRED: ENTRY (FALLTHRU) pushl %ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 movl %esp, %ebp .cfi_def_cfa_register 5 # record_goto.c:34 .loc 1 34 0 call fun1 # record_goto.c:35 .loc 1 35 0 call fun2 # record_goto.c:36 .loc 1 36 0 popl %ebp .cfi_restore 5 .cfi_def_cfa 4, 4 # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE2: .size fun3, .-fun3 .globl fun4 .type fun4, @function fun4: .LFB3: # record_goto.c:40 .loc 1 40 0 .cfi_startproc # BLOCK 2 seq:0 # PRED: ENTRY (FALLTHRU) pushl %ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 movl %esp, %ebp .cfi_def_cfa_register 5 # record_goto.c:41 .loc 1 41 0 call fun1 # record_goto.c:42 .loc 1 42 0 call fun2 # record_goto.c:43 .loc 1 43 0 call fun3 # record_goto.c:44 .loc 1 44 0 popl %ebp .cfi_restore 5 .cfi_def_cfa 4, 4 # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE3: .size fun4, .-fun4 .globl main .type main, @function main: .LFB4: # record_goto.c:48 .loc 1 48 0 .cfi_startproc # BLOCK 2 seq:0 # PRED: ENTRY (FALLTHRU) pushl %ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 movl %esp, %ebp .cfi_def_cfa_register 5 # record_goto.c:49 .loc 1 49 0 call fun4 # record_goto.c:50 .loc 1 50 0 movl $0, %eax # record_goto.c:51 .loc 1 51 0 popl %ebp .cfi_restore 5 .cfi_def_cfa 4, 4 # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE4: .size main, .-main .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0x82 # Length of Compilation Unit Info .value 0x4 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x4 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .long .LASF4 # DW_AT_producer: "GNU C 4.8.3 20140911 (Red Hat 4.8.3-7) -mtune=generic -march=i686 -g" .byte 0x1 # DW_AT_language .long .LASF5 # DW_AT_name: "record_goto.c" .long .LASF6 # DW_AT_comp_dir: "" .long .Ltext0 # DW_AT_low_pc .long .Letext0-.Ltext0 # DW_AT_high_pc .long .Ldebug_line0 # DW_AT_stmt_list .uleb128 0x2 # (DIE (0x25) DW_TAG_subprogram) # DW_AT_external .long .LASF0 # DW_AT_name: "fun1" .byte 0x1 # DW_AT_decl_file (record_goto.c) .byte 0x15 # DW_AT_decl_line # DW_AT_prototyped .long .LFB0 # DW_AT_low_pc .long .LFE0-.LFB0 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .uleb128 0x3 # (DIE (0x36) DW_TAG_subprogram) # DW_AT_external .long .LASF1 # DW_AT_name: "fun2" .byte 0x1 # DW_AT_decl_file (record_goto.c) .byte 0x1a # DW_AT_decl_line # DW_AT_prototyped .long .LFB1 # DW_AT_low_pc .long .LFE1-.LFB1 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_tail_call_sites .uleb128 0x3 # (DIE (0x47) DW_TAG_subprogram) # DW_AT_external .long .LASF2 # DW_AT_name: "fun3" .byte 0x1 # DW_AT_decl_file (record_goto.c) .byte 0x20 # DW_AT_decl_line # DW_AT_prototyped .long .LFB2 # DW_AT_low_pc .long .LFE2-.LFB2 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_tail_call_sites .uleb128 0x3 # (DIE (0x58) DW_TAG_subprogram) # DW_AT_external .long .LASF3 # DW_AT_name: "fun4" .byte 0x1 # DW_AT_decl_file (record_goto.c) .byte 0x27 # DW_AT_decl_line # DW_AT_prototyped .long .LFB3 # DW_AT_low_pc .long .LFE3-.LFB3 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_tail_call_sites .uleb128 0x4 # (DIE (0x69) DW_TAG_subprogram) # DW_AT_external .long .LASF7 # DW_AT_name: "main" .byte 0x1 # DW_AT_decl_file (record_goto.c) .byte 0x2f # DW_AT_decl_line # DW_AT_prototyped .long 0x7e # DW_AT_type .long .LFB4 # DW_AT_low_pc .long .LFE4-.LFB4 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_tail_call_sites .uleb128 0x5 # (DIE (0x7e) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .byte 0 # end of children of DIE 0xb .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x17 # (DW_FORM_sec_offset) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0 # DW_children_no .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .byte 0 .byte 0 .uleb128 0x3 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0 # DW_children_no .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2116 # (DW_AT_GNU_all_tail_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .byte 0 .byte 0 .uleb128 0x4 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0 # DW_children_no .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2116 # (DW_AT_GNU_all_tail_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .byte 0 .byte 0 .uleb128 0x5 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0 .byte 0 .byte 0 .section .debug_aranges,"",@progbits .long 0x1c # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .byte 0x4 # Size of Address .byte 0 # Size of Segment Descriptor .value 0 # Pad to 8 byte boundary .value 0 .long .Ltext0 # Address .long .Letext0-.Ltext0 # Length .long 0 .long 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF3: .string "fun4" .LASF4: .string "GNU C 4.8.3 20140911 (Red Hat 4.8.3-7) -mtune=generic -march=i686 -g" .LASF7: .string "main" .LASF1: .string "fun2" .LASF5: .string "record_goto.c" .LASF0: .string "fun1" .LASF6: .string "" .LASF2: .string "fun3" .ident "GCC: (GNU) 4.8.3 20140911 (Red Hat 4.8.3-7)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
10,176
gdb/testsuite/gdb.btrace/x86_64-tailcall.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2013-2022 Free Software Foundation, Inc. Contributed by Intel Corp. <markus.t.metzger@intel.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. This file has been generated using: gcc -S -O2 -dA -g tailcall.c -o x86_64-tailcall.S */ .file "tailcall.c" .text .Ltext0: .p2align 4,,15 .type bar, @function bar: .LFB0: .file 1 "tailcall.c" # tailcall.c:22 .loc 1 22 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) # tailcall.c:24 .loc 1 24 0 movl $42, %eax # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE0: .size bar, .-bar .p2align 4,,15 .type foo, @function foo: .LFB1: # tailcall.c:28 .loc 1 28 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) # tailcall.c:29 .loc 1 29 0 jmp bar # SUCC: EXIT [100.0%] (ABNORMAL,SIBCALL) .LVL0: .cfi_endproc .LFE1: .size foo, .-foo .section .text.startup,"ax",@progbits .p2align 4,,15 .globl main .type main, @function main: .LFB2: # tailcall.c:34 .loc 1 34 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) # tailcall.c:37 .loc 1 37 0 call foo .LVL1: # tailcall.c:38 .loc 1 38 0 addl $1, %eax .LVL2: # SUCC: EXIT [100.0%] # tailcall.c:41 .loc 1 41 0 ret .cfi_endproc .LFE2: .size main, .-main .text .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0xb3 # Length of Compilation Unit Info .value 0x4 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x8 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .long .LASF0 # DW_AT_producer: "GNU C 4.8.3 20140911 (Red Hat 4.8.3-7) -mtune=generic -march=x86-64 -g -O2" .byte 0x1 # DW_AT_language .long .LASF1 # DW_AT_name: "tailcall.c" .long .LASF2 # DW_AT_comp_dir: "" .long .Ldebug_ranges0+0 # DW_AT_ranges .quad 0 # DW_AT_low_pc .long .Ldebug_line0 # DW_AT_stmt_list .uleb128 0x2 # (DIE (0x29) DW_TAG_subprogram) .ascii "bar\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (tailcall.c) .byte 0x15 # DW_AT_decl_line # DW_AT_prototyped .long 0x46 # DW_AT_type .quad .LFB0 # DW_AT_low_pc .quad .LFE0-.LFB0 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .uleb128 0x3 # (DIE (0x46) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .uleb128 0x4 # (DIE (0x4d) DW_TAG_subprogram) .ascii "foo\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (tailcall.c) .byte 0x1b # DW_AT_decl_line # DW_AT_prototyped .long 0x46 # DW_AT_type .quad .LFB1 # DW_AT_low_pc .quad .LFE1-.LFB1 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .long 0x7c # DW_AT_sibling .uleb128 0x5 # (DIE (0x6e) DW_TAG_GNU_call_site) .quad .LVL0 # DW_AT_low_pc # DW_AT_GNU_tail_call .long 0x29 # DW_AT_abstract_origin .byte 0 # end of children of DIE 0x4d .uleb128 0x6 # (DIE (0x7c) DW_TAG_subprogram) # DW_AT_external .long .LASF3 # DW_AT_name: "main" .byte 0x1 # DW_AT_decl_file (tailcall.c) .byte 0x21 # DW_AT_decl_line # DW_AT_prototyped .long 0x46 # DW_AT_type .quad .LFB2 # DW_AT_low_pc .quad .LFE2-.LFB2 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .uleb128 0x7 # (DIE (0x99) DW_TAG_variable) .long .LASF4 # DW_AT_name: "answer" .byte 0x1 # DW_AT_decl_file (tailcall.c) .byte 0x23 # DW_AT_decl_line .long 0x46 # DW_AT_type .long .LLST0 # DW_AT_location .uleb128 0x8 # (DIE (0xa8) DW_TAG_GNU_call_site) .quad .LVL1 # DW_AT_low_pc .long 0x4d # DW_AT_abstract_origin .byte 0 # end of children of DIE 0x7c .byte 0 # end of children of DIE 0xb .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x55 # (DW_AT_ranges) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x17 # (DW_FORM_sec_offset) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x7 # (DW_FORM_data8) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .byte 0 .byte 0 .uleb128 0x3 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0 .byte 0 .uleb128 0x4 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x7 # (DW_FORM_data8) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x5 # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0 # DW_children_no .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x2115 # (DW_AT_GNU_tail_call) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x6 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x7 # (DW_FORM_data8) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .byte 0 .byte 0 .uleb128 0x7 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x17 # (DW_FORM_sec_offset) .byte 0 .byte 0 .uleb128 0x8 # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0 # DW_children_no .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .byte 0 .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .quad .LVL1 # Location list begin address (*.LLST0) .quad .LVL2 # Location list end address (*.LLST0) .value 0x3 # Location expression size .byte 0x70 # DW_OP_breg0 .sleb128 1 .byte 0x9f # DW_OP_stack_value .quad .LVL2 # Location list begin address (*.LLST0) .quad .LFE2 # Location list end address (*.LLST0) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad 0 # Location list terminator begin (*.LLST0) .quad 0 # Location list terminator end (*.LLST0) .section .debug_aranges,"",@progbits .long 0x3c # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .byte 0x8 # Size of Address .byte 0 # Size of Segment Descriptor .value 0 # Pad to 16 byte boundary .value 0 .quad .Ltext0 # Address .quad .Letext0-.Ltext0 # Length .quad .LFB2 # Address .quad .LFE2-.LFB2 # Length .quad 0 .quad 0 .section .debug_ranges,"",@progbits .Ldebug_ranges0: .quad .Ltext0 # Offset 0 .quad .Letext0 .quad .LFB2 # Offset 0x10 .quad .LFE2 .quad 0 .quad 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF3: .string "main" .LASF1: .string "tailcall.c" .LASF0: .string "GNU C 4.8.3 20140911 (Red Hat 4.8.3-7) -mtune=generic -march=x86-64 -g -O2" .LASF4: .string "answer" .LASF2: .string "" .ident "GCC: (GNU) 4.8.3 20140911 (Red Hat 4.8.3-7)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
12,814
gdb/testsuite/gdb.btrace/x86_64-tailcall-only.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2016-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. This file has been generated using: gcc -S -O2 -dA -g tailcall-only.c -o x86_64-tailcall-only.S */ .file "tailcall-only.c" .text .Ltext0: .p2align 4,,15 .type bar_1, @function bar_1: .LFB0: .file 1 "tailcall-only.c" # tailcall-only.c:22 .loc 1 22 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) # tailcall-only.c:24 .loc 1 24 0 movl $42, %eax # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE0: .size bar_1, .-bar_1 .p2align 4,,15 .type bar, @function bar: .LFB1: # tailcall-only.c:28 .loc 1 28 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) # tailcall-only.c:29 .loc 1 29 0 jmp bar_1 # SUCC: EXIT [100.0%] (ABNORMAL,SIBCALL) .LVL0: .cfi_endproc .LFE1: .size bar, .-bar .p2align 4,,15 .type foo_1, @function foo_1: .LFB2: # tailcall-only.c:34 .loc 1 34 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) # tailcall-only.c:35 .loc 1 35 0 jmp bar # SUCC: EXIT [100.0%] (ABNORMAL,SIBCALL) .LVL1: .cfi_endproc .LFE2: .size foo_1, .-foo_1 .p2align 4,,15 .type foo, @function foo: .LFB3: # tailcall-only.c:40 .loc 1 40 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) # tailcall-only.c:41 .loc 1 41 0 jmp foo_1 # SUCC: EXIT [100.0%] (ABNORMAL,SIBCALL) .LVL2: .cfi_endproc .LFE3: .size foo, .-foo .section .text.startup,"ax",@progbits .p2align 4,,15 .globl main .type main, @function main: .LFB4: # tailcall-only.c:46 .loc 1 46 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (FALLTHRU) # tailcall-only.c:49 .loc 1 49 0 call foo .LVL3: # tailcall-only.c:50 .loc 1 50 0 addl $1, %eax .LVL4: # SUCC: EXIT [100.0%] # tailcall-only.c:53 .loc 1 53 0 ret .cfi_endproc .LFE4: .size main, .-main .text .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0x111 # Length of Compilation Unit Info .value 0x4 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x8 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .long .LASF1 # DW_AT_producer: "GNU C 4.8.3 20140911 (Red Hat 4.8.3-9) -mtune=generic -march=x86-64 -g -O2" .byte 0x1 # DW_AT_language .long .LASF2 # DW_AT_name: "tailcall-only.c" .long .LASF3 # DW_AT_comp_dir: "" .long .Ldebug_ranges0+0 # DW_AT_ranges .quad 0 # DW_AT_low_pc .long .Ldebug_line0 # DW_AT_stmt_list .uleb128 0x2 # (DIE (0x29) DW_TAG_subprogram) .long .LASF4 # DW_AT_name: "bar_1" .byte 0x1 # DW_AT_decl_file (tailcall-only.c) .byte 0x15 # DW_AT_decl_line # DW_AT_prototyped .long 0x46 # DW_AT_type .quad .LFB0 # DW_AT_low_pc .quad .LFE0-.LFB0 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .uleb128 0x3 # (DIE (0x46) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .uleb128 0x4 # (DIE (0x4d) DW_TAG_subprogram) .ascii "bar\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (tailcall-only.c) .byte 0x1b # DW_AT_decl_line # DW_AT_prototyped .long 0x46 # DW_AT_type .quad .LFB1 # DW_AT_low_pc .quad .LFE1-.LFB1 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .long 0x7c # DW_AT_sibling .uleb128 0x5 # (DIE (0x6e) DW_TAG_GNU_call_site) .quad .LVL0 # DW_AT_low_pc # DW_AT_GNU_tail_call .long 0x29 # DW_AT_abstract_origin .byte 0 # end of children of DIE 0x4d .uleb128 0x6 # (DIE (0x7c) DW_TAG_subprogram) .long .LASF0 # DW_AT_name: "foo_1" .byte 0x1 # DW_AT_decl_file (tailcall-only.c) .byte 0x21 # DW_AT_decl_line # DW_AT_prototyped .long 0x46 # DW_AT_type .quad .LFB2 # DW_AT_low_pc .quad .LFE2-.LFB2 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .long 0xab # DW_AT_sibling .uleb128 0x5 # (DIE (0x9d) DW_TAG_GNU_call_site) .quad .LVL1 # DW_AT_low_pc # DW_AT_GNU_tail_call .long 0x4d # DW_AT_abstract_origin .byte 0 # end of children of DIE 0x7c .uleb128 0x4 # (DIE (0xab) DW_TAG_subprogram) .ascii "foo\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (tailcall-only.c) .byte 0x27 # DW_AT_decl_line # DW_AT_prototyped .long 0x46 # DW_AT_type .quad .LFB3 # DW_AT_low_pc .quad .LFE3-.LFB3 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .long 0xda # DW_AT_sibling .uleb128 0x5 # (DIE (0xcc) DW_TAG_GNU_call_site) .quad .LVL2 # DW_AT_low_pc # DW_AT_GNU_tail_call .long 0x7c # DW_AT_abstract_origin .byte 0 # end of children of DIE 0xab .uleb128 0x7 # (DIE (0xda) DW_TAG_subprogram) # DW_AT_external .long .LASF5 # DW_AT_name: "main" .byte 0x1 # DW_AT_decl_file (tailcall-only.c) .byte 0x2d # DW_AT_decl_line # DW_AT_prototyped .long 0x46 # DW_AT_type .quad .LFB4 # DW_AT_low_pc .quad .LFE4-.LFB4 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .uleb128 0x8 # (DIE (0xf7) DW_TAG_variable) .long .LASF6 # DW_AT_name: "answer" .byte 0x1 # DW_AT_decl_file (tailcall-only.c) .byte 0x2f # DW_AT_decl_line .long 0x46 # DW_AT_type .long .LLST0 # DW_AT_location .uleb128 0x9 # (DIE (0x106) DW_TAG_GNU_call_site) .quad .LVL3 # DW_AT_low_pc .long 0xab # DW_AT_abstract_origin .byte 0 # end of children of DIE 0xda .byte 0 # end of children of DIE 0xb .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x55 # (DW_AT_ranges) .uleb128 0x17 # (DW_FORM_sec_offset) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x17 # (DW_FORM_sec_offset) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x7 # (DW_FORM_data8) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .byte 0 .byte 0 .uleb128 0x3 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0 .byte 0 .uleb128 0x4 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x7 # (DW_FORM_data8) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x5 # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0 # DW_children_no .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x2115 # (DW_AT_GNU_tail_call) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x6 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x7 # (DW_FORM_data8) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x7 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x7 # (DW_FORM_data8) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .byte 0 .byte 0 .uleb128 0x8 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x17 # (DW_FORM_sec_offset) .byte 0 .byte 0 .uleb128 0x9 # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0 # DW_children_no .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .byte 0 .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .quad .LVL3 # Location list begin address (*.LLST0) .quad .LVL4 # Location list end address (*.LLST0) .value 0x3 # Location expression size .byte 0x70 # DW_OP_breg0 .sleb128 1 .byte 0x9f # DW_OP_stack_value .quad .LVL4 # Location list begin address (*.LLST0) .quad .LFE4 # Location list end address (*.LLST0) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad 0 # Location list terminator begin (*.LLST0) .quad 0 # Location list terminator end (*.LLST0) .section .debug_aranges,"",@progbits .long 0x3c # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .byte 0x8 # Size of Address .byte 0 # Size of Segment Descriptor .value 0 # Pad to 16 byte boundary .value 0 .quad .Ltext0 # Address .quad .Letext0-.Ltext0 # Length .quad .LFB4 # Address .quad .LFE4-.LFB4 # Length .quad 0 .quad 0 .section .debug_ranges,"",@progbits .Ldebug_ranges0: .quad .Ltext0 # Offset 0 .quad .Letext0 .quad .LFB4 # Offset 0x10 .quad .LFE4 .quad 0 .quad 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF4: .string "bar_1" .LASF2: .string "tailcall-only.c" .LASF1: .string "GNU C 4.8.3 20140911 (Red Hat 4.8.3-9) -mtune=generic -march=x86-64 -g -O2" .LASF6: .string "answer" .LASF5: .string "main" .LASF3: .string "" .LASF0: .string "foo_1" .ident "GCC: (GNU) 4.8.3 20140911 (Red Hat 4.8.3-9)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
5,722
gdb/testsuite/gdb.python/py-linetable.S
/* Copyright (C) 2013-2022 Free Software Foundation, Inc. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .file "py-linetable.c" .text .Ltext0: .globl foo .type foo, @function foo: .LFB0: .file 1 "./py-linetable.c" .loc 1 20 0 .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 movl %edi, -4(%rbp) movl %esi, -8(%rbp) .loc 1 21 0 movl -4(%rbp), %eax cmpl -8(%rbp), %eax jne .L2 .loc 1 22 0 movl $1, %eax jmp .L3 .L2: .loc 1 24 0 movl $0, %eax .L3: .loc 1 25 0 popq %rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size foo, .-foo .globl bar .type bar, @function bar: .LFB1: .loc 1 28 0 .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 movl %edi, -4(%rbp) movl %esi, -8(%rbp) .loc 1 29 0 cmpl $0, -8(%rbp) jne .L5 .loc 1 30 0 movl $1, %eax jmp .L6 .L5: .loc 1 32 0 movl $0, %eax .L6: .loc 1 33 0 popq %rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE1: .size bar, .-bar .globl main .type main, @function main: .LFB2: .loc 1 37 0 .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 subq $16, %rsp .loc 1 39 0 movl $5, %esi movl $5, %edi call foo testl %eax, %eax je .L8 .loc 1 39 0 is_stmt 0 discriminator 1 movl $0, %esi movl $5, %edi call bar testl %eax, %eax je .L8 .loc 1 40 0 is_stmt 1 movl $0, %eax jmp .L9 .L8: .loc 1 42 0 movl $0, -4(%rbp) jmp .L10 .L11: .loc 1 44 0 addl $1, -4(%rbp) .L10: .loc 1 42 0 discriminator 1 cmpl $499, -4(%rbp) jle .L11 .loc 1 45 0 movl $0, %eax .L9: .loc 1 46 0 leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE2: .size main, .-main .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0xcf .value 0x4 .long .Ldebug_abbrev0 .byte 0x8 .uleb128 0x1 .long .LASF0 .byte 0x1 .long .LASF1 .long .LASF2 .quad .Ltext0 .quad .Letext0 .long .Ldebug_line0 .uleb128 0x2 .string "foo" .byte 0x1 .byte 0x13 .long 0x67 .quad .LFB0 .quad .LFE0 .uleb128 0x1 .byte 0x9c .long 0x67 .uleb128 0x3 .string "a" .byte 0x1 .byte 0x13 .long 0x67 .uleb128 0x2 .byte 0x91 .sleb128 -20 .uleb128 0x3 .string "b" .byte 0x1 .byte 0x13 .long 0x67 .uleb128 0x2 .byte 0x91 .sleb128 -24 .byte 0 .uleb128 0x4 .byte 0x4 .byte 0x5 .string "int" .uleb128 0x2 .string "bar" .byte 0x1 .byte 0x1b .long 0x67 .quad .LFB1 .quad .LFE1 .uleb128 0x1 .byte 0x9c .long 0xa8 .uleb128 0x3 .string "a" .byte 0x1 .byte 0x1b .long 0x67 .uleb128 0x2 .byte 0x91 .sleb128 -20 .uleb128 0x3 .string "b" .byte 0x1 .byte 0x1b .long 0x67 .uleb128 0x2 .byte 0x91 .sleb128 -24 .byte 0 .uleb128 0x5 .long .LASF3 .byte 0x1 .byte 0x24 .long 0x67 .quad .LFB2 .quad .LFE2 .uleb128 0x1 .byte 0x9c .uleb128 0x6 .string "i" .byte 0x1 .byte 0x26 .long 0x67 .uleb128 0x2 .byte 0x91 .sleb128 -20 .byte 0 .byte 0 .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 .uleb128 0x11 .byte 0x1 .uleb128 0x25 .uleb128 0xe .uleb128 0x13 .uleb128 0xb .uleb128 0x3 .uleb128 0xe .uleb128 0x1b .uleb128 0xe .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x10 .uleb128 0x17 .byte 0 .byte 0 .uleb128 0x2 .uleb128 0x2e .byte 0x1 .uleb128 0x3f .uleb128 0x19 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x27 .uleb128 0x19 .uleb128 0x49 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x18 .uleb128 0x2117 .uleb128 0x19 .uleb128 0x1 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x3 .uleb128 0x5 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0x18 .byte 0 .byte 0 .uleb128 0x4 .uleb128 0x24 .byte 0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0x8 .byte 0 .byte 0 .uleb128 0x5 .uleb128 0x2e .byte 0x1 .uleb128 0x3f .uleb128 0x19 .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x27 .uleb128 0x19 .uleb128 0x49 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x18 .uleb128 0x2116 .uleb128 0x19 .byte 0 .byte 0 .uleb128 0x6 .uleb128 0x34 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0x18 .byte 0 .byte 0 .byte 0 .section .debug_aranges,"",@progbits .long 0x2c .value 0x2 .long .Ldebug_info0 .byte 0x8 .byte 0 .value 0 .value 0 .quad .Ltext0 .quad .Letext0-.Ltext0 .quad 0 .quad 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF0: .string "GNU C 4.7.2 20121109 (Red Hat 4.7.2-8) -mtune=generic -march=x86-64 -g -O0" .LASF1: .string "./py-linetable.c" .LASF3: .string "main" .LASF2: .string "gdb/testsuite/gdb.python" .ident "GCC: (GNU) 4.7.2 20121109 (Red Hat 4.7.2-8)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
7,466
gdb/testsuite/gdb.python/amd64-py-framefilter-invalidarg.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2014-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This file is compiled from a single line int main (int argc, char **argv) { return 0; } using -g -dA -S -O2 and patched as #if-ed below. */ .file "py-framefilter-invalidarg.c" .text .Ltext0: .globl main .type main, @function main: .LFB0: .file 1 "py-framefilter-invalidarg.c" # py-framefilter-invalidarg.c:1 .loc 1 1 0 .cfi_startproc # BLOCK 2 seq:0 # PRED: ENTRY (FALLTHRU) pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 movl %edi, -4(%rbp) movq %rsi, -16(%rbp) # py-framefilter-invalidarg.c:2 .loc 1 2 0 movl $0, %eax # py-framefilter-invalidarg.c:3 .loc 1 3 0 popq %rbp .cfi_def_cfa 7, 8 # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE0: .size main, .-main .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long .Le - .Ls # Length of Compilation Unit Info .Ls: .value 0x4 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x8 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .long .LASF3 # DW_AT_producer: "GNU C 4.9.1 20140813 (Red Hat 4.9.1-7) -mtune=generic -march=x86-64 -g" .byte 0x1 # DW_AT_language .long .LASF4 # DW_AT_name: "py-framefilter-invalidarg.c" .long .LASF5 # DW_AT_comp_dir: "" .quad .Ltext0 # DW_AT_low_pc .quad .Letext0-.Ltext0 # DW_AT_high_pc .long .Ldebug_line0 # DW_AT_stmt_list die2d: .uleb128 0x2 # (DIE (0x2d) DW_TAG_subprogram) # DW_AT_external .long .LASF6 # DW_AT_name: "main" .byte 0x1 # DW_AT_decl_file (py-framefilter-invalidarg.c) .byte 0x1 # DW_AT_decl_line # DW_AT_prototyped .long die6b-.Ldebug_info0 # DW_AT_type .quad .LFB0 # DW_AT_low_pc .quad .LFE0-.LFB0 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites die4e: .uleb128 0x3 # (DIE (0x4e) DW_TAG_formal_parameter) .long .LASF0 # DW_AT_name: "argc" .byte 0x1 # DW_AT_decl_file (py-framefilter-invalidarg.c) .byte 0x1 # DW_AT_decl_line .long die6b-.Ldebug_info0 # DW_AT_type #if 0 .uleb128 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 -20 #endif #if 0 .uleb128 1f - 2f # DW_AT_location 2: .byte 0x03 # DW_OP_addr .quad 0 1: #endif #if 1 .uleb128 1f - 2f # DW_AT_location 2: .byte 0x13 # DW_OP_drop 1: #endif die5c: .uleb128 0x3 # (DIE (0x5c) DW_TAG_formal_parameter) .long .LASF1 # DW_AT_name: "argv" .byte 0x1 # DW_AT_decl_file (py-framefilter-invalidarg.c) .byte 0x1 # DW_AT_decl_line .long die72-.Ldebug_info0 # DW_AT_type .uleb128 0x2 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 -32 .byte 0 # end of children of DIE 0x2d die6b: .uleb128 0x4 # (DIE (0x6b) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name die72: .uleb128 0x5 # (DIE (0x72) DW_TAG_pointer_type) .byte 0x8 # DW_AT_byte_size .long die78-.Ldebug_info0 # DW_AT_type die78: .uleb128 0x5 # (DIE (0x78) DW_TAG_pointer_type) .byte 0x8 # DW_AT_byte_size .long die7e-.Ldebug_info0 # DW_AT_type die7e: .uleb128 0x6 # (DIE (0x7e) DW_TAG_base_type) .byte 0x1 # DW_AT_byte_size .byte 0x6 # DW_AT_encoding .long .LASF2 # DW_AT_name: "char" .byte 0 # end of children of DIE 0xb .Le: .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x7 # (DW_FORM_data8) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x17 # (DW_FORM_sec_offset) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x7 # (DW_FORM_data8) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .byte 0 .byte 0 .uleb128 0x3 # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 .uleb128 0x4 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0 .byte 0 .uleb128 0x5 # (abbrev code) .uleb128 0xf # (TAG: DW_TAG_pointer_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x6 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .byte 0 .byte 0 .byte 0 .section .debug_aranges,"",@progbits .long 0x2c # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .byte 0x8 # Size of Address .byte 0 # Size of Segment Descriptor .value 0 # Pad to 16 byte boundary .value 0 .quad .Ltext0 # Address .quad .Letext0-.Ltext0 # Length .quad 0 .quad 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF1: .string "argv" .LASF4: .string "py-framefilter-invalidarg.c" .LASF5: .string "" .LASF0: .string "argc" .LASF3: .string "GNU C 4.9.1 20140813 (Red Hat 4.9.1-7) -mtune=generic -march=x86-64 -g" .LASF6: .string "main" .LASF2: .string "char" .ident "GCC: (GNU) 4.9.1 20140813 (Red Hat 4.9.1-7)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
1,903
gdb/testsuite/gdb.asm/asmsrc1.s
.include "common.inc" .include "arch.inc" comment "WARNING: asm-source.exp checks for line numbers printed by gdb." comment "Be careful about changing this file without also changing" comment "asm-source.exp." comment "This file is not linked with crt0." comment "Provide very simplistic equivalent." .global _start gdbasm_declare _start gdbasm_startup gdbasm_call main gdbasm_exit0 gdbasm_end _start comment "Displaced stepping requires scratch space at _start" comment "at least as large as the largest instruction. No" comment "breakpoints should be set within the scratch space." gdbasm_several_nops gdbasm_several_nops gdbasm_several_nops gdbasm_several_nops gdbasm_several_nops gdbasm_several_nops gdbasm_several_nops gdbasm_several_nops comment "main routine for assembly source debugging test" comment "This particular testcase uses macros in <arch>.inc to achieve" comment "machine independence." .global main gdbasm_declare main comment "mark: main enter" gdbasm_enter comment "Call a macro that consists of several lines of assembler code." comment "mark: main start" gdbasm_several_nops comment "Call a subroutine in another file." comment "mark: call foo2" gdbasm_call foo2 comment "All done." comment "mark: main exit" gdbasm_exit0 gdbasm_end main comment "mark: search" comment "A routine for foo2 to call." .global foo3 gdbasm_declare foo3 gdbasm_enter comment "mark: foo3 start" gdbasm_leave gdbasm_end foo3 .global exit gdbasm_declare exit gdbasm_exit0 gdbasm_end exit comment "A static function" gdbasm_declare foostatic gdbasm_enter gdbasm_leave gdbasm_end foostatic comment "A global variable" .global globalvar gdbasm_datavar globalvar 11 comment "A static variable" gdbasm_datavar staticvar 5 .include "note.inc"
tactcomplabs/xbgas-binutils-gdb
5,418
gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2007-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Debug information */ .section .debug_info .Lcu1_begin: /* CU header */ .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ .Lcu1_start: .2byte 2 /* DWARF Version */ .4byte .Labbrev1_begin /* Offset into abbrev section */ .byte 4 /* Pointer size */ /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte cu_text_end /* DW_AT_high_pc */ .4byte cu_text_start /* DW_AT_low_pc */ .ascii "file1.txt\0" /* DW_AT_name */ .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ .byte 1 /* DW_AT_language (C) */ .Ltype_int: .uleb128 3 /* Abbrev: DW_TAG_base_type */ .ascii "int\0" /* DW_AT_name */ .byte 4 /* DW_AT_byte_size */ .byte 5 /* DW_AT_encoding */ /* func_nofb */ .uleb128 5 /* Abbrev: DW_TAG_subprogram (no fb) */ .ascii "func_nofb\0" /* DW_AT_name */ .4byte func_nofb_start /* DW_AT_low_pc */ .4byte func_nofb_end /* DW_AT_high_pc */ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */ .ascii "func_nofb_var\0" /* DW_AT_name */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 0x91 /* DW_OP_fbreg */ .sleb128 0 /* 0 */ 2: .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */ .ascii "func_nofb_var2\0" /* DW_AT_name */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 0x91 /* DW_OP_fbreg */ .sleb128 0 /* 0 */ 2: .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 0 /* End of children of func */ /* func_loopfb */ .uleb128 6 /* Abbrev: DW_TAG_subprogram (loop fb) */ .ascii "func_loopfb\0" /* DW_AT_name */ .4byte func_loopfb_start /* DW_AT_low_pc */ .4byte func_loopfb_end /* DW_AT_high_pc */ .byte 2f - 1f /* DW_AT_frame_base */ 1: .byte 0x91 /* DW_OP_fbreg */ .sleb128 0 /* 0 */ 2: .uleb128 7 /* Abbrev: DW_TAG_variable (location) */ .ascii "func_loopfb_var\0" /* DW_AT_name */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 0x91 /* DW_OP_fbreg */ .sleb128 0 /* 0 */ 2: .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .uleb128 7 /* Abbrev: DW_TAG_variable (location) */ .ascii "func_loopfb_var2\0" /* DW_AT_name */ .byte 2f - 1f /* DW_AT_location */ 1: .byte 0x91 /* DW_OP_fbreg */ .sleb128 0 /* 0 */ 2: .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ .byte 0 /* End of children of func */ .byte 0 /* End of children of CU */ .Lcu1_end: /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: .uleb128 1 /* Abbrev code */ .uleb128 0x11 /* DW_TAG_compile_unit */ .byte 1 /* has_children */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x25 /* DW_AT_producer */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x13 /* DW_AT_language */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 3 /* Abbrev code */ .uleb128 0x24 /* DW_TAG_base_type */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0xb /* DW_AT_byte_size */ .uleb128 0xb /* DW_FORM_data1 */ .uleb128 0x3e /* DW_AT_encoding */ .uleb128 0xb /* DW_FORM_data1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 5 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram (no fb) */ .byte 1 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 6 /* Abbrev code */ .uleb128 0x2e /* DW_TAG_subprogram (loop fb) */ .byte 1 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x11 /* DW_AT_low_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x12 /* DW_AT_high_pc */ .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x40 /* DW_AT_frame_base */ .uleb128 0xa /* DW_FORM_block1 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .uleb128 7 /* Abbrev code (location) */ .uleb128 0x34 /* DW_TAG_variable */ .byte 0 /* has_children */ .uleb128 0x3 /* DW_AT_name */ .uleb128 0x8 /* DW_FORM_string */ .uleb128 0x2 /* DW_AT_location */ .uleb128 0xa /* DW_FORM_block1 */ .uleb128 0x49 /* DW_AT_type */ .uleb128 0x13 /* DW_FORM_ref4 */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */
tactcomplabs/xbgas-binutils-gdb
26,100
gdb/testsuite/gdb.mi/mi2-amd64-entry-value.s
/* This testcase is part of GDB, the GNU debugger. Copyright 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This file is compiled from gdb.mi/mi2-amd64-entry-value.c using -g -dA -S -O2. */ .file "mi2-amd64-entry-value.c" .text .Ltext0: .p2align 4,,15 .type e, @function e: .LFB0: .file 1 "gdb.mi/mi2-amd64-entry-value.c" # gdb.mi/mi2-amd64-entry-value.c:22 .loc 1 22 0 .cfi_startproc .LVL0: # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) # gdb.mi/mi2-amd64-entry-value.c:23 .loc 1 23 0 movl $0, v(%rip) # SUCC: EXIT [100.0%] # gdb.mi/mi2-amd64-entry-value.c:24 .loc 1 24 0 ret .cfi_endproc .LFE0: .size e, .-e .p2align 4,,15 .type data, @function data: .LFB1: # gdb.mi/mi2-amd64-entry-value.c:28 .loc 1 28 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) # gdb.mi/mi2-amd64-entry-value.c:30 .loc 1 30 0 movl $10, %eax # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE1: .size data, .-data .p2align 4,,15 .type data2, @function data2: .LFB2: # gdb.mi/mi2-amd64-entry-value.c:34 .loc 1 34 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) # gdb.mi/mi2-amd64-entry-value.c:36 .loc 1 36 0 movl $20, %eax # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE2: .size data2, .-data2 .p2align 4,,15 .type different, @function different: .LFB3: # gdb.mi/mi2-amd64-entry-value.c:40 .loc 1 40 0 .cfi_startproc .LVL1: # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) pushq %rbx .LCFI0: .cfi_def_cfa_offset 16 .cfi_offset 3, -16 # gdb.mi/mi2-amd64-entry-value.c:41 .loc 1 41 0 leal 1(%rdi), %ebx .LVL2: # gdb.mi/mi2-amd64-entry-value.c:42 .loc 1 42 0 cvtsi2sd %ebx, %xmm0 movl %ebx, %edi call e .LVL3: # gdb.mi/mi2-amd64-entry-value.c:43 .loc 1 43 0 #APP # 43 "gdb.mi/mi2-amd64-entry-value.c" 1 breakhere_different: # 0 "" 2 # gdb.mi/mi2-amd64-entry-value.c:45 .loc 1 45 0 #NO_APP movl %ebx, %eax popq %rbx .LCFI1: .cfi_def_cfa_offset 8 .LVL4: # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE3: .size different, .-different .p2align 4,,15 .type validity, @function validity: .LFB4: # gdb.mi/mi2-amd64-entry-value.c:49 .loc 1 49 0 .cfi_startproc .LVL5: # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) # gdb.mi/mi2-amd64-entry-value.c:51 .loc 1 51 0 xorpd %xmm0, %xmm0 # gdb.mi/mi2-amd64-entry-value.c:49 .loc 1 49 0 pushq %rbx .LCFI2: .cfi_def_cfa_offset 16 .cfi_offset 3, -16 # gdb.mi/mi2-amd64-entry-value.c:51 .loc 1 51 0 xorl %edi, %edi # gdb.mi/mi2-amd64-entry-value.c:49 .loc 1 49 0 movl %esi, %ebx # gdb.mi/mi2-amd64-entry-value.c:51 .loc 1 51 0 call e .LVL6: # gdb.mi/mi2-amd64-entry-value.c:52 .loc 1 52 0 #APP # 52 "gdb.mi/mi2-amd64-entry-value.c" 1 breakhere_validity: # 0 "" 2 # gdb.mi/mi2-amd64-entry-value.c:54 .loc 1 54 0 #NO_APP movl %ebx, %eax popq %rbx .LCFI3: .cfi_def_cfa_offset 8 .LVL7: # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE4: .size validity, .-validity .p2align 4,,15 .type invalid, @function invalid: .LFB5: # gdb.mi/mi2-amd64-entry-value.c:58 .loc 1 58 0 .cfi_startproc .LVL8: # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) # gdb.mi/mi2-amd64-entry-value.c:59 .loc 1 59 0 xorpd %xmm0, %xmm0 xorl %edi, %edi .LVL9: call e .LVL10: # gdb.mi/mi2-amd64-entry-value.c:60 .loc 1 60 0 #APP # 60 "gdb.mi/mi2-amd64-entry-value.c" 1 breakhere_invalid: # 0 "" 2 # SUCC: EXIT [100.0%] # gdb.mi/mi2-amd64-entry-value.c:61 .loc 1 61 0 #NO_APP ret .cfi_endproc .LFE5: .size invalid, .-invalid .section .text.startup,"ax",@progbits .p2align 4,,15 .globl main .type main, @function main: .LFB6: # gdb.mi/mi2-amd64-entry-value.c:65 .loc 1 65 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) # gdb.mi/mi2-amd64-entry-value.c:66 .loc 1 66 0 movl $5, %edi call different .LVL11: # gdb.mi/mi2-amd64-entry-value.c:67 .loc 1 67 0 call data .LVL12: movl $5, %edi movl %eax, %esi call validity .LVL13: # gdb.mi/mi2-amd64-entry-value.c:68 .loc 1 68 0 call data2 .LVL14: movl %eax, %edi call invalid .LVL15: # gdb.mi/mi2-amd64-entry-value.c:70 .loc 1 70 0 xorl %eax, %eax .p2align 4,,1 # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE6: .size main, .-main .local v .comm v,4,4 .text .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0x24e # Length of Compilation Unit Info .value 0x2 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x8 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .long .LASF3 # DW_AT_producer: "GNU C 4.7.0 20110912 (experimental)" .byte 0x1 # DW_AT_language .long .LASF4 # DW_AT_name: "gdb.mi/mi2-amd64-entry-value.c" .long .LASF5 # DW_AT_comp_dir: "" .long .Ldebug_ranges0+0 # DW_AT_ranges .quad 0 # DW_AT_low_pc .quad 0 # DW_AT_entry_pc .long .Ldebug_line0 # DW_AT_stmt_list .uleb128 0x2 # (DIE (0x31) DW_TAG_base_type) .byte 0x8 # DW_AT_byte_size .byte 0x4 # DW_AT_encoding .long .LASF0 # DW_AT_name: "double" .uleb128 0x3 # (DIE (0x38) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .uleb128 0x4 # (DIE (0x3f) DW_TAG_subprogram) .ascii "e\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (gdb.mi/mi2-amd64-entry-value.c) .byte 0x15 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .quad .LFB0 # DW_AT_low_pc .quad .LFE0 # DW_AT_high_pc .byte 0x2 # DW_AT_frame_base .byte 0x77 # DW_OP_breg7 .sleb128 8 .byte 0x1 # DW_AT_GNU_all_call_sites .long 0x74 # DW_AT_sibling .uleb128 0x5 # (DIE (0x5d) DW_TAG_formal_parameter) .ascii "i\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (gdb.mi/mi2-amd64-entry-value.c) .byte 0x15 # DW_AT_decl_line .long 0x38 # DW_AT_type .byte 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .uleb128 0x5 # (DIE (0x68) DW_TAG_formal_parameter) .ascii "j\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (gdb.mi/mi2-amd64-entry-value.c) .byte 0x15 # DW_AT_decl_line .long 0x31 # DW_AT_type .byte 0x1 # DW_AT_location .byte 0x61 # DW_OP_reg17 .byte 0 # end of children of DIE 0x3f .uleb128 0x6 # (DIE (0x74) DW_TAG_subprogram) .long .LASF1 # DW_AT_name: "data" .byte 0x1 # DW_AT_decl_file (gdb.mi/mi2-amd64-entry-value.c) .byte 0x1b # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x38 # DW_AT_type .quad .LFB1 # DW_AT_low_pc .quad .LFE1 # DW_AT_high_pc .byte 0x2 # DW_AT_frame_base .byte 0x77 # DW_OP_breg7 .sleb128 8 .byte 0x1 # DW_AT_GNU_all_call_sites .uleb128 0x6 # (DIE (0x94) DW_TAG_subprogram) .long .LASF2 # DW_AT_name: "data2" .byte 0x1 # DW_AT_decl_file (gdb.mi/mi2-amd64-entry-value.c) .byte 0x21 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x38 # DW_AT_type .quad .LFB2 # DW_AT_low_pc .quad .LFE2 # DW_AT_high_pc .byte 0x2 # DW_AT_frame_base .byte 0x77 # DW_OP_breg7 .sleb128 8 .byte 0x1 # DW_AT_GNU_all_call_sites .uleb128 0x7 # (DIE (0xb4) DW_TAG_subprogram) .long .LASF6 # DW_AT_name: "different" .byte 0x1 # DW_AT_decl_file (gdb.mi/mi2-amd64-entry-value.c) .byte 0x27 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x38 # DW_AT_type .quad .LFB3 # DW_AT_low_pc .quad .LFE3 # DW_AT_high_pc .long .LLST0 # DW_AT_frame_base .byte 0x1 # DW_AT_GNU_all_call_sites .long 0x107 # DW_AT_sibling .uleb128 0x8 # (DIE (0xd9) DW_TAG_formal_parameter) .ascii "val\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (gdb.mi/mi2-amd64-entry-value.c) .byte 0x27 # DW_AT_decl_line .long 0x38 # DW_AT_type .long .LLST1 # DW_AT_location .uleb128 0x9 # (DIE (0xe8) DW_TAG_GNU_call_site) .quad .LVL3 # DW_AT_low_pc .long 0x3f # DW_AT_abstract_origin .uleb128 0xa # (DIE (0xf5) DW_TAG_GNU_call_site_parameter) .byte 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .byte 0x2 # DW_AT_GNU_call_site_value .byte 0x73 # DW_OP_breg3 .sleb128 0 .uleb128 0xa # (DIE (0xfb) DW_TAG_GNU_call_site_parameter) .byte 0x1 # DW_AT_location .byte 0x61 # DW_OP_reg17 .byte 0x6 # DW_AT_GNU_call_site_value .byte 0x73 # DW_OP_breg3 .sleb128 0 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x38 .byte 0xf7 # DW_OP_GNU_convert .uleb128 0x31 .byte 0 # end of children of DIE 0xe8 .byte 0 # end of children of DIE 0xb4 .uleb128 0x7 # (DIE (0x107) DW_TAG_subprogram) .long .LASF7 # DW_AT_name: "validity" .byte 0x1 # DW_AT_decl_file (gdb.mi/mi2-amd64-entry-value.c) .byte 0x30 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0x38 # DW_AT_type .quad .LFB4 # DW_AT_low_pc .quad .LFE4 # DW_AT_high_pc .long .LLST2 # DW_AT_frame_base .byte 0x1 # DW_AT_GNU_all_call_sites .long 0x16d # DW_AT_sibling .uleb128 0xb # (DIE (0x12c) DW_TAG_formal_parameter) .long .LASF8 # DW_AT_name: "lost" .byte 0x1 # DW_AT_decl_file (gdb.mi/mi2-amd64-entry-value.c) .byte 0x30 # DW_AT_decl_line .long 0x38 # DW_AT_type .long .LLST3 # DW_AT_location .uleb128 0xb # (DIE (0x13b) DW_TAG_formal_parameter) .long .LASF9 # DW_AT_name: "born" .byte 0x1 # DW_AT_decl_file (gdb.mi/mi2-amd64-entry-value.c) .byte 0x30 # DW_AT_decl_line .long 0x38 # DW_AT_type .long .LLST4 # DW_AT_location .uleb128 0x9 # (DIE (0x14a) DW_TAG_GNU_call_site) .quad .LVL6 # DW_AT_low_pc .long 0x3f # DW_AT_abstract_origin .uleb128 0xa # (DIE (0x157) DW_TAG_GNU_call_site_parameter) .byte 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .byte 0x1 # DW_AT_GNU_call_site_value .byte 0x30 # DW_OP_lit0 .uleb128 0xa # (DIE (0x15c) DW_TAG_GNU_call_site_parameter) .byte 0x1 # DW_AT_location .byte 0x61 # DW_OP_reg17 .byte 0xb # DW_AT_GNU_call_site_value .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x31 .byte 0x8 .long 0 # fp or vector constant word 0 .long 0 # fp or vector constant word 1 .byte 0 # end of children of DIE 0x14a .byte 0 # end of children of DIE 0x107 .uleb128 0xc # (DIE (0x16d) DW_TAG_subprogram) .long .LASF10 # DW_AT_name: "invalid" .byte 0x1 # DW_AT_decl_file (gdb.mi/mi2-amd64-entry-value.c) .byte 0x39 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .quad .LFB5 # DW_AT_low_pc .quad .LFE5 # DW_AT_high_pc .byte 0x2 # DW_AT_frame_base .byte 0x77 # DW_OP_breg7 .sleb128 8 .byte 0x1 # DW_AT_GNU_all_call_sites .long 0x1bf # DW_AT_sibling .uleb128 0x8 # (DIE (0x18d) DW_TAG_formal_parameter) .ascii "inv\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (gdb.mi/mi2-amd64-entry-value.c) .byte 0x39 # DW_AT_decl_line .long 0x38 # DW_AT_type .long .LLST5 # DW_AT_location .uleb128 0x9 # (DIE (0x19c) DW_TAG_GNU_call_site) .quad .LVL10 # DW_AT_low_pc .long 0x3f # DW_AT_abstract_origin .uleb128 0xa # (DIE (0x1a9) DW_TAG_GNU_call_site_parameter) .byte 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .byte 0x1 # DW_AT_GNU_call_site_value .byte 0x30 # DW_OP_lit0 .uleb128 0xa # (DIE (0x1ae) DW_TAG_GNU_call_site_parameter) .byte 0x1 # DW_AT_location .byte 0x61 # DW_OP_reg17 .byte 0xb # DW_AT_GNU_call_site_value .byte 0xf4 # DW_OP_GNU_const_type .uleb128 0x31 .byte 0x8 .long 0 # fp or vector constant word 0 .long 0 # fp or vector constant word 1 .byte 0 # end of children of DIE 0x19c .byte 0 # end of children of DIE 0x16d .uleb128 0xd # (DIE (0x1bf) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .long .LASF11 # DW_AT_name: "main" .byte 0x1 # DW_AT_decl_file (gdb.mi/mi2-amd64-entry-value.c) .byte 0x40 # DW_AT_decl_line .long 0x38 # DW_AT_type .quad .LFB6 # DW_AT_low_pc .quad .LFE6 # DW_AT_high_pc .byte 0x2 # DW_AT_frame_base .byte 0x77 # DW_OP_breg7 .sleb128 8 .byte 0x1 # DW_AT_GNU_all_call_sites .long 0x239 # DW_AT_sibling .uleb128 0xe # (DIE (0x1e3) DW_TAG_GNU_call_site) .quad .LVL11 # DW_AT_low_pc .long 0xb4 # DW_AT_abstract_origin .long 0x1fa # DW_AT_sibling .uleb128 0xa # (DIE (0x1f4) DW_TAG_GNU_call_site_parameter) .byte 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .byte 0x1 # DW_AT_GNU_call_site_value .byte 0x35 # DW_OP_lit5 .byte 0 # end of children of DIE 0x1e3 .uleb128 0xf # (DIE (0x1fa) DW_TAG_GNU_call_site) .quad .LVL12 # DW_AT_low_pc .long 0x74 # DW_AT_abstract_origin .uleb128 0xe # (DIE (0x207) DW_TAG_GNU_call_site) .quad .LVL13 # DW_AT_low_pc .long 0x107 # DW_AT_abstract_origin .long 0x21e # DW_AT_sibling .uleb128 0xa # (DIE (0x218) DW_TAG_GNU_call_site_parameter) .byte 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 .byte 0x1 # DW_AT_GNU_call_site_value .byte 0x35 # DW_OP_lit5 .byte 0 # end of children of DIE 0x207 .uleb128 0xf # (DIE (0x21e) DW_TAG_GNU_call_site) .quad .LVL14 # DW_AT_low_pc .long 0x94 # DW_AT_abstract_origin .uleb128 0xf # (DIE (0x22b) DW_TAG_GNU_call_site) .quad .LVL15 # DW_AT_low_pc .long 0x16d # DW_AT_abstract_origin .byte 0 # end of children of DIE 0x1bf .uleb128 0x10 # (DIE (0x239) DW_TAG_variable) .ascii "v\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (gdb.mi/mi2-amd64-entry-value.c) .byte 0x12 # DW_AT_decl_line .long 0x24c # DW_AT_type .byte 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad v .uleb128 0x11 # (DIE (0x24c) DW_TAG_volatile_type) .long 0x38 # DW_AT_type .byte 0 # end of children of DIE 0xb .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x55 # (DW_AT_ranges) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x52 # (DW_AT_entry_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x6 # (DW_FORM_data4) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .byte 0 .byte 0 .uleb128 0x3 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0 .byte 0 .uleb128 0x4 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0xa # (DW_FORM_block1) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x5 # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0xa # (DW_FORM_block1) .byte 0 .byte 0 .uleb128 0x6 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0xa # (DW_FORM_block1) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0xc # (DW_FORM_flag) .byte 0 .byte 0 .uleb128 0x7 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x8 # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x6 # (DW_FORM_data4) .byte 0 .byte 0 .uleb128 0x9 # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0x1 # DW_children_yes .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0xa # (abbrev code) .uleb128 0x410a # (TAG: DW_TAG_GNU_call_site_parameter) .byte 0 # DW_children_no .uleb128 0x2 # (DW_AT_location) .uleb128 0xa # (DW_FORM_block1) .uleb128 0x2111 # (DW_AT_GNU_call_site_value) .uleb128 0xa # (DW_FORM_block1) .byte 0 .byte 0 .uleb128 0xb # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x6 # (DW_FORM_data4) .byte 0 .byte 0 .uleb128 0xc # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0xa # (DW_FORM_block1) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0xd # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0xa # (DW_FORM_block1) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0xe # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0x1 # DW_children_yes .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0xf # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0 # DW_children_no .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x10 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0xa # (DW_FORM_block1) .byte 0 .byte 0 .uleb128 0x11 # (abbrev code) .uleb128 0x35 # (TAG: DW_TAG_volatile_type) .byte 0 # DW_children_no .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .byte 0 .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .quad .LFB3 # Location list begin address (*.LLST0) .quad .LCFI0 # Location list end address (*.LLST0) .value 0x2 # Location expression size .byte 0x77 # DW_OP_breg7 .sleb128 8 .quad .LCFI0 # Location list begin address (*.LLST0) .quad .LCFI1 # Location list end address (*.LLST0) .value 0x2 # Location expression size .byte 0x77 # DW_OP_breg7 .sleb128 16 .quad .LCFI1 # Location list begin address (*.LLST0) .quad .LFE3 # Location list end address (*.LLST0) .value 0x2 # Location expression size .byte 0x77 # DW_OP_breg7 .sleb128 8 .quad 0 # Location list terminator begin (*.LLST0) .quad 0 # Location list terminator end (*.LLST0) .LLST1: .quad .LVL1 # Location list begin address (*.LLST1) .quad .LVL2 # Location list end address (*.LLST1) .value 0x1 # Location expression size .byte 0x55 # DW_OP_reg5 .quad .LVL2 # Location list begin address (*.LLST1) .quad .LVL4 # Location list end address (*.LLST1) .value 0x1 # Location expression size .byte 0x53 # DW_OP_reg3 .quad .LVL4 # Location list begin address (*.LLST1) .quad .LFE3 # Location list end address (*.LLST1) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad 0 # Location list terminator begin (*.LLST1) .quad 0 # Location list terminator end (*.LLST1) .LLST2: .quad .LFB4 # Location list begin address (*.LLST2) .quad .LCFI2 # Location list end address (*.LLST2) .value 0x2 # Location expression size .byte 0x77 # DW_OP_breg7 .sleb128 8 .quad .LCFI2 # Location list begin address (*.LLST2) .quad .LCFI3 # Location list end address (*.LLST2) .value 0x2 # Location expression size .byte 0x77 # DW_OP_breg7 .sleb128 16 .quad .LCFI3 # Location list begin address (*.LLST2) .quad .LFE4 # Location list end address (*.LLST2) .value 0x2 # Location expression size .byte 0x77 # DW_OP_breg7 .sleb128 8 .quad 0 # Location list terminator begin (*.LLST2) .quad 0 # Location list terminator end (*.LLST2) .LLST3: .quad .LVL5 # Location list begin address (*.LLST3) .quad .LVL5 # Location list end address (*.LLST3) .value 0x1 # Location expression size .byte 0x55 # DW_OP_reg5 .quad 0 # Location list terminator begin (*.LLST3) .quad 0 # Location list terminator end (*.LLST3) .LLST4: .quad .LVL5 # Location list begin address (*.LLST4) .quad .LVL6-1 # Location list end address (*.LLST4) .value 0x1 # Location expression size .byte 0x54 # DW_OP_reg4 .quad .LVL6-1 # Location list begin address (*.LLST4) .quad .LVL7 # Location list end address (*.LLST4) .value 0x1 # Location expression size .byte 0x53 # DW_OP_reg3 .quad .LVL7 # Location list begin address (*.LLST4) .quad .LFE4 # Location list end address (*.LLST4) .value 0x1 # Location expression size .byte 0x50 # DW_OP_reg0 .quad 0 # Location list terminator begin (*.LLST4) .quad 0 # Location list terminator end (*.LLST4) .LLST5: .quad .LVL8 # Location list begin address (*.LLST5) .quad .LVL9 # Location list end address (*.LLST5) .value 0x1 # Location expression size .byte 0x55 # DW_OP_reg5 .quad .LVL9 # Location list begin address (*.LLST5) .quad .LFE5 # Location list end address (*.LLST5) .value 0x4 # Location expression size .byte 0xf3 # DW_OP_GNU_entry_value .uleb128 0x1 .byte 0x55 # DW_OP_reg5 .byte 0x9f # DW_OP_stack_value .quad 0 # Location list terminator begin (*.LLST5) .quad 0 # Location list terminator end (*.LLST5) .section .debug_aranges,"",@progbits .long 0x3c # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .byte 0x8 # Size of Address .byte 0 # Size of Segment Descriptor .value 0 # Pad to 16 byte boundary .value 0 .quad .Ltext0 # Address .quad .Letext0-.Ltext0 # Length .quad .LFB6 # Address .quad .LFE6-.LFB6 # Length .quad 0 .quad 0 .section .debug_ranges,"",@progbits .Ldebug_ranges0: .quad .Ltext0 # Offset 0 .quad .Letext0 .quad .LFB6 # Offset 0x10 .quad .LFE6 .quad 0 .quad 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF2: .string "data2" .LASF3: .string "GNU C 4.7.0 20110912 (experimental)" .LASF4: .string "gdb.mi/mi2-amd64-entry-value.c" .LASF9: .string "born" .LASF6: .string "different" .LASF7: .string "validity" .LASF10: .string "invalid" .LASF0: .string "double" .LASF11: .string "main" .LASF1: .string "data" .LASF8: .string "lost" .LASF5: .string "" .ident "GCC: (GNU) 4.7.0 20110912 (experimental)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
9,045
gdb/testsuite/gdb.mi/mi-reg-undefined.S
/* Copyright 2013-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* The FDE entry for "stop_frame" in the .debug_frame section has been hand modified to mark a set of registers as undefined. Otherwise this file is as generated by gcc 4.7.2 for x86_64. */ .file "mi-reg-undefined.c" .text .Ltext0: .globl stop_frame .type stop_frame, @function stop_frame: .LFB0: .file 1 "mi-reg-undefined.c" .loc 1 18 0 pushq %rbp .LCFI0: movq %rsp, %rbp .LCFI1: .loc 1 21 0 popq %rbp .LCFI2: ret .LFE0: .size stop_frame, .-stop_frame .globl first_frame .type first_frame, @function first_frame: .LFB1: .loc 1 25 0 pushq %rbp .LCFI3: movq %rsp, %rbp .LCFI4: .loc 1 26 0 movl $0, %eax call stop_frame .loc 1 27 0 popq %rbp .LCFI5: ret .LFE1: .size first_frame, .-first_frame .globl main .type main, @function main: .LFB2: .loc 1 31 0 pushq %rbp .LCFI6: movq %rsp, %rbp .LCFI7: .loc 1 32 0 movl $0, %eax call first_frame .loc 1 34 0 movl $0, %eax .loc 1 35 0 popq %rbp .LCFI8: ret .LFE2: .size main, .-main .section .debug_frame,"",@progbits .Lframe0: .long .LECIE0-.LSCIE0 .LSCIE0: .long 0xffffffff .byte 0x1 .string "" .uleb128 0x1 .sleb128 -8 .byte 0x10 .byte 0xc .uleb128 0x7 .uleb128 0x8 .byte 0x90 .uleb128 0x1 .align 8 .LECIE0: /* This FDE entry, for stop_frame was modified to mark registers 0 -> 6 as being undefined. */ .LSFDE0: .long .LEFDE0-.LASFDE0 .LASFDE0: .long .Lframe0 .quad .LFB0 .quad .LFE0-.LFB0 /* START OF NEW CONTENT. */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x0 /* ULEB128 register */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x1 /* ULEB128 register */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x2 /* ULEB128 register */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x3 /* ULEB128 register */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x4 /* ULEB128 register */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x5 /* ULEB128 register */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x6 /* ULEB128 register */ .byte 0x7 /* DW_CFA_undefined */ .uleb128 0x7 /* ULEB128 register */ /* END OF NEW CONTENT. */ .byte 0x4 .long .LCFI0-.LFB0 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI1-.LCFI0 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI2-.LCFI1 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE0: .LSFDE2: .long .LEFDE2-.LASFDE2 .LASFDE2: .long .Lframe0 .quad .LFB1 .quad .LFE1-.LFB1 .byte 0x4 .long .LCFI3-.LFB1 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI4-.LCFI3 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI5-.LCFI4 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE2: .LSFDE4: .long .LEFDE4-.LASFDE4 .LASFDE4: .long .Lframe0 .quad .LFB2 .quad .LFE2-.LFB2 .byte 0x4 .long .LCFI6-.LFB2 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI7-.LCFI6 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI8-.LCFI7 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE4: .section .eh_frame,"a",@progbits .Lframe1: .long .LECIE1-.LSCIE1 .LSCIE1: .long 0 .byte 0x1 .string "zR" .uleb128 0x1 .sleb128 -8 .byte 0x10 .uleb128 0x1 .byte 0x3 .byte 0xc .uleb128 0x7 .uleb128 0x8 .byte 0x90 .uleb128 0x1 .align 8 .LECIE1: .LSFDE7: .long .LEFDE7-.LASFDE7 .LASFDE7: .long .LASFDE7-.Lframe1 .long .LFB0 .long .LFE0-.LFB0 .uleb128 0 .byte 0x4 .long .LCFI0-.LFB0 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI1-.LCFI0 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI2-.LCFI1 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE7: .LSFDE9: .long .LEFDE9-.LASFDE9 .LASFDE9: .long .LASFDE9-.Lframe1 .long .LFB1 .long .LFE1-.LFB1 .uleb128 0 .byte 0x4 .long .LCFI3-.LFB1 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI4-.LCFI3 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI5-.LCFI4 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE9: .LSFDE11: .long .LEFDE11-.LASFDE11 .LASFDE11: .long .LASFDE11-.Lframe1 .long .LFB2 .long .LFE2-.LFB2 .uleb128 0 .byte 0x4 .long .LCFI6-.LFB2 .byte 0xe .uleb128 0x10 .byte 0x86 .uleb128 0x2 .byte 0x4 .long .LCFI7-.LCFI6 .byte 0xd .uleb128 0x6 .byte 0x4 .long .LCFI8-.LCFI7 .byte 0xc .uleb128 0x7 .uleb128 0x8 .align 8 .LEFDE11: .text .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0x8c .value 0x2 .long .Ldebug_abbrev0 .byte 0x8 .uleb128 0x1 .long .LASF2 .byte 0x1 .long .LASF3 .long .LASF4 .quad .Ltext0 .quad .Letext0 .long .Ldebug_line0 .uleb128 0x2 .byte 0x1 .long .LASF0 .byte 0x1 .byte 0x11 .quad .LFB0 .quad .LFE0 .long .LLST0 .byte 0x1 .uleb128 0x3 .byte 0x1 .long .LASF1 .byte 0x1 .byte 0x18 .quad .LFB1 .quad .LFE1 .long .LLST1 .byte 0x1 .uleb128 0x4 .byte 0x1 .long .LASF5 .byte 0x1 .byte 0x1e .long 0x88 .quad .LFB2 .quad .LFE2 .long .LLST2 .byte 0x1 .uleb128 0x5 .byte 0x4 .byte 0x5 .string "int" .byte 0 .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 .uleb128 0x11 .byte 0x1 .uleb128 0x25 .uleb128 0xe .uleb128 0x13 .uleb128 0xb .uleb128 0x3 .uleb128 0xe .uleb128 0x1b .uleb128 0xe .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x10 .uleb128 0x6 .byte 0 .byte 0 .uleb128 0x2 .uleb128 0x2e .byte 0 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x6 .uleb128 0x2117 .uleb128 0xc .byte 0 .byte 0 .uleb128 0x3 .uleb128 0x2e .byte 0 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x6 .uleb128 0x2116 .uleb128 0xc .byte 0 .byte 0 .uleb128 0x4 .uleb128 0x2e .byte 0 .uleb128 0x3f .uleb128 0xc .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x1 .uleb128 0x40 .uleb128 0x6 .uleb128 0x2116 .uleb128 0xc .byte 0 .byte 0 .uleb128 0x5 .uleb128 0x24 .byte 0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0x8 .byte 0 .byte 0 .byte 0 .section .debug_loc,"",@progbits .Ldebug_loc0: .LLST0: .quad .LFB0-.Ltext0 .quad .LCFI0-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad .LCFI0-.Ltext0 .quad .LCFI1-.Ltext0 .value 0x2 .byte 0x77 .sleb128 16 .quad .LCFI1-.Ltext0 .quad .LCFI2-.Ltext0 .value 0x2 .byte 0x76 .sleb128 16 .quad .LCFI2-.Ltext0 .quad .LFE0-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad 0 .quad 0 .LLST1: .quad .LFB1-.Ltext0 .quad .LCFI3-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad .LCFI3-.Ltext0 .quad .LCFI4-.Ltext0 .value 0x2 .byte 0x77 .sleb128 16 .quad .LCFI4-.Ltext0 .quad .LCFI5-.Ltext0 .value 0x2 .byte 0x76 .sleb128 16 .quad .LCFI5-.Ltext0 .quad .LFE1-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad 0 .quad 0 .LLST2: .quad .LFB2-.Ltext0 .quad .LCFI6-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad .LCFI6-.Ltext0 .quad .LCFI7-.Ltext0 .value 0x2 .byte 0x77 .sleb128 16 .quad .LCFI7-.Ltext0 .quad .LCFI8-.Ltext0 .value 0x2 .byte 0x76 .sleb128 16 .quad .LCFI8-.Ltext0 .quad .LFE2-.Ltext0 .value 0x2 .byte 0x77 .sleb128 8 .quad 0 .quad 0 .section .debug_aranges,"",@progbits .long 0x2c .value 0x2 .long .Ldebug_info0 .byte 0x8 .byte 0 .value 0 .value 0 .quad .Ltext0 .quad .Letext0-.Ltext0 .quad 0 .quad 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF0: .string "stop_frame" .LASF2: .string "GNU C 4.7.2" .LASF3: .string "mi-reg-undefined.c" .LASF4: .string "/home/username/src/gdb/testsuite/gdb.mi" .LASF1: .string "first_frame" .LASF5: .string "main" .ident "GCC: (GNU) 4.7.2" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
5,730
gdb/testsuite/gdb.arch/powerpc-power7.s
/* This testcase is part of GDB, the GNU debugger. Copyright 2014-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .text .globl func func: .long 0x7c642e98 /* lxvd2x vs3,r4,r5 */ .long 0x7d642e99 /* lxvd2x vs43,r4,r5 */ .long 0x7c642f98 /* stxvd2x vs3,r4,r5 */ .long 0x7d642f99 /* stxvd2x vs43,r4,r5 */ .long 0xf0642850 /* xxmrghd vs3,vs4,vs5 */ .long 0xf16c6857 /* xxmrghd vs43,vs44,vs45 */ .long 0xf0642b50 /* xxmrgld vs3,vs4,vs5 */ .long 0xf16c6b57 /* xxmrgld vs43,vs44,vs45 */ .long 0xf0642950 /* xxpermdi vs3,vs4,vs5,1 */ .long 0xf16c6957 /* xxpermdi vs43,vs44,vs45,1 */ .long 0xf0642a50 /* xxpermdi vs3,vs4,vs5,2 */ .long 0xf16c6a57 /* xxpermdi vs43,vs44,vs45,2 */ .long 0xf0642780 /* xvmovdp vs3,vs4 */ .long 0xf16c6787 /* xvmovdp vs43,vs44 */ .long 0xf0642f80 /* xvcpsgndp vs3,vs4,vs5 */ .long 0xf16c6f87 /* xvcpsgndp vs43,vs44,vs45 */ .long 0x4c000324 /* doze */ .long 0x4c000364 /* nap */ .long 0x4c0003a4 /* sleep */ .long 0x4c0003e4 /* rvwinkle */ .long 0x7c830134 /* prtyw r3,r4 */ .long 0x7dcd0174 /* prtyd r13,r14 */ .long 0x7d5c02a6 /* mfcfar r10 */ .long 0x7d7c03a6 /* mtcfar r11 */ .long 0x7c832bf8 /* cmpb r3,r4,r5 */ .long 0x7d4b662a /* lwzcix r10,r11,r12 */ .long 0xee119004 /* dadd f16,f17,f18 */ .long 0xfe96c004 /* daddq f20,f22,f24 */ .long 0x7c60066c /* dss 3 */ .long 0x7e00066c /* dssall */ .long 0x7c2522ac /* dst r5,r4,1 */ .long 0x7e083aac /* dstt r8,r7,0 */ .long 0x7c6532ec /* dstst r5,r6,3 */ .long 0x7e442aec /* dststt r4,r5,2 */ .long 0x7d4b6356 /* divwe r10,r11,r12 */ .long 0x7d6c6b57 /* divwe. r11,r12,r13 */ .long 0x7d8d7756 /* divweo r12,r13,r14 */ .long 0x7dae7f57 /* divweo. r13,r14,r15 */ .long 0x7d4b6316 /* divweu r10,r11,r12 */ .long 0x7d6c6b17 /* divweu. r11,r12,r13 */ .long 0x7d8d7716 /* divweuo r12,r13,r14 */ .long 0x7dae7f17 /* divweuo. r13,r14,r15 */ .long 0x7e27d9f8 /* bpermd r7,r17,r27 */ .long 0x7e8a02f4 /* popcntw r10,r20 */ .long 0x7e8a03f4 /* popcntd r10,r20 */ .long 0x7e95b428 /* ldbrx r20,r21,r22 */ .long 0x7e95b528 /* stdbrx r20,r21,r22 */ .long 0x7d4056ee /* lfiwzx f10,0,r10 */ .long 0x7d4956ee /* lfiwzx f10,r9,r10 */ .long 0xec802e9c /* fcfids f4,f5 */ .long 0xec802e9d /* fcfids. f4,f5 */ .long 0xec802f9c /* fcfidus f4,f5 */ .long 0xec802f9d /* fcfidus. f4,f5 */ .long 0xfc80291c /* fctiwu f4,f5 */ .long 0xfc80291d /* fctiwu. f4,f5 */ .long 0xfc80291e /* fctiwuz f4,f5 */ .long 0xfc80291f /* fctiwuz. f4,f5 */ .long 0xfc802f5c /* fctidu f4,f5 */ .long 0xfc802f5d /* fctidu. f4,f5 */ .long 0xfc802f5e /* fctiduz f4,f5 */ .long 0xfc802f5f /* fctiduz. f4,f5 */ .long 0xfc802f9c /* fcfidu f4,f5 */ .long 0xfc802f9d /* fcfidu. f4,f5 */ .long 0xfc0a5900 /* ftdiv cr0,f10,f11 */ .long 0xff8a5900 /* ftdiv cr7,f10,f11 */ .long 0xfc005140 /* ftsqrt cr0,f10 */ .long 0xff805140 /* ftsqrt cr7,f10 */ .long 0x7e084a2c /* dcbtt r8,r9 */ .long 0x7e0849ec /* dcbtstt r8,r9 */ .long 0xed406644 /* dcffix f10,f12 */ .long 0xee80b645 /* dcffix. f20,f22 */ .long 0xfdc07830 /* fre f14,f15 */ .long 0xfdc07831 /* fre. f14,f15 */ .long 0xedc07830 /* fres f14,f15 */ .long 0xedc07831 /* fres. f14,f15 */ .long 0xfdc07834 /* frsqrte f14,f15 */ .long 0xfdc07835 /* frsqrte. f14,f15 */ .long 0xedc07834 /* frsqrtes f14,f15 */ .long 0xedc07835 /* frsqrtes. f14,f15 */ .long 0x7c43271e /* isel r2,r3,r4,28 */ .long 0x7f7bdb78 /* yield */ .long 0x60420000 /* ori r2,r2,0 */ .long 0x60000000 /* nop */ .long 0x7fbdeb78 /* mdoio */ .long 0x7fdef378 /* mdoom */ .long 0x7d40e2a6 /* mfppr r10 */ .long 0x7d62e2a6 /* mfppr32 r11 */ .long 0x7d80e3a6 /* mtppr r12 */ .long 0x7da2e3a6 /* mtppr32 r13 */ .long 0x7d605264 /* tlbie r10,r11 */
tactcomplabs/xbgas-binutils-gdb
11,269
gdb/testsuite/gdb.arch/amd64-prologue-xmm.s
/* This testcase is part of GDB, the GNU debugger. Copyright 2011-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This file is compiled from gdb.arch/amd64-prologue-xmm.c using -g -dA -S. */ .file "amd64-prologue-xmm.c" .text .Ltext0: .local v .comm v,4,4 .local fail .comm fail,4,4 .type func, @function func: .LFB0: .file 1 "gdb.arch/amd64-prologue-xmm.c" # gdb.arch/amd64-prologue-xmm.c:22 .loc 1 22 0 .cfi_startproc # basic block 2 pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 subq $72, %rsp movq %rsi, -168(%rbp) movq %rdx, -160(%rbp) movq %rcx, -152(%rbp) movq %r8, -144(%rbp) movq %r9, -136(%rbp) testb %al, %al je .L2 # basic block 3 # gdb.arch/amd64-prologue-xmm.c:22 .loc 1 22 0 movaps %xmm0, -128(%rbp) movaps %xmm1, -112(%rbp) movaps %xmm2, -96(%rbp) movaps %xmm3, -80(%rbp) movaps %xmm4, -64(%rbp) movaps %xmm5, -48(%rbp) movaps %xmm6, -32(%rbp) movaps %xmm7, -16(%rbp) .L2: # basic block 4 movl %edi, -180(%rbp) # gdb.arch/amd64-prologue-xmm.c:23 .loc 1 23 0 movl -180(%rbp), %eax movl %eax, v(%rip) # gdb.arch/amd64-prologue-xmm.c:24 .loc 1 24 0 leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func, .-func .type marker, @function marker: .LFB1: # gdb.arch/amd64-prologue-xmm.c:28 .loc 1 28 0 .cfi_startproc # basic block 2 pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 # gdb.arch/amd64-prologue-xmm.c:29 .loc 1 29 0 popq %rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE1: .size marker, .-marker .globl main .type main, @function main: .LFB2: # gdb.arch/amd64-prologue-xmm.c:33 .loc 1 33 0 .cfi_startproc # basic block 2 pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 # gdb.arch/amd64-prologue-xmm.c:34 .loc 1 34 0 movl $1, %edi movl $0, %eax call func # gdb.arch/amd64-prologue-xmm.c:35 .loc 1 35 0 movl $1, fail(%rip) # gdb.arch/amd64-prologue-xmm.c:36 .loc 1 36 0 call marker # gdb.arch/amd64-prologue-xmm.c:37 .loc 1 37 0 movl $0, %eax # gdb.arch/amd64-prologue-xmm.c:38 .loc 1 38 0 popq %rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE2: .size main, .-main .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0xc0 # Length of Compilation Unit Info .value 0x4 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x8 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .long .LASF1 # DW_AT_producer: "GNU C 4.6.1 20110715 (Red Hat 4.6.1-3)" .byte 0x1 # DW_AT_language .long .LASF2 # DW_AT_name: "gdb.arch/amd64-prologue-xmm.c" .long .LASF3 # DW_AT_comp_dir: "" .quad .Ltext0 # DW_AT_low_pc .quad .Letext0 # DW_AT_high_pc .long .Ldebug_line0 # DW_AT_stmt_list .uleb128 0x2 # (DIE (0x2d) DW_TAG_subprogram) .long .LASF4 # DW_AT_name: "func" .byte 0x1 # DW_AT_decl_file (gdb.arch/amd64-prologue-xmm.c) .byte 0x15 # DW_AT_decl_line # DW_AT_prototyped .quad .LFB0 # DW_AT_low_pc .quad .LFE0 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .long 0x59 # DW_AT_sibling .uleb128 0x3 # (DIE (0x4a) DW_TAG_formal_parameter) .ascii "i\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (gdb.arch/amd64-prologue-xmm.c) .byte 0x15 # DW_AT_decl_line .long 0x59 # DW_AT_type .uleb128 0x3 # DW_AT_location .byte 0x91 # DW_OP_fbreg .sleb128 -196 .uleb128 0x4 # (DIE (0x57) DW_TAG_unspecified_parameters) .byte 0 # end of children of DIE 0x2d .uleb128 0x5 # (DIE (0x59) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .uleb128 0x6 # (DIE (0x60) DW_TAG_subprogram) .long .LASF5 # DW_AT_name: "marker" .byte 0x1 # DW_AT_decl_file (gdb.arch/amd64-prologue-xmm.c) .byte 0x1b # DW_AT_decl_line # DW_AT_prototyped .quad .LFB1 # DW_AT_low_pc .quad .LFE1 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_call_sites .uleb128 0x7 # (DIE (0x79) DW_TAG_subprogram) # DW_AT_external .long .LASF6 # DW_AT_name: "main" .byte 0x1 # DW_AT_decl_file (gdb.arch/amd64-prologue-xmm.c) .byte 0x20 # DW_AT_decl_line # DW_AT_prototyped .long 0x59 # DW_AT_type .quad .LFB2 # DW_AT_low_pc .quad .LFE2 # DW_AT_high_pc .uleb128 0x1 # DW_AT_frame_base .byte 0x9c # DW_OP_call_frame_cfa # DW_AT_GNU_all_tail_call_sites .uleb128 0x8 # (DIE (0x96) DW_TAG_variable) .ascii "v\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (gdb.arch/amd64-prologue-xmm.c) .byte 0x12 # DW_AT_decl_line .long 0xa9 # DW_AT_type .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad v .uleb128 0x9 # (DIE (0xa9) DW_TAG_volatile_type) .long 0x59 # DW_AT_type .uleb128 0xa # (DIE (0xae) DW_TAG_variable) .long .LASF0 # DW_AT_name: "fail" .byte 0x1 # DW_AT_decl_file (gdb.arch/amd64-prologue-xmm.c) .byte 0x12 # DW_AT_decl_line .long 0xa9 # DW_AT_type .uleb128 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad fail .byte 0 # end of children of DIE 0xb .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x17 # (DW_FORM_sec_offset) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x3 # (abbrev code) .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 .uleb128 0x4 # (abbrev code) .uleb128 0x18 # (TAG: DW_TAG_unspecified_parameters) .byte 0 # DW_children_no .byte 0 .byte 0 .uleb128 0x5 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0 .byte 0 .uleb128 0x6 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .byte 0 .byte 0 .uleb128 0x7 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0 # DW_children_no .uleb128 0x3f # (DW_AT_external) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0x19 # (DW_FORM_flag_present) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0x18 # (DW_FORM_exprloc) .uleb128 0x2116 # (DW_AT_GNU_all_tail_call_sites) .uleb128 0x19 # (DW_FORM_flag_present) .byte 0 .byte 0 .uleb128 0x8 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 .uleb128 0x9 # (abbrev code) .uleb128 0x35 # (TAG: DW_TAG_volatile_type) .byte 0 # DW_children_no .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0xa # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x2 # (DW_AT_location) .uleb128 0x18 # (DW_FORM_exprloc) .byte 0 .byte 0 .byte 0 .section .debug_aranges,"",@progbits .long 0x2c # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .byte 0x8 # Size of Address .byte 0 # Size of Segment Descriptor .value 0 # Pad to 16 byte boundary .value 0 .quad .Ltext0 # Address .quad .Letext0-.Ltext0 # Length .quad 0 .quad 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF3: .string "" .LASF0: .string "fail" .LASF4: .string "func" .LASF1: .string "GNU C 4.6.1 20110715 (Red Hat 4.6.1-3)" .LASF2: .string "gdb.arch/amd64-prologue-xmm.c" .LASF5: .string "marker" .LASF6: .string "main" .ident "GCC: (GNU) 4.6.1 20110715 (Red Hat 4.6.1-3)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
11,505
gdb/testsuite/gdb.arch/powerpc-altivec.s
/* This testcase is part of GDB, the GNU debugger. Copyright 2014-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .text .globl func func: .long 0x7c60066c /* dss 3 */ .long 0x7e00066c /* dssall */ .long 0x7c2522ac /* dst r5,r4,1 */ .long 0x7e083aac /* dstt r8,r7,0 */ .long 0x7c6532ec /* dstst r5,r6,3 */ .long 0x7e442aec /* dststt r4,r5,2 */ .long 0x7fd6c00e /* lvebx v30,r22,r24 */ .long 0x7ea0c00e /* lvebx v21,0,r24 */ .long 0x7d50104e /* lvehx v10,r16,r2 */ .long 0x7e80b84e /* lvehx v20,0,r23 */ .long 0x7e24908e /* lvewx v17,r4,r18 */ .long 0x7ee0408e /* lvewx v23,0,r8 */ .long 0x7cc0c80c /* lvsl v6,0,r25 */ .long 0x7c40300c /* lvsl v2,0,r6 */ .long 0x7ed0604c /* lvsr v22,r16,r12 */ .long 0x7c00e84c /* lvsr v0,0,r29 */ .long 0x7de56ace /* lvxl v15,r5,r13 */ .long 0x7e60bace /* lvxl v19,0,r23 */ .long 0x7ec110ce /* lvx v22,r1,r2 */ .long 0x7e4088ce /* lvx v18,0,r17 */ .long 0x7fe042a6 /* mfvrsave r31 */ .long 0x13000604 /* mfvscr v24 */ .long 0x7d4043a6 /* mtvrsave r10 */ .long 0x1000ce44 /* mtvscr v25 */ .long 0x7e5b510e /* stvebx v18,r27,r10 */ .long 0x7e00310e /* stvebx v16,0,r6 */ .long 0x7e2d814e /* stvehx v17,r13,r16 */ .long 0x7ee0a14e /* stvehx v23,0,r20 */ .long 0x7d73f98e /* stvewx v11,r19,r31 */ .long 0x7fe0098e /* stvewx v31,0,r1 */ .long 0x7f558bce /* stvxl v26,r21,r17 */ .long 0x7da0b3ce /* stvxl v13,0,r22 */ .long 0x7d7ff9ce /* stvx v11,r31,r31 */ .long 0x7fc081ce /* stvx v30,0,r16 */ .long 0x1307e180 /* vaddcuw v24,v7,v28 */ .long 0x107e580a /* vaddfp v3,v30,v11 */ .long 0x111c4b00 /* vaddsbs v8,v28,v9 */ .long 0x10e52340 /* vaddshs v7,v5,v4 */ .long 0x12dadb80 /* vaddsws v22,v26,v27 */ .long 0x120ee000 /* vaddubm v16,v14,v28 */ .long 0x10c1ca00 /* vaddubs v6,v1,v25 */ .long 0x10443040 /* vadduhm v2,v4,v6 */ .long 0x13554240 /* vadduhs v26,v21,v8 */ .long 0x13bf0880 /* vadduwm v29,v31,v1 */ .long 0x12ed2280 /* vadduws v23,v13,v4 */ .long 0x13d04c44 /* vandc v30,v16,v9 */ .long 0x106ddc04 /* vand v3,v13,v27 */ .long 0x10868d02 /* vavgsb v4,v6,v17 */ .long 0x12fc9d42 /* vavgsh v23,v28,v19 */ .long 0x110ffd82 /* vavgsw v8,v15,v31 */ .long 0x10c7cc02 /* vavgub v6,v7,v25 */ .long 0x13365442 /* vavguh v25,v22,v10 */ .long 0x1077ec82 /* vavguw v3,v23,v29 */ .long 0x11c613ca /* vctsxs v14,v2,6 */ .long 0x1134fb8a /* vctuxs v9,v31,20 */ .long 0x1303f34a /* vcfsx v24,v30,3 */ .long 0x123dab0a /* vcfux v17,v21,29 */ .long 0x125c03c6 /* vcmpbfp v18,v28,v0 */ .long 0x127a1fc6 /* vcmpbfp. v19,v26,v3 */ .long 0x120258c6 /* vcmpeqfp v16,v2,v11 */ .long 0x12ed6cc6 /* vcmpeqfp. v23,v13,v13 */ .long 0x13335006 /* vcmpequb v25,v19,v10 */ .long 0x124b1406 /* vcmpequb. v18,v11,v2 */ .long 0x11393846 /* vcmpequh v9,v25,v7 */ .long 0x11d8ac46 /* vcmpequh. v14,v24,v21 */ .long 0x130c2886 /* vcmpequw v24,v12,v5 */ .long 0x12700c86 /* vcmpequw. v19,v16,v1 */ .long 0x12f181c6 /* vcmpgefp v23,v17,v16 */ .long 0x127d8dc6 /* vcmpgefp. v19,v29,v17 */ .long 0x121c6ac6 /* vcmpgtfp v16,v28,v13 */ .long 0x11d83ec6 /* vcmpgtfp. v14,v24,v7 */ .long 0x12163306 /* vcmpgtsb v16,v22,v6 */ .long 0x104c7706 /* vcmpgtsb. v2,v12,v14 */ .long 0x1383eb46 /* vcmpgtsh v28,v3,v29 */ .long 0x12136f46 /* vcmpgtsh. v16,v19,v13 */ .long 0x11e02b86 /* vcmpgtsw v15,v0,v5 */ .long 0x12ad0786 /* vcmpgtsw. v21,v13,v0 */ .long 0x10aaf206 /* vcmpgtub v5,v10,v30 */ .long 0x10ed5606 /* vcmpgtub. v7,v13,v10 */ .long 0x130f8246 /* vcmpgtuh v24,v15,v16 */ .long 0x1335de46 /* vcmpgtuh. v25,v21,v27 */ .long 0x123b3286 /* vcmpgtuw v17,v27,v6 */ .long 0x1115de86 /* vcmpgtuw. v8,v21,v27 */ .long 0x102e0b4a /* vcfsx v1,v1,14 */ .long 0x10997bca /* vctsxs v4,v15,25 */ .long 0x138ebb8a /* vctuxs v28,v23,14 */ .long 0x10c0330a /* vcfux v6,v6,0 */ .long 0x1000418a /* vexptefp v0,v8 */ .long 0x12c0d9ca /* vlogefp v22,v27 */ .long 0x12f2916e /* vmaddfp v23,v18,v5,v18 */ .long 0x11addc0a /* vmaxfp v13,v13,v27 */ .long 0x11177102 /* vmaxsb v8,v23,v14 */ .long 0x12710142 /* vmaxsh v19,v17,v0 */ .long 0x1263b182 /* vmaxsw v19,v3,v22 */ .long 0x12fee002 /* vmaxub v23,v30,v28 */ .long 0x1134b842 /* vmaxuh v9,v20,v23 */ .long 0x12b30882 /* vmaxuw v21,v19,v1 */ .long 0x12cd2da0 /* vmhaddshs v22,v13,v5,v22 */ .long 0x13e01ca1 /* vmhraddshs v31,v0,v3,v18 */ .long 0x1055c44a /* vminfp v2,v21,v24 */ .long 0x12865302 /* vminsb v20,v6,v10 */ .long 0x125bd342 /* vminsh v18,v27,v26 */ .long 0x10640b82 /* vminsw v3,v4,v1 */ .long 0x10e06a02 /* vminub v7,v0,v13 */ .long 0x100c3242 /* vminuh v0,v12,v6 */ .long 0x10c30a82 /* vminuw v6,v3,v1 */ .long 0x107d1ea2 /* vmladduhm v3,v29,v3,v26 */ .long 0x12a5f80c /* vmrghb v21,v5,v31 */ .long 0x12b8004c /* vmrghh v21,v24,v0 */ .long 0x1200b08c /* vmrghw v16,v0,v22 */ .long 0x1031810c /* vmrglb v1,v17,v16 */ .long 0x11c8794c /* vmrglh v14,v8,v15 */ .long 0x13f5298c /* vmrglw v31,v21,v5 */ .long 0x13094c84 /* vmr v24,v9 */ .long 0x10187de5 /* vmsummbm v0,v24,v15,v23 */ .long 0x10243e68 /* vmsumshm v1,v4,v7,v25 */ .long 0x11286fe9 /* vmsumshs v9,v8,v13,v31 */ .long 0x12ff67a4 /* vmsumubm v23,v31,v12,v30 */ .long 0x13a0d566 /* vmsumuhm v29,v0,v26,v21 */ .long 0x136ec967 /* vmsumuhs v27,v14,v25,v5 */ .long 0x11597308 /* vmulesb v10,v25,v14 */ .long 0x10324348 /* vmulesh v1,v18,v8 */ .long 0x122e4a08 /* vmuleub v17,v14,v9 */ .long 0x10ba4a48 /* vmuleuh v5,v26,v9 */ .long 0x12b23108 /* vmulosb v21,v18,v6 */ .long 0x10854148 /* vmulosh v4,v5,v8 */ .long 0x10499808 /* vmuloub v2,v9,v19 */ .long 0x13a52048 /* vmulouh v29,v5,v4 */ .long 0x110229af /* vnmsubfp v8,v2,v6,v5 */ .long 0x13e95504 /* vnor v31,v9,v10 */ .long 0x133ffd04 /* vnot v25,v31 */ .long 0x12e71484 /* vor v23,v7,v2 */ .long 0x101cb66b /* vperm v0,v28,v22,v25 */ .long 0x12198b0e /* vpkpx v16,v25,v17 */ .long 0x1190898e /* vpkshss v12,v16,v17 */ .long 0x1033b90e /* vpkshus v1,v19,v23 */ .long 0x132769ce /* vpkswss v25,v7,v13 */ .long 0x1098514e /* vpkswus v4,v24,v10 */ .long 0x113b600e /* vpkuhum v9,v27,v12 */ .long 0x12cac88e /* vpkuhus v22,v10,v25 */ .long 0x13d2004e /* vpkuwum v30,v18,v0 */ .long 0x10e3b0ce /* vpkuwus v7,v3,v22 */ .long 0x1300e10a /* vrefp v24,v28 */ .long 0x12209aca /* vrfim v17,v19 */ .long 0x1300ca0a /* vrfin v24,v25 */ .long 0x10602a8a /* vrfip v3,v5 */ .long 0x1100524a /* vrfiz v8,v10 */ .long 0x1352f004 /* vrlb v26,v18,v30 */ .long 0x1211c844 /* vrlh v16,v17,v25 */ .long 0x12fe4884 /* vrlw v23,v30,v9 */ .long 0x1040914a /* vrsqrtefp v2,v18 */ .long 0x128e92aa /* vsel v20,v14,v18,v10 */ .long 0x13396104 /* vslb v25,v25,v12 */ .long 0x112961ec /* vsldoi v9,v9,v12,7 */ .long 0x11c25944 /* vslh v14,v2,v11 */ .long 0x13c5340c /* vslo v30,v5,v6 */ .long 0x12de49c4 /* vsl v22,v30,v9 */ .long 0x135a1984 /* vslw v26,v26,v3 */ .long 0x1026a20c /* vspltb v1,v20,6 */ .long 0x1203924c /* vsplth v16,v18,3 */ .long 0x1333030c /* vspltisb v25,-13 */ .long 0x12ca034c /* vspltish v22,10 */ .long 0x11ad038c /* vspltisw v13,13 */ .long 0x1122928c /* vspltw v9,v18,2 */ .long 0x11d60304 /* vsrab v14,v22,v0 */ .long 0x118c9344 /* vsrah v12,v12,v18 */ .long 0x10426b84 /* vsraw v2,v2,v13 */ .long 0x10fb2a04 /* vsrb v7,v27,v5 */ .long 0x10ebea44 /* vsrh v7,v11,v29 */ .long 0x125efc4c /* vsro v18,v30,v31 */ .long 0x1049e2c4 /* vsr v2,v9,v28 */ .long 0x10190284 /* vsrw v0,v25,v0 */ .long 0x13025580 /* vsubcuw v24,v2,v10 */ .long 0x12d8a04a /* vsubfp v22,v24,v20 */ .long 0x11566f00 /* vsubsbs v10,v22,v13 */ .long 0x1311e740 /* vsubshs v24,v17,v28 */ .long 0x115a0780 /* vsubsws v10,v26,v0 */ .long 0x120bc400 /* vsububm v16,v11,v24 */ .long 0x11750e00 /* vsububs v11,v21,v1 */ .long 0x10ccc440 /* vsubuhm v6,v12,v24 */ .long 0x13cb4e40 /* vsubuhs v30,v11,v9 */ .long 0x12746c80 /* vsubuwm v19,v20,v13 */ .long 0x12593680 /* vsubuws v18,v25,v6 */ .long 0x132a9688 /* vsum2sws v25,v10,v18 */ .long 0x11b0af08 /* vsum4sbs v13,v16,v21 */ .long 0x12e82648 /* vsum4shs v23,v8,v4 */ .long 0x138df608 /* vsum4ubs v28,v13,v30 */ .long 0x12ca4788 /* vsumsws v22,v10,v8 */ .long 0x1300734e /* vupkhpx v24,v14 */ .long 0x1040b20e /* vupkhsb v2,v22 */ .long 0x1200124e /* vupkhsh v16,v2 */ .long 0x1140d3ce /* vupklpx v10,v26 */ .long 0x11e0e28e /* vupklsb v15,v28 */ .long 0x110042ce /* vupklsh v8,v8 */ .long 0x13201cc4 /* vxor v25,v0,v3 */
tactcomplabs/xbgas-binutils-gdb
1,079
gdb/testsuite/gdb.arch/pa64-nullify.s
.LEVEL 2.0w .text .align 8 .globl foo .type foo, @function foo: .PROC .CALLINFO FRAME=64,NO_CALLS,SAVE_SP,ENTRY_GR=3 .ENTRY copy %r3,%r1 copy %r30,%r3 std,ma %r1,64(%r30) std %r3,-8(%r30) ldo -64(%r29),%r28 stw %r26,0(%r28) ldw 0(%r28),%r28 extrd,s %r28,63,32,%r28 ldo 64(%r3),%r30 ldd,mb -64(%r30),%r3 nop bve,n (%r2) .EXIT .PROCEND .align 8 .globl bar .type bar, @function bar: .PROC .CALLINFO FRAME=64,NO_CALLS,SAVE_SP,ENTRY_GR=3 .ENTRY copy %r3,%r1 copy %r30,%r3 std,ma %r1,64(%r30) std %r3,-8(%r30) ldo 64(%r3),%r30 ldd,mb -64(%r30),%r3 bve,n (%r2) .EXIT .PROCEND .align 8 .globl main .type main, @function main: .PROC .CALLINFO FRAME=128,CALLS,SAVE_RP,SAVE_SP,ENTRY_GR=4 .ENTRY std %r2,-16(%r30) copy %r3,%r1 copy %r30,%r3 std,ma %r1,128(%r30) std %r3,-8(%r30) std %r4,8(%r3) ldo -64(%r29),%r28 stw %r26,0(%r28) std %r25,8(%r28) ldw 0(%r28),%r26 ldo -48(%r30),%r29 copy %r27,%r4 b,l foo,%r2 nop copy %r4,%r27 ldd -16(%r3),%r2 ldd 8(%r3),%r4 ldo 64(%r3),%r30 ldd,mb -64(%r30),%r3 bve,n (%r2) .EXIT .PROCEND
tactcomplabs/xbgas-binutils-gdb
24,436
gdb/testsuite/gdb.arch/arc-decode-insn.S
; This testcase is part of GDB, the GNU debugger. ; Copyright 2017-2022 Free Software Foundation, Inc. ; This program is free software; you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation; either version 3 of the License, or ; (at your option) any later version. ; ; This program is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; ; You should have received a copy of the GNU General Public License ; along with this program. If not, see <http://www.gnu.org/licenses/>. .section .text .global main #define TEST_J #define TEST_JCC #define TEST_JL #define TEST_JLCC #define TEST_B #define TEST_BBIT #define TEST_BCC #define TEST_BI #define TEST_BL #define TEST_BRCC #define TEST_JLI #define TEST_LEAVE_S #define TEST_LPCC ; JLI-specific stuff #ifdef TEST_JLI jli_table: .word 0xdeadbeea .word 0xdeadbeea jli_target: .word 0xdeadbeea .word 0xdeadbeea .set jli_offset, 3 #endif main: ; Each test case requires several symbols to be set, that identify expected ; parameters of this instruction. Required symbols: ; ${test}_start: symbol points to start of the test ; ${test}_end: symbol points to the instruction after the jump/branch ; instruction. ; ${test}_target: branch target address. ; ${test}_has_delay_slot: whether instruction has delay slot. ; ${test}_cc: condition code numeric value. .set r12_value, 0xdead0000 .set blink_value, 0xdead0004 .set limm_value, 0xdead0008 ; Just an integer .set r4_value, 0xdead000c ; Just an integer .set r5_value, 0xdead0010 ; offset index for BI [c] .set r7_value, 4 .set u6_value, 0x20 .set s12_target, 0x100 mov r12, @r12_value mov r4, @r4_value mov r5, @r5_value mov r7, @r7_value mov blink, @blink_value #ifdef TEST_JLI ; jli_base aux regnum = 0x290 sr jli_table, [0x290] #endif start_branch_tests: #ifdef TEST_J #define TEST_NAME j_c ; j [c] .set j_c_target, @r4_value .set j_c_has_delay_slot, 0 .set j_c_cc, 0 j_c_start: j [r4] j_c_end: ; j [blink] .set j_blink_target, @blink_value .set j_blink_has_delay_slot, 0 .set j_blink_cc, 0 mov blink, @j_blink_target j_blink_start: j [blink] j_blink_end: ; j limm .set j_limm_target, @limm_value .set j_limm_has_delay_slot, 0 .set j_limm_cc, 0 j_limm_start: j @j_limm_target j_limm_end: ; j u6 .set j_u6_target, @u6_value .set j_u6_has_delay_slot, 0 .set j_u6_cc, 0 j_u6_start: j @j_u6_target j_u6_end: ; j s12 .set j_s12_target, @s12_target .set j_s12_has_delay_slot, 0 .set j_s12_cc, 0 j_s12_start: j @j_s12_target j_s12_end: ; j.d [c] .set j_d_c_target, @r4_value .set j_d_c_has_delay_slot, 1 .set j_d_c_cc, 0 j_d_c_start: j.d [r4] j_d_c_end: nop_s ; j.d [blink] .set j_d_blink_target, @blink_value .set j_d_blink_has_delay_slot, 1 .set j_d_blink_cc, 0 j_d_blink_start: j.d [blink] j_d_blink_end: nop_s ; j.d u6 .set j_d_u6_target, @u6_value .set j_d_u6_has_delay_slot, 1 .set j_d_u6_cc, 0 j_d_u6_start: j.d @j_d_u6_target j_d_u6_end: nop_s ; j.d s12 .set j_d_s12_target, @s12_target .set j_d_s12_has_delay_slot, 1 .set j_d_s12_cc, 0 j_d_s12_start: j.d @j_d_s12_target j_d_s12_end: nop_s ; j_s [b] .set j_s_b_target, @r12_value .set j_s_b_has_delay_slot, 0 .set j_s_b_cc, 0 j_s_b_start: j_s [r12] j_s_b_end: ; j_s.d [b] .set j_s_d_b_target, @r12_value .set j_s_d_b_has_delay_slot, 1 .set j_s_d_b_cc, 0 j_s_d_b_start: j_s.d [r12] j_s_d_b_end: nop_s ; j_s [blink] .set j_s_blink_target, @blink_value .set j_s_blink_has_delay_slot, 0 .set j_s_blink_cc, 0 j_s_blink_start: j_s [blink] j_s_blink_end: ; j_s.d [blink] .set j_s_d_blink_target, @blink_value .set j_s_d_blink_has_delay_slot, 1 .set j_c_cc, 0 j_s_d_blink_start: j_s.d [blink] j_s_d_blink_end: nop_s #endif /* TEST_J */ #ifdef TEST_JCC ; jcc [c] .set jcc_c_target, @r4_value .set jcc_c_has_delay_slot, 0 .set jcc_c_cc, 1 jcc_c_start: jeq [r4] jcc_c_end: ; jcc [blink] .set jcc_blink_target, @blink_value .set jcc_blink_has_delay_slot, 0 .set jcc_blink_cc, 2 jcc_blink_start: jnz [blink] jcc_blink_end: ; jcc limm .set jcc_limm_target, @limm_value .set jcc_limm_has_delay_slot, 0 .set jcc_limm_cc, 9 jcc_limm_start: jgt @jcc_limm_target jcc_limm_end: ; jcc u6 .set jcc_u6_target, @u6_value .set jcc_u6_has_delay_slot, 0 .set jcc_u6_cc, 0xA jcc_u6_start: jge @jcc_u6_target jcc_u6_end: ; jcc.d [c] .set jcc_d_c_target, @r4_value .set jcc_d_c_has_delay_slot, 1 .set jcc_d_c_cc, 0xB jcc_d_c_start: jlt.d [r4] jcc_d_c_end: nop_s ; jcc.d [blink] .set jcc_d_blink_target, @blink_value .set jcc_d_blink_has_delay_slot, 1 .set jcc_d_blink_cc, 0xC jcc_d_blink_start: jle.d [blink] jcc_d_blink_end: nop_s ; jcc.d u6 .set jcc_d_u6_target, @u6_value .set jcc_d_u6_has_delay_slot, 1 .set jcc_d_u6_cc, 0xE jcc_d_u6_start: jls.d @jcc_d_u6_target jcc_d_u6_end: nop_s ; jeq_s [blink] .set jcc_eq_s_blink_target, @blink_value .set jcc_eq_s_blink_has_delay_slot, 0 .set jcc_eq_s_blink_cc, 1 jcc_eq_s_blink_start: jeq_s [blink] jcc_eq_s_blink_end: ; jne_s [blink] .set jcc_ne_s_blink_target, @blink_value .set jcc_ne_s_blink_has_delay_slot, 0 .set jcc_ne_s_blink_cc, 2 jcc_ne_s_blink_start: jne_s [blink] jcc_ne_s_blink_end: #endif /* TEST_JCC */ #ifdef TEST_JL ; jl [c] .set jl_c_target, @r4_value .set jl_c_has_delay_slot, 0 .set jl_c_cc, 0 jl_c_start: jl [r4] jl_c_end: ; jl limm .set jl_limm_target, @limm_value .set jl_limm_has_delay_slot, 0 .set jl_limm_cc, 0 jl_limm_start: jl @jl_limm_target jl_limm_end: ; jl u6 .set jl_u6_target, @u6_value .set jl_u6_has_delay_slot, 0 .set jl_u6_cc, 0 jl_u6_start: jl @jl_u6_target jl_u6_end: ; jl s12 .set jl_s12_target, @s12_target .set jl_s12_has_delay_slot, 0 .set jl_s12_cc, 0 jl_s12_start: jl @jl_s12_target jl_s12_end: ; jl.d [c] .set jl_d_c_target, @r4_value .set jl_d_c_has_delay_slot, 1 .set jl_d_c_cc, 0 jl_d_c_start: jl.d [r4] jl_d_c_end: nop_s ; jl.d u6 .set jl_d_u6_target, @u6_value .set jl_d_u6_has_delay_slot, 1 .set jl_d_u6_cc, 0 jl_d_u6_start: jl.d @jl_d_u6_target jl_d_u6_end: nop_s ; jl.d s12 .set jl_d_s12_target, @s12_target .set jl_d_s12_has_delay_slot, 1 .set jl_d_s12_cc, 0 jl_d_s12_start: jl.d @jl_d_s12_target jl_d_s12_end: nop_s ; jl_s [b] .set jl_s_b_target, @r12_value .set jl_s_b_has_delay_slot, 0 .set jl_s_b_cc, 0 jl_s_b_start: jl_s [r12] jl_s_b_end: ; jl_s.d [b] .set jl_s_d_b_target, @r12_value .set jl_s_d_b_has_delay_slot, 1 .set jl_s_d_b_cc, 0 jl_s_d_b_start: jl_s.d [r12] jl_s_d_b_end: nop_s #endif /* TEST_JL */ #ifdef TEST_JLCC ; jlcc [c] .set jlcc_c_target, @r4_value .set jlcc_c_has_delay_slot, 0 .set jlcc_c_cc, 1 jlcc_c_start: jleq [r4] jlcc_c_end: ; jlcc limm .set jlcc_limm_target, @limm_value .set jlcc_limm_has_delay_slot, 0 .set jlcc_limm_cc, 0x9 jlcc_limm_start: jlgt @jlcc_limm_target jlcc_limm_end: ; jlcc u6 .set jlcc_u6_target, @u6_value .set jlcc_u6_has_delay_slot, 0 .set jlcc_u6_cc, 0xA jlcc_u6_start: jlge @jlcc_u6_target jlcc_u6_end: ; jlcc.d [c] .set jlcc_d_c_target, @r4_value .set jlcc_d_c_has_delay_slot, 1 .set jlcc_d_c_cc, 0xB jlcc_d_c_start: jllt.d [r4] jlcc_d_c_end: nop_s ; jlcc.d u6 .set jlcc_d_u6_target, @u6_value .set jlcc_d_u6_has_delay_slot, 1 .set jlcc_d_u6_cc, 0xE jlcc_d_u6_start: jlls.d @jlcc_d_u6_target jlcc_d_u6_end: nop_s #endif /* TEST_JLCC */ #ifdef TEST_B .Lb_target: ; Artifical nop, so that first b will not branch to itself. nop_s ; b s25 .set b_s25_target, @.Lb_target .set b_s25_has_delay_slot, 0 .set b_s25_cc, 0 b_s25_start: b @b_s25_target b_s25_end: ; b.d s25 .set b_d_s25_target, @.Lb_target .set b_d_s25_has_delay_slot, 1 .set b_d_s25_cc, 0 b_d_s25_start: b.d @b_d_s25_target b_d_s25_end: nop_s ; b_s s10 .set b_s_s10_target, @.Lb_target .set b_s_s10_has_delay_slot, 0 .set b_s_s10_cc, 0 b_s_s10_start: b_s @b_s_s10_target b_s_s10_end: #endif /* TEST_B */ #ifdef TEST_BBIT ; Due to specifics of bbit implementation in assembler, only local symbols can ; be used as a branch targets for bbit and brcc. ; bbits and brcc don't have condition code set to anything. .Lbbit_target: nop_s ; bbit0.nt b,c,s9 .set bbit0_nt_b_c_s9_target, @.Lbbit_target .set bbit0_nt_b_c_s9_has_delay_slot, 0 .set bbit0_nt_b_c_s9_cc, 0 bbit0_nt_b_c_s9_start: bbit0.nt r4,r5,@bbit0_nt_b_c_s9_target bbit0_nt_b_c_s9_end: ; bbit0.d.nt b,c,s9 .set bbit0_d_nt_b_c_s9_target, @.Lbbit_target .set bbit0_d_nt_b_c_s9_has_delay_slot, 1 .set bbit0_d_nt_b_c_s9_cc, 0 bbit0_d_nt_b_c_s9_start: bbit0.d.nt r4,r5,@.Lbbit_target bbit0_d_nt_b_c_s9_end: nop_s ; bbit0.t b,c,s9 .set bbit0_t_b_c_s9_target, @.Lbbit_target .set bbit0_t_b_c_s9_has_delay_slot, 0 .set bbit0_t_b_c_s9_cc, 0 bbit0_t_b_c_s9_start: bbit0.t r4,r5,@.Lbbit_target bbit0_t_b_c_s9_end: ; bbit0.d.t b,c,s9 .set bbit0_d_t_b_c_s9_target, @.Lbbit_target .set bbit0_d_t_b_c_s9_has_delay_slot, 1 .set bbit0_d_t_b_c_s9_cc, 0 bbit0_d_t_b_c_s9_start: bbit0.d.t r4,r5,@.Lbbit_target bbit0_d_t_b_c_s9_end: nop_s ; bbit0.nt b,u6,s9 .set bbit0_nt_b_u6_s9_target, @.Lbbit_target .set bbit0_nt_b_u6_s9_has_delay_slot, 0 .set bbit0_nt_b_u6_s9_cc, 0 bbit0_nt_b_u6_s9_start: bbit0.nt r4,u6_value,@.Lbbit_target bbit0_nt_b_u6_s9_end: ; bbit0.d.nt b,u6,s9 .set bbit0_d_nt_b_u6_s9_target, @.Lbbit_target .set bbit0_d_nt_b_u6_s9_has_delay_slot, 1 .set bbit0_d_nt_b_u6_s9_cc, 0 bbit0_d_nt_b_u6_s9_start: bbit0.d.nt r4,u6_value,@.Lbbit_target bbit0_d_nt_b_u6_s9_end: nop_s ; bbit0.nt b,u6,s9 .set bbit0_t_b_u6_s9_target, @.Lbbit_target .set bbit0_t_b_u6_s9_has_delay_slot, 0 .set bbit0_t_b_u6_s9_cc, 0 bbit0_t_b_u6_s9_start: bbit0.t r4,u6_value,@.Lbbit_target bbit0_t_b_u6_s9_end: ; bbit0.d.nt b,u6,s9 .set bbit0_d_t_b_u6_s9_target, @.Lbbit_target .set bbit0_d_t_b_u6_s9_has_delay_slot, 1 .set bbit0_d_t_b_u6_s9_cc, 0 bbit0_d_t_b_u6_s9_start: bbit0.d.t r4,u6_value,@.Lbbit_target bbit0_d_t_b_u6_s9_end: nop_s ; bbit0.nt b,limm,s9 .set bbit0_nt_b_limm_s9_target, @.Lbbit_target .set bbit0_nt_b_limm_s9_has_delay_slot, 0 .set bbit0_nt_b_limm_s9_cc, 0 bbit0_nt_b_limm_s9_start: bbit0.nt r4,limm_value,@.Lbbit_target bbit0_nt_b_limm_s9_end: ; bbit0.t b,limm,s9 .set bbit0_t_b_limm_s9_target, @.Lbbit_target .set bbit0_t_b_limm_s9_has_delay_slot, 0 .set bbit0_t_b_limm_s9_cc, 0 bbit0_t_b_limm_s9_start: bbit0.t r4,limm_value,@.Lbbit_target bbit0_t_b_limm_s9_end: ; bbit0.nt limm,c,s9 .set bbit0_nt_limm_c_s9_target, @.Lbbit_target .set bbit0_nt_limm_c_s9_has_delay_slot, 0 .set bbit0_nt_limm_c_s9_cc, 0 bbit0_nt_limm_c_s9_start: bbit0.nt limm_value,r4,@.Lbbit_target bbit0_nt_limm_c_s9_end: ; bbit0.t limm,c,s9 .set bbit0_t_limm_c_s9_target, @.Lbbit_target .set bbit0_t_limm_c_s9_has_delay_slot, 0 .set bbit0_t_limm_c_s9_cc, 0 bbit0_t_limm_c_s9_start: bbit0.t limm_value,r4,@.Lbbit_target bbit0_t_limm_c_s9_end: ; bbit0.nt limm,u6,s9 .set bbit0_nt_limm_u6_s9_target, @.Lbbit_target .set bbit0_nt_limm_u6_s9_has_delay_slot, 0 .set bbit0_nt_limm_u6_s9_cc, 0 bbit0_nt_limm_u6_s9_start: bbit0.nt limm_value,u6_value,@.Lbbit_target bbit0_nt_limm_u6_s9_end: ; bbit0.t limm,u6,s9 .set bbit0_t_limm_u6_s9_target, @.Lbbit_target .set bbit0_t_limm_u6_s9_has_delay_slot, 0 .set bbit0_t_limm_u6_s9_cc, 0 bbit0_t_limm_u6_s9_start: bbit0.t limm_value,u6_value,@.Lbbit_target bbit0_t_limm_u6_s9_end: ; bbit1.nt b,c,s9 .set bbit1_nt_b_c_s9_target, @.Lbbit_target .set bbit1_nt_b_c_s9_has_delay_slot, 0 .set bbit1_nt_b_c_s9_cc, 0 bbit1_nt_b_c_s9_start: bbit1.nt r4,r5,@.Lbbit_target bbit1_nt_b_c_s9_end: ; bbit1.d.nt b,c,s9 .set bbit1_d_nt_b_c_s9_target, @.Lbbit_target .set bbit1_d_nt_b_c_s9_has_delay_slot, 1 .set bbit1_d_nt_b_c_s9_cc, 0 bbit1_d_nt_b_c_s9_start: bbit1.d.nt r4,r5,@.Lbbit_target bbit1_d_nt_b_c_s9_end: nop_s ; bbit1.t b,c,s9 .set bbit1_t_b_c_s9_target, @.Lbbit_target .set bbit1_t_b_c_s9_has_delay_slot, 0 .set bbit1_t_b_c_s9_cc, 0 bbit1_t_b_c_s9_start: bbit1.t r4,r5,@.Lbbit_target bbit1_t_b_c_s9_end: ; bbit1.d.t b,c,s9 .set bbit1_d_t_b_c_s9_target, @.Lbbit_target .set bbit1_d_t_b_c_s9_has_delay_slot, 1 .set bbit1_d_t_b_c_s9_cc, 0 bbit1_d_t_b_c_s9_start: bbit1.d.t r4,r5,@.Lbbit_target bbit1_d_t_b_c_s9_end: nop_s ; bbit1.nt b,u6,s9 .set bbit1_nt_b_u6_s9_target, @.Lbbit_target .set bbit1_nt_b_u6_s9_has_delay_slot, 0 .set bbit1_nt_b_u6_s9_cc, 0 bbit1_nt_b_u6_s9_start: bbit1.nt r4,u6_value,@.Lbbit_target bbit1_nt_b_u6_s9_end: ; bbit1.d.nt b,u6,s9 .set bbit1_d_nt_b_u6_s9_target, @.Lbbit_target .set bbit1_d_nt_b_u6_s9_has_delay_slot, 1 .set bbit1_d_nt_b_u6_s9_cc, 0 bbit1_d_nt_b_u6_s9_start: bbit1.d.nt r4,u6_value,@.Lbbit_target bbit1_d_nt_b_u6_s9_end: nop_s ; bbit1.nt b,u6,s9 .set bbit1_t_b_u6_s9_target, @.Lbbit_target .set bbit1_t_b_u6_s9_has_delay_slot, 0 .set bbit1_t_b_u6_s9_cc, 0 bbit1_t_b_u6_s9_start: bbit1.t r4,u6_value,@.Lbbit_target bbit1_t_b_u6_s9_end: ; bbit1.d.nt b,u6,s9 .set bbit1_d_t_b_u6_s9_target, @.Lbbit_target .set bbit1_d_t_b_u6_s9_has_delay_slot, 1 .set bbit1_d_t_b_u6_s9_cc, 0 bbit1_d_t_b_u6_s9_start: bbit1.d.t r4,u6_value,@.Lbbit_target bbit1_d_t_b_u6_s9_end: nop_s ; bbit1.nt b,limm,s9 .set bbit1_nt_b_limm_s9_target, @.Lbbit_target .set bbit1_nt_b_limm_s9_has_delay_slot, 0 .set bbit1_nt_b_limm_s9_cc, 0 bbit1_nt_b_limm_s9_start: bbit1.nt r4,limm_value,@.Lbbit_target bbit1_nt_b_limm_s9_end: ; bbit1.t b,limm,s9 .set bbit1_t_b_limm_s9_target, @.Lbbit_target .set bbit1_t_b_limm_s9_has_delay_slot, 0 .set bbit1_t_b_limm_s9_cc, 0 bbit1_t_b_limm_s9_start: bbit1.t r4,limm_value,@.Lbbit_target bbit1_t_b_limm_s9_end: ; bbit1.nt limm,c,s9 .set bbit1_nt_limm_c_s9_target, @.Lbbit_target .set bbit1_nt_limm_c_s9_has_delay_slot, 0 .set bbit1_nt_limm_c_s9_cc, 0 bbit1_nt_limm_c_s9_start: bbit1.nt limm_value,r4,@.Lbbit_target bbit1_nt_limm_c_s9_end: ; bbit1.t limm,c,s9 .set bbit1_t_limm_c_s9_target, @.Lbbit_target .set bbit1_t_limm_c_s9_has_delay_slot, 0 .set bbit1_t_limm_c_s9_cc, 0 bbit1_t_limm_c_s9_start: bbit1.t limm_value,r4,@.Lbbit_target bbit1_t_limm_c_s9_end: ; bbit1.nt limm,u6,s9 .set bbit1_nt_limm_u6_s9_target, @.Lbbit_target .set bbit1_nt_limm_u6_s9_has_delay_slot, 0 .set bbit1_nt_limm_u6_s9_cc, 0 bbit1_nt_limm_u6_s9_start: bbit1.nt limm_value,u6_value,@.Lbbit_target bbit1_nt_limm_u6_s9_end: ; bbit1.t limm,u6,s9 .set bbit1_t_limm_u6_s9_target, @.Lbbit_target .set bbit1_t_limm_u6_s9_has_delay_slot, 0 .set bbit1_t_limm_u6_s9_cc, 0 bbit1_t_limm_u6_s9_start: bbit1.t limm_value,u6_value,@.Lbbit_target bbit1_t_limm_u6_s9_end: #endif /* TEST_BBIT */ #ifdef TEST_BCC .Lbcc_target: ; bcc s21 .set bcc_s21_target, @.Lbcc_target .set bcc_s21_has_delay_slot, 0 .set bcc_s21_cc, 1 bcc_s21_start: ; beq @bcc_s21_target beq @.Lbcc_target bcc_s21_end: ; bcc.d s21 .set bcc_d_s21_target, @.Lbcc_target .set bcc_d_s21_has_delay_slot, 1 .set bcc_d_s21_cc, 1 bcc_d_s21_start: beq.d @bcc_d_s21_target bcc_d_s21_end: nop_s .Lbcc_s_target: ; beq_s s10 .set beq_s_s10_target, @.Lbcc_s_target .set beq_s_s10_has_delay_slot, 0 .set beq_s_s10_cc, 1 beq_s_s10_start: # beq_s.d @beq_s_s10_target beq_s @.Lbcc_s_target beq_s_s10_end: ; bne_s s10 .set bne_s_s10_target, @.Lbcc_s_target .set bne_s_s10_has_delay_slot, 0 .set bne_s_s10_cc, 2 bne_s_s10_start: bne_s @bne_s_s10_target bne_s_s10_end: ; bgt_s s7 .set bgt_s_s7_target, @.Lbcc_s_target .set bgt_s_s7_has_delay_slot, 0 .set bgt_s_s7_cc, 0x9 bgt_s_s7_start: bgt_s @bgt_s_s7_target bgt_s_s7_end: ; bge_s s7 .set bge_s_s7_target, @.Lbcc_s_target .set bge_s_s7_has_delay_slot, 0 .set bge_s_s7_cc, 0xA bge_s_s7_start: bge_s @bge_s_s7_target bge_s_s7_end: ; blt_s s7 .set blt_s_s7_target, @.Lbcc_s_target .set blt_s_s7_has_delay_slot, 0 .set blt_s_s7_cc, 0xB blt_s_s7_start: blt_s @blt_s_s7_target blt_s_s7_end: ; ble_s s7 .set ble_s_s7_target, @.Lbcc_s_target .set ble_s_s7_has_delay_slot, 0 .set ble_s_s7_cc, 0xC ble_s_s7_start: ble_s @ble_s_s7_target ble_s_s7_end: ; bhi_s s7 .set bhi_s_s7_target, @.Lbcc_s_target .set bhi_s_s7_has_delay_slot, 0 .set bhi_s_s7_cc, 0xD bhi_s_s7_start: bhi_s @bhi_s_s7_target bhi_s_s7_end: ; bhs_s s7 .set bhs_s_s7_target, @.Lbcc_s_target .set bhs_s_s7_has_delay_slot, 0 .set bhs_s_s7_cc, 0x6 bhs_s_s7_start: bhs_s @bhs_s_s7_target bhs_s_s7_end: ; blo_s s7 .set blo_s_s7_target, @.Lbcc_s_target .set blo_s_s7_has_delay_slot, 0 .set blo_s_s7_cc, 0x5 blo_s_s7_start: blo_s @blo_s_s7_target blo_s_s7_end: ; bls_s s7 .set bls_s_s7_target, @.Lbcc_s_target .set bls_s_s7_has_delay_slot, 0 .set bls_s_s7_cc, 0xE bls_s_s7_start: bls_s @bls_s_s7_target bls_s_s7_end: #endif /* TEST_BCC */ #ifdef TEST_BI ; bi [c] .set bi_c_target, @bi_c_end + (@r7_value << 2) .set bi_c_has_delay_slot, 0 .set bi_c_cc, 0 bi_c_start: bi [r7] bi_c_end: ; bih [c] .set bih_c_target, @bih_c_end + (@r7_value << 1) .set bih_c_has_delay_slot, 0 .set bih_c_cc, 0 bih_c_start: bih [r7] bih_c_end: #endif /* TEST_BI */ #ifdef TEST_BL .Lbl_target: ; bl s25 .set bl_s25_target, @.Lbl_target .set bl_s25_has_delay_slot, 0 .set bl_s25_cc, 0 bl_s25_start: bl @bl_s25_target bl_s25_end: ; bl.d s25 .set bl_d_s25_target, @.Lbl_target .set bl_d_s25_has_delay_slot, 1 .set bl_d_s25_cc, 0 bl_d_s25_start: bl.d @bl_d_s25_target bl_d_s25_end: nop_s ; bl_s s13 .set bl_s_s13_target, @.Lbl_target .set bl_s_s13_has_delay_slot, 0 .set bl_s_s13_cc, 0 bl_s_s13_start: bl_s @bl_s_s13_target bl_s_s13_end: ; blcc s21 .set blcc_s21_target, @.Lbl_target .set blcc_s21_has_delay_slot, 0 .set blcc_s21_cc, 1 blcc_s21_start: bleq @blcc_s21_target blcc_s21_end: ; blcc.d s21 .set blcc_d_s21_target, @.Lbl_target .set blcc_d_s21_has_delay_slot, 1 .set blcc_d_s21_cc, 2 blcc_d_s21_start: blnz.d @blcc_d_s21_target blcc_d_s21_end: nop_s #endif /* TEST_BL */ #ifdef TEST_BRCC .Lbrcc_target: ; breq.nt b,c,s9 .set breq_nt_b_c_s9_target, @.Lbrcc_target .set breq_nt_b_c_s9_has_delay_slot, 0 .set breq_nt_b_c_s9_cc, 1 breq_nt_b_c_s9_start: breq.nt r4,r5,@.Lbrcc_target breq_nt_b_c_s9_end: ; breq.d.nt b,c,s9 .set breq_d_nt_b_c_s9_target, @.Lbrcc_target .set breq_d_nt_b_c_s9_has_delay_slot, 1 .set breq_d_nt_b_c_s9_cc, 1 breq_d_nt_b_c_s9_start: breq.d.nt r4,r5,@.Lbrcc_target breq_d_nt_b_c_s9_end: nop_s ; breq.t b,c,s9 .set breq_t_b_c_s9_target, @.Lbrcc_target .set breq_t_b_c_s9_has_delay_slot, 0 .set breq_t_b_c_s9_cc, 1 breq_t_b_c_s9_start: breq.t r4,r5,@.Lbrcc_target breq_t_b_c_s9_end: ; breq.d.t b,c,s9 .set breq_d_t_b_c_s9_target, @.Lbrcc_target .set breq_d_t_b_c_s9_has_delay_slot, 1 .set breq_d_t_b_c_s9_cc, 1 breq_d_t_b_c_s9_start: breq.d.t r4,r5,@.Lbrcc_target breq_d_t_b_c_s9_end: nop_s ; breq.nt b,u6,s9 .set breq_nt_b_u6_s9_target, @.Lbrcc_target .set breq_nt_b_u6_s9_has_delay_slot, 0 .set breq_nt_b_u6_s9_cc, 1 breq_nt_b_u6_s9_start: breq.nt r4,u6_value,@.Lbrcc_target breq_nt_b_u6_s9_end: ; breq.d.nt b,u6,s9 .set breq_d_nt_b_u6_s9_target, @.Lbrcc_target .set breq_d_nt_b_u6_s9_has_delay_slot, 1 .set breq_d_nt_b_u6_s9_cc, 1 breq_d_nt_b_u6_s9_start: breq.d.nt r4,u6_value,@.Lbrcc_target breq_d_nt_b_u6_s9_end: nop_s ; breq.nt b,u6,s9 .set breq_t_b_u6_s9_target, @.Lbrcc_target .set breq_t_b_u6_s9_has_delay_slot, 0 .set breq_t_b_u6_s9_cc, 1 breq_t_b_u6_s9_start: breq.t r4,u6_value,@.Lbrcc_target breq_t_b_u6_s9_end: ; breq.d.nt b,u6,s9 .set breq_d_t_b_u6_s9_target, @.Lbrcc_target .set breq_d_t_b_u6_s9_has_delay_slot, 1 .set breq_d_t_b_u6_s9_cc, 1 breq_d_t_b_u6_s9_start: breq.d.t r4,u6_value,@.Lbrcc_target breq_d_t_b_u6_s9_end: nop_s ; breq.nt b,limm,s9 .set breq_nt_b_limm_s9_target, @.Lbrcc_target .set breq_nt_b_limm_s9_has_delay_slot, 0 .set breq_nt_b_limm_s9_cc, 1 breq_nt_b_limm_s9_start: breq.nt r4,limm_value,@.Lbrcc_target breq_nt_b_limm_s9_end: ; breq.t b,limm,s9 .set breq_t_b_limm_s9_target, @.Lbrcc_target .set breq_t_b_limm_s9_has_delay_slot, 0 .set breq_t_b_limm_s9_cc, 1 breq_t_b_limm_s9_start: breq.t r4,limm_value,@.Lbrcc_target breq_t_b_limm_s9_end: ; breq.nt limm,c,s9 .set breq_nt_limm_c_s9_target, @.Lbrcc_target .set breq_nt_limm_c_s9_has_delay_slot, 0 .set breq_nt_limm_c_s9_cc, 1 breq_nt_limm_c_s9_start: breq.nt limm_value,r4,@.Lbrcc_target breq_nt_limm_c_s9_end: ; breq.t limm,c,s9 .set breq_t_limm_c_s9_target, @.Lbrcc_target .set breq_t_limm_c_s9_has_delay_slot, 0 .set breq_t_limm_c_s9_cc, 1 breq_t_limm_c_s9_start: breq.t limm_value,r4,@.Lbrcc_target breq_t_limm_c_s9_end: ; breq.nt limm,u6,s9 .set breq_nt_limm_u6_s9_target, @.Lbrcc_target .set breq_nt_limm_u6_s9_has_delay_slot, 0 .set breq_nt_limm_u6_s9_cc, 1 breq_nt_limm_u6_s9_start: breq.nt limm_value,u6_value,@.Lbrcc_target breq_nt_limm_u6_s9_end: ; breq.t limm,u6,s9 .set breq_t_limm_u6_s9_target, @.Lbrcc_target .set breq_t_limm_u6_s9_has_delay_slot, 0 .set breq_t_limm_u6_s9_cc, 1 breq_t_limm_u6_s9_start: breq.t limm_value,u6_value,@.Lbrcc_target breq_t_limm_u6_s9_end: ; brne_s b,0,s8 .set brne_s_b_0_s8_target, @.Lbrcc_target .set brne_s_b_0_s8_has_delay_slot, 0 .set brne_s_b_0_s8_cc, 1 brne_s_b_0_s8_start: brne r12,0,@.Lbrcc_target brne_s_b_0_s8_end: ; breq_s b,0,s8 .set breq_s_b_0_s8_target, @.Lbrcc_target .set breq_s_b_0_s8_has_delay_slot, 0 .set breq_s_b_0_s8_cc, 1 breq_s_b_0_s8_start: breq r12,0,@.Lbrcc_target breq_s_b_0_s8_end: #endif /* TEST_BRCC */ #ifdef TEST_JLI ; jli_s u10 .set jli_s_u10_target, @jli_target .set jli_s_u10_has_delay_slot, 0 .set jli_s_u10_cc, 0 jli_s_u10_start: jli_s jli_offset jli_s_u10_end: #endif #ifdef TEST_LEAVE_S ; leave_s .set leave_s_target, @blink_value .set leave_s_has_delay_slot, 0 .set leave_s_cc, 0 leave_s_start: ; leave_s [r13-gp,fp,blink,pcl] leave_s (14 + 16 + 32 + 64) leave_s_end: #endif #ifdef TEST_LPCC ; lpcc .set lpcc_u7_target, @.Llpcc_end .set lpcc_u7_has_delay_slot, 0 .set lpcc_u7_cc, 1 lpcc_u7_start: lpeq @lpcc_u7_target lpcc_u7_end: nop nop .Llpcc_end: #endif .Lend:
tactcomplabs/xbgas-binutils-gdb
10,306
gdb/testsuite/gdb.arch/amd64-tailcall-ret.S
/* This testcase is part of GDB, the GNU debugger. Copyright 2012-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This source file was generated by: gcc -o gdb.arch/amd64-tailcall-ret.S gdb.arch/amd64-tailcall-ret.c -Wall -S -dA -O2 -g */ .file "amd64-tailcall-ret.c" .text .Ltext0: .p2align 4,,15 .type g, @function g: .LFB0: .file 1 "gdb.arch/amd64-tailcall-ret.c" # gdb.arch/amd64-tailcall-ret.c:22 .loc 1 22 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) # gdb.arch/amd64-tailcall-ret.c:23 .loc 1 23 0 movl $2, v(%rip) # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE0: .size g, .-g .p2align 4,,15 .type f, @function f: .LFB1: # gdb.arch/amd64-tailcall-ret.c:28 .loc 1 28 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) # gdb.arch/amd64-tailcall-ret.c:29 .loc 1 29 0 jmp g # SUCC: EXIT [100.0%] (ab,sibcall) .LVL0: .cfi_endproc .LFE1: .size f, .-f .section .text.startup,"ax",@progbits .p2align 4,,15 .globl main .type main, @function main: .LFB2: # gdb.arch/amd64-tailcall-ret.c:34 .loc 1 34 0 .cfi_startproc # BLOCK 2 freq:10000 seq:0 # PRED: ENTRY [100.0%] (fallthru) # gdb.arch/amd64-tailcall-ret.c:35 .loc 1 35 0 call f .LVL1: # gdb.arch/amd64-tailcall-ret.c:36 .loc 1 36 0 call f .LVL2: # gdb.arch/amd64-tailcall-ret.c:37 .loc 1 37 0 movl $3, v(%rip) # gdb.arch/amd64-tailcall-ret.c:39 .loc 1 39 0 xorl %eax, %eax # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE2: .size main, .-main .comm v,4,4 .text .Letext0: .section .debug_info,"",@progbits .Ldebug_info0: .long 0xd5 # Length of Compilation Unit Info .value 0x2 # DWARF version number .long .Ldebug_abbrev0 # Offset Into Abbrev. Section .byte 0x8 # Pointer Size (in bytes) .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .long .LASF0 # DW_AT_producer: "GNU C 4.7.2 20120911 (prerelease)" .byte 0x1 # DW_AT_language .long .LASF1 # DW_AT_name: "gdb.arch/amd64-tailcall-ret.c" .long .LASF2 # DW_AT_comp_dir: "" .long .Ldebug_ranges0+0 # DW_AT_ranges .quad 0 # DW_AT_low_pc .quad 0 # DW_AT_entry_pc .long .Ldebug_line0 # DW_AT_stmt_list .uleb128 0x2 # (DIE (0x31) DW_TAG_subprogram) .ascii "g\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (gdb.arch/amd64-tailcall-ret.c) .byte 0x15 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .quad .LFB0 # DW_AT_low_pc .quad .LFE0 # DW_AT_high_pc .byte 0x2 # DW_AT_frame_base .byte 0x77 # DW_OP_breg7 .sleb128 8 .byte 0x1 # DW_AT_GNU_all_call_sites .uleb128 0x3 # (DIE (0x4b) DW_TAG_subprogram) .ascii "f\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (gdb.arch/amd64-tailcall-ret.c) .byte 0x1b # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .quad .LFB1 # DW_AT_low_pc .quad .LFE1 # DW_AT_high_pc .byte 0x2 # DW_AT_frame_base .byte 0x77 # DW_OP_breg7 .sleb128 8 .byte 0x1 # DW_AT_GNU_all_call_sites .long 0x78 # DW_AT_sibling .uleb128 0x4 # (DIE (0x69) DW_TAG_GNU_call_site) .quad .LVL0 # DW_AT_low_pc .byte 0x1 # DW_AT_GNU_tail_call .long 0x31 # DW_AT_abstract_origin .byte 0 # end of children of DIE 0x4b .uleb128 0x5 # (DIE (0x78) DW_TAG_subprogram) .byte 0x1 # DW_AT_external .long .LASF3 # DW_AT_name: "main" .byte 0x1 # DW_AT_decl_file (gdb.arch/amd64-tailcall-ret.c) .byte 0x21 # DW_AT_decl_line .byte 0x1 # DW_AT_prototyped .long 0xb8 # DW_AT_type .quad .LFB2 # DW_AT_low_pc .quad .LFE2 # DW_AT_high_pc .byte 0x2 # DW_AT_frame_base .byte 0x77 # DW_OP_breg7 .sleb128 8 .byte 0x1 # DW_AT_GNU_all_call_sites .long 0xb8 # DW_AT_sibling .uleb128 0x6 # (DIE (0x9d) DW_TAG_GNU_call_site) .quad .LVL1 # DW_AT_low_pc .long 0x4b # DW_AT_abstract_origin .uleb128 0x6 # (DIE (0xaa) DW_TAG_GNU_call_site) .quad .LVL2 # DW_AT_low_pc .long 0x4b # DW_AT_abstract_origin .byte 0 # end of children of DIE 0x78 .uleb128 0x7 # (DIE (0xb8) DW_TAG_base_type) .byte 0x4 # DW_AT_byte_size .byte 0x5 # DW_AT_encoding .ascii "int\0" # DW_AT_name .uleb128 0x8 # (DIE (0xbf) DW_TAG_variable) .ascii "v\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (gdb.arch/amd64-tailcall-ret.c) .byte 0x12 # DW_AT_decl_line .long 0xd3 # DW_AT_type .byte 0x1 # DW_AT_external .byte 0x9 # DW_AT_location .byte 0x3 # DW_OP_addr .quad v .uleb128 0x9 # (DIE (0xd3) DW_TAG_volatile_type) .long 0xb8 # DW_AT_type .byte 0 # end of children of DIE 0xb .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 # (abbrev code) .uleb128 0x11 # (TAG: DW_TAG_compile_unit) .byte 0x1 # DW_children_yes .uleb128 0x25 # (DW_AT_producer) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x13 # (DW_AT_language) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x1b # (DW_AT_comp_dir) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x55 # (DW_AT_ranges) .uleb128 0x6 # (DW_FORM_data4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x52 # (DW_AT_entry_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x10 # (DW_AT_stmt_list) .uleb128 0x6 # (DW_FORM_data4) .byte 0 .byte 0 .uleb128 0x2 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0xa # (DW_FORM_block1) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0xc # (DW_FORM_flag) .byte 0 .byte 0 .uleb128 0x3 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0xa # (DW_FORM_block1) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x4 # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0 # DW_children_no .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x2115 # (DW_AT_GNU_tail_call) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x5 # (abbrev code) .uleb128 0x2e # (TAG: DW_TAG_subprogram) .byte 0x1 # DW_children_yes .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x3 # (DW_AT_name) .uleb128 0xe # (DW_FORM_strp) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x27 # (DW_AT_prototyped) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x12 # (DW_AT_high_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x40 # (DW_AT_frame_base) .uleb128 0xa # (DW_FORM_block1) .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x1 # (DW_AT_sibling) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x6 # (abbrev code) .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) .byte 0 # DW_children_no .uleb128 0x11 # (DW_AT_low_pc) .uleb128 0x1 # (DW_FORM_addr) .uleb128 0x31 # (DW_AT_abstract_origin) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .uleb128 0x7 # (abbrev code) .uleb128 0x24 # (TAG: DW_TAG_base_type) .byte 0 # DW_children_no .uleb128 0xb # (DW_AT_byte_size) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3e # (DW_AT_encoding) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .byte 0 .byte 0 .uleb128 0x8 # (abbrev code) .uleb128 0x34 # (TAG: DW_TAG_variable) .byte 0 # DW_children_no .uleb128 0x3 # (DW_AT_name) .uleb128 0x8 # (DW_FORM_string) .uleb128 0x3a # (DW_AT_decl_file) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x3b # (DW_AT_decl_line) .uleb128 0xb # (DW_FORM_data1) .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .uleb128 0x3f # (DW_AT_external) .uleb128 0xc # (DW_FORM_flag) .uleb128 0x2 # (DW_AT_location) .uleb128 0xa # (DW_FORM_block1) .byte 0 .byte 0 .uleb128 0x9 # (abbrev code) .uleb128 0x35 # (TAG: DW_TAG_volatile_type) .byte 0 # DW_children_no .uleb128 0x49 # (DW_AT_type) .uleb128 0x13 # (DW_FORM_ref4) .byte 0 .byte 0 .byte 0 .section .debug_aranges,"",@progbits .long 0x3c # Length of Address Ranges Info .value 0x2 # DWARF Version .long .Ldebug_info0 # Offset of Compilation Unit Info .byte 0x8 # Size of Address .byte 0 # Size of Segment Descriptor .value 0 # Pad to 16 byte boundary .value 0 .quad .Ltext0 # Address .quad .Letext0-.Ltext0 # Length .quad .LFB2 # Address .quad .LFE2-.LFB2 # Length .quad 0 .quad 0 .section .debug_ranges,"",@progbits .Ldebug_ranges0: .quad .Ltext0 # Offset 0 .quad .Letext0 .quad .LFB2 # Offset 0x10 .quad .LFE2 .quad 0 .quad 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF0: .string "GNU C 4.7.2 20120911 (prerelease)" .LASF1: .string "gdb.arch/amd64-tailcall-ret.c" .LASF2: .string "" .LASF3: .string "main" .ident "GCC: (GNU) 4.7.2 20120911 (prerelease)" .section .note.GNU-stack,"",@progbits
tactcomplabs/xbgas-binutils-gdb
1,382
gdb/testsuite/gdb.arch/riscv-unwind-long-insn-8.s
/* Copyright 2019-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ .option nopic .text .align 1 .globl bar .type bar, @function bar: tail 1f .size bar, .-func .align 1 .globl func .type func, @function func: /* A fake 8 byte instruction. This is never executed, but the prologue scanner will try to decode it. These long instructions are ISA extensions, use .byte rather than an actual instruction mnemonic so that the test can be compiled with a toolchain that doesn't include any long instruction extensions. */ .byte 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 1: addi sp,sp,-16 sw s0,12(sp) addi s0,sp,16 nop lw s0,12(sp) addi sp,sp,16 jr ra .size func, .-func
tactcomplabs/xbgas-binutils-gdb
2,251
gdb/testsuite/gdb.arch/amd64-stap-triplet.S
/* Copyright (C) 2013-2022 Free Software Foundation, Inc. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. This file was generated from the equivalent .c file using the following command: #> gcc -S amd64-stap-triplet.c -o amd64-stap-triplet.S Then, the SystemTap SDT probe definition below was tweaked. See below for more details. */ .file "amd64-stap-triplet.c" .text .globl main .type main, @function main: .LFB0: .cfi_startproc # BLOCK 2 seq:0 # PRED: ENTRY (fallthru) pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 movl %edi, -20(%rbp) movq %rsi, -32(%rbp) movl $10, -4(%rbp) #APP # 8 "amd64-stap-triplet.c" 1 990: nop .pushsection .note.stapsdt,"?","note" .balign 4 .4byte 992f-991f,994f-993f,3 991: .asciz "stapsdt" 992: .balign 4 993: .8byte 990b .8byte _.stapsdt.base .8byte 0 .asciz "test" .asciz "triplet" /* The probe's argument definition below was tweaked in order to mimic a triplet displacement in x86 asm. The original probe argument was: -4@-4(%rbp) The argument below is equivalent to that. */ .asciz "-4@-4+16-16(%rbp)" 994: .balign 4 .popsection # 0 "" 2 # 8 "amd64-stap-triplet.c" 1 .ifndef _.stapsdt.base .pushsection .stapsdt.base,"aG","progbits",.stapsdt.base,comdat .weak _.stapsdt.base .hidden _.stapsdt.base _.stapsdt.base: .space 1 .size _.stapsdt.base,1 .popsection .endif # 0 "" 2 #NO_APP movl $0, %eax popq %rbp .cfi_def_cfa 7, 8 # SUCC: EXIT [100.0%] ret .cfi_endproc .LFE0: .size main, .-main .ident "GCC: (GNU) 4.7.2 20120921 (Red Hat 4.7.2-2)" .section .note.GNU-stack,"",@progbits