AmigaLabs / binutils-gdb

binutils targeted for ppc-amigaos systems (AmigaOS NG like OS4.1).
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git
GNU General Public License v2.0
0 stars 0 forks source link

[GDB] Warning: Couldn't determine a path for the index cache directory #26

Closed kas1e closed 2 months ago

kas1e commented 2 months ago

This is a warning are known issue : The reason is because there the HOME environment variable is set. If you do this before running gdb the warning is no longer shown: setenv HOME=aaaa

So that mean that inside of GDB we need to deal with HOME (replaced it to PROGDIR:) for amigaos4 , such we will have no such warning , and the HOME will be as always for all amigaos4 apps as "PROGDIR:".

Usually i do it like:

#ifdef __amigaos4__
HOME="PROGDIR:";
#else
what were originally for unix
#endif
migthymax commented 2 months ago

Just for information proposes, the location fo the cache can be shown with the following gdb command show index-cache

kas1e commented 2 months ago

Fixed ! Thanks !