Re: Execute GDB commands before attaching to a running program
Milian Wolff <[email protected]>
| Newsgroups | gmane.comp.kde.users.kdevelop |
|---|---|
| Message-ID | <2213290.nDLh838x20@agathebauer> |
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 [email protected] http://milianw.de
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEezawi1aUvUGg3A1+8zYW/HGdOX8FAltXjgIACgkQ8zYW/HGd OX94+RAAuAJxx3XyPXW0wO/OUkYIUjLH1soCWetaEdP1MNmwpdygfn2fnkfL8BD8 g/3fA0ir/WJhw9bVYPDR8FY7X1rJzXHSUxqeIvAOY3Tm8e2MgVukj4eTPuAU4/KX fq3szarNMwdCKnLk37gxT9gw/obqZeW25RO1fp2whKcSxTRf2luymqgZW8Dh8YUU iki2z4muTVtByM36O1YSO1Uuyw6TicwH6qDvSZ4nbYegrMVOPioaY6Ica5hfhLHW erEiFxr85XLmmHtlktLXXV8VtBWVde+iezcSd+Tvkg68+Mi6IpxIj0Wxp48bj8Gp +zy0N6XslOL5lHPK8HeEzGQ9Zv1cVy8GHdJJUtVkpTm5N1fg0pU9UWu0T8VH0ZXa Iy9X8oLxCWu4LwvFJhB8q6nhnPsZ56gAJxhuEyH0u0uVLn+WL+dpeXiHiXdQsbXx n8DxGmepnrSD2pIZfa0adipe/CuqN467UttlAVn+c2KsZmzWDiUOg5PdmaQqgkfz KtPNRf+/X1gUV8udaDl4I5RjRs5RAVkseWxapXGEABUvs51M/MXfj3OBDZaMA7G1 pYA4QbXRZG/AssEJ9ssXkc6GRqbNclwHw/ixIgCgYAH/2LSJE2hHnneh6Y9GfoYN +27J3of7j7F3dzFaTsVAgVhe6oKSM9+0os3FscRyWUHDWju/tr4= =9ViE -----END PGP SIGNATURE-----