(gdb) list 1,13
1 #include <stdio.h>
2
3 void print_line()
4 {
5 printf("this is line %d/n", __LINE__);
6 }
7
8 int main()
9 {
10 printf("this is line %d/n", __LINE__);
11 print_line();
12 return 0;
13 }
(gdb) where
#0 print_line () at test.c:6
#1 0x080483ea in main () at test.c:11
(gdb)