Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
    I can't reach www.youtube.com because I locate in china mainland , the solution ,'Watch videos on the YouTube channel', is not work for me . maybe the main question for me is how to get a guidance
    oh , thks. in your website ,I found the command to build and run the gdbgui, I am stupid....
    Chad Smith
    Haha no you’re not. Glad you got it all working 😀👍
    I've got a few questions:
    1) is there a way to run gdbgui on my main PC (using a pi for development)
    2) when I hit load binary pointing it to my code, it says no such file or directory exists, do I have to use the commandline at the bottom to load it?
    3) is there a way in the expression section to get the address of a label?
    Chad Smith

    Hi @Watergard let me see if I can help

    1) Yes. See https://www.gdbgui.com/guides/. You can either run gdbgui on the pi, or run gdbserver on the pi
    2) You don't have to use the command line at the bottom to load a binary. If the binary exists on the machine the gdbgui server is running on, it should work. (The binary is the compiled output of the code, not the source file)
    3) I am not sure what a label is, but if you are programming in C, you can do something like &myVariable and it should give you the address.

    hi. I am using gdbgui to replay a rr trace
    this is working fantastically in general.
    however, the process forks a child and I don't know how to switch to that.
    rr ps will show the child ID, of course.
    so I would like to do something like
    rr replay -f <pid>
    but using gdbgui
    any ideas?
    hello @cs01 ,the webpage is beautiful, this page is like a application , I'm learning your code now .
    I try to understand the working principle of python process ,and success , I knew how it work in backend .
    when I start to fontend , I have question . what the code " import { store } from "statorgfc";" means
    I seems like a react and redux but when I visit they're webpage , I seems not
    Chad Smith
    Cool, congrats on learning how the backend works 😀. It is a state management tool like redux, but with a more straightforward api and less boilerplate. https://github.com/cs01/stator
    @cs01 hello , I come here again.... It seems there has a bug in the fontend, the behavior is that When I connect a remote gdbserver , some information will display in the webpage. then I left the webpage along , about 15min or longer ,the webpage reflesh by itself . then I visit the dashboard , I found that a new gdb process is open ,and the old one were still there and no other webpage bind to it
    Chad Smith
    @helenLang Yup that is a bug. Socket.io is a websocket library gdbgui uses and it automatically reconnects when the websocket connection is lost. When gdbgui receives a new connection, it automatically creates a new instance of gdb and connects it to the client. The fix is to tell socket.io not to automatically reconnect.

    Hi guys.. Trying gdbgui for the first.. Had a question about attaching to process... So, the way I used to do this before was:
    Run my program: ~./myprogram
    Attach to process: gdbtui -p <pid>
    Set breakpoints "b <func>", followed by "c" to continue.
    Then, I trigger something on my running program, which hits the breakpoint in gdbtui...

    With gdbgui, I am not able to find "attach to process" option.

    When I try running like this: gdbgui "~/.myprogram", I am unable to connect to my program to do any triggers. How do should I do this?

    Chad Smith
    @lkrishnamoor check out this video https://youtu.be/WijcPxOang0
    Chad Smith
    Whoops wrong video. Try this one. https://youtu.be/aXHRJhsrIIs
    @cs01 thanks a lot!
    Satyam Singh
    Hello everyone..Can anyone tell me how to use pretty printing to print a vector in gdbgui on windows?
    Chad Smith

    @Primalr3d it should be turned on by default as long as you have python support built into your gdb binary. To test this, run

    gdb --interpreter=mi2

    Then in gdb, run


    to see if Python support is on.

    There is also a setting in the gdbgui settings menu to turn pretty printing on/off. Click the gear icon in to the top right.

    Hi, gdbgui cannot open my source file, but I get no problem in gdb command line. The source file name was shown in gdbgui as absolute path, such as /home/myname/hello/src/main.c, but when I clicked the file, its codes not appear and the code window contained just an error message: cannot open /home/myname/hello/src/main.c. I check the symbols in my ELF, the source file path is actually relative ones: ../src/main.c. INFO: I was using gdbgui -g arm-none-eabi-gdb in ubuntu and the arm-none-eabi-gdb was setup to talk to my JLink gdb server which connected to an ARM cortex-m4 target.
    Hello everybody, I've gotten gdbgui running but when I access it from my browser the page just says "Loading application, please wait" and that javascript and cookies must be enabled. I have both javascript and cookies enabled, but the page never changes.... How can I troubleshoot what's going wrong?
    ... seems it can't load bootstrap
    Hi is there anyone online?
    got a small question if anyones around
    having issues trying to pass the set sysroot to gdb while launching gdbgui
    I found the answer in the chit chat above
    Chad Smith
    @Dan782 can you open your browser’s developer console and share any errors you see? Forcing a refresh of the page with no cache may also help.
    @woowu you might have to remap the paths. See
    See the remap sources section in gdbgui’s help text. https://www.gdbgui.com/api/
    Chad Smith
    @Dan782 are you using AUR? cs01/gdbgui#288
    Anybody knows how to set the commands for the breakpoint in gitgui? Tried to just type 'command' followed by one or more command and 'end' in the end by it doesn't seems to work that way. Any help appreciated .
    Chad Smith

    @vladisld you might be able to separate them with newlines.

    I need to switch the terminal implementation to a pty so gdb can run in true interactive mode; right now gdb is not running in interactive mode which is probably why it's not behaving as expected.

    Urmish Shah
    How do I pass "--interpreter=mi2" switch to gdbgui
    Its not a part of args is it?
    Also the c++ binary executable I am using has a tcl frontend
    Even pressing the tab key sends the complete command to the prompt
    How do I stop that?
    hey guys, is there an option to debug with gdbgui a root program? so starting with sudo
    @cs01 I am getting this error, not sure how to proceed further. After successful build , got this error while using the cmd gdbgui
    Successfully built gdbgui Flask-Compress gevent pygdbmi
    Installing collected packages: brotli, itsdangerous, click, MarkupSafe, Jinja2, Werkzeug, Flask, Flask-Compress, six, python-engineio, python-socketio, Flask-SocketIO, Pygments, greenlet, gevent, pygdbmi, gdbgui
    Successfully installed Flask-0.12.5 Flask-Compress-1.5.0 Flask-SocketIO-2.9.6 Jinja2-2.11.2 MarkupSafe-1.1.1 Pygments-2.5.2 Werkzeug-0.16.1 brotli-1.0.9 click-7.1.2 gdbgui- gevent-1.5.0 greenlet-0.4.17 itsdangerous-1.1.0 pygdbmi- python-engineio-3.13.2 python-socketio-4.6.0 six-1.15.0
    elc@ubuntu:~/office_20/gdbgui-$ gdbgui
    Traceback (most recent call last):
    File "/usr/local/bin/gdbgui", line 11, in <module>
    load_entry_point('gdbgui==', 'console_scripts', 'gdbgui')()
    File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 480, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
    File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2693, in load_entry_point
    return ep.load()
    File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2324, in load
    return self.resolve()
    File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2330, in resolve
    module = import(self.module_name, fromlist=['name'], level=0)
    File "/usr/local/lib/python2.7/dist-packages/gdbgui-", line 174
    SyntaxError: invalid syntax
    1 reply
    groxx I realize this isn't (probably?) a general gdb room, but would anyone know if there's a way to do rr-like recording in gdb? I know I can record execution of a binary, but I'm dealing with stripped binaries and it stops every 1-10 instructions, so it'd take me years to c enough to reach the execution points I'm interested in.
    or maybe an alternative Q: is there a way to tell gdb to continue execution even when it encounters an error?