www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/21/23:47:01

Message-ID: <51FF8E06B654D111B9CA0000E8D863B4096E0E@www.caresystems.com.au>
From: Leon Zadorin <Leon AT caresystems DOT com DOT au>
To: mingw32 AT egroups DOT com
Cc: djgpp AT delorie DOT com
Subject: debug information for custom string classes
Date: Mon, 22 May 2000 13:30:35 +1000
X-Priority: 3
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1457.3)
Reply-To: djgpp AT delorie DOT com

Hello everyone

was just wondering

i am using gdb for my debugging process.

say i have written a custom string class (eg  String)

and also say i have a variable of that type ie String tempStr;

now if at some point i break in gdb and want to have a look at the
variables data - it is ieasy for int
ie 
p variableName
but the same p command will not provide the contents of a string (since
it is made from linked list of characters)

any comments from pros?

With best regards - Leon.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019