I have GDB configured for pretty printing.
CodeLite 17.0.0
oem@dino-linux-pc:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
partial log capture:
Code: Select all
Using gdbinit file: /home/oem/.codelite-gdbinit
Current working dir: /home/oem/Workspaces/section15/15_challenge
Launching gdb from : /home/oem/Workspaces/section15/build-Debug/lib
Starting debugger : /usr/bin/gdb --command="/home/oem/.codelite-gdbinit" --tty=/dev/pts/3 --interpreter=mi "/home/oem/Workspaces/section15/build-Debug/bin/15_challenge"
DEBUG>>set unwindonsignal on
DEBUG>>set breakpoint pending on
DEBUG>>set print object on
DEBUG>>set width 0
DEBUG>>set height 0
DEBUG>>set pagingation off
DEBUG>>set debuginfod enabled off
DEBUG>>set print elements 200
DEBUG>>python
DEBUG>>import sys
DEBUG>>sys.path.insert(0, '$CodeLiteGdbPrinters')
DEBUG>>from libstdcxx.v6.printers import register_libstdcxx_printers
DEBUG>>register_libstdcxx_printers (None)
DEBUG>>from qt4 import register_qt4_printers
DEBUG>>register_qt4_printers (None)
DEBUG>>from wx import register_wx_printers
DEBUG>>register_wx_printers (None)
DEBUG>>end
DEBUG>>00000001-break-insert -f "/home/oem/Workspaces/section15/15_challenge/main.cpp:15"
DEBUG>>00000002-break-insert -f "/home/oem/Workspaces/section15/15_challenge/main.cpp:16"
DEBUG>>00000003-enable-pretty-printing
Debug session started successfully!
DEBUG>>00000004-exec-arguments
DEBUG>>00000005-exec-run
DEBUG>>=thread-group-added,id="i1"
=thread-group-added,id="i1"
DEBUG>>~"GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1\n"
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
DEBUG>>~"Copyright (C) 2022 Free Software Foundation, Inc.\n"
Copyright (C) 2022 Free Software Foundation, Inc.
DEBUG>>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law."
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.
DEBUG>>~"\nType \"show copying\" and \"show warranty\" for details.\n"
\nType "show copying" and "show warranty" for details.
DEBUG>>~"This GDB was configured as \"x86_64-linux-gnu\".\n"
This GDB was configured as "x86_64-linux-gnu".
DEBUG>>~"Type \"show configuration\" for configuration details.\n"
Type "show configuration" for configuration details.
DEBUG>>~"For bug reporting instructions, please see:\n"
For bug reporting instructions, please see:
DEBUG>>~"<https://www.gnu.org/software/gdb/bugs/>.\n"
<https://www.gnu.org/software/gdb/bugs/>.
DEBUG>>~"Find the GDB manual and other documentation resources online at:\n <http://www.gnu.org/software/gdb/documentation/>."
Find the GDB manual and other documentation resources online at:\n <http://www.gnu.org/software/gdb/documentation/>.
DEBUG>>~"\n\n"
\n
DEBUG>>~"For help, type \"help\".\n"
For help, type "help".
DEBUG>>~"Type \"apropos word\" to search for commands related to \"word\"...\n"
Type "apropos word" to search for commands related to "word"...
DEBUG>>~"Reading symbols from /home/oem/Workspaces/section15/build-Debug/bin/15_challenge...\n"
Reading symbols from /home/oem/Workspaces/section15/build-Debug/bin/15_challenge...
DEBUG>>&"\"/home/oem/.codelite-gdbinit\": No such file or directory.\n"
DEBUG>>&"set unwindonsignal on\n"
DEBUG>>=cmd-param-changed,param="unwindonsignal",value="on"
=cmd-param-changed,param="unwindonsignal",value="on"
DEBUG>>^done
Any suggestions?
Thanks,
Dino