int goo(int g)
{
int filedesc = open("testfile.txt", O_WRONLY | O_APPEND);
}
int foo(int f)
{
goo(2);
}
int main()
{
foo(1);
}
gcc no_symbol.c -o no_symbol
In GDB
(gdb) r
Starting program: /home/samuel/project/no_symbol
Breakpoint 1, 0x000055555555463e in goo ()
(gdb) bt full
#0 0x000055555555463e in goo ()
No symbol table info available.
#1 0x0000555555554676 in foo ()
No symbol table info available.
#2 0x0000555555554687 in main ()
No symbol table info available.
Is there any method I can know g and f's values without the source code?