2. A student wants to use the GDB debugger to debug a c++ program but the debugger fails to tell which line of the code
Posted: Mon May 02, 2022 12:05 pm
2. A student wants to use the GDB debugger to debug a c++ program but the debugger fails to tell which line of the code causes the error. Identify the problem and suggest a solution to fix it. $ g++ -std-C++11 main.cpp -o main $ ./main Segmentation fault (core dumped) $ gdb main- (gdb) Starting program: /home/research/ra/1801/sklai/main Program received signal SIGSEGV, Segmentation fault. 0x00005555555547d2 in main () backtrace