| <html lang="en"> |
| <head> |
| <title>Frame Info - Debugging with GDB</title> |
| <meta http-equiv="Content-Type" content="text/html"> |
| <meta name="description" content="Debugging with GDB"> |
| <meta name="generator" content="makeinfo 4.13"> |
| <link title="Top" rel="start" href="index.html#Top"> |
| <link rel="up" href="Stack.html#Stack" title="Stack"> |
| <link rel="prev" href="Selection.html#Selection" title="Selection"> |
| <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> |
| <!-- |
| Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, |
| 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
| Free Software Foundation, Inc. |
| |
| Permission is granted to copy, distribute and/or modify this document |
| under the terms of the GNU Free Documentation License, Version 1.3 or |
| any later version published by the Free Software Foundation; with the |
| Invariant Sections being ``Free Software'' and ``Free Software Needs |
| Free Documentation'', with the Front-Cover Texts being ``A GNU Manual,'' |
| and with the Back-Cover Texts as in (a) below. |
| |
| (a) The FSF's Back-Cover Text is: ``You are free to copy and modify |
| this GNU Manual. Buying copies from GNU Press supports the FSF in |
| developing GNU and promoting software freedom.''--> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <style type="text/css"><!-- |
| pre.display { font-family:inherit } |
| pre.format { font-family:inherit } |
| pre.smalldisplay { font-family:inherit; font-size:smaller } |
| pre.smallformat { font-family:inherit; font-size:smaller } |
| pre.smallexample { font-size:smaller } |
| pre.smalllisp { font-size:smaller } |
| span.sc { font-variant:small-caps } |
| span.roman { font-family:serif; font-weight:normal; } |
| span.sansserif { font-family:sans-serif; font-weight:normal; } |
| --></style> |
| <link rel="stylesheet" type="text/css" href="../cs.css"> |
| </head> |
| <body> |
| <div class="node"> |
| <a name="Frame-Info"></a> |
| <p> |
| Previous: <a rel="previous" accesskey="p" href="Selection.html#Selection">Selection</a>, |
| Up: <a rel="up" accesskey="u" href="Stack.html#Stack">Stack</a> |
| <hr> |
| </div> |
| |
| <h3 class="section">8.4 Information About a Frame</h3> |
| |
| <p>There are several other commands to print information about the selected |
| stack frame. |
| |
| <dl> |
| <dt><code>frame</code><dt><code>f</code><dd>When used without any argument, this command does not change which |
| frame is selected, but prints a brief description of the currently |
| selected stack frame. It can be abbreviated <code>f</code>. With an |
| argument, this command is used to select a stack frame. |
| See <a href="Selection.html#Selection">Selecting a Frame</a>. |
| |
| <p><a name="index-info-frame-432"></a><a name="index-info-f-_0040r_007b_0028_0040code_007binfo-frame_007d_0029_007d-433"></a><br><dt><code>info frame</code><dt><code>info f</code><dd>This command prints a verbose description of the selected stack frame, |
| including: |
| |
| <ul> |
| <li>the address of the frame |
| <li>the address of the next frame down (called by this frame) |
| <li>the address of the next frame up (caller of this frame) |
| <li>the language in which the source code corresponding to this frame is written |
| <li>the address of the frame's arguments |
| <li>the address of the frame's local variables |
| <li>the program counter saved in it (the address of execution in the caller frame) |
| <li>which registers were saved in the frame |
| </ul> |
| |
| <p class="noindent">The verbose description is useful when |
| something has gone wrong that has made the stack format fail to fit |
| the usual conventions. |
| |
| <br><dt><code>info frame </code><var>addr</var><dt><code>info f </code><var>addr</var><dd>Print a verbose description of the frame at address <var>addr</var>, without |
| selecting that frame. The selected frame remains unchanged by this |
| command. This requires the same kind of address (more than one for some |
| architectures) that you specify in the <code>frame</code> command. |
| See <a href="Selection.html#Selection">Selecting a Frame</a>. |
| |
| <p><a name="index-info-args-434"></a><br><dt><code>info args</code><dd>Print the arguments of the selected frame, each on a separate line. |
| |
| <br><dt><code>info locals</code><dd><a name="index-info-locals-435"></a>Print the local variables of the selected frame, each on a separate |
| line. These are all variables (declared either static or automatic) |
| accessible at the point of execution of the selected frame. |
| |
| <p><a name="index-info-catch-436"></a><a name="index-catch-exceptions_002c-list-active-handlers-437"></a><a name="index-exception-handlers_002c-how-to-list-438"></a><br><dt><code>info catch</code><dd>Print a list of all the exception handlers that are active in the |
| current stack frame at the current point of execution. To see other |
| exception handlers, visit the associated frame (using the <code>up</code>, |
| <code>down</code>, or <code>frame</code> commands); then type <code>info catch</code>. |
| See <a href="Set-Catchpoints.html#Set-Catchpoints">Setting Catchpoints</a>. |
| |
| </dl> |
| |
| </body></html> |
| |