manpagez: man pages & more
info gdb
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

12.1.3 Having No value for GDBN Infer the Source Language

To have No value for GDBN set the working language automatically, use ‘set language local’ or ‘set language auto’. No value for GDBN then infers the working language. That is, when your program stops in a frame (usually by encountering a breakpoint), No value for GDBN sets the working language to the language recorded for the function in that frame. If the language for a frame is unknown (that is, if the function or block corresponding to the frame was defined in a source file that does not have a recognized extension), the current working language is not changed, and No value for GDBN issues a warning.

This may not seem necessary for most programs, which are written entirely in one source language. However, program modules and libraries written in one source language can be used by a main program written in a different source language. Using ‘set language auto’ in this case frees you from having to set the working language manually.


© manpagez.com 2000-2017
Individual documents may contain additional copyright information.