<div dir="ltr">I also recommend adding the following to your ~/.gdbinit file, for when you're running gdb directly:<br><div><br>set extension-language .bas c++<br>set extension-language .rbas c++<br>set extension-language .bi c++<br><br></div><div>(I couldn't tell any difference between 'c' and 'c++')<br></div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On 6 April 2017 at 22:22,  <span dir="ltr"><<a href="mailto:subversion@hamsterrepublic.com" target="_blank">subversion@hamsterrepublic.<wbr>com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">teeemcee<br>
2017-04-06 03:22:47 -0700 (Thu, 06 Apr 2017)<br>
586<br>
Add "set lang c++" to gdb{game,custom}, to avoid "<error reading variable>" in backtraces<br>
<br>
coderJeff wrote:<br>
"gdb tries to display values in a format appropriate for the source language (c,<br>
c++, pascal, etc). The default language setting is 'auto' but gdb doesn't know<br>
what a '.bas' file is (nor '.asm') ...  Some gdb commands choose a source<br>
language [as] best they can (like 'info args'), and others don't choose anything<br>
(like 'backtrace'). The message in gdb "<error reading variable>" is<br>
misleading. In fact, gdb could display something, but hasn't decided what source<br>
language is."<br>
---<br>
U   wip/misc/gdbcmds1.txt<br>
______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.o<wbr>rg</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org<wbr>/listinfo.cgi/ohrrpgce-motherh<wbr>amster.org</a><br>
</blockquote></div><br></div></div></div>