nakst / gf

A GDB frontend for Linux.
MIT License
1.82k stars 61 forks source link

Step out of block doesn't work #35

Closed aolo2 closed 3 years ago

aolo2 commented 3 years ago

What the title says.

nakst commented 3 years ago

Could you give an example where it does not work? (It is working for me.)

aolo2 commented 3 years ago

It does appear to work on a super-simple example, but not on any of my actual code. Here's a snippet where I can't step out of block on any of the lines (until command doesn't get passed to gdb at all):

while (*p != 0) {
    if (dest_files) {
        dest_files[nfiles].filename = (char *) p;
    }

    while (*p != 0) {
        ++p;
    }

    ++p;

    // ...

    if (dest_files) {
        if (dir_index) {
            dest_files[nfiles].dir = dest_directories[dir_index - 1];
        } else {
            dest_files[nfiles].dir = ".";
        }
    }

    p += offset;
}
nakst commented 3 years ago

Does commit 99a358b work?

aolo2 commented 3 years ago

It does, thanks!