Re: Using .gdbinit and Kdevelop

Mahmood Naderan <[email protected]> Sun, 8 Aug 2021 13:17:09 +0200
Newsgroups gmane.comp.kde.users.kdevelop
Message-ID <CADa2P2U7cfic+QTpsYuwRCFE8UwF2yJec3eWNFhd83U24vkKoQ@mail.gmail.com>
--0000000000007a888105c90a69b7
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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.htm=
l
>
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=C3=A9 J.V. Bertin <[email protected]>
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 tha=
t
> may not be the one you expect, especially if you launch KDevelop itself v=
ia
> the plasma shell instead of from a terminal. In that case, gdb will see t=
he
> .gdbinit file that is in your $HOME directory but not a dedicated version
> in some other directory.
>
> R.
>

--0000000000007a888105c90a69b7
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:tahoma,s=
ans-serif"><br></div><div class=3D"gmail_default" style=3D"font-family:taho=
ma,sans-serif"><br></div><div>O<span class=3D"gmail_default" style=3D"font-=
family:tahoma,sans-serif">K 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 tha=
t it tries to load the macros but fails with this message:</span></div><div=
><span class=3D"gmail_default" style=3D"font-family:tahoma,sans-serif"><br>=
</span></div><div><span class=3D"gmail_default" style=3D"font-family:tahoma=
,sans-serif">You need gdb 7.0.0 or higher.<br>You are using: ** loading GPG=
PU-Sim debugging macros... ** <br></span></div><div><span class=3D"gmail_de=
fault" style=3D"font-family:tahoma,sans-serif"><br></span></div><div><span =
class=3D"gmail_default" style=3D"font-family:tahoma,sans-serif">That is wei=
rd, because the GDB version is 9.2 according to this output:</span></div><d=
iv><span class=3D"gmail_default" style=3D"font-family:tahoma,sans-serif"><b=
r></span></div><div><span class=3D"gmail_default" style=3D"font-family:taho=
ma,sans-serif">$ gdb --version<br>GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2<b=
r>Copyright (C) 2020 Free Software Foundation, Inc.<br>License GPLv3+: GNU =
GPL version 3 or later &lt;<a href=3D"http://gnu.org/licenses/gpl.html">htt=
p://gnu.org/licenses/gpl.html</a>&gt;<br>This is free software: you are fre=
e to change and redistribute it.<br>There is NO WARRANTY, to the extent per=
mitted by law.<br></span></div><div class=3D"gmail_default" style=3D"font-f=
amily:tahoma,sans-serif"><br></div><div class=3D"gmail_default" style=3D"fo=
nt-family:tahoma,sans-serif">Also Kdevelop version is 5.5.</div><div class=
=3D"gmail_default" style=3D"font-family:tahoma,sans-serif">Any idea about t=
hat?</div><div class=3D"gmail_default" style=3D"font-family:tahoma,sans-ser=
if"><br></div><div><div dir=3D"ltr" class=3D"gmail_signature" data-smartmai=
l=3D"gmail_signature"><div dir=3D"ltr"><font face=3D"tahoma,sans-serif">Reg=
ards,<br>Mahmood</font><br><br><br></div></div></div><br></div><br><div cla=
ss=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Aug 8, 202=
1 at 12:39 PM Ren=C3=A9 J.V. Bertin &lt;<a href=3D"mailto:[email protected]=
om">[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_=
quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,=
204);padding-left:1ex">On Sunday August 08 2021 12:09:47 Mahmood Naderan wr=
ote:<br>
<br>
&gt;Sorry I didn&#39;t get the point. As you can see below .gdbinit file is=
 set<br>
&gt;correctly and I use the GDB configuration as in the attached pictures.<=
br>
<br>
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 th=
e .gdbinit file that is in your $HOME directory but not a dedicated version=
 in some other directory.<br>
<br>
R.<br>
</blockquote></div>

--0000000000007a888105c90a69b7--