GNU's C Language Extensions
By M. Tim Jones, May 01, 2005
GNU's GCC compiler has a number of interesting and useful ISO C99 and non-ISO extensions (among others) to C that are commonly overlooked. These features can help simplify the development of C applications and make them easier to debug.
May, 2005: GNU's C Language Extensions
Listing 5
$ ./instrument | xargs addr2line -e instrument -f
main
/home/mtj/gnu-ext/instrument.c:33
func_a
/home/mtj/gnu-ext/instrument.c:25
func_b
/home/mtj/gnu-ext/instrument.c:18
func_c
/home/mtj/gnu-ext/instrument.c:13
func_c
/home/mtj/gnu-ext/instrument.c:13
$