Re: Running a source command before launching main command

Aleix Pol <[email protected]> Fri, 30 Jul 2021 16:59:22 +0200
Newsgroups gmane.comp.kde.users.kdevelop
Message-ID <CACcA1Rq47VpVa+9Bvb0PTSFrfiMEa46q7hQvJf_TnXLQCuUpYA@mail.gmail.com>
--0000000000009e02a505c858772f
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

It depends on how gdb is configured. I don't know what it defaults to.

On Fri, Jul 30, 2021 at 10:46 AM Ren=C3=A9 J.V. Bertin <[email protected]=
>
wrote:

> On Friday July 30 2021 02:51:03 Aleix Pol wrote:
> >Note that you can set the environment that you run on within the Configu=
re
> >Launches dialog.
>
> It was my understanding that the PO knew this and had reason to use
> another approach (the env. variable values could depend on the date, for
> instance).
>
> >This is useful if you need to run gdb since otherwise you'll end up
> >debugging your starter script rather than your program.
>
> About that: in reality you'd be debugging the shell interpreter of course=
.
> Do you know what happens when an application being debugged replaces itse=
lf
> via an exec call? Does the debugger continue with the new executable?
>
> R.
>

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

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-size:small">It =
depends on how gdb is configured. I don&#39;t know what it defaults to.<br>=
</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_=
attr">On Fri, Jul 30, 2021 at 10:46 AM Ren=C3=A9 J.V. Bertin &lt;<a href=3D=
"mailto:[email protected]">[email protected]</a>&gt; wrote:<br></div><b=
lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le=
ft:1px solid rgb(204,204,204);padding-left:1ex">On Friday July 30 2021 02:5=
1:03 Aleix Pol wrote:<br>
&gt;Note that you can set the environment that you run on within the Config=
ure<br>
&gt;Launches dialog.<br>
<br>
It was my understanding that the PO knew this and had reason to use another=
 approach (the env. variable values could depend on the date, for instance)=
.<br>
<br>
&gt;This is useful if you need to run gdb since otherwise you&#39;ll end up=
<br>
&gt;debugging your starter script rather than your program.<br>
<br>
About that: in reality you&#39;d be debugging the shell interpreter of cour=
se. Do you know what happens when an application being debugged replaces it=
self via an exec call? Does the debugger continue with the new executable?<=
br>
<br>
R.<br>
</blockquote></div>

--0000000000009e02a505c858772f--