[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: running in the build directory
From: |
Jose E. Marchesi |
Subject: |
Re: running in the build directory |
Date: |
Fri, 01 May 2020 11:27:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
It would be good to support
$ ./run gdb poke
but this fails:
"/media/develdata/devel/POKE/poke/src/poke": not in executable format:
Dateiformat nicht erkannt
$ ./libtool --mode=execute gdb poke
is the documented way to debug a program in the build dir. But this does not
set the poke data variables.
But
$ ./run ./libtool --mode=execute gdb poke
fails:
"/media/develdata/devel/POKE/poke/src/poke": not in executable format:
Dateiformat nicht erkannt
In HACKING we document:
Invoking GDB to debug an uninstalled poke
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Since we are using libtool, ``$(builddir)/src/poke`` is a shell
script. In order to debug the uninstalled poke, you can do::
$ libtool --mode=execute ./run gdb ./src/poke