[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-finance-apps
Subject: Re: GSoc GDB pretty printers: Automatic testing and printing class pointers
From: Da Viper <yerimyah1 () gmail ! com>
Date: 2021-06-28 11:53:31
Message-ID: CAEtKUfgT_fKZnrvdzninAvKouRdwm_P9yb=+jijoMhimJdapuw () mail ! gmail ! com
[Download RAW message or body]
Hello there here is the repo of the new printers
https://invent.kde.org/ebuka/gdb_printers
if you look into the test folder there is a sample test file
i set a breakpoint at the top of the file and then treverse till the end
manually checking if they match correctly
On Sat, 26 Jun 2021 at 16:36, Thomas Baumgart <thb@net-bembel.de> wrote:
> On Donnerstag, 17. Juni 2021 17:28:24 CEST Da Viper wrote:
>
> > Hello there,
> >
> > This is a continuation of the chat from the telegram group
> >
> > - Manual Test
> > The way i perform manual test is that, I create a cpp file then
> instantiate
> > the class with all possible constructors and input the set a break point
> at
> > the bottom to compare all the output to the given input
> > i am not sure of a way to make this automatic as it would be easier to
> know
> > when new changes affect existing code instead of performing all the test
> > for the hundred of classes
>
> I am not sure if I understand the above so that I am able to duplicate it.
> Also, where do you have your code available for duplication?
>
> > - Printing Classes instantiated as pointer
> > for example if we have a qstring created like this
> >
> > `QString qsst("this is another string");`
> > `QString *thePtr = &qsst;`
> >
> > if i am to create a printer for qstring it does not apply the printer for
> > the variable `thePtr`
> > i am not sure how to fix the problem ( however the same also happens for
> > `std::string` but it is also included the value later)
>
> Having access to your printers may certainly help us to make suggestions.
> Otherwise, this is somewhat shooting in the dark.
>
>
> --
>
> Regards
>
> Thomas Baumgart
>
> https://www.signal.org/ Signal, the better WhatsApp
> -------------------------------------------------------------
> morphir: so much confusion :S kmake, kdemake, qmake make cmake etc.
> logixoul: you forgot cmakekde :)
> morphir: and bakemeacake
> -------------------------------------------------------------
>
[Attachment #3 (text/html)]
<div dir="ltr">Hello there here is the repo of the new printers <div><br><div><a \
href="https://invent.kde.org/ebuka/gdb_printers">https://invent.kde.org/ebuka/gdb_printers</a><br></div></div><div><br></div><div>if \
you look into the test folder there is a sample test file \
</div><div><br></div><div>i set a breakpoint at the top of the file and then treverse \
till the end manually checking if they match correctly \
</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">On Sat, 26 Jun 2021 at 16:36, Thomas Baumgart <<a \
href="mailto:thb@net-bembel.de">thb@net-bembel.de</a>> wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">On Donnerstag, 17. Juni 2021 17:28:24 CEST Da \
Viper wrote:<br> <br>
> Hello there,<br>
> <br>
> This is a continuation of the chat from the telegram group<br>
> <br>
> - Manual Test<br>
> The way i perform manual test is that, I create a cpp file then instantiate<br>
> the class with all possible constructors and input the set a break point at<br>
> the bottom to compare all the output to the given input<br>
> i am not sure of a way to make this automatic as it would be easier to know<br>
> when new changes affect existing code instead of performing all the test<br>
> for the hundred of classes<br>
<br>
I am not sure if I understand the above so that I am able to duplicate it.<br>
Also, where do you have your code available for duplication?<br>
<br>
> - Printing Classes instantiated as pointer<br>
> for example if we have a qstring created like this<br>
> <br>
> `QString qsst("this is another string");`<br>
> `QString *thePtr = &qsst;`<br>
> <br>
> if i am to create a printer for qstring it does not apply the printer for<br>
> the variable `thePtr`<br>
> i am not sure how to fix the problem ( however the same also happens for<br>
> `std::string` but it is also included the value later)<br>
<br>
Having access to your printers may certainly help us to make suggestions.<br>
Otherwise, this is somewhat shooting in the dark.<br>
<br>
<br>
-- <br>
<br>
Regards<br>
<br>
Thomas Baumgart<br>
<br>
<a href="https://www.signal.org/" rel="noreferrer" \
target="_blank">https://www.signal.org/</a> Signal, the \
better WhatsApp<br>
-------------------------------------------------------------<br>
morphir: so much confusion :S kmake, kdemake, qmake make cmake etc.<br>
logixoul: you forgot cmakekde :)<br>
morphir: and bakemeacake<br>
-------------------------------------------------------------<br>
</blockquote></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic