Advertisement
Guest User

Untitled

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