From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Received: (qmail 27567 invoked from network); 20 May 2004 18:09:25 -0000 Received: from unknown (HELO beta.dmz-eu.st.com) (164.129.1.35) by sourceware.org with SMTP; 20 May 2004 18:09:25 -0000 Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 06ED6DC3D for ; Thu, 20 May 2004 18:09:10 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 60012) id D1E17F2FB; Thu, 20 May 2004 18:08:54 +0000 (GMT) Received: from mail1.ctn.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5616712301 for ; Thu, 20 May 2004 18:08:54 +0000 (GMT) Received: from CTN000514 ([164.130.129.154]) by mail1.ctn.st.com (Mirapoint Messaging Server MOS 3.3.6-GR) with ESMTP id AAR78111 (AUTH "emilio giuffrida"); Thu, 20 May 2004 20:08:52 +0200 (CEST) From: Emilio Ugo GIUFFRIDA To: Cc: Subject: Problem with unsigned char * data Date: Thu, 20 May 2004 18:09:00 -0000 Message-ID: <000001c43e95$75dd67b0$9a8182a4@CTN000514> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-SW-Source: 2004-05/txt/msg00139.txt.bz2 Gentlemen, I have a problem with gdb/Insight :-( On a board, when a "unsigned char *" pointer is badly initialized to=20 0xffffffff( that for us is outside the memory ), trying to print the pointe= r's value in the local variable window or in the watchpoint window makes th= e GUI crash. Using the gdb console, the answer is quite verbose, but correct: (gdb) print pt1 $6 =3D=20 Error: Error in st200emu : Cannot read buffer at memory adress 0xffffffff Adaptor error on: read memory access at address (Exception 5 while executi= ng ROM command) It seems that gdb tries to read at 0xffffffff and, for pointers to unsigned= char, displays by default the string pointed.=20 Do you know if there is a gdb option disabling this behaviour? Best regards, Emilio -------------------------------------------------------------------------- Emilio Ugo Giuffrida ST200 Tools Team Phone : +39 0957404514 CMG/MCDT Software Design Center Fax : +39 0957404013 ST Microelectronics TINA : 052 4514 Stradale Primosole, 50 e-mail : emilio.giuffrida@st.com 95121 Catania ITALY=20=20=20=20=20 --------------------------------------------------------------------------