[nix-shell:~/dev/zig/build-release]$ ~/local/llvm10-release/bin/llvm-dwarfdump --debug-line test test: file format ELF64-x86-64 .debug_line contents: debug_line[0x00000000] Line table prologue: total_length: 0x000000b7 version: 4 prologue_length: 0x00000020 min_inst_length: 1 max_ops_per_inst: 1 default_is_stmt: 1 line_base: 1 line_range: 1 opcode_base: 13 standard_opcode_lengths[DW_LNS_copy] = 0 standard_opcode_lengths[DW_LNS_advance_pc] = 1 standard_opcode_lengths[DW_LNS_advance_line] = 1 standard_opcode_lengths[DW_LNS_set_file] = 1 standard_opcode_lengths[DW_LNS_set_column] = 1 standard_opcode_lengths[DW_LNS_negate_stmt] = 0 standard_opcode_lengths[DW_LNS_set_basic_block] = 0 standard_opcode_lengths[DW_LNS_const_add_pc] = 0 standard_opcode_lengths[DW_LNS_fixed_advance_pc] = 1 standard_opcode_lengths[DW_LNS_set_prologue_end] = 0 standard_opcode_lengths[DW_LNS_set_epilogue_begin] = 0 standard_opcode_lengths[DW_LNS_set_isa] = 1 file_names[ 1]: name: "test.zig" dir_index: 0 mod_time: 0x00000000 length: 0x00000000 Address Line Column File ISA Discriminator Flags ------------------ ------ ------ ------ --- ------------- ------------- 0x0000000008000000 1 0 1 0 0 is_stmt 0x000000000800000b 1 0 1 0 0 is_stmt prologue_end 0x000000000800000b 2 0 1 0 0 is_stmt 0x000000000800000b 3 0 1 0 0 is_stmt 0x000000000800000b 4 0 1 0 0 is_stmt 0x000000000800000b 6 0 1 0 0 is_stmt 0x0000000008000014 12 0 1 0 0 is_stmt 0x0000000008000015 12 0 1 0 0 is_stmt epilogue_begin 0x0000000008000017 13 0 1 0 0 is_stmt 0x0000000008000017 13 0 1 0 0 is_stmt end_sequence [nix-shell:~/dev/zig/build-release]$ gdb ./test GNU gdb (GDB) 8.3.1 Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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 "x86_64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./test... (gdb) break _start Breakpoint 1 at 0x8000004 (gdb) run Starting program: /home/andy/dev/zig/build-release/test Breakpoint 1, 0x0000000008000004 in _start () (gdb) step Single stepping until exit from function _start, which has no line number information. [Inferior 1 (process 13294) exited normally] (gdb) list 1 export fn _start() noreturn { 2 const a: u32 = 1; 3 const b: u32 = 2; 4 const c = a + b; 5 6 asm volatile ("syscall" 7 : 8 : [number] "{rax}" (231), 9 [arg1] "{rdi}" (0) 10 : "rcx", "r11", "memory" (gdb)