Page 1 of 1

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
by answerhappygod
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 1
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 1 (32.74 KiB) Viewed 40 times
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