File not found – better error handling

Sysprogs forums Forums VisualGDB File not found – better error handling

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6766
    kbzowski
    Participant

    Small suggestion. I’ve changed by mistake filename of my executable and did not change project settings. Stupid – I know 🙂 But I noticed, that VisualGDB showed only general error.

    Log had more explanations.

    (gdb begin)
    VisualGDB is licensed to Krzysztof Bzowski
    gdb –interpreter mi –args “/home/kbzowski/simptis/build/simptis.Debug”
    =thread-group-added,id=”i1″
    -list-features
    ~”GNU gdb (GDB) 7.8.2\n”
    ~”Copyright (C) 2014 Free Software Foundation, Inc.\n”
    ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \”show copying\”\nand \”show warranty\” for details.\n”

    ~”This GDB was configured as \”x86_64-unknown-linux-gnu\”.\nType \”show configuration\” for configuration details.”

    ~”\nFor bug reporting instructions, please see:\n”
    ~”<http://www.gnu.org/software/gdb/bugs/&gt;.\n”
    ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/&gt;.\n”

    ~”For help, type \”help\”.\n”
    ~”Type \”apropos word\” to search for commands related to \”word\”…\n”
    &”/home/kbzowski/simptis/build/simptis.Debug: No such file or directory.\n”
    ^done,features=[“frozen-varobjs”,”pending-breakpoints”,”thread-info”,”data-read-memory-bytes”,”breakpoint-notifications”,”ada-task-info”,”language-option”,”info-gdb-mi-command”,”undefined-command-error-code”,”exec-run-start-option”,”python”]
    -gdb-set stop-on-solib-events 1
    ^done
    -gdb-set disassembly-flavor intel
    ^done
    -gdb-set print demangle off
    ^done
    -gdb-version
    ~”GNU gdb (GDB) 7.8.2\n”
    ~”Copyright (C) 2014 Free Software Foundation, Inc.\n”
    ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \”show copying\”\nand \”show warranty\” for details.\n”

    ~”This GDB was configured as \”x86_64-unknown-linux-gnu\”.\nType \”show configuration\” for configuration details.”

    ~”\nFor bug reporting instructions, please see:\n”
    ~”<http://www.gnu.org/software/gdb/bugs/&gt;.\n”
    ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/&gt;.\n”

    ~”For help, type \”help\”.\n”
    ~”Type \”apropos word\” to search for commands related to \”word\”.\n”
    ^done
    -break-insert -f main
    &”No symbol table is loaded.  Use the \”file\” command.\n”
    ^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”<PENDING>”,pending=”main”,times=”0″,original-location=”main”}
    Warning: could not set a breakpoint on main. ‘Step into new instance’ will not work.
    -break-delete 1
    ^done
    -inferior-tty-set /dev/pts/2
    ^done
    info target
    &”info target\n”
    ^done
    -exec-run
    ^error,msg=”No executable file specified.\nUse the \”file\” or \”exec-file\” command.”

    Maybe VisualGDB can handle such situations. Because the problem is obvious 🙂

    #6802
    support
    Keymaster

    Hi,

    Thanks for reporting this. Looks like the gdb error message changed in one of the recent versions. We have updated our knowledge base so it should now warn about the missing file.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.