Tagged Questions
0
votes
0answers
84 views
How to access “fseek.c” code?
I'm debugging a program using gdb.
gdb prints the following:
Program received signal SIGSEGV, Segmentation fault.
fseek (fp=0x2e747874, offset=0, whence=2) at fseek.c:40
40 fseek.c: No such file ...
5
votes
2answers
874 views
strlen returns incorrect value when called in gdb
So I'm noticing some severely incorrect behavior from calls to standard library functions inside GDB. I have the following program to illustrate:
#include <stdio.h>
#include <stdlib.h>
...