Using .gdbinit and Kdevelop

Sven Brauch mail at svenbrauch.de
Sun Aug 8 12:30:06 BST 2021


Hi, see https://bugs.kde.org/show_bug.cgi?id=428688

Greetings!

On 8/8/21 1:17 PM, Mahmood Naderan wrote:
> 
> 
> OK I switched to the folder that I want to run and debug and start 
> Kdevelop from there. Now, when I click on Debug, I see that it tries to 
> load the macros but fails with this message:
> 
> You need gdb 7.0.0 or higher.
> You are using: ** loading GPGPU-Sim debugging macros... **
> 
> That is weird, because the GDB version is 9.2 according to this output:
> 
> $ gdb --version
> GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
> Copyright (C) 2020 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later 
> <http://gnu.org/licenses/gpl.html <http://gnu.org/licenses/gpl.html>>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> 
> Also Kdevelop version is 5.5.
> Any idea about that?
> 
> Regards,
> Mahmood
> 
> 
> 
> 
> On Sun, Aug 8, 2021 at 12:39 PM René J.V. Bertin <rjvbertin at gmail.com 
> <mailto:rjvbertin at gmail.com>> wrote:
> 
>     On Sunday August 08 2021 12:09:47 Mahmood Naderan wrote:
> 
>      >Sorry I didn't get the point. As you can see below .gdbinit file
>     is set
>      >correctly and I use the GDB configuration as in the attached pictures.
> 
>     If KDevelop starts gdb, it will do so from within a working
>     directory that may not be the one you expect, especially if you
>     launch KDevelop itself via the plasma shell instead of from a
>     terminal. In that case, gdb will see the .gdbinit file that is in
>     your $HOME directory but not a dedicated version in some other
>     directory.
> 
>     R.
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xA4AAD0019BE03F15.asc
Type: application/pgp-keys
Size: 3139 bytes
Desc: OpenPGP public key
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20210808/2e05507d/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20210808/2e05507d/attachment.sig>


More information about the KDevelop mailing list