Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Aug 2002 18:42:31 +0200 (CEST)
From:      Martin Blapp <mb@imp.ch>
To:        "Kevin B. Hendricks" <kevin.hendricks@sympatico.ca>
Cc:        <dev@porting.openoffice.org>, <openoffice@FreeBSD.ORG>
Subject:   Re: [porting-dev] Re: Crash with Test-Document in the second run. Memory allocation problem
Message-ID:  <20020810184212.Q92422-100000@levais.imp.ch>
In-Reply-To: <200208101237.53297.kevin.hendricks@sympatico.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

Hi.

> Ah, I am BigEndian and your are LittleEndian so something is byteswapping
> the ints of the buffer ...  perhaps gdb does this when it uses x/20x (it
> assumes an int and not a short)?  Hmm, we should be dealing with short
> ints and not ints here so an array of short ints should be readable in
> normal order (and is on my BigEndian version of gdb!).
>

(gdb) x/20s ppThis->buffer
0x8390a48:       "S"
0x8390a4a:       "t"
0x8390a4c:       "a"
0x8390a4e:       "r"
0x8390a50:       "W"
0x8390a52:       "r"
0x8390a54:       "i"
0x8390a56:       "t"
0x8390a58:       "e"
0x8390a5a:       "r"
0x8390a5c:       " "
0x8390a5e:       "5"
0x8390a60:       "."
0x8390a62:       "0"
0x8390a64:       ""
0x8390a65:       ""
0x8390a66:       "e"
0x8390a68:       "r"
0x8390a6a:       "_"
0x8390a6c:       "5"

:-)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-openoffice" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020810184212.Q92422-100000>