Re: Debug ProjectCenter

Daniel Santos <[email protected]> Sun, 24 Nov 2024 20:36:32 +0000
Newsgroups gmane.comp.lib.gnustep.devel
Message-ID <[email protected]>
--Apple-Mail=_FBD04EB9-7A44-4157-BE08-B2BF63E1B940
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

I recompiled with that option.
But I still get the same behaviour.
I am running the program from the .app folder that the build creates =
within the project root folder.

I do gdb ProjectCenter.app/ProjectCenter

Daniel Santos



> On 24 Nov 2024, at 19:19, Gregory Casamento <[email protected]> =
wrote:
>=20
> Hey Daniel
>=20
> Use =E2=80=9Cmake debug=3Dyes=E2=80=9D.  That should work for you.=20
>=20
> GC
>=20
> Gregory Casamento
> GNUstep Lead Developer / Black Lotus, Principal Consultant
> http://www.gnustep.org <http://www.gnustep.org/> - =
http://heronsperch.blogspot.com <http://heronsperch.blogspot.com/>
> https://www.patreon.com/bePatron?u=3D352392 =
<https://www.patreon.com/bePatron?u=3D352392> - Become a Patron
> https://www.openhub.net/languages/objective_c =
<https://www.openhub.net/languages/objective_c>
> =
https://www.gofundme.com/f/cacao-linux-a-gnustep-reference-implementation =
<https://www.gofundme.com/f/cacao-linux-a-gnustep-reference-implementation=
>
>=20
>=20
> On Sun, Nov 24, 2024 at 14:17 Daniel Santos <[email protected] =
<mailto:[email protected]>> wrote:
> Hi,
>=20
> I am trying to do some changes in the sources of project center and am =
using gdb to debug.
> How do I disable gcc optimisations ?
> I tried putting :
> CFLAGS =3D -g -O0
> in the GNUmakefile.preamble, but I am still getting values that show =
<optimized out> when I print them, and unexpected jumps in the code.
>=20
> Thanks,
> Regards
>=20
> Daniel Santos
>=20
>=20
>=20
>=20


--Apple-Mail=_FBD04EB9-7A44-4157-BE08-B2BF63E1B940
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">I =
recompiled with that option.<div class=3D"">But I still get the same =
behaviour.</div><div class=3D"">I am running the program from the .app =
folder that the build creates within the project root folder.</div><div =
class=3D""><br class=3D""></div><div class=3D"">I do gdb =
ProjectCenter.app/ProjectCenter</div><div class=3D""><br class=3D""><div =
class=3D"">
<div>Daniel Santos</div><div class=3D""><br class=3D""></div><br =
class=3D"Apple-interchange-newline">

</div>
<div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 24 Nov 2024, at 19:19, Gregory Casamento &lt;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"auto" =
class=3D"">Hey&nbsp;Daniel</div><div dir=3D"auto" class=3D""><br =
class=3D""></div><div dir=3D"auto" class=3D"">Use =E2=80=9Cmake =
debug=3Dyes=E2=80=9D.&nbsp; That should work for you.&nbsp;</div><div =
dir=3D"auto" class=3D""><br class=3D""></div><div dir=3D"auto" =
class=3D"">GC<br clear=3D"all" class=3D""><br clear=3D"all" =
class=3D""><div dir=3D"auto" class=3D""><div dir=3D"ltr" =
class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div =
dir=3D"ltr" class=3D""><div dir=3D"ltr" class=3D""><div class=3D""><div =
dir=3D"ltr" class=3D""><font face=3D"monospace" style=3D"font-family: =
monospace;" class=3D"">Gregory Casamento<br class=3D"">GNUstep Lead =
Developer / Black Lotus, Principal Consultant<br class=3D""><a =
href=3D"http://www.gnustep.org/" target=3D"_blank" =
style=3D"font-family:monospace" class=3D"">http://www.gnustep.org</a> - =
<a href=3D"http://heronsperch.blogspot.com/" target=3D"_blank" =
style=3D"font-family:monospace" =
class=3D"">http://heronsperch.blogspot.com</a><br class=3D""><a =
href=3D"https://www.patreon.com/bePatron?u=3D352392" target=3D"_blank" =
style=3D"font-family:monospace" =
class=3D"">https://www.patreon.com/bePatron?u=3D352392</a>&nbsp;- Become =
a Patron</font></div></div><div dir=3D"ltr" class=3D""><font =
face=3D"monospace" style=3D"font-family:monospace;color:rgb(136,136,136)" =
class=3D""><a href=3D"https://www.openhub.net/languages/objective_c" =
style=3D"font-family:monospace;color:rgb(17,85,204)" target=3D"_blank" =
class=3D"">https://www.openhub.net/languages/objective_c</a></font><br =
class=3D""></div><div dir=3D"ltr" class=3D""><font face=3D"monospace" =
style=3D"font-family: monospace;" class=3D""><a =
href=3D"https://www.gofundme.com/f/cacao-linux-a-gnustep-reference-impleme=
ntation" target=3D"_blank" style=3D"font-family:monospace" =
class=3D"">https://www.gofundme.com/f/cacao-linux-a-gnustep-reference-impl=
ementation</a></font><br =
class=3D""></div></div></div></div></div></div><div class=3D""><br =
class=3D""></div><div class=3D""><br class=3D""><div =
class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Nov =
24, 2024 at 14:17 Daniel Santos &lt;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:<br =
class=3D""></div><blockquote class=3D"gmail_quote" style=3D"margin:0px =
0px 0px =
0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;borde=
r-left-color:rgb(204,204,204)">Hi,<br class=3D"">
<br class=3D"">
I am trying to do some changes in the sources of project center and am =
using gdb to debug.<br class=3D"">
How do I disable gcc optimisations ?<br class=3D"">
I tried putting :<br class=3D"">
CFLAGS =3D -g -O0<br class=3D"">
in the GNUmakefile.preamble, but I am still getting values that show =
&lt;optimized out&gt; when I print them, and unexpected jumps in the =
code.<br class=3D"">
<br class=3D"">
Thanks,<br class=3D"">
Regards<br class=3D"">
<br class=3D"">
Daniel Santos<br class=3D"">
<br class=3D"">
<br class=3D"">
<br class=3D"">
<br class=3D"">
</blockquote></div></div>
</div></blockquote></div><br class=3D""></div></body></html>=

--Apple-Mail=_FBD04EB9-7A44-4157-BE08-B2BF63E1B940--