⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 annotate.texinfo

📁 这个是LINUX下的GDB调度工具的源码
💻 TEXINFO
📖 第 1 页 / 共 2 页
字号:
@end smallexamplewhere @var{signal-handler-caller-string} is text designed to convey tothe user that this frame is associated with whatever mechanism is usedby this operating system to call a signal handler (it is the frame whichcalls the signal handler, not the frame for the signal handler itself).@itemA normal frame.@findex frame-address@findex frame-address-endThis can optionally (depending on whether this is thought of asinteresting information for the user to see) begin with@smallexample^Z^Zframe-address@var{address}^Z^Zframe-address-end@var{separator-string}@end smallexamplewhere @var{address} is the address executing in the frame (the sameaddress as in the @code{frame-begin} annotation, but printed in a formwhich is intended for user consumption---in particular, the syntax variesdepending on the language), and @var{separator-string} is a stringintended to separate this address from what follows for the user'sbenefit.@findex frame-function-name@findex frame-argsThen comes@smallexample^Z^Zframe-function-name@var{function-name}^Z^Zframe-args@var{arguments}@end smallexamplewhere @var{function-name} is the name of the function executing in theframe, or @samp{??} if not known, and @var{arguments} are the argumentsto the frame, with parentheses around them (each argument is annotatedindividually as well, @pxref{Value Annotations}).@findex frame-source-begin@findex frame-source-file@findex frame-source-file-end@findex frame-source-line@findex frame-source-endIf source information is available, a reference to it is then printed:@smallexample^Z^Zframe-source-begin@var{source-intro-string}^Z^Zframe-source-file@var{filename}^Z^Zframe-source-file-end:^Z^Zframe-source-line@var{line-number}^Z^Zframe-source-end@end smallexamplewhere @var{source-intro-string} separates for the user's benefit thereference from the text which precedes it, @var{filename} is the name ofthe source file, and @var{line-number} is the line number within thatfile (the first line is line 1).@findex frame-whereIf @value{GDBN} prints some information about where the frame is from (whichlibrary, which load segment, etc.; currently only done on the RS/6000),it is annotated with@smallexample^Z^Zframe-where@var{information}@end smallexampleThen, if source is to actually be displayed for this frame (for example,this is not true for output from the @code{backtrace} command), then a@code{source} annotation (@pxref{Source Annotations}) is displayed.  Unlikemost annotations, this is output instead of the normal text which would beoutput, not in addition.@end itemize@node Displays@chapter Displays@emph{Display Annotations have been removed.  @sc{gdb/mi} insteadprovides Variable Objects.}@findex display-begin@findex display-number-end@findex display-format@findex display-expression@findex display-expression-end@findex display-value@findex display-end@cindex annotations for displayWhen @value{GDBN} is told to display something using the @code{display} command,the results of the display are annotated:@smallexample^Z^Zdisplay-begin@var{number}^Z^Zdisplay-number-end@var{number-separator}^Z^Zdisplay-format@var{format}^Z^Zdisplay-expression@var{expression}^Z^Zdisplay-expression-end@var{expression-separator}^Z^Zdisplay-value@var{value}^Z^Zdisplay-end@end smallexample@noindentwhere @var{number} is the number of the display, @var{number-separator}is intended to separate the number from what follows for the user,@var{format} includes information such as the size, format, or otherinformation about how the value is being displayed, @var{expression} isthe expression being displayed, @var{expression-separator} is intendedto separate the expression from the text that follows for the user,and @var{value} is the actual value being displayed.@node Prompting@chapter Annotation for @value{GDBN} Input@cindex annotations for promptsWhen @value{GDBN} prompts for input, it annotates this fact so it is possibleto know when to send output, when the output from a given command isover, etc.Different kinds of input each have a different @dfn{input type}.  Eachinput type has three annotations: a @code{pre-} annotation, whichdenotes the beginning of any prompt which is being output, a plainannotation, which denotes the end of the prompt, and then a @code{post-}annotation which denotes the end of any echo which may (or may not) beassociated with the input.  For example, the @code{prompt} input typefeatures the following annotations:@smallexample^Z^Zpre-prompt^Z^Zprompt^Z^Zpost-prompt@end smallexampleThe input types are@table @code@findex pre-prompt@findex prompt@findex post-prompt@item promptWhen @value{GDBN} is prompting for a command (the main @value{GDBN} prompt).@findex pre-commands@findex commands@findex post-commands@item commandsWhen @value{GDBN} prompts for a set of commands, like in the @code{commands}command.  The annotations are repeated for each command which is input.@findex pre-overload-choice@findex overload-choice@findex post-overload-choice@item overload-choiceWhen @value{GDBN} wants the user to select between various overloaded functions.@findex pre-query@findex query@findex post-query@item queryWhen @value{GDBN} wants the user to confirm a potentially dangerous operation.@findex pre-prompt-for-continue@findex prompt-for-continue@findex post-prompt-for-continue@item prompt-for-continueWhen @value{GDBN} is asking the user to press return to continue.  Note: Don'texpect this to work well; instead use @code{set height 0} to disableprompting.  This is because the counting of lines is buggy in thepresence of annotations.@end table@node Errors@chapter Errors@cindex annotations for errors, warnings and interrupts@findex quit@smallexample^Z^Zquit@end smallexampleThis annotation occurs right before @value{GDBN} responds to an interrupt.@findex error@smallexample^Z^Zerror@end smallexampleThis annotation occurs right before @value{GDBN} responds to an error.Quit and error annotations indicate that any annotations which @value{GDBN} wasin the middle of may end abruptly.  For example, if a@code{value-history-begin} annotation is followed by a @code{error}, onecannot expect to receive the matching @code{value-history-end}.  Onecannot expect not to receive it either, however; an error annotationdoes not necessarily mean that @value{GDBN} is immediately returning all the wayto the top level.@findex error-beginA quit or error annotation may be preceded by@smallexample^Z^Zerror-begin@end smallexampleAny output between that and the quit or error annotation is the errormessage.Warning messages are not yet annotated.@c If we want to change that, need to fix warning(), type_error(),@c range_error(), and possibly other places.@node Breakpoint Info@chapter Information on Breakpoints@emph{Breakpoint Annotations have been removed.  @sc{gdb/mi} insteadprovides breakpoint commands.}@cindex annotations for breakpointsThe output from the @code{info breakpoints} command is annotated as follows:@findex breakpoints-headers@findex breakpoints-table@smallexample^Z^Zbreakpoints-headers@var{header-entry}^Z^Zbreakpoints-table@end smallexample@noindentwhere @var{header-entry} has the same syntax as an entry (see below) butinstead of containing data, it contains strings which are intended toconvey the meaning of each field to the user.  This is followed by anynumber of entries.  If a field does not apply for this entry, it isomitted.  Fields may contain trailing whitespace.  Each entry consistsof:@findex record@findex field@smallexample^Z^Zrecord^Z^Zfield 0@var{number}^Z^Zfield 1@var{type}^Z^Zfield 2@var{disposition}^Z^Zfield 3@var{enable}^Z^Zfield 4@var{address}^Z^Zfield 5@var{what}^Z^Zfield 6@var{frame}^Z^Zfield 7@var{condition}^Z^Zfield 8@var{ignore-count}^Z^Zfield 9@var{commands}@end smallexampleNote that @var{address} is intended for user consumption---the syntaxvaries depending on the language.The output ends with@findex breakpoints-table-end@smallexample^Z^Zbreakpoints-table-end@end smallexample@node Invalidation@chapter Invalidation Notices@cindex annotations for invalidation messagesThe following annotations say that certain pieces of state may havechanged.@table @code@findex frames-invalid@item ^Z^Zframes-invalidThe frames (for example, output from the @code{backtrace} command) mayhave changed.@findex breakpoints-invalid@item ^Z^Zbreakpoints-invalidThe breakpoints may have changed.  For example, the user just added ordeleted a breakpoint.@end table@node Annotations for Running@chapter Running the Program@cindex annotations for running programs@findex starting@findex stoppingWhen the program starts executing due to a @value{GDBN} command such as@code{step} or @code{continue}, @smallexample^Z^Zstarting@end smallexampleis output.  When the program stops, @smallexample^Z^Zstopped@end smallexampleis output.  Before the @code{stopped} annotation, a variety ofannotations describe how the program stopped.@table @code@findex exited@item ^Z^Zexited @var{exit-status}The program exited, and @var{exit-status} is the exit status (zero forsuccessful exit, otherwise nonzero).@findex signalled@findex signal-name@findex signal-name-end@findex signal-string@findex signal-string-end@item ^Z^ZsignalledThe program exited with a signal.  After the @code{^Z^Zsignalled}, theannotation continues:@smallexample@var{intro-text}^Z^Zsignal-name@var{name}^Z^Zsignal-name-end@var{middle-text}^Z^Zsignal-string@var{string}^Z^Zsignal-string-end@var{end-text}@end smallexample@noindentwhere @var{name} is the name of the signal, such as @code{SIGILL} or@code{SIGSEGV}, and @var{string} is the explanation of the signal, suchas @code{Illegal Instruction} or @code{Segmentation fault}.@var{intro-text}, @var{middle-text}, and @var{end-text} are for theuser's benefit and have no particular format.@findex signal@item ^Z^ZsignalThe syntax of this annotation is just like @code{signalled}, but @value{GDBN} isjust saying that the program received the signal, not that it wasterminated with it.@findex breakpoint@item ^Z^Zbreakpoint @var{number}The program hit breakpoint number @var{number}.@findex watchpoint@item ^Z^Zwatchpoint @var{number}The program hit watchpoint number @var{number}.@end table@node Source Annotations@chapter Displaying Source@cindex annotations for source display@findex sourceThe following annotation is used instead of displaying source code:@smallexample^Z^Zsource @var{filename}:@var{line}:@var{character}:@var{middle}:@var{addr}@end smallexamplewhere @var{filename} is an absolute file name indicating which sourcefile, @var{line} is the line number within that file (where 1 is thefirst line in the file), @var{character} is the character positionwithin the file (where 0 is the first character in the file) (for mostdebug formats this will necessarily point to the beginning of a line),@var{middle} is @samp{middle} if @var{addr} is in the middle of theline, or @samp{beg} if @var{addr} is at the beginning of the line, and@var{addr} is the address in the target program associated with thesource which is being displayed.  @var{addr} is in the form @samp{0x}followed by one or more lowercase hex digits (note that this does notdepend on the language).@raisesections@include fdl.texi@lowersections@ignore@node Index@unnumbered Index@printindex fn@end ignore@bye

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -