[Ohrrpgce] SVN: teeemcee/8614 Add "set lang c++" to gdb{game, custom}, to avoid "<error reading variabl

Ralph Versteegen teeemcee at gmail.com
Thu Apr 6 03:27:19 PDT 2017


I also recommend adding the following to your ~/.gdbinit file, for when
you're running gdb directly:

set extension-language .bas c++
set extension-language .rbas c++
set extension-language .bi c++

(I couldn't tell any difference between 'c' and 'c++')


On 6 April 2017 at 22:22, <subversion at hamsterrepublic.com> wrote:

> teeemcee
> 2017-04-06 03:22:47 -0700 (Thu, 06 Apr 2017)
> 586
> Add "set lang c++" to gdb{game,custom}, to avoid "<error reading
> variable>" in backtraces
>
> coderJeff wrote:
> "gdb tries to display values in a format appropriate for the source
> language (c,
> c++, pascal, etc). The default language setting is 'auto' but gdb doesn't
> know
> what a '.bas' file is (nor '.asm') ...  Some gdb commands choose a source
> language [as] best they can (like 'info args'), and others don't choose
> anything
> (like 'backtrace'). The message in gdb "<error reading variable>" is
> misleading. In fact, gdb could display something, but hasn't decided what
> source
> language is."
> ---
> U   wip/misc/gdbcmds1.txt
> _______________________________________________
> Ohrrpgce mailing list
> ohrrpgce at lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20170406/b3dab398/attachment.htm>


More information about the Ohrrpgce mailing list