All Questions
5 questions
2
votes
1
answer
2k
views
Unable to open 'libc-start.c'
I'm trying to debug my C code in vscode, and I'm having some problems.
I'm using ubuntu and have gcc and gdb debugger installed. when I start debugging my code and reach to a line with `printf` or `...
1
vote
1
answer
2k
views
GDB: Debug program that is started with LD_LIBRARY_PATH/LD_PRELOAD
I have the following setup that I try to debug. I could not find anything using the search, so I hope that someone here is able to guide me how I can do the following:
I have a binary that is ...
3
votes
1
answer
6k
views
gdb/ddd can't find raise.c when debugging assert(), it is looking in my home directory
I use gdb (ddd) to debug my C/C++ projects.
Whenever an assert fails, I can debug the program as normal and backtrace to the assert which failed, but first I get an annoying popup
I assume raise.c ...
2
votes
3
answers
3k
views
How to debug standard c library functions like printf?
I wanted to debug printf function, so when I step inside the printf function (gdb debugger) it showed me this:
__printf (format=0x80484d0 " my name is Adam") at printf.c:28
28 printf.c: No such file ...
8
votes
1
answer
3k
views
Setting a watchpoint on errno in gdb
I'm trying to find out when errno changes.
At first, I tried "watch errno" in gdb, which led to the error
Cannot find thread-local variables on this target
I was able to fix this by compiling with ...