Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
faf2880f
Commit
faf2880f
authored
Dec 06, 2001
by
Dave Hawkes
Committed by
Alexandre Julliard
Dec 06, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for some types of C++ debug info that can cause winedbg to crash.
parent
5446abe8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
101 additions
and
87 deletions
+101
-87
msc.c
debugger/msc.c
+87
-85
types.c
debugger/types.c
+14
-2
No files found.
debugger/msc.c
View file @
faf2880f
...
...
@@ -540,153 +540,153 @@ union codeview_type
{
struct
{
short
int
len
;
short
int
id
;
unsigned
short
int
len
;
short
int
id
;
}
generic
;
struct
{
short
int
len
;
short
int
id
;
short
int
attribute
;
short
int
datatype
;
unsigned
char
variant
[
1
];
unsigned
short
int
len
;
short
int
id
;
short
int
attribute
;
short
int
datatype
;
unsigned
char
variant
[
1
];
}
pointer
;
struct
{
short
int
len
;
short
int
id
;
unsigned
int
datatype
;
unsigned
int
attribute
;
unsigned
char
variant
[
1
];
unsigned
short
int
len
;
short
int
id
;
unsigned
int
datatype
;
unsigned
int
attribute
;
unsigned
char
variant
[
1
];
}
pointer32
;
struct
{
short
int
len
;
short
int
id
;
unsigned
char
nbits
;
unsigned
char
bitoff
;
unsigned
short
type
;
unsigned
short
int
len
;
short
int
id
;
unsigned
char
nbits
;
unsigned
char
bitoff
;
unsigned
short
type
;
}
bitfield
;
struct
{
short
int
len
;
short
int
id
;
unsigned
int
type
;
unsigned
char
nbits
;
unsigned
char
bitoff
;
unsigned
short
int
len
;
short
int
id
;
unsigned
int
type
;
unsigned
char
nbits
;
unsigned
char
bitoff
;
}
bitfield32
;
struct
{
short
int
len
;
short
int
id
;
short
int
elemtype
;
short
int
idxtype
;
unsigned
short
int
arrlen
;
/* numeric leaf */
unsigned
short
int
len
;
short
int
id
;
short
int
elemtype
;
short
int
idxtype
;
unsigned
short
int
arrlen
;
/* numeric leaf */
#if 0
unsigned char
name[1];
unsigned char
name[1];
#endif
}
array
;
struct
{
short
int
len
;
short
int
id
;
unsigned
int
elemtype
;
unsigned
int
idxtype
;
unsigned
short
int
arrlen
;
/* numeric leaf */
unsigned
short
int
len
;
short
int
id
;
unsigned
int
elemtype
;
unsigned
int
idxtype
;
unsigned
short
int
arrlen
;
/* numeric leaf */
#if 0
unsigned char
name[1];
unsigned char
name[1];
#endif
}
array32
;
struct
{
short
int
len
;
short
int
id
;
short
int
n_element
;
short
int
fieldlist
;
short
int
property
;
short
int
derived
;
short
int
vshape
;
unsigned
short
int
structlen
;
/* numeric leaf */
unsigned
short
int
len
;
short
int
id
;
short
int
n_element
;
short
int
fieldlist
;
short
int
property
;
short
int
derived
;
short
int
vshape
;
unsigned
short
int
structlen
;
/* numeric leaf */
#if 0
unsigned char
name[1];
unsigned char
name[1];
#endif
}
structure
;
struct
{
short
int
len
;
short
int
id
;
short
int
n_element
;
short
int
property
;
unsigned
int
fieldlist
;
unsigned
int
derived
;
unsigned
int
vshape
;
unsigned
short
int
structlen
;
/* numeric leaf */
unsigned
short
int
len
;
short
int
id
;
short
int
n_element
;
short
int
property
;
unsigned
int
fieldlist
;
unsigned
int
derived
;
unsigned
int
vshape
;
unsigned
short
int
structlen
;
/* numeric leaf */
#if 0
unsigned char
name[1];
unsigned char
name[1];
#endif
}
structure32
;
struct
{
short
int
len
;
short
int
id
;
short
int
count
;
short
int
fieldlist
;
short
int
property
;
unsigned
short
int
un_len
;
/* numeric leaf */
unsigned
short
int
len
;
short
int
id
;
short
int
count
;
short
int
fieldlist
;
short
int
property
;
unsigned
short
int
un_len
;
/* numeric leaf */
#if 0
unsigned char
name[1];
unsigned char
name[1];
#endif
}
t_union
;
struct
{
short
int
len
;
short
int
id
;
short
int
count
;
short
int
property
;
unsigned
int
fieldlist
;
unsigned
short
int
un_len
;
/* numeric leaf */
unsigned
short
int
len
;
short
int
id
;
short
int
count
;
short
int
property
;
unsigned
int
fieldlist
;
unsigned
short
int
un_len
;
/* numeric leaf */
#if 0
unsigned char
name[1];
unsigned char
name[1];
#endif
}
t_union32
;
struct
{
short
int
len
;
short
int
id
;
short
int
count
;
short
int
type
;
short
int
field
;
short
int
property
;
unsigned
char
name
[
1
];
unsigned
short
int
len
;
short
int
id
;
short
int
count
;
short
int
type
;
short
int
field
;
short
int
property
;
unsigned
char
name
[
1
];
}
enumeration
;
struct
{
short
int
len
;
short
int
id
;
short
int
count
;
short
int
property
;
unsigned
int
type
;
unsigned
int
field
;
unsigned
char
name
[
1
];
unsigned
short
int
len
;
short
int
id
;
short
int
count
;
short
int
property
;
unsigned
int
type
;
unsigned
int
field
;
unsigned
char
name
[
1
];
}
enumeration32
;
struct
{
short
int
len
;
short
int
id
;
unsigned
char
list
[
1
];
unsigned
short
int
len
;
short
int
id
;
unsigned
char
list
[
1
];
}
fieldlist
;
};
...
...
@@ -1569,7 +1569,8 @@ DEBUG_AddCVType_Enum( unsigned int typeno, char *name, unsigned int fieldlist )
struct
datatype
*
list
=
DEBUG_GetCVType
(
fieldlist
);
if
(
list
)
DEBUG_CopyFieldlist
(
dt
,
list
);
if
(
DEBUG_CopyFieldlist
(
dt
,
list
)
==
FALSE
)
return
FALSE
;
return
DEBUG_AddCVType
(
typeno
,
dt
);
}
...
...
@@ -1583,7 +1584,8 @@ DEBUG_AddCVType_Struct( unsigned int typeno, char *name, int structlen, unsigned
if
(
list
)
{
DEBUG_SetStructSize
(
dt
,
structlen
);
DEBUG_CopyFieldlist
(
dt
,
list
);
if
(
DEBUG_CopyFieldlist
(
dt
,
list
)
==
FALSE
)
return
FALSE
;
}
return
DEBUG_AddCVType
(
typeno
,
dt
);
...
...
debugger/types.c
View file @
faf2880f
...
...
@@ -569,8 +569,14 @@ DEBUG_SetStructSize(struct datatype * dt, int size)
int
DEBUG_CopyFieldlist
(
struct
datatype
*
dt
,
struct
datatype
*
dt2
)
{
assert
(
dt
->
type
==
dt2
->
type
&&
((
dt
->
type
==
DT_STRUCT
)
||
(
dt
->
type
==
DT_ENUM
)));
if
(
!
(
dt
->
type
==
dt2
->
type
&&
((
dt
->
type
==
DT_STRUCT
)
||
(
dt
->
type
==
DT_ENUM
))))
{
DEBUG_Printf
(
DBG_CHN_MESG
,
"Error: Copyfield list mismatch (%d<>%d): "
,
dt
->
type
,
dt2
->
type
);
DEBUG_PrintTypeCast
(
dt
);
DEBUG_Printf
(
DBG_CHN_MESG
,
" "
);
DEBUG_PrintTypeCast
(
dt2
);
DEBUG_Printf
(
DBG_CHN_MESG
,
"
\n
"
);
return
FALSE
;
}
if
(
dt
->
type
==
DT_STRUCT
)
{
...
...
@@ -1024,6 +1030,12 @@ DEBUG_PrintTypeCast(const struct datatype * dt)
{
const
char
*
name
=
"none"
;
if
(
dt
==
NULL
)
{
DEBUG_Printf
(
DBG_CHN_MESG
,
"--invalid--"
);
return
FALSE
;
}
if
(
dt
->
name
!=
NULL
)
{
name
=
dt
->
name
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment