Re: gdbserver: Target description specified unknown architecture “aarch64”
Peter Balazovic <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAFq4t4g+J9fy=-tcEn4f=2YwpPmvCd+FbawXNZc2b249FfJNsg@mail.gmail.com> |
mine linux machine of gdb config
(gdb) show configuration
This GDB was configured as follows:
configure --host=x86_64-linux-gnu --target=x86_64-linux-gnu
--with-auto-load-dir=$debugdir:$datadir/auto-load
--with-auto-load-safe-path=$debugdir:$datadir/auto-load
--with-expat
--with-gdb-datadir=/usr/share/gdb (relocatable)
--with-jit-reader-dir=/usr/lib/gdb (relocatable)
--without-libunwind-ia64
--with-lzma
--with-python=/usr (relocatable)
--without-guile
--with-separate-debug-dir=/usr/lib/debug (relocatable)
--with-system-gdbinit=/etc/gdb/gdbinit
--with-babeltrace
("Relocatable" means the directory can be moved with the GDB installation
tree, and GDB will still find it.)
(gdb) set architecture
auto i386 i386:intel i386:nacl
i386:x64-32 i386:x64-32:intel i386:x64-32:nacl i386:x86-64
i386:x86-64:intel i386:x86-64:nacl i8086
On Wed, Nov 28, 2018 at 11:28 PM Pedro Alves <[email protected]> wrote:
> On 11/28/2018 06:31 PM, Peter Balazovic wrote:
>
> > I am looking for an advice to correctly debug with ARM remote target.
>
> Does "set architecture <TAB><TAB>" give you the option to select aarch64?
>
> It sounds like your gdb is not configured to support Aarch64.
>
> You'll need a gdb configured with
> --target=aarch64-linux-gnu
> or
> --enable-targets=aarch64-linux-gnu
> --enable-targets=all
>
> Try "show configuration" in gdb.
>
> Thanks,
> Pedro Alves
>