int debug_a_base = 3; int debug_a_mul(void) { int product = debug_a_base * 7; return product + 1; } int debug_a_add(void) { int sum = debug_a_base + 4; return sum * 2; } /* M8.2 multi-TU debug gate, first translation unit. * * Two functions with distinct source lines; debug_a_mul returns 22 and * debug_a_add returns 14. debug-b.c is the second debug-bearing TU, and * debug-entry.asm calls all four functions so the linked image exercises both * units at runtime. The comment is after the code so the line numbers used by * dwarf-multi.sh stay stable. */