Menu

#138 GDB showing return value

Undefined
open
Debugger (27)
Feature_Request
2015-02-20
2015-02-20
Manuel MS
No

It will be good to allow inspecting the value a function returns, provided that value is not assigned to a var.
This can be done with GDB "finish" command.

The way I can imagine is setting a special breakpoint in the return line of code. If the user uses "step-out" or "next-line" then CB may show the value in the watches window, just like any other "local".

Discussion

  • Teodor Petrov

    Teodor Petrov - 2015-02-20
    • labels: GDB, return, finish --> Debugger
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,4 @@
    -It will be good to allow inspecting the value a function returns, provided that value is not asigned to a var.
    +It will be good to allow inspecting the value a function returns, provided that value is not assigned to a var.
     This can be done with GDB "finish" command.
    
     The way I can imagine is setting a special breakpoint in the return line of code. If the user uses "step-out" or "next-line" then CB may show the value in the watches window, just like any other "local".
    
    • assigned_to: Teodor Petrov
     
  • Teodor Petrov

    Teodor Petrov - 2015-02-20

    It is not that simple, but I'll think about it.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.