Compilation line is
gcc -g source.c
Also output the result of preprocessing and looking at the result of that it appears that the preprocess is keeping line numbers ok.
Looking at the output from gcc -S and comparing the code from it appears that
disas main show the correct code.
However
info line main
shows
Line 102 of "lg.c" starts at address 0x100026f8 <test_interior+80> amnd ends at <main+1088>
Clearly when I use
break main
run
I would hope that it would indicate that I am at start address 0x???? <main+offset>
Still scratching my head at this one.
Cheers
gcc -g source.c
Also output the result of preprocessing and looking at the result of that it appears that the preprocess is keeping line numbers ok.
Looking at the output from gcc -S and comparing the code from it appears that
disas main show the correct code.
However
info line main
shows
Line 102 of "lg.c" starts at address 0x100026f8 <test_interior+80> amnd ends at <main+1088>
Clearly when I use
break main
run
I would hope that it would indicate that I am at start address 0x???? <main+offset>
Still scratching my head at this one.
Cheers