• debogueur GDB avec =?ISO-8859-1?Q?possibilit=E9?= de script (ou exemple

    From Basile Starynkevitch@21:1/5 to All on Sun May 18 09:30:01 2025
    Bonjour la liste,

    Je cherche un dépot Debian x86-64 contenant le débogueur GDB dans une version recente (pour x86-64 Debian Trixie 13) et avec la possibilité de scripting.

    Je suis familier avec Scheme (donc GNU guile) et assez allergique (et incompétent) en Python.

    Et de toutes façons j'ai besoin de nombreux exemples de tels scripts (préférablement Guile, à défaut Python).

    En particuler pour l'aspect GDB JIT (just in time) reader.

    % /usr/bin/gdb --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-babeltrace
    --with-intel-pt
    --with-xxhash
    --with-python=/usr (relocatable)
    --with-python-libdir=/usr/lib (relocatable)
    --with-debuginfod
    --with-curses
    --without-guile
    --without-amd-dbgapi
    --enable-source-highlight
    --enable-threading
    --enable-tui
    --with-system-readline
    --with-separate-debug-dir=/usr/lib/debug (relocatable)
    --with-system-gdbinit=/etc/gdb/gdbinit
    --with-system-gdbinit-dir=/etc/gdb/gdbinit.d

    ("Relocatable" means the directory can be moved with the GDB installation
    tree, and GDB will still find it.)

    GNU Readline library version: 8.2 (system)

    Quand j'essaie de compiler GDB-16.3 je n'y arrive pas.

    Et j'ai lancé
    ./configure --enable-maintainer-mode --enable-vtable-verify \
    --with-guile --enable-host-pie CFLAGS='-O2 -g' CXXFLAGS='-O2 -g'

    dans mon répertoire contenant gdb-16.3 sous forme source (chez moi
    /usr/src/Tools/gdb-16.3 ...)

    mais ça échoue au make avec

    cd . && autoconf
    configure.ac:35: error: Please use exactly Autoconf 2.69 instead of 2.72. config/override.m4:12: _GCC_AUTOCONF_VERSION_CHECK is expanded from... configure.ac:35: the top level
    autom4te: error: /usr/bin/m4 failed with exit status: 1
    make: *** [Makefile:18808: configure] Error 1

    Librement


    --
    Basile STARYNKEVITCH <basile@starynkevitch.net>
    8 rue de la Faïencerie http://starynkevitch.net/Basile/
    92340 Bourg-la-Reine https://github.com/bstarynk
    France https://github.com/RefPerSys/RefPerSys

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Basile Starynkevitch@21:1/5 to Basile Starynkevitch on Sun May 18 10:20:01 2025
    On Sun, 2025-05-18 at 09:24 +0200, Basile Starynkevitch wrote:
    Bonjour la liste,

    Je cherche un dépot Debian x86-64 contenant le débogueur GDB dans une version
    recente (pour x86-64 Debian Trixie 13) et avec la possibilité de scripting.

    Je suis familier avec Scheme (donc GNU guile) et assez allergique (et incompétent) en Python.


    [[[.... etc voir https://lists.debian.org/debian-user-french/2025/05/msg00089.html ....]

    Quand j'essaie de compiler GDB-16.3 je n'y arrive pas.

    Et j'ai lancé
    ./configure  --enable-maintainer-mode --enable-vtable-verify \              --with-guile --enable-host-pie CFLAGS='-O2 -g' CXXFLAGS='-O2 -g'

    dans mon répertoire contenant gdb-16.3 sous forme source (chez moi
        /usr/src/Tools/gdb-16.3 ...)

    mais ça échoue au make avec

    cd . && autoconf
    configure.ac:35: error: Please use exactly Autoconf 2.69 instead of 2.72. config/override.m4:12: _GCC_AUTOCONF_VERSION_CHECK is expanded from... configure.ac:35: the top level
    autom4te: error: /usr/bin/m4 failed with exit status: 1
    make: *** [Makefile:18808: configure] Error 1


    Je progresse un peu en ayant lancé sous root
    apt-build build-source --rebuild gdb --build-dir /usr/src/Tools/_GdbBuild


    qui lance plein de processus de compilation mais échoue finalement avec

    /var/cache/apt-build/build/gdb-16.1/build/default/gdb/gdb version 16.1-1) -nw -
    nx -q -iex "set height 0" -iex "set width 0" -data-directory /var/cache/apt- build/build/gdb-16.1/build/default/gdb/data-directory

    make[3]: *** [Makefile:260: check-parallel] Error 2
    make[3]: Leaving directory '/var/cache/apt-build/build/gdb- 16.1/build/default/gdb/testsuite.unix'
    make[2]: *** [Makefile:162: check] Error 2
    make[2]: Leaving directory '/var/cache/apt-build/build/gdb- 16.1/build/default/gdb/testsuite.unix'
    make[1]: *** [Makefile:2030: check//unix] Error 2
    make[1]: Leaving directory '/var/cache/apt-build/build/gdb- 16.1/build/default/gdb'
    make: *** [debian/rules:219: stamps/check] Error 2
    rm stamps/configure-default
    dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 ----> Cleaning up object files <-----
    Cleaning in directory /var/cache/apt-build/build/gdb-16.1
    dpkg-buildpackage --rules-target clean -us -uc -ui
    dpkg-buildpackage: info: source package gdb
    dpkg-buildpackage: info: source version 16.1-1
    dpkg-buildpackage: info: source distribution unstable
    dpkg-buildpackage: info: source changed by Sergio Durigan Junior <sergiodj@debian.org>
    debian/rules clean
    dh_clean
    rm -rf stamps build
    rm -f debian/files
    if test -f gdb/version.in.backup; then \
    mv -f gdb/version.in.backup gdb/version.in; \
    fi
    # Prevent gratuitous rebuilds of the BFD documentation, since it
    # updates the copy in the source directory.
    find bfd -name bfd.info\* | xargs --no-run-if-empty touch
    Error while building gdb!
    Some error occured building package


    Vos suggestions constructives (ou exemples de scripts pour GDB) sont bienvenues


    Librement
    --
    Basile STARYNKEVITCH <basile@starynkevitch.net>
    8 rue de la Faïencerie http://starynkevitch.net/Basile/
    92340 Bourg-la-Reine https://github.com/bstarynk
    France https://github.com/RefPerSys/RefPerSys

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Basile Starynkevitch@21:1/5 to didier gaumet on Sun May 18 12:30:01 2025
    On Sun, 2025-05-18 at 12:01 +0200, didier gaumet wrote:
    Le 18/05/2025 à 10:16, Basile Starynkevitch a écrit :
    [...]
    exemples de scripts pour GDB)
    [...]

    Bonjour Basile,

    la doc gdb sur les commandes guile: https://sourceware.org/gdb/current/onlinedocs/gdb.html/Guile-Commands.html

    redirige vers ce chapitre: https://sourceware.org/gdb/current/onlinedocs/gdb.html/Guile.html#Guile
    qui contient quelques exemples simples


    Merci pour ces references que je connaissais.

    Mon souci principal est d'obtenir un GDB scriptable.

    Même le paquet gdb-source (16.3-1) que j'ai installé avec succès fournit une arborescence (que j'ai installé dans /usr/src/Tools/gdb-usr-src/ sans problème)
    que je n'arrive pas à compiler:

    J'ai configuré avec 

    ./configure --enable-maintainer-mode --enable-vtable-verify \
    --with-guile --with-tui --with-readline \
    --enable-host-pie CFLAGS='-O2 -g' CXXFLAGS='-O2 -g'

    et ça échoue toujours à compiler:

    % make
    cd . && autoconf
    configure.ac:35: error: Please use exactly Autoconf 2.69 instead of 2.72. config/override.m4:12: _GCC_AUTOCONF_VERSION_CHECK is expanded from... configure.ac:35: the top level
    autom4te: error: /usr/bin/m4 failed with exit status: 1



    Et ça fait des jours que j'essaie d'obtenir un tel GDB scriptable (plutôt en Guile qu'en Python, que je connais mal.....)

    Même un autre débogueur scriptable et facilement installable (mais logiciel libre) me conviendrait (pour Debian/trixie/x86-64 ou Linux Mint22.1)

    Ou toute aide à compiler un tel débogueur


    Librement

    --
    Basile STARYNKEVITCH <basile@starynkevitch.net>
    8 rue de la Faïencerie http://starynkevitch.net/Basile/
    92340 Bourg-la-Reine https://github.com/bstarynk
    France https://github.com/RefPerSys/RefPerSys

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)