Message ID | 20180828084332.GI32506@embecosm.com |
---|---|
State | New |
Headers | show |
> Date: Tue, 28 Aug 2018 09:43:32 +0100 > From: Andrew Burgess <andrew.burgess@embecosm.com> > Cc: gdb-patches@sourceware.org, philippe.waroquiers@skynet.be > > I like your proposed new paragraph as it mentions both the word > 'level' and the word 'number', and I wondered if we couldn't sidestep > the issue of which term is "correct", at least for a little while, > with something like this: > > @value{GDBN} labels each existing stack frame with a @dfn{level}, a > number that is zero for the innermost frame, one for the frame that > called it, and so on upward. These level numbers give you a way of > designating stack frames in @value{GDBN} commands. The terms > @dfn{frame number} and @dfn{frame level} can be used interchangably to > describe this number. > > I'd also propose we add both 'frame number' and 'frame level' to the > concept index (see patch below). Do you think that if I added this > chunk to the existing level patch we would have something that was > clear enough to merge? Yes, thanks.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index a2e405d5dfc..694f2ca5e95 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -7393,12 +7393,14 @@ in a register called the @dfn{frame pointer register} (@pxref{Registers, $fp}) while execution is going on in that frame. +@cindex frame level @cindex frame number -@value{GDBN} assigns numbers to all existing stack frames, starting with -zero for the innermost frame, one for the frame that called it, -and so on upward. These numbers do not really exist in your program; -they are assigned by @value{GDBN} to give you a way of designating stack -frames in @value{GDBN} commands. +@value{GDBN} labels each existing stack frame with a @dfn{level}, a +number that is zero for the innermost frame, one for the frame that +called it, and so on upward. These level numbers give you a way of +designating stack frames in @value{GDBN} commands. The terms +@dfn{frame number} and @dfn{frame level} can be used interchangably to +describe this number. @c The -fomit-frame-pointer below perennially causes hbox overflow @c underflow problems.