X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Fdoc%2Fgdb.texinfo;h=cf8333d86be2ecdca858d9f66b0d8309a867a925;hb=136afab8c7d8a8a91dbf38e79be4f9dc4125d552;hp=0733e1acfd23fa48cb3592f0448ce914e56d74f6;hpb=a45328b93bdd5399da8a9e56817e445cc2068edd;p=external%2Fbinutils.git diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 0733e1a..cf8333d 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -18693,6 +18693,28 @@ the default C@t{++} exception handler and the inferior terminated. Show the current setting of stack unwinding in the functions called by @value{GDBN}. +@item set may-call-functions +@kindex set may-call-functions +@cindex disabling calling functions in the program +@cindex calling functions in the program, disabling +Set permission to call functions in the program. +This controls whether @value{GDBN} will attempt to call functions in +the program, such as with expressions in the @code{print} command. It +defaults to @code{on}. + +To call a function in the program, @value{GDBN} has to temporarily +modify the state of the inferior. This has potentially undesired side +effects. Also, having @value{GDBN} call nested functions is likely to +be erroneous and may even crash the program being debugged. You can +avoid such hazards by forbidding @value{GDBN} from calling functions +in the program being debugged. If calling functions in the program +is forbidden, GDB will throw an error when a command (such as printing +an expression) starts a function call in the program. + +@item show may-call-functions +@kindex show may-call-functions +Show permission to call functions in the program. + @end table @subsection Calling functions with no debug info