Use info line
command.
info line oyss_function
For example, assume the file test.c
contains:
#include <stdio.h>
int main(void)
{
printf("\n");
return 0;
}
Then, invoking info line main
in GDB gets:
(gdb) info line main
Line 4 of "test.c" starts at address 0x400498 <main> and ends at 0x40049c <main+4>.