Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    helenLang
    @helenLang
    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
    =。=
    helenLang
    @helenLang
    oh , thks. in your website ,I found the command to build and run the gdbgui, I am stupid....
    Chad Smith
    @cs01
    Haha no you’re not. Glad you got it all working 😀👍
    Watergard
    @Watergard
    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
    @cs01

    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.

    Ghost
    @ghost~5cd3d5a0d73408ce4fbfcbd1
    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?
    Ghost
    @ghost~5cd3d5a0d73408ce4fbfcbd1
    cool!
    helenLang
    @helenLang
    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
    @cs01
    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
    helenLang
    @helenLang
    @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
    @cs01
    @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.
    lkrishnamoor
    @lkrishnamoor

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

    @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

    -list-features

    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.

    woowu
    @woowu
    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.
    Dan782
    @Dan782
    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?
    Dan782
    @Dan782
    ... seems it can't load bootstrap
    Automatica-Mat
    @Automatica-Mat
    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
    Automatica-Mat
    @Automatica-Mat
    I found the answer in the chit chat above
    Chad Smith
    @cs01
    @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
    @cs01
    @Dan782 are you using AUR? cs01/gdbgui#288
    vladisld
    @vladisld
    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
    @cs01

    @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
    @surmish
    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?
    coley7
    @coley7
    hey guys, is there an option to debug with gdbgui a root program? so starting with sudo
    harbingerofdoom
    @harbingerofdoom
    @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-0.13.2.0 gevent-1.5.0 greenlet-0.4.17 itsdangerous-1.1.0 pygdbmi-0.10.0.0 python-engineio-3.13.2 python-socketio-4.6.0 six-1.15.0
    elc@ubuntu:~/office_20/gdbgui-0.14.0.0$ gdbgui
    Traceback (most recent call last):
    File "/usr/local/bin/gdbgui", line 11, in <module>
    load_entry_point('gdbgui==0.14.0.0', '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-0.14.0.0-py2.7.egg/gdbgui/backend.py", line 174
    *,
    ^
    SyntaxError: invalid syntax
    1 reply
    matrixbot
    @matrixbot
    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?