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 <<a href=3D"mailto:mail-ITmcY+a7/[email protected]">mail@svenbrauc= h.de</a>> 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> > <br> > <br> > OK I switched to the folder that I want to run and debug and start <br= > > Kdevelop from there. Now, when I click on Debug, I see that it tries t= o <br> > load the macros but fails with this message:<br> > <br> > You need gdb 7.0.0 or higher.<br> > You are using: ** loading GPGPU-Sim debugging macros... **<br> > <br> > That is weird, because the GDB version is 9.2 according to this output= :<br> > <br> > $ gdb --version<br> > GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2<br> > Copyright (C) 2020 Free Software Foundation, Inc.<br> > License GPLv3+: GNU GPL version 3 or later <br> > <<a href=3D"http://gnu.org/licenses/gpl.html" rel=3D"noreferrer" ta= rget=3D"_blank">http://gnu.org/licenses/gpl.html</a> <<a href=3D"http://= gnu.org/licenses/gpl.html" rel=3D"noreferrer" target=3D"_blank">http://gnu.= org/licenses/gpl.html</a>>><br> > This is free software: you are free to change and redistribute it.<br> > There is NO WARRANTY, to the extent permitted by law.<br> > <br> > Also Kdevelop version is 5.5.<br> > Any idea about that?<br> > <br> > Regards,<br> > Mahmood<br> > <br> > <br> > <br> > <br> > On Sun, Aug 8, 2021 at 12:39 PM Ren=C3=A9 J.V. Bertin <<a href=3D"m= ailto:[email protected]" target=3D"_blank">[email protected]</a> <br> > <mailto:<a href=3D"mailto:[email protected]" target=3D"_blank">rj= [email protected]</a>>> wrote:<br> > <br> >=C2=A0 =C2=A0 =C2=A0On Sunday August 08 2021 12:09:47 Mahmood Naderan w= rote:<br> > <br> >=C2=A0 =C2=A0 =C2=A0 >Sorry I didn't get the point. As you can s= ee below .gdbinit file<br> >=C2=A0 =C2=A0 =C2=A0is set<br> >=C2=A0 =C2=A0 =C2=A0 >correctly and I use the GDB configuration as i= n the attached pictures.<br> > <br> >=C2=A0 =C2=A0 =C2=A0If KDevelop starts gdb, it will do so from within a= working<br> >=C2=A0 =C2=A0 =C2=A0directory that may not be the one you expect, espec= ially if you<br> >=C2=A0 =C2=A0 =C2=A0launch KDevelop itself via the plasma shell instead= of from a<br> >=C2=A0 =C2=A0 =C2=A0terminal. In that case, gdb will see the .gdbinit f= ile that is in<br> >=C2=A0 =C2=A0 =C2=A0your $HOME directory but not a dedicated version in= some other<br> >=C2=A0 =C2=A0 =C2=A0directory.<br> > <br> >=C2=A0 =C2=A0 =C2=A0R.<br> > <br> </blockquote></div> --0000000000000e6ae405c90bb9b5--