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(PCSTR mod_name, ULONG base, PVOID ctx)
571 return SymEnumTypes(dbg_curr_process->handle, base, print_types_cb, ctx);
574 int print_types(void)
576 if (!dbg_curr_process)
578 dbg_printf("No known process, cannot print types\n");
581 SymEnumerateModules(dbg_curr_process->handle, print_types_mod_cb, NULL);
585 int types_print_type(const struct dbg_type* type, BOOL details)
590 DWORD tag, udt, count;
591 struct dbg_type subtype;
593 if (type->id == dbg_itype_none || !types_get_info(type, TI_GET_SYMTAG, &tag))
595 dbg_printf("--invalid--<%lxh>--", type->id);
599 if (types_get_info(type, TI_GET_SYMNAME, &ptr) && ptr)
601 WideCharToMultiByte(CP_ACP, 0, ptr, -1, tmp, sizeof(tmp), NULL, NULL);
603 HeapFree(GetProcessHeap(), 0, ptr);
605 else name = "--none--";
610 if (details) dbg_printf("Basic<%s>", name); else dbg_printf("%s", name);
612 case SymTagPointerType:
613 types_get_info(type, TI_GET_TYPE, &subtype.id);
614 subtype.module = type->module;
615 types_print_type(&subtype, FALSE);
619 types_get_info(type, TI_GET_UDTKIND, &udt);
622 case UdtStruct: dbg_printf("struct %s", name); break;
623 case UdtUnion: dbg_printf("union %s", name); break;
624 case UdtClass: dbg_printf("class %s", name); break;
625 default: WINE_ERR("Unsupported UDT type (%d) for %s\n", udt, name); break;
628 types_get_info(type, TI_GET_CHILDRENCOUNT, &count))
630 char buffer[sizeof(TI_FINDCHILDREN_PARAMS) + 256 * sizeof(DWORD)];
631 TI_FINDCHILDREN_PARAMS* fcp = (TI_FINDCHILDREN_PARAMS*)buffer;
635 struct dbg_type type_elt;
641 fcp->Count = min(count, 256);
642 if (types_get_info(type, TI_FINDCHILDREN, fcp))
644 for (i = 0; i < min(fcp->Count, count); i++)
647 type_elt.module = type->module;
648 type_elt.id = fcp->ChildId[i];
649 types_get_info(&type_elt, TI_GET_SYMNAME, &ptr);
651 WideCharToMultiByte(CP_ACP, 0, ptr, -1, tmp, sizeof(tmp), NULL, NULL);
652 HeapFree(GetProcessHeap(), 0, ptr);
653 dbg_printf("%s", tmp);
654 if (types_get_info(&type_elt, TI_GET_TYPE, &type_elt.id))
657 types_print_type(&type_elt, details);
659 if (i < min(fcp->Count, count) - 1 || count > 256) dbg_printf(", ");
662 count -= min(count, 256);
668 case SymTagArrayType:
669 types_get_info(type, TI_GET_TYPE, &subtype.id);
670 subtype.module = type->module;
671 types_print_type(&subtype, details);
672 dbg_printf(" %s[]", name);
675 dbg_printf("enum %s", name);
677 case SymTagFunctionType:
678 types_get_info(type, TI_GET_TYPE, &subtype.id);
679 /* is the returned type the same object as function sig itself ? */
680 if (subtype.id != type->id)
682 subtype.module = type->module;
683 types_print_type(&subtype, FALSE);
687 dbg_printf("<ret_type=self>");
689 dbg_printf(" (*%s)(", name);
690 if (types_get_info(type, TI_GET_CHILDRENCOUNT, &count))
692 char buffer[sizeof(TI_FINDCHILDREN_PARAMS) + 256 * sizeof(DWORD)];
693 TI_FINDCHILDREN_PARAMS* fcp = (TI_FINDCHILDREN_PARAMS*)buffer;
699 fcp->Count = min(count, 256);
700 if (types_get_info(type, TI_FINDCHILDREN, fcp))
702 for (i = 0; i < min(fcp->Count, count); i++)
704 subtype.id = fcp->ChildId[i];
705 types_get_info(&subtype, TI_GET_TYPE, &subtype.id);
706 types_print_type(&subtype, FALSE);
707 if (i < min(fcp->Count, count) - 1 || count > 256) dbg_printf(", ");
710 count -= min(count, 256);
720 WINE_ERR("Unknown type %u for %s\n", tag, name);
727 /* helper to typecast pInfo to its expected type (_t) */
728 #define X(_t) (*((_t*)pInfo))
730 BOOL types_get_info(const struct dbg_type* type, IMAGEHLP_SYMBOL_TYPE_INFO ti, void* pInfo)
732 if (type->id == dbg_itype_none) return FALSE;
733 if (type->module != 0)
736 ret = SymGetTypeInfo(dbg_curr_process->handle, type->module, type->id, ti, pInfo);
738 SymGetTypeInfo(dbg_curr_process->handle, type->module, type->id, TI_GET_SYMTAG, &tag) &&
739 tag == SymTagBaseType &&
740 SymGetTypeInfo(dbg_curr_process->handle, type->module, type->id, TI_GET_BASETYPE, &bt))
742 static const WCHAR voidW[] = {'v','o','i','d','\0'};
743 static const WCHAR charW[] = {'c','h','a','r','\0'};
744 static const WCHAR wcharW[] = {'W','C','H','A','R','\0'};
745 static const WCHAR intW[] = {'i','n','t','\0'};
746 static const WCHAR uintW[] = {'u','n','s','i','g','n','e','d',' ','i','n','t','\0'};
747 static const WCHAR floatW[] = {'f','l','o','a','t','\0'};
748 static const WCHAR boolW[] = {'b','o','o','l','\0'};
749 static const WCHAR longW[] = {'l','o','n','g',' ','i','n','t','\0'};
750 static const WCHAR ulongW[] = {'u','n','s','i','g','n','e','d',' ','l','o','n','g',' ','i','n','t','\0'};
751 static const WCHAR complexW[] = {'c','o','m','p','l','e','x','\0'};
752 const WCHAR* name = NULL;
756 case btVoid: name = voidW; break;
757 case btChar: name = charW; break;
758 case btWChar: name = wcharW; break;
759 case btInt: name = intW; break;
760 case btUInt: name = uintW; break;
761 case btFloat: name = floatW; break;
762 case btBool: name = boolW; break;
763 case btLong: name = longW; break;
764 case btULong: name = ulongW; break;
765 case btComplex: name = complexW; break;
766 default: WINE_FIXME("Unsupported basic type %u\n", bt); return FALSE;
768 X(WCHAR*) = HeapAlloc(GetProcessHeap(), 0, (lstrlenW(name) + 1) * sizeof(WCHAR));
771 lstrcpyW(X(WCHAR*), name);
778 assert(type->id >= dbg_itype_first);
782 case dbg_itype_unsigned_int:
785 case TI_GET_SYMTAG: X(DWORD) = SymTagBaseType; break;
786 case TI_GET_LENGTH: X(DWORD64) = 4; break;
787 case TI_GET_BASETYPE: X(DWORD) = btUInt; break;
788 default: WINE_FIXME("unsupported %u for u-int\n", ti); return FALSE;
791 case dbg_itype_signed_int:
794 case TI_GET_SYMTAG: X(DWORD) = SymTagBaseType; break;
795 case TI_GET_LENGTH: X(DWORD64) = 4; break;
796 case TI_GET_BASETYPE: X(DWORD) = btInt; break;
797 default: WINE_FIXME("unsupported %u for s-int\n", ti); return FALSE;
800 case dbg_itype_unsigned_short_int:
803 case TI_GET_SYMTAG: X(DWORD) = SymTagBaseType; break;
804 case TI_GET_LENGTH: X(DWORD64) = 2; break;
805 case TI_GET_BASETYPE: X(DWORD) = btUInt; break;
806 default: WINE_FIXME("unsupported %u for u-short int\n", ti); return FALSE;
809 case dbg_itype_signed_short_int:
812 case TI_GET_SYMTAG: X(DWORD) = SymTagBaseType; break;
813 case TI_GET_LENGTH: X(DWORD64) = 2; break;
814 case TI_GET_BASETYPE: X(DWORD) = btInt; break;
815 default: WINE_FIXME("unsupported %u for s-short int\n", ti); return FALSE;
818 case dbg_itype_unsigned_char_int:
821 case TI_GET_SYMTAG: X(DWORD) = SymTagBaseType; break;
822 case TI_GET_LENGTH: X(DWORD64) = 1; break;
823 case TI_GET_BASETYPE: X(DWORD) = btUInt; break;
824 default: WINE_FIXME("unsupported %u for u-char int\n", ti); return FALSE;
827 case dbg_itype_signed_char_int:
830 case TI_GET_SYMTAG: X(DWORD) = SymTagBaseType; break;
831 case TI_GET_LENGTH: X(DWORD64) = 1; break;
832 case TI_GET_BASETYPE: X(DWORD) = btInt; break;
833 default: WINE_FIXME("unsupported %u for s-char int\n", ti); return FALSE;
839 case TI_GET_SYMTAG: X(DWORD) = SymTagBaseType; break;
840 case TI_GET_LENGTH: X(DWORD64) = 1; break;
841 case TI_GET_BASETYPE: X(DWORD) = btChar; break;
842 default: WINE_FIXME("unsupported %u for char int\n", ti); return FALSE;
845 case dbg_itype_astring:
848 case TI_GET_SYMTAG: X(DWORD) = SymTagPointerType; break;
849 case TI_GET_LENGTH: X(DWORD64) = 4; break;
850 case TI_GET_TYPE: X(DWORD) = dbg_itype_char; break;
851 default: WINE_FIXME("unsupported %u for a string\n", ti); return FALSE;
854 case dbg_itype_segptr:
857 case TI_GET_SYMTAG: X(DWORD) = SymTagBaseType; break;
858 case TI_GET_LENGTH: X(DWORD64) = 4; break;
859 case TI_GET_BASETYPE: X(DWORD) = btInt; break;
860 default: WINE_FIXME("unsupported %u for seg-ptr\n", ti); return FALSE;
863 default: WINE_FIXME("unsupported type id 0x%lx\n", type->id);