This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Strange - Value can't be converted to integer.



With this morning's snapshot on the 5.0.1 branch I am getting 
strange behaviour.  I compiled gdb using gcc 3.0 on Linux
system with binutils 2.11.2 and base RH7.1 glibc.
 
gdb v5 gives the message "virtual baseclass botch" in the same
place. 
 
The snippet below shows a debug session.  It seems I just can't
de-reference anything from this class.
 
Any ideas ?
 
307     {
308         m_errorReporter = w_er;
309         w_lenused = 0;
310
311         // Check to see if we're ready to parse more stuff
312         if ( ! m_parse_complete ) {
313
314             // The parsing comes in 3 parts -
315             // 1. HTTP response e.g."HTTP/1.0 200"
316             // 2. HTTP headers delimited by two new lines
(gdb) print this
$1 = (MessageParseBase_IMPL *) 0x402cefcc
(gdb) print this[0]
Value can't be converted to integer.
(gdb) print *this
Value can't be converted to integer.
(gdb) print this
$2 = (MessageParseBase_IMPL *) 0x402cefcc
(gdb) print *(MessageParseBase_IMPL *) 0x402cefcc
Value can't be converted to integer.
(gdb) print m_parse_complete
Value can't be converted to integer.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]