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]: issues with pathes on the running #29

Open kas1e opened 2 months ago

kas1e commented 2 months ago

Lately we find out that when we tried to run GDB on Andrea's SAM, or on my Pegasos2 , GDB did bring us a window with words (in case of my build on pegasos2):

please inset volume 
/amiga/os4_gdb/native/lib/debug\Wdebug/gdb/Work:
in any drive

The first part of the path is my the prefix used to compile GDB, in my case is : --prefix=/amiga/os4_gdb_native/

Interestingly that os4_gdb words instead of following by '_' underscore have another '/' slash.

Same issue happens on the Andreas's SAM460.

If we put an .unix file in the root, then, instead of this big string, GDB ask amiga: and etc: assigns.

Issue happens not in the light of the latest paths changes, but there for some time.

kas1e commented 2 months ago

Additional information about:

If we run gdb binary with --configuration option, then it show us among with others that:

--with-gdb-datadir=/our_path (relocatable)
--with-jit-reader-dir=/our_path (relocatable)
--with-separate-debug-dir=/our_path (relocatable)

Where our_path is that line /amiga/os4_gdb_native/lib/debug , etc.

So those 3 is guilty for bringing up us those requesters. Probably we need to change them on PROGDIR: or something. Through as i can see we can't do so from configuration line, as it will ask for ABSOLUTY path to be provided to prefix, so we can't from it put os4's PROGDIR:, but we probably can change it directly in configure scripts.