Questions tagged [gdb]

The tag has no usage guidance.

6 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
1k views

How can I debug in Python?

I am trying to use gdb on a program in python, but it doesn't seem to work the same way it does with programs in c. I tried looking at a few links here: https://sourceware.org/gdb/onlinedocs/gdb/...
1
vote
1answer
61 views

Using gdb for load function in speller

I am trying to figure out if all my words of the dictionary are uploaded in my declared node* hashtable[100]but when I am using gdb its just giving me the hexadecimal address of the nodes, be it a ...
1
vote
1answer
328 views

PSET5 - Issues with initialization of pointers in LOAD function

I'm still trying to debug my load function, I rewrite my code again and again but with no result... I know we need to have specific question, but now I just have so many questions. So, I'll go with ...
0
votes
1answer
83 views

Where to link libraries to the debugger in ide.cs50.io?

I need to debug a program that uses the crypt library, so I have to use -lcrypt, but the debugger automatically uses make, and I don't know how to tell him to use clang with arguments. So here I ...
0
votes
0answers
248 views

gdb server issues, unable to run GDB

I'm unable to run gdb. After break main and after i type run, i get the below error and nothing happens. Error: Error disabling address space randomization: Operation not permitted I tried running ...
0
votes
1answer
254 views

pset6 load seg faulting when accessing malloc'd node

I need some guidance on where I'm going wrong here. GDB runs fine until I try to access the "next" property of a node to see if it's NULL. Am I just confusing how the node structure works? My ...