How to make local labels in GNU GAS ELF output that GDB can break on but not count as functions?
问题 When writing assembly manually with GNU GAS, within a function, I want to set a label such that: GDB won't treat that label as the function name I can use b mylabel to break on the label A similar question for nasm has been asked at: Break at local label using GDB for NASM assembly but I wanted to make it more precise here that I want GNU GAS and ELF output. E.g. if I defined a normal label mylabel as in: main.S .text .global _start _start: /* exit */ mov $60, %rax mylabel: mov $0, %rdi