- Search - Recent Threads - All Threads - Qt Documentation - Home Page -

Qt-interest Archive:
GNU and QString


Note: The qt-interest archive has moved to http://lists.trolltech.com/qt-interest/, and qt-interest.trolltech.com is no longer updated with new content. Please use that link instead.

Here are all the messages with subject "GNU and QString", and all replies to such messages. Note that some of the links in the text may perhaps not work any more when you read this.
Subject: GNU and QString
From: wim delvaux <wim.delvaux@chello.be> - other postings
Date: Thu, 18 Jan 2001 15:02:03 +0100
Message-ID: <3A66F75B.239CE3C7@chello.be>

Does anybody know how to display QStrings in GNU ?
I scanned the Archives but find only old pre 2.0 solutions

Thanx


Subject: Re: GNU and QString
From: "Wilco Greven" <j.w.greven@student.utwente.nl> - other postings
Date: Thu, 18 Jan 2001 15:17:58 +0100
Message-ID: <20010118151757.A28381@wicky>

Do you mean gdb? Then you could add following script to you .gdbinit (thanks to
David Faure who sent it to the kde-devel mailinglist):

define printqstring
    set $i=0
    while $i < $arg0.d->len
	print $arg0.d->unicode[$i++].cl
    end
end

Greetings,
Wilco


Subject: RE: GNU and QString: DEBUGGER DDD GDB
From: "David N S Reeves" <dnsreeves@netzero.net> - other postings
Date: Thu, 18 Jan 2001 08:36:43 -0600
Message-ID: <NEBBIAJCAJOEBIILHEHJEECACBAA.dnsreeves@netzero.net>

-----Original Message-----
From: owner-qt-interest@trolltech.com
[mailto:owner-qt-interest@trolltech.com]On Behalf Of Wilco Greven
Sent: Thursday, January 18, 2001 8:18 AM
To: qt interest
Subject: Re: GNU and QString


On Thu, Jan 18, 2001 at 03:02:03PM +0100, wim delvaux wrote:
> Hi,
>
> Does anybody know how to display QStrings in GNU ?
> I scanned the Archives but find only old pre 2.0 solutions

Do you mean gdb? Then you could add following script to you .gdbinit (thanks
to
David Faure who sent it to the kde-devel mailinglist):

define printqstring
    set $i=0
    while $i < $arg0.d->len
	print $arg0.d->unicode[$i++].cl
    end
end

Greetings,
Wilco

-- 
 [ signature omitted ]


Subject: Re: GNU and QString
From: Arnaud de Muyser <ademuyser@attol.com> - other postings
Date: Thu, 18 Jan 2001 15:33:44 +0100
Message-ID: <3A66FEC8.2897A7F5@attol-testware.com>

Is there any way to print QString as a (char*) string ?
 (line rather than column printing is more efficient for long string).
 Where we can found gdb macro language specifications, help ?
 Thanks for this useful macro.

 Arnaud.
 


Wilco Greven wrote:
> 
> On Thu, Jan 18, 2001 at 03:02:03PM +0100, wim delvaux wrote:
> > Hi,
> >
> > Does anybody know how to display QStrings in GNU ?
> > I scanned the Archives but find only old pre 2.0 solutions
> 
> Do you mean gdb? Then you could add following script to you .gdbinit (thanks to
> David Faure who sent it to the kde-devel mailinglist):
> 
> define printqstring
>     set $i=0
>     while $i < $arg0.d->len
>         print $arg0.d->unicode[$i++].cl
>     end
> end
> 
> Greetings,
> Wilco
> 
> --
> List archive and information: http://qt-interest.trolltech.com


Subject: Re: GNU and QString: DEBUGGER DDD GDB
From: wim delvaux <wim.delvaux@chello.be> - other postings
Date: Thu, 18 Jan 2001 15:40:03 +0100
Message-ID: <3A670043.9BAEBE93@chello.be>

> How can I use this with a gdb based debugger like DDD?
>
> -----Original Message-----
> From: owner-qt-interest@trolltech.com
> [mailto:owner-qt-interest@trolltech.com]On Behalf Of Wilco Greven
> Sent: Thursday, January 18, 2001 8:18 AM
> To: qt interest
> Subject: Re: GNU and QString
>
> On Thu, Jan 18, 2001 at 03:02:03PM +0100, wim delvaux wrote:
> > Hi,
> >
> > Does anybody know how to display QStrings in GNU ?
> > I scanned the Archives but find only old pre 2.0 solutions
>
> Do you mean gdb? Then you could add following script to you .gdbinit (thanks
> to
> David Faure who sent it to the kde-devel mailinglist):
>
> define printqstring
>     set $i=0
>     while $i < $arg0.d->len
>         print $arg0.d->unicode[$i++].cl
>     end
> end
>
> Greetings,
> Wilco
>
> --
> List archive and information: http://qt-interest.trolltech.com
>
> Shop online without a credit card
> http://www.rocketcash.com
> RocketCash, a NetZero subsidiary
>
> --
> List archive and information: http://qt-interest.trolltech.com


Subject: Re: GNU and QString
From: wim delvaux <wim.delvaux@chello.be> - other postings
Date: Thu, 18 Jan 2001 15:48:54 +0100
Message-ID: <3A670256.BCF76DAA@chello.be>

$arg0.d->unicode as an array whit $arg0.d->len fields

and set the array prettyprinting to false

Just a though (not sure if it even works)

>  Hi,
>
>  Is there any way to print QString as a (char*) string ?
>  (line rather than column printing is more efficient for long string).
>  Where we can found gdb macro language specifications, help ?
>  Thanks for this useful macro.
>
>  Arnaud.
>
>
> Wilco Greven wrote:
> >
> > On Thu, Jan 18, 2001 at 03:02:03PM +0100, wim delvaux wrote:
> > > Hi,
> > >
> > > Does anybody know how to display QStrings in GNU ?
> > > I scanned the Archives but find only old pre 2.0 solutions
> >
> > Do you mean gdb? Then you could add following script to you .gdbinit (thanks to
> > David Faure who sent it to the kde-devel mailinglist):
> >
> > define printqstring
> >     set $i=0
> >     while $i < $arg0.d->len
> >         print $arg0.d->unicode[$i++].cl
> >     end
> > end
> >
> > Greetings,
> > Wilco
> >
> > --
> > List archive and information: http://qt-interest.trolltech.com
>
> --
> List archive and information: http://qt-interest.trolltech.com


Subject: Re: GNU and QString
From: Arnaud de Muyser <ademuyser@attol.com> - other postings
Date: Thu, 18 Jan 2001 16:29:01 +0100
Message-ID: <3A670BBD.70F4BB37@attol-testware.com>

Arnaud.



define pqs
    set $i=0
    set $unicode=$arg0.d->unicode

    printf "Getting QString...\n"
    while $i < $arg0.d->len
        set $c=$unicode[$i++].cl
        if $c < 32 
          printf "\\0%o", $c
        else
          if $c <= 127
            printf "%c", $c
          else 
            printf "\\0%o", $c
          end 
        end
    end
    echo \n
end




Arnaud de Muyser wrote:
> 
>  Hi,
> 
>  Is there any way to print QString as a (char*) string ?
>  (line rather than column printing is more efficient for long string).
>  Where we can found gdb macro language specifications, help ?
>  Thanks for this useful macro.
> 
>  Arnaud.
> 
> 
> Wilco Greven wrote:
> >
> > On Thu, Jan 18, 2001 at 03:02:03PM +0100, wim delvaux wrote:
> > > Hi,
> > >
> > > Does anybody know how to display QStrings in GNU ?
> > > I scanned the Archives but find only old pre 2.0 solutions
> >
> > Do you mean gdb? Then you could add following script to you .gdbinit (thanks to
> > David Faure who sent it to the kde-devel mailinglist):
> >
> > define printqstring
> >     set $i=0
> >     while $i < $arg0.d->len
> >         print $arg0.d->unicode[$i++].cl
> >     end
> > end
> >
> > Greetings,
> > Wilco
> >
> > --
> > List archive and information: http://qt-interest.trolltech.com
> 
> --
> List archive and information: http://qt-interest.trolltech.com


Copyright - Trademarks - Site Map - Home Page
Automatically generated for the webmaster