Execute GDB commands before attaching to a running program

Milian Wolff mail at milianw.de
Tue Jul 24 21:37:22 BST 2018


On Sonntag, 3. Juni 2018 01:22:02 CEST Theo wrote:
> How do I execute GDB commands before the debugger gets attached to a
> running program? Attaching with "Run/Attach to Process/Attach to Process
> with GDB" seems to be equivalent to "gdb -p procID". I need an
> equivalent of the GDB "-command=file" option where I include the attach
> command into "file".
> Alternatively, this would be possible if I could start GDB without being
> attached to a program and use the command line interface "GDB cmd" of
> KDevelop to execute my commands, although this would become tedious for
> a long list of commands, so it would be more useful if there was a way
> to feed a batch of commands at once into GDB.

I don't believe the behavior you describe is implemented. Patches welcome!

-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20180724/fc43b119/attachment.sig>


More information about the KDevelop mailing list