[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fwd: Printing values in GDB 5.0]
From: |
Zul Kheraj |
Subject: |
[Fwd: Printing values in GDB 5.0] |
Date: |
Wed, 06 Jun 2001 08:50:33 -0700 |
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "sparc-sun-solaris2.6"...
(gdb)
(gdb)
(gdb) b main
Breakpoint 1 at 0x15dfc: file test.cxx, line 8.
(gdb) run
Starting program: /inm/users/kheraj/./popo
warning: Lowest section in /usr/lib/libw.so.1 is .dynamic at 00000074
Breakpoint 1, main () at test.cxx:8
8 char * cp = new char[2048];
(gdb) next
10 strcpy (cp,"Hello world");
(gdb) p cp
$1 = <incomplete type>
(gdb)
Why do I get the incomplete type when I print the variables ?
Thanks
Zul KHERAJ
address@hidden
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fwd: Printing values in GDB 5.0],
Zul Kheraj <=