BitFlipper

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 76 total)
  • Author
    Posts
  • in reply to: Selectively loading symbols #26256

    BitFlipper
    Participant

    Hi,

    This works great, thanks for adding this feature so quickly! I like that it auto-populates with all loaded symbol files. This makes it really easy to select just the needed ones. The time displayed to load each file is also a great help!

    Thanks again!

    in reply to: Selectively loading symbols #26077

    BitFlipper
    Participant

    So the asm break turns out to be not so useful as I ran into all sorts of weird problems. I have another solution that is mostly working now, except for one non-critical but annoying issue. Maybe you have some insight on how to fix that last issue. What I have is:

    Do:

     

    Somewhere in my code, do:

     

    Have an external GDB command file containing something like this:

     

    Add the following to “Additional GDB Commands”:

    The above works and is quite fast to start up. But the remaining issue is that it breaks and stops on the raise(SIGUSR1); I guess that is to be expected. However I would like to just let it continue automatically after it handled the SIGUSR1. So when I then add the following continue to the commands in the file:

     

    …it causes VS to lock up, although I can see the program ran successfully and exited. At that point I need to force kill VS. I think VGDB still thinks the program is stopped, although it ran to completion.

    Any suggestions on how to get it to work?

    Thanks for you help!

    • This reply was modified 2 months, 1 week ago by  BitFlipper.
    • This reply was modified 2 months, 1 week ago by  BitFlipper.
    in reply to: Selectively loading symbols #26058

    BitFlipper
    Participant

    Thanks for the quick reply! For each of the suggested tricks:

    1. I did a quick test of the asm break, and that works and is very fast after first doing set auto-solib-add off. After it hits the breakpoint, I can then do sharedLibrary on the libs I care about (which also loads quite fast).
      I’m wondering if I can automate this. For instance, if I put the asm break somewhere early on in my executable (let’s say in its startup code), then have a Python script that responds to that break. It then does gdb.execute(“sharedLibray <mylibs>”) and continues. So it is basically transparent.
    2. I tried setting a breakpoint using the function name but I could not get it to work.
    3. Where can I send a log file? I don’t want to post it here publicly. It would be great if VGDB allowed you to create a whitelist/blacklist that can be used to control symbol loading. I’m surprised it is so hard to do with GDB, or maybe I’m just missing something.
    4. Previously I was looking into GDB index files a bit to see if that could help. But the above asm break seems the best short term solution, so I’ll try to make that work.

    Thanks for your support!

    in reply to: Keep Remote Console open after debugging? #25700

    BitFlipper
    Participant

    Excellent, that seems to have fixed the issue!

    Thanks 🙂

    in reply to: Keep Remote Console open after debugging? #25685

    BitFlipper
    Participant

    Hi,

    Thanks that worked, however now the problem is that right after debugging ends, a second (albeit blank)  VisualGDB Remote Console window is opened next to the original one and made active. I need to close this second window each time.

    Thanks

    in reply to: VGDB Not executing custom debug steps #24074

    BitFlipper
    Participant

    Sorry for the belated reply…

    I had a chance to try and repro this with a simple project, however I cannot get it to repro the issue except in my main project. My main project is a Custom project using NMake that runs GDB on a remote system (not GDB server). So it is not MinGW-based. I’m not sure if that could be related.

    Anyway, I played with creating a similar Custom project that uses NMake, but could not get it to repro the issue that I see in my main project. If I have more time I’ll continue to narrow down the issue further and post again once I have more info.

    Thanks

    in reply to: VGDB Not executing custom debug steps #23984

    BitFlipper
    Participant

    I have confirmed that it runs the command if placed under Before launching debugger, but it does not run if placed under After debugger exits. I need the script to run after the debugger exits.

    in reply to: Automatically load symbols for a subset of libs? #20852

    BitFlipper
    Participant

    The project is already set up to strip most of the libs (each have 3 versions: full, stripped, symbols-only). So I can work on configuring it using your suggestions above.

    Thanks for the help!

    in reply to: Need help configuring a specific setup #20846

    BitFlipper
    Participant

    Thanks for the reply!

    Strange, I posted a reply the same day after the original post saying I was able to figure it out. However, for some reason that post is gone now. Not sure why.

    I have the Custom version, so I was able to get it to work with some trial and error.

    in reply to: Install on multiple systems #20770

    BitFlipper
    Participant

    Ok that doesn’t make much sense to me.

    In that case, can you tell me how to deactivate/reactivate the license for an installation so that I can enable just the specific one I need to work on at the time?

    Thanks.

    • This reply was modified 1 year, 7 months ago by  BitFlipper.
    in reply to: Possible to change location of VisualGDB-DisownTTY-r1? #13472

    BitFlipper
    Participant

    Ah excellent, thanks for the really fast response 🙂

    in reply to: Stepping over/through std::shared_ptr #13357

    BitFlipper
    Participant

    OK thanks for confirming. I’ll take a look at your C# visualizer API.

    Can you also maybe clarify about the “stepping through” issue. I realize this might be a completely different issue. Basically, when I have something like a shared_ptr<MyClass> instance, and I step through/into the code, I want to step directly into methods inside the MyClass instance, not first have to step through the shared_ptr member functions before getting into the MyClass members.

    in reply to: Stepping over/through std::shared_ptr #13349

    BitFlipper
    Participant

    I got the natvis visualizer to more or less work with the following:

    It works for things like shared_ptr<int> and shared_ptr<MyClass>, however it doesn’t work with shared_ptr<string>. Strangely, a string by itself works (i.e. it shows the string contents while hovering over a string variable), but shared_ptr<string> doesn’t display the string value properly.

    The full string type is:

    Is there an issue with making it work with nested template types, or am I just doing it wrong?

    • This reply was modified 1 year, 11 months ago by  BitFlipper.
    in reply to: Stepping over/through std::shared_ptr #13348

    BitFlipper
    Participant

    Note I’m not using native VS intellisense.

    I should clarify since I made a typo above, I am using native VS intellisense, not Clang intellisense. Not sure if it matters either way.

    in reply to: Stepping over/through std::shared_ptr #13346

    BitFlipper
    Participant

    I guess I need to use the Natvis support in VS, however I can’t get it to work after trying a few times. Can someone provide an example of what a Natvis file would look like that properly shows a std::shared_ptr<>?

Viewing 15 posts - 1 through 15 (of 76 total)