Bug 195777 - Request to enhance the console to recognize the "return" gdb command.
Summary: Request to enhance the console to recognize the "return" gdb command.
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 4.0   Edit
Hardware: All Linux
: P3 enhancement (vote)
Target Milestone: 4.0.1   Edit
Assignee: Doug Schaefer CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-07-08 18:50 EDT by Ewa Matejska CLA
Modified: 2008-06-22 02:05 EDT (History)
1 user (show)

See Also:


Attachments
Patch (1.48 KB, patch)
2007-07-08 18:52 EDT, Ewa Matejska CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ewa Matejska CLA 2007-07-08 18:50:36 EDT
Request to enhance the console to recognize the "return" gdb command.  

Currently the debug console for the gdb implementation recognizes the following execution commands:n, next, s, step, si, stepi, u, until, finish, c, continue, fg 

The "return" command is also an execution command and it seems missing from this list.

From the 6.6 gdb manual:
 return -  When you use return, GDB discards the selected stack frame (and all frames within it). You can think of this as making the discarded frame return prematurely. 

I'm attaching a patch that I believe adds this.  Works for me with it.

Thank You,
Ewa.
Comment 1 Ewa Matejska CLA 2007-07-08 18:52:23 EDT
Created attachment 73281 [details]
Patch
Comment 2 Doug Schaefer CLA 2007-08-28 13:18:46 EDT
Thanks for the patch, Ewa. I'm just starting to go through them for 4.0.1. Sorry for the delay.
Comment 3 Doug Schaefer CLA 2007-08-28 14:06:17 EDT
Patch applied. Thanks Ewa.