2 * File types.c - datatype handling stuff for internal debugger.
4 * Copyright (C) 1997, Eric Youngdale.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 * Note: This really doesn't do much at the moment, but it forms the framework
21 * upon which full support for datatype handling will eventually be built.
28 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(winedbg
);
32 /******************************************************************
35 * Get rid of any potential typedef in the lvalue's type to get
36 * to the 'real' type (the one we can work upon).
38 BOOL
types_get_real_type(struct dbg_type
* type
, DWORD
* tag
)
40 if (type
->id
== dbg_itype_none
) return FALSE
;
43 if (!types_get_info(type
, TI_GET_SYMTAG
, tag
))
45 if (*tag
!= SymTagTypedef
) return TRUE
;
46 } while (types_get_info(type
, TI_GET_TYPE
, &type
->id
));
50 /******************************************************************
51 * types_extract_as_longlong
53 * Given a lvalue, try to get an integral (or pointer/address) value
56 LONGLONG
types_extract_as_longlong(const struct dbg_lvalue
* lvalue
)
61 struct dbg_type type
= lvalue
->type
;
63 if (!types_get_real_type(&type
, &tag
))
64 RaiseException(DEBUG_STATUS_NOT_AN_INTEGER
, 0, 0, NULL
);
66 if (type
.id
== dbg_itype_segptr
)
68 return (long int)memory_to_linear_addr(&lvalue
->addr
);
74 if (!types_get_info(&type
, TI_GET_LENGTH
, &size
) ||
75 !types_get_info(&type
, TI_GET_BASETYPE
, &bt
))
77 WINE_ERR("Couldn't get information\n");
78 RaiseException(DEBUG_STATUS_INTERNAL_ERROR
, 0, 0, NULL
);
80 if (size
> sizeof(rtn
))
82 WINE_ERR("Size too large (%s)\n", wine_dbgstr_longlong(size
));
83 RaiseException(DEBUG_STATUS_NOT_AN_INTEGER
, 0, 0, NULL
);
89 if (!be_cpu
->fetch_integer(lvalue
, (unsigned)size
, TRUE
, &rtn
))
90 RaiseException(DEBUG_STATUS_INTERNAL_ERROR
, 0, 0, NULL
);
93 if (!be_cpu
->fetch_integer(lvalue
, (unsigned)size
, FALSE
, &rtn
))
94 RaiseException(DEBUG_STATUS_INTERNAL_ERROR
, 0, 0, NULL
);
97 RaiseException(DEBUG_STATUS_NOT_AN_INTEGER
, 0, 0, NULL
);
100 case SymTagPointerType
:
101 if (!be_cpu
->fetch_integer(lvalue
, sizeof(void*), FALSE
, &rtn
))
102 RaiseException(DEBUG_STATUS_INTERNAL_ERROR
, 0, 0, NULL
);
104 case SymTagArrayType
:
106 if (!be_cpu
->fetch_integer(lvalue
, sizeof(unsigned), FALSE
, &rtn
))
107 RaiseException(DEBUG_STATUS_INTERNAL_ERROR
, 0, 0, NULL
);
110 /* FIXME: we don't handle enum size */
111 if (!be_cpu
->fetch_integer(lvalue
, sizeof(unsigned), FALSE
, &rtn
))
112 RaiseException(DEBUG_STATUS_INTERNAL_ERROR
, 0, 0, NULL
);
114 case SymTagFunctionType
:
115 rtn
= (unsigned)memory_to_linear_addr(&lvalue
->addr
);
118 WINE_FIXME("Unsupported tag %u\n", tag
);
119 RaiseException(DEBUG_STATUS_NOT_AN_INTEGER
, 0, 0, NULL
);
126 /******************************************************************
127 * types_extract_as_integer
129 * Given a lvalue, try to get an integral (or pointer/address) value
132 long int types_extract_as_integer(const struct dbg_lvalue
* lvalue
)
134 return types_extract_as_longlong(lvalue
);
137 /******************************************************************
138 * types_extract_as_address
142 void types_extract_as_address(const struct dbg_lvalue
* lvalue
, ADDRESS64
* addr
)
144 if (lvalue
->type
.id
== dbg_itype_segptr
&& lvalue
->type
.module
== 0)
146 *addr
= lvalue
->addr
;
150 addr
->Mode
= AddrModeFlat
;
151 addr
->Offset
= types_extract_as_longlong( lvalue
);
155 /******************************************************************
159 BOOL
types_deref(const struct dbg_lvalue
* lvalue
, struct dbg_lvalue
* result
)
161 struct dbg_type type
= lvalue
->type
;
164 memset(result
, 0, sizeof(*result
));
165 result
->type
.id
= dbg_itype_none
;
166 result
->type
.module
= 0;
169 * Make sure that this really makes sense.
171 if (!types_get_real_type(&type
, &tag
) || tag
!= SymTagPointerType
||
172 !memory_read_value(lvalue
, sizeof(result
->addr
.Offset
), &result
->addr
.Offset
) ||
173 !types_get_info(&type
, TI_GET_TYPE
, &result
->type
.id
))
175 result
->type
.module
= type
.module
;
176 result
->cookie
= DLV_TARGET
;
177 /* FIXME: this is currently buggy.
178 * there is no way to tell were the deref:ed value is...
180 * x is a pointer to struct s, x being on the stack
181 * => lvalue is in debuggee, result is in debugger
182 * x is a pointer to struct s, x being optimized into a reg
183 * => lvalue is debugger, result is debuggee
184 * x is a pointer to internal variable x
185 * => lvalue is debugger, result is debuggee
186 * so we force debuggee address space, because dereferencing pointers to
187 * internal variables is very unlikely. A correct fix would be
190 result
->addr
.Mode
= AddrModeFlat
;
194 /******************************************************************
195 * types_get_udt_element_lvalue
197 * Implement a structure derefencement
199 static BOOL
types_get_udt_element_lvalue(struct dbg_lvalue
* lvalue
,
200 const struct dbg_type
* type
, long int* tmpbuf
)
202 DWORD offset
, bitoffset
;
208 types_get_info(type
, TI_GET_TYPE
, &lvalue
->type
.id
);
209 lvalue
->type
.module
= type
->module
;
210 if (!types_get_info(type
, TI_GET_OFFSET
, &offset
)) return FALSE
;
211 lvalue
->addr
.Offset
+= offset
;
213 if (types_get_info(type
, TI_GET_BITPOSITION
, &bitoffset
))
215 types_get_info(type
, TI_GET_LENGTH
, &length
);
216 /* FIXME: this test isn't sufficient, depending on start of bitfield
217 * (ie a 32 bit field can spread across 5 bytes)
219 if (length
> 8 * sizeof(*tmpbuf
)) return FALSE
;
220 lvalue
->addr
.Offset
+= bitoffset
>> 3;
222 * Bitfield operation. We have to extract the field and store
223 * it in a temporary buffer so that we get it all right.
225 if (!memory_read_value(lvalue
, sizeof(*tmpbuf
), tmpbuf
)) return FALSE
;
226 mask
= 0xffffffff << (DWORD
)length
;
227 *tmpbuf
>>= bitoffset
& 7;
230 lvalue
->cookie
= DLV_HOST
;
231 lvalue
->addr
.Offset
= (DWORD
)tmpbuf
;
234 * OK, now we have the correct part of the number.
235 * Check to see whether the basic type is signed or not, and if so,
236 * we need to sign extend the number.
238 if (types_get_info(&lvalue
->type
, TI_GET_BASETYPE
, &bt
) &&
239 bt
== btInt
&& (*tmpbuf
& (1 << ((DWORD
)length
- 1))))
246 if (!memory_read_value(lvalue
, sizeof(*tmpbuf
), tmpbuf
)) return FALSE
;
251 /******************************************************************
252 * types_udt_find_element
255 BOOL
types_udt_find_element(struct dbg_lvalue
* lvalue
, const char* name
, long int* tmpbuf
)
258 char buffer
[sizeof(TI_FINDCHILDREN_PARAMS
) + 256 * sizeof(DWORD
)];
259 TI_FINDCHILDREN_PARAMS
* fcp
= (TI_FINDCHILDREN_PARAMS
*)buffer
;
263 struct dbg_type type
;
265 if (!types_get_info(&lvalue
->type
, TI_GET_SYMTAG
, &tag
) ||
269 if (types_get_info(&lvalue
->type
, TI_GET_CHILDRENCOUNT
, &count
))
274 fcp
->Count
= min(count
, 256);
275 if (types_get_info(&lvalue
->type
, TI_FINDCHILDREN
, fcp
))
277 type
.module
= lvalue
->type
.module
;
278 for (i
= 0; i
< min(fcp
->Count
, count
); i
++)
281 type
.id
= fcp
->ChildId
[i
];
282 types_get_info(&type
, TI_GET_SYMNAME
, &ptr
);
284 WideCharToMultiByte(CP_ACP
, 0, ptr
, -1, tmp
, sizeof(tmp
), NULL
, NULL
);
285 HeapFree(GetProcessHeap(), 0, ptr
);
286 if (strcmp(tmp
, name
)) continue;
288 return types_get_udt_element_lvalue(lvalue
, &type
, tmpbuf
);
291 count
-= min(count
, 256);
298 /******************************************************************
301 * Grab an element from an array
303 BOOL
types_array_index(const struct dbg_lvalue
* lvalue
, int index
,
304 struct dbg_lvalue
* result
)
306 struct dbg_type type
= lvalue
->type
;
310 if (!types_get_real_type(&type
, &tag
)) return FALSE
;
313 case SymTagArrayType
:
314 types_get_info(&type
, TI_GET_COUNT
, &count
);
315 if (index
< 0 || index
>= count
) return FALSE
;
317 case SymTagPointerType
:
318 /* Contents of array share same data (addr mode, module...) */
321 * Get the base type, so we know how much to index by.
323 types_get_info(&type
, TI_GET_TYPE
, &result
->type
.id
);
324 types_get_info(&result
->type
, TI_GET_LENGTH
, &length
);
325 memory_read_value(lvalue
, sizeof(result
->addr
.Offset
), &result
->addr
.Offset
);
326 result
->addr
.Offset
+= index
* (DWORD
)length
;
336 unsigned long result
; /* out: the found type */
337 enum SymTagEnum tag
; /* in: the tag to look for */
340 unsigned long typeid; /* when tag is SymTagUDT */
341 const char* name
; /* when tag is SymTagPointerType */
345 static BOOL CALLBACK
types_cb(PSYMBOL_INFO sym
, ULONG size
, void* _user
)
347 struct type_find_t
* user
= (struct type_find_t
*)_user
;
349 struct dbg_type type
;
352 if (sym
->Tag
== user
->tag
)
357 if (!strcmp(user
->u
.name
, sym
->Name
))
359 user
->result
= sym
->TypeIndex
;
363 case SymTagPointerType
:
364 type
.module
= sym
->ModBase
;
365 type
.id
= sym
->TypeIndex
;
366 if (types_get_info(&type
, TI_GET_TYPE
, &type_id
) && type_id
== user
->u
.typeid)
368 user
->result
= sym
->TypeIndex
;
378 /******************************************************************
381 * Should look up in module based at linear whether (typeid*) exists
382 * Otherwise, we could create it locally
384 struct dbg_type
types_find_pointer(const struct dbg_type
* type
)
386 struct type_find_t f
;
389 f
.result
= dbg_itype_none
;
390 f
.tag
= SymTagPointerType
;
391 f
.u
.typeid = type
->id
;
392 SymEnumTypes(dbg_curr_process
->handle
, type
->module
, types_cb
, &f
);
393 ret
.module
= type
->module
;
398 /******************************************************************
401 * Should look up in the module based at linear address whether a type
402 * named 'name' and with the correct tag exists
404 struct dbg_type
types_find_type(unsigned long linear
, const char* name
, enum SymTagEnum tag
)
407 struct type_find_t f
;
410 f
.result
= dbg_itype_none
;
413 SymEnumTypes(dbg_curr_process
->handle
, linear
, types_cb
, &f
);
419 /***********************************************************************
422 * Implementation of the 'print' command.
424 void print_value(const struct dbg_lvalue
* lvalue
, char format
, int level
)
426 struct dbg_type type
= lvalue
->type
;
427 struct dbg_lvalue lvalue_field
;
433 if (!types_get_real_type(&type
, &tag
))
435 WINE_FIXME("---error\n");
439 if (type
.id
== dbg_itype_none
)
441 /* No type, just print the addr value */
442 print_bare_address(&lvalue
->addr
);
446 if (format
== 'i' || format
== 's' || format
== 'w' || format
== 'b' || format
== 'g')
448 dbg_printf("Format specifier '%c' is meaningless in 'print' command\n", format
);
456 case SymTagPointerType
:
457 /* FIXME: this in not 100% optimal (as we're going through the typedef handling
460 print_basic(lvalue
, 1, format
);
463 if (types_get_info(&type
, TI_GET_CHILDRENCOUNT
, &count
))
465 char buffer
[sizeof(TI_FINDCHILDREN_PARAMS
) + 256 * sizeof(DWORD
)];
466 TI_FINDCHILDREN_PARAMS
* fcp
= (TI_FINDCHILDREN_PARAMS
*)buffer
;
470 struct dbg_type sub_type
;
476 fcp
->Count
= min(count
, 256);
477 if (types_get_info(&type
, TI_FINDCHILDREN
, fcp
))
479 for (i
= 0; i
< min(fcp
->Count
, count
); i
++)
482 sub_type
.module
= type
.module
;
483 sub_type
.id
= fcp
->ChildId
[i
];
484 types_get_info(&sub_type
, TI_GET_SYMNAME
, &ptr
);
486 WideCharToMultiByte(CP_ACP
, 0, ptr
, -1, tmp
, sizeof(tmp
), NULL
, NULL
);
487 dbg_printf("%s=", tmp
);
488 HeapFree(GetProcessHeap(), 0, ptr
);
489 lvalue_field
= *lvalue
;
490 if (types_get_udt_element_lvalue(&lvalue_field
, &sub_type
, &tmpbuf
))
492 print_value(&lvalue_field
, format
, level
+ 1);
494 if (i
< min(fcp
->Count
, count
) - 1 || count
> 256) dbg_printf(", ");
497 count
-= min(count
, 256);
503 case SymTagArrayType
:
505 * Loop over all of the entries, printing stuff as we go.
508 types_get_info(&type
, TI_GET_COUNT
, &count
);
509 types_get_info(&type
, TI_GET_LENGTH
, &size
);
516 * Special handling for character arrays.
518 /* FIXME should check basic type here (should be a char!!!!)... */
519 len
= min(count
, sizeof(buffer
));
520 memory_get_string(dbg_curr_process
,
521 memory_to_linear_addr(&lvalue
->addr
),
522 lvalue
->cookie
== DLV_TARGET
, TRUE
, buffer
, len
);
523 dbg_printf("\"%s%s\"", buffer
, (len
< count
) ? "..." : "");
526 lvalue_field
= *lvalue
;
527 types_get_info(&type
, TI_GET_TYPE
, &lvalue_field
.type
.id
);
529 for (i
= 0; i
< count
; i
++)
531 print_value(&lvalue_field
, format
, level
+ 1);
532 lvalue_field
.addr
.Offset
+= size
/ count
;
533 dbg_printf((i
== count
- 1) ? "}" : ", ");
536 case SymTagFunctionType
:
537 dbg_printf("Function ");
538 print_bare_address(&lvalue
->addr
);
540 types_print_type(&type
, FALSE
);
543 lvalue_field
= *lvalue
;
544 types_get_info(&lvalue
->type
, TI_GET_TYPE
, &lvalue_field
.type
.id
);
545 print_value(&lvalue_field
, format
, level
);
548 WINE_FIXME("Unknown tag (%u)\n", tag
);
549 RaiseException(DEBUG_STATUS_INTERNAL_ERROR
, 0, 0, NULL
);
555 if (level
== 0) dbg_printf("\n");
558 static BOOL CALLBACK
print_types_cb(PSYMBOL_INFO sym
, ULONG size
, void* ctx
)
560 struct dbg_type type
;
561 type
.module
= sym
->ModBase
;
562 type
.id
= sym
->TypeIndex
;
563 dbg_printf("Mod: %08x ID: %08lx \n", type
.module
, type
.id
);
564 types_print_type(&type
, TRUE
);
569 static BOOL CALLBACK
print_types_mod_cb(PSTR mod_name
, DWORD base
, void* ctx
)
571 return SymEnumTypes(dbg_curr_process
->handle
, base
, print_types_cb
, ctx
);
574 int print_types(void)
576 SymEnumerateModules(dbg_curr_process
->handle
, print_types_mod_cb
, NULL
);
580 int types_print_type(const struct dbg_type
* type
, BOOL details
)
585 DWORD tag
, udt
, count
;
586 struct dbg_type subtype
;
588 if (type
->id
== dbg_itype_none
|| !types_get_info(type
, TI_GET_SYMTAG
, &tag
))
590 dbg_printf("--invalid--<%lxh>--", type
->id
);
594 if (types_get_info(type
, TI_GET_SYMNAME
, &ptr
) && ptr
)
596 WideCharToMultiByte(CP_ACP
, 0, ptr
, -1, tmp
, sizeof(tmp
), NULL
, NULL
);
598 HeapFree(GetProcessHeap(), 0, ptr
);
600 else name
= "--none--";
605 if (details
) dbg_printf("Basic<%s>", name
); else dbg_printf("%s", name
);
607 case SymTagPointerType
:
608 types_get_info(type
, TI_GET_TYPE
, &subtype
.id
);
609 subtype
.module
= type
->module
;
610 types_print_type(&subtype
, FALSE
);
614 types_get_info(type
, TI_GET_UDTKIND
, &udt
);
617 case UdtStruct
: dbg_printf("struct %s", name
); break;
618 case UdtUnion
: dbg_printf("union %s", name
); break;
619 case UdtClass
: dbg_printf("class %s", name
); break;
620 default: WINE_ERR("Unsupported UDT type (%d) for %s\n", udt
, name
); break;
623 types_get_info(type
, TI_GET_CHILDRENCOUNT
, &count
))
625 char buffer
[sizeof(TI_FINDCHILDREN_PARAMS
) + 256 * sizeof(DWORD
)];
626 TI_FINDCHILDREN_PARAMS
* fcp
= (TI_FINDCHILDREN_PARAMS
*)buffer
;
630 struct dbg_type type_elt
;
636 fcp
->Count
= min(count
, 256);
637 if (types_get_info(type
, TI_FINDCHILDREN
, fcp
))
639 for (i
= 0; i
< min(fcp
->Count
, count
); i
++)
642 type_elt
.module
= type
->module
;
643 type_elt
.id
= fcp
->ChildId
[i
];
644 types_get_info(&type_elt
, TI_GET_SYMNAME
, &ptr
);
646 WideCharToMultiByte(CP_ACP
, 0, ptr
, -1, tmp
, sizeof(tmp
), NULL
, NULL
);
647 HeapFree(GetProcessHeap(), 0, ptr
);
648 dbg_printf("%s", tmp
);
649 if (types_get_info(&type_elt
, TI_GET_TYPE
, &type_elt
.id
))
652 types_print_type(&type_elt
, details
);
654 if (i
< min(fcp
->Count
, count
) - 1 || count
> 256) dbg_printf(", ");
657 count
-= min(count
, 256);
663 case SymTagArrayType
:
664 types_get_info(type
, TI_GET_TYPE
, &subtype
.id
);
665 subtype
.module
= type
->module
;
666 types_print_type(&subtype
, details
);
667 dbg_printf(" %s[]", name
);
670 dbg_printf("enum %s", name
);
672 case SymTagFunctionType
:
673 types_get_info(type
, TI_GET_TYPE
, &subtype
.id
);
674 subtype
.module
= type
->module
;
675 types_print_type(&subtype
, FALSE
);
676 dbg_printf(" (*%s)(", name
);
677 if (types_get_info(type
, TI_GET_CHILDRENCOUNT
, &count
))
679 char buffer
[sizeof(TI_FINDCHILDREN_PARAMS
) + 256 * sizeof(DWORD
)];
680 TI_FINDCHILDREN_PARAMS
* fcp
= (TI_FINDCHILDREN_PARAMS
*)buffer
;
686 fcp
->Count
= min(count
, 256);
687 if (types_get_info(type
, TI_FINDCHILDREN
, fcp
))
689 for (i
= 0; i
< min(fcp
->Count
, count
); i
++)
691 subtype
.id
= fcp
->ChildId
[i
];
692 types_get_info(&subtype
, TI_GET_TYPE
, &subtype
.id
);
693 types_print_type(&subtype
, FALSE
);
694 if (i
< min(fcp
->Count
, count
) - 1 || count
> 256) dbg_printf(", ");
697 count
-= min(count
, 256);
707 WINE_ERR("Unknown type %u for %s\n", tag
, name
);
714 /* helper to typecast pInfo to its expected type (_t) */
715 #define X(_t) (*((_t*)pInfo))
717 BOOL
types_get_info(const struct dbg_type
* type
, IMAGEHLP_SYMBOL_TYPE_INFO ti
, void* pInfo
)
719 if (type
->id
== dbg_itype_none
) return FALSE
;
720 if (type
->module
!= 0)
723 ret
= SymGetTypeInfo(dbg_curr_process
->handle
, type
->module
, type
->id
, ti
, pInfo
);
725 SymGetTypeInfo(dbg_curr_process
->handle
, type
->module
, type
->id
, TI_GET_SYMTAG
, &tag
) &&
726 tag
== SymTagBaseType
&&
727 SymGetTypeInfo(dbg_curr_process
->handle
, type
->module
, type
->id
, TI_GET_BASETYPE
, &bt
))
729 static const WCHAR voidW
[] = {'v','o','i','d','\0'};
730 static const WCHAR charW
[] = {'c','h','a','r','\0'};
731 static const WCHAR wcharW
[] = {'W','C','H','A','R','\0'};
732 static const WCHAR intW
[] = {'i','n','t','\0'};
733 static const WCHAR uintW
[] = {'u','n','s','i','g','n','e','d',' ','i','n','t','\0'};
734 static const WCHAR floatW
[] = {'f','l','o','a','t','\0'};
735 static const WCHAR boolW
[] = {'b','o','o','l','\0'};
736 static const WCHAR longW
[] = {'l','o','n','g',' ','i','n','t','\0'};
737 static const WCHAR ulongW
[] = {'u','n','s','i','g','n','e','d',' ','l','o','n','g',' ','i','n','t','\0'};
738 static const WCHAR complexW
[] = {'c','o','m','p','l','e','x','\0'};
739 const WCHAR
* name
= NULL
;
743 case btVoid
: name
= voidW
; break;
744 case btChar
: name
= charW
; break;
745 case btWChar
: name
= wcharW
; break;
746 case btInt
: name
= intW
; break;
747 case btUInt
: name
= uintW
; break;
748 case btFloat
: name
= floatW
; break;
749 case btBool
: name
= boolW
; break;
750 case btLong
: name
= longW
; break;
751 case btULong
: name
= ulongW
; break;
752 case btComplex
: name
= complexW
; break;
753 default: WINE_FIXME("Unsupported basic type %u\n", bt
); return FALSE
;
755 X(WCHAR
*) = HeapAlloc(GetProcessHeap(), 0, (lstrlenW(name
) + 1) * sizeof(WCHAR
));
758 lstrcpyW(X(WCHAR
*), name
);
765 assert(type
->id
>= dbg_itype_first
);
769 case dbg_itype_unsigned_int
:
772 case TI_GET_SYMTAG
: X(DWORD
) = SymTagBaseType
; break;
773 case TI_GET_LENGTH
: X(DWORD64
) = 4; break;
774 case TI_GET_BASETYPE
: X(DWORD
) = btUInt
; break;
775 default: WINE_FIXME("unsupported %u for u-int\n", ti
); return FALSE
;
778 case dbg_itype_signed_int
:
781 case TI_GET_SYMTAG
: X(DWORD
) = SymTagBaseType
; break;
782 case TI_GET_LENGTH
: X(DWORD64
) = 4; break;
783 case TI_GET_BASETYPE
: X(DWORD
) = btInt
; break;
784 default: WINE_FIXME("unsupported %u for s-int\n", ti
); return FALSE
;
787 case dbg_itype_unsigned_short_int
:
790 case TI_GET_SYMTAG
: X(DWORD
) = SymTagBaseType
; break;
791 case TI_GET_LENGTH
: X(DWORD64
) = 2; break;
792 case TI_GET_BASETYPE
: X(DWORD
) = btUInt
; break;
793 default: WINE_FIXME("unsupported %u for u-short int\n", ti
); return FALSE
;
796 case dbg_itype_signed_short_int
:
799 case TI_GET_SYMTAG
: X(DWORD
) = SymTagBaseType
; break;
800 case TI_GET_LENGTH
: X(DWORD64
) = 2; break;
801 case TI_GET_BASETYPE
: X(DWORD
) = btInt
; break;
802 default: WINE_FIXME("unsupported %u for s-short int\n", ti
); return FALSE
;
805 case dbg_itype_unsigned_char_int
:
808 case TI_GET_SYMTAG
: X(DWORD
) = SymTagBaseType
; break;
809 case TI_GET_LENGTH
: X(DWORD64
) = 1; break;
810 case TI_GET_BASETYPE
: X(DWORD
) = btUInt
; break;
811 default: WINE_FIXME("unsupported %u for u-char int\n", ti
); return FALSE
;
814 case dbg_itype_signed_char_int
:
817 case TI_GET_SYMTAG
: X(DWORD
) = SymTagBaseType
; break;
818 case TI_GET_LENGTH
: X(DWORD64
) = 1; break;
819 case TI_GET_BASETYPE
: X(DWORD
) = btInt
; break;
820 default: WINE_FIXME("unsupported %u for s-char int\n", ti
); return FALSE
;
826 case TI_GET_SYMTAG
: X(DWORD
) = SymTagBaseType
; break;
827 case TI_GET_LENGTH
: X(DWORD64
) = 1; break;
828 case TI_GET_BASETYPE
: X(DWORD
) = btChar
; break;
829 default: WINE_FIXME("unsupported %u for char int\n", ti
); return FALSE
;
832 case dbg_itype_astring
:
835 case TI_GET_SYMTAG
: X(DWORD
) = SymTagPointerType
; break;
836 case TI_GET_LENGTH
: X(DWORD64
) = 4; break;
837 case TI_GET_TYPE
: X(DWORD
) = dbg_itype_char
; break;
838 default: WINE_FIXME("unsupported %u for a string\n", ti
); return FALSE
;
841 case dbg_itype_segptr
:
844 case TI_GET_SYMTAG
: X(DWORD
) = SymTagBaseType
; break;
845 case TI_GET_LENGTH
: X(DWORD64
) = 4; break;
846 case TI_GET_BASETYPE
: X(DWORD
) = btInt
; break;
847 default: WINE_FIXME("unsupported %u for seg-ptr\n", ti
); return FALSE
;
850 default: WINE_FIXME("unsupported type id 0x%lx\n", type
->id
);