Re: Using .gdbinit and Kdevelop

Mahmood Naderan <[email protected]> Sun, 8 Aug 2021 14:50:59 +0200
Newsgroups gmane.comp.kde.users.kdevelop
Message-ID <CADa2P2VH-FMKb8+XeXC5SbJn2bWTgDsET3n=yOxn=R7oooXnng@mail.gmail.com>
--0000000000000e6ae405c90bb9b5
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

OK thanks. At least the bug has been identified.

Regards,
Mahmood




On Sun, Aug 8, 2021 at 1:30 PM Sven Brauch <mail-ITmcY+a7/[email protected]> wrote:

> Hi, see https://bugs.kde.org/show_bug.cgi?id=3D428688
>
> 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=C3=A9 J.V. Bertin <rjvbertin@gmail.=
com
> > <mailto:[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 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.
> >
>

--0000000000000e6ae405c90bb9b5
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">OK thanks. At least the bug has been identified.</div><div class=
=3D"gmail_default" style=3D"font-family:tahoma,sans-serif"><br clear=3D"all=
"></div><div><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"g=
mail_signature"><div dir=3D"ltr"><font face=3D"tahoma,sans-serif">Regards,<=
br>Mahmood</font><br><br><br></div></div></div><br></div><br><div class=3D"=
gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Aug 8, 2021 at 1=
:30 PM Sven Brauch &lt;<a href=3D"mailto:mail-ITmcY+a7/[email protected]">mail@svenbrauc=
h.de</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1=
ex">Hi, see <a href=3D"https://bugs.kde.org/show_bug.cgi?id=3D428688" rel=
=3D"noreferrer" target=3D"_blank">https://bugs.kde.org/show_bug.cgi?id=3D42=
8688</a><br>
<br>
Greetings!<br>
<br>
On 8/8/21 1:17 PM, Mahmood Naderan wrote:<br>
&gt; <br>
&gt; <br>
&gt; OK I switched to the folder that I want to run and debug and start <br=
>
&gt; Kdevelop from there. Now, when I click on Debug, I see that it tries t=
o <br>
&gt; load the macros but fails with this message:<br>
&gt; <br>
&gt; You need gdb 7.0.0 or higher.<br>
&gt; You are using: ** loading GPGPU-Sim debugging macros... **<br>
&gt; <br>
&gt; That is weird, because the GDB version is 9.2 according to this output=
:<br>
&gt; <br>
&gt; $ gdb --version<br>
&gt; GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2<br>
&gt; Copyright (C) 2020 Free Software Foundation, Inc.<br>
&gt; License GPLv3+: GNU GPL version 3 or later <br>
&gt; &lt;<a href=3D"http://gnu.org/licenses/gpl.html" rel=3D"noreferrer" ta=
rget=3D"_blank">http://gnu.org/licenses/gpl.html</a> &lt;<a href=3D"http://=
gnu.org/licenses/gpl.html" rel=3D"noreferrer" target=3D"_blank">http://gnu.=
org/licenses/gpl.html</a>&gt;&gt;<br>
&gt; This is free software: you are free to change and redistribute it.<br>
&gt; There is NO WARRANTY, to the extent permitted by law.<br>
&gt; <br>
&gt; Also Kdevelop version is 5.5.<br>
&gt; Any idea about that?<br>
&gt; <br>
&gt; Regards,<br>
&gt; Mahmood<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; On Sun, Aug 8, 2021 at 12:39 PM Ren=C3=A9 J.V. Bertin &lt;<a href=3D"m=
ailto:[email protected]" target=3D"_blank">[email protected]</a> <br>
&gt; &lt;mailto:<a href=3D"mailto:[email protected]" target=3D"_blank">rj=
[email protected]</a>&gt;&gt; wrote:<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0On Sunday August 08 2021 12:09:47 Mahmood Naderan w=
rote:<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;Sorry I didn&#39;t get the point. As you can s=
ee below .gdbinit file<br>
&gt;=C2=A0 =C2=A0 =C2=A0is set<br>
&gt;=C2=A0 =C2=A0 =C2=A0 &gt;correctly and I use the GDB configuration as i=
n the attached pictures.<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0If KDevelop starts gdb, it will do so from within a=
 working<br>
&gt;=C2=A0 =C2=A0 =C2=A0directory that may not be the one you expect, espec=
ially if you<br>
&gt;=C2=A0 =C2=A0 =C2=A0launch KDevelop itself via the plasma shell instead=
 of from a<br>
&gt;=C2=A0 =C2=A0 =C2=A0terminal. In that case, gdb will see the .gdbinit f=
ile that is in<br>
&gt;=C2=A0 =C2=A0 =C2=A0your $HOME directory but not a dedicated version in=
 some other<br>
&gt;=C2=A0 =C2=A0 =C2=A0directory.<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0R.<br>
&gt; <br>
</blockquote></div>

--0000000000000e6ae405c90bb9b5--