Solved During debugging GDB crashes in Qt creator
-
Hai All,
I was doing a remote debugging using Qt Creator 6.0.2 , while debugging if I click step over immediately the remote application gets crashed with the below error
../../../gdb-9.1/gdb/gdbserver/linux-low.c:2569: A problem internal to GDBserver has been detected. int maybe_hw_step(thread_info*): Assertion `has_single_step_breakpoints (thread)' failed. 19:09:33: Application finished with exit code 1.
Debugger info
james@james-pc:~$ gdb-multiarch -v GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
How to fix this problem ?
Regards,
James A -
@James-A
Do you not think this is an internal GDBserver error? -
I was able to fix this problem by removing the gprof compiler flags from the pro file
QMAKE_CXXFLAGS+=-pg QMAKE_LFLAGS+=-pg