Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pi@OrangePi:~/iotmonitor$ gdb --args zig build-exe -target arm-linux-gnueabihf hello.zig -lc
- GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
- Copyright (C) 2016 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law. Type "show copying"
- and "show warranty" for details.
- This GDB was configured as "arm-linux-gnueabihf".
- Type "show configuration" for configuration details.
- For bug reporting instructions, please see:
- <http://www.gnu.org/software/gdb/bugs/>.
- Find the GDB manual and other documentation resources online at:
- <http://www.gnu.org/software/gdb/documentation/>.
- For help, type "help".
- Type "apropos word" to search for commands related to "word"...
- Reading symbols from zig...r
- (no debugging symbols found)...done.
- (gdb) r
- Starting program: /home/pi/zig-linux-armv7a-0.6.0/zig build-exe -target arm-linux-gnueabihf hello.zig -lc
- Code Generation [18/496] std.debug.dumpStackTrace...
- Program received signal SIGILL, Illegal instruction.
- 0x015fded0 in iter_function_params_c_abi(CodeGen*, ZigType*, FnWalk*, unsigned int) ()
- (gdb) bt
- #0 0x015fded0 in iter_function_params_c_abi(CodeGen*, ZigType*, FnWalk*, unsigned int) ()
- #1 0x015fd0b8 in walk_function_params(CodeGen*, ZigType*, FnWalk*) ()
- #2 0x016176c8 in make_fn_llvm_value(CodeGen*, ZigFn*) ()
- #3 0x016308dc in ir_render_call(CodeGen*, IrExecutableGen*, IrInstGenCall*) ()
- #4 0x0161271c in do_code_gen(CodeGen*) ()
- #5 0x0160b850 in codegen_build_and_link(CodeGen*) ()
- #6 0x015f9188 in main0(int, char**) ()
- #7 0x015efb98 in main ()
- Dump of assembler code for function _ZL26iter_function_params_c_abiP7CodeGenP7ZigTypeP6FnWalkj:
- 0x015fda94 <+0>: push {r4, r5, r6, r7, r8, r9, r10, r11, lr}
- 0x015fda98 <+4>: add r11, sp, #28
- 0x015fda9c <+8>: sub sp, sp, #44 ; 0x2c
- 0x015fdaa0 <+12>: mov r10, r0
- 0x015fdaa4 <+16>: ldr r0, [pc, #4008] ; 0x15fea54 <_ZL26iter_function_params_c_abiP7CodeGenP7ZigTypeP6FnWalkj+4032>
- 0x015fdaa8 <+20>: tst r2, #3
- 0x015fdaac <+24>: ldr r0, [pc, r0]
- 0x015fdab0 <+28>: ldr r0, [r0]
- 0x015fdab4 <+32>: str r0, [r11, #-32] ; 0xffffffe0
- 0x015fdab8 <+36>: bne 0x15fded0 <_ZL26iter_function_params_c_abiP7CodeGenP7ZigTypeP6FnWalkj+1084>
- 0x015fdabc <+40>: mov r5, r2
- 0x015fdac0 <+44>: cmp r2, #0
- 0x015fdac4 <+48>: beq 0x15fded0 <_ZL26iter_function_params_c_abiP7CodeGenP7ZigTypeP6FnWalkj+1084>
- 0x015fdac8 <+52>: ldr r0, [r5]
- 0x015fdacc <+56>: cmp r0, #7
- 0x015fdad0 <+60>: bhi 0x15fded0 <_ZL26iter_function_params_c_abiP7CodeGenP7ZigTypeP6FnWalkj+1084>
- 0x015fdad4 <+64>: cmp r0, #4
- 0x015fdad8 <+68>: bhi 0x15fded4 <_ZL26iter_function_params_c_abiP7CodeGenP7ZigTypeP6FnWalkj+1088>
- 0x015fdadc <+72>: add r2, pc, #4
- 0x015fdae0 <+76>: ldr r0, [r2, r0, lsl #2]
- 0x015fdae4 <+80>: add pc, r2, r0
- 0x015fdae8 <+84>: andeq r0, r0, r4, lsl r0
- 0x015fdaec <+88>: andeq r0, r0, r8, asr #7
- 0x015fdaf0 <+92>: andeq r0, r0, r12, lsr r2
- 0x015fdaf4 <+96>: andeq r0, r0, r4, ror #5
- 0x015fdaf8 <+100>: strdeq r0, [r0], -r4
- 0x015fdafc <+104>: tst r1, #7
- 0x015fdb00 <+108>: bne 0x15fded0 <_ZL26iter_function_params_c_abiP7CodeGenP7ZigTypeP6FnWalkj+1084>
- 0x015fdb04 <+112>: cmp r1, #0
- 0x015fdb08 <+116>: beq 0x15fded0 <_ZL26iter_function_params_c_abiP7CodeGenP7ZigTypeP6FnWalkj+1084>
- 0x015fdb0c <+120>: add r0, r1, #24
- 0x015fdb10 <+124>: tst r0, #7
- 0x015fdb14 <+128>: addeq r1, r1, #32
- 0x015fdb18 <+132>: tsteq r1, #7
- 0x015fdb1c <+136>: bne 0x15fded0 <_ZL26iter_function_params_c_abiP7CodeGenP7ZigTypeP6FnWalkj+1084>
- 0x015fdb20 <+140>: ldr r1, [r1]
- 0x015fdb24 <+144>: mov r2, #0
- 0x015fdb28 <+148>: cmp r1, r3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement