Sto provando ad automatizzare una sessione gdb usando il flag --command
. Sto cercando di impostare un punto di interruzione su una funzione in una libreria condivisa (l'equivalente Unix di una DLL). Il mio cmds.gdb assomiglia a questo:Come impostare punti di interruzione su future librerie condivise con una flag di comando
set args /home/shlomi/conf/bugs/kde/font-break.txt
b IA__FcFontMatch
r
Comunque, sto ottenendo il seguente:
shlomi:~/progs/bugs-external/kde/font-breaking$ gdb --command=cmds.gdb... GNU gdb 6.8-2mdv2009.0 (Mandriva Linux release 2009.0) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i586-mandriva-linux-gnu"... (no debugging symbols found) Function "IA__FcFontMatch" not defined. Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal]
Quindi non imposta il punto di interruzione, dopo tutto. Come posso rendere predefinita la risposta a "y" per impostare i breakpoint su un carico di libreria condivisa in attesa?
Ricordo che ero in grado di fare qualcosa, ma non ricordo cosa.
correlati: [Can “input non da terminali” di gdb messaggi essere soppresso?] (Http: // stackoverflow.com/questions/23005668/can-gdbs-input-not-from-terminal-messages-be-suppressed) – TooTone