[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | Digital Ladebug debugger |
|
Moderator: | TLE::LUCIA |
|
Created: | Fri Feb 28 1992 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 969 |
Total number of notes: | 3959 |
838.0. "Can't do "whatis" on a pointer field" by CXXC::MJHANS (Matthew Hanselman, DEC C) Thu Feb 13 1997 17:06
sym is a pointer
I can tell this because
a) I know it is a pointer before hand
b) Ladebug can tell me it's a pointer
c) I can print things out of the pointer
But ladebug won't let me "whatis" things out of the pointer. It tells me I'm
wrong.
- Matt
cosf:~% cat tmp.cxx
enum {zero, one};
int a = zero;
cosf:~% ladebug
/usr/proj/decc2/mainline/exxalphaosf/bl36/exe/exx.debugging_non_shared
Welcome to the Ladebug Debugger Version 4.0-30
------------------
object file name:
/usr/proj/decc2/mainline/exxalphaosf/bl36/exe/exx.debugging_non_shared
Reading symbolic information ...done
(ladebug) stop in make_sym_constant_operand
[#1: stop in void make_sym_constant_operand(a_symbol_ptr, an_operand*) ]
(ladebug) run tmp.cxx
[1] stopped at [make_sym_constant_operand:1368 0x1258c6a8]
1368 check_assertion(sym->kind == (a_symbol_kind)sk_constant);
(ladebug) whatis sym
a_symbol_ptr sym
(ladebug) whatis a_symbol_ptr
a_symbol* a_symbol_ptr
(ladebug) whatis sym->variant
Type of 'sym->variant' failed!
The type (a_symbol_ptr) is not a pointer type!
(ladebug) print sym->variant
union {
keyword = struct {
token = 337293632;
diagnostic_issued_if_used = ec_no_error;
(etc)
T.R | Title | User | Personal Name | Date | Lines |
---|
838.1 | | TLE::MURRAY | Wanfang Murray | Mon Mar 03 1997 11:42 | 5 |
|
We will look into this.
Wanfang
|