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
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
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
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!