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
cf1cd335
Commit
cf1cd335
authored
Jan 13, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Support pointer types of various sizes.
parent
06f76236
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
7 deletions
+10
-7
dbghelp_private.h
dlls/dbghelp/dbghelp_private.h
+3
-1
dwarf.c
dlls/dbghelp/dwarf.c
+3
-3
msc.c
dlls/dbghelp/msc.c
+0
-0
stabs.c
dlls/dbghelp/stabs.c
+1
-1
type.c
dlls/dbghelp/type.c
+3
-2
No files found.
dlls/dbghelp/dbghelp_private.h
View file @
cf1cd335
...
@@ -287,6 +287,7 @@ struct symt_pointer
...
@@ -287,6 +287,7 @@ struct symt_pointer
{
{
struct
symt
symt
;
struct
symt
symt
;
struct
symt
*
pointsto
;
struct
symt
*
pointsto
;
unsigned
long
size
;
};
};
struct
symt_typedef
struct
symt_typedef
...
@@ -724,7 +725,8 @@ extern BOOL symt_add_function_signature_parameter(struct module* module,
...
@@ -724,7 +725,8 @@ extern BOOL symt_add_function_signature_parameter(struct module* module,
struct
symt
*
param
);
struct
symt
*
param
);
extern
struct
symt_pointer
*
extern
struct
symt_pointer
*
symt_new_pointer
(
struct
module
*
module
,
symt_new_pointer
(
struct
module
*
module
,
struct
symt
*
ref_type
);
struct
symt
*
ref_type
,
unsigned
long
size
);
extern
struct
symt_typedef
*
extern
struct
symt_typedef
*
symt_new_typedef
(
struct
module
*
module
,
struct
symt
*
ref
,
symt_new_typedef
(
struct
module
*
module
,
struct
symt
*
ref
,
const
char
*
name
);
const
char
*
name
);
dlls/dbghelp/dwarf.c
View file @
cf1cd335
...
@@ -1098,13 +1098,13 @@ static struct symt* dwarf2_parse_pointer_type(dwarf2_parse_context_t* ctx,
...
@@ -1098,13 +1098,13 @@ static struct symt* dwarf2_parse_pointer_type(dwarf2_parse_context_t* ctx,
TRACE
(
"%s, for %s
\n
"
,
dwarf2_debug_ctx
(
ctx
),
dwarf2_debug_di
(
di
));
TRACE
(
"%s, for %s
\n
"
,
dwarf2_debug_ctx
(
ctx
),
dwarf2_debug_di
(
di
));
if
(
!
dwarf2_find_attribute
(
ctx
,
di
,
DW_AT_byte_size
,
&
size
))
size
.
u
.
uvalue
=
0
;
if
(
!
dwarf2_find_attribute
(
ctx
,
di
,
DW_AT_byte_size
,
&
size
))
size
.
u
.
uvalue
=
sizeof
(
void
*
)
;
if
(
!
(
ref_type
=
dwarf2_lookup_type
(
ctx
,
di
)))
if
(
!
(
ref_type
=
dwarf2_lookup_type
(
ctx
,
di
)))
{
{
ref_type
=
ctx
->
symt_cache
[
sc_void
];
ref_type
=
ctx
->
symt_cache
[
sc_void
];
assert
(
ref_type
);
assert
(
ref_type
);
}
}
di
->
symt
=
&
symt_new_pointer
(
ctx
->
module
,
ref_type
)
->
symt
;
di
->
symt
=
&
symt_new_pointer
(
ctx
->
module
,
ref_type
,
size
.
u
.
uvalue
)
->
symt
;
if
(
di
->
abbrev
->
have_child
)
FIXME
(
"Unsupported children
\n
"
);
if
(
di
->
abbrev
->
have_child
)
FIXME
(
"Unsupported children
\n
"
);
return
di
->
symt
;
return
di
->
symt
;
}
}
...
@@ -1199,7 +1199,7 @@ static struct symt* dwarf2_parse_reference_type(dwarf2_parse_context_t* ctx,
...
@@ -1199,7 +1199,7 @@ static struct symt* dwarf2_parse_reference_type(dwarf2_parse_context_t* ctx,
ref_type
=
dwarf2_lookup_type
(
ctx
,
di
);
ref_type
=
dwarf2_lookup_type
(
ctx
,
di
);
/* FIXME: for now, we hard-wire C++ references to pointers */
/* FIXME: for now, we hard-wire C++ references to pointers */
di
->
symt
=
&
symt_new_pointer
(
ctx
->
module
,
ref_type
)
->
symt
;
di
->
symt
=
&
symt_new_pointer
(
ctx
->
module
,
ref_type
,
sizeof
(
void
*
)
)
->
symt
;
if
(
di
->
abbrev
->
have_child
)
FIXME
(
"Unsupported children
\n
"
);
if
(
di
->
abbrev
->
have_child
)
FIXME
(
"Unsupported children
\n
"
);
...
...
dlls/dbghelp/msc.c
View file @
cf1cd335
This diff is collapsed.
Click to expand it.
dlls/dbghelp/stabs.c
View file @
cf1cd335
...
@@ -848,7 +848,7 @@ static int stabs_pts_read_type_def(struct ParseTypedefData* ptd, const char* typ
...
@@ -848,7 +848,7 @@ static int stabs_pts_read_type_def(struct ParseTypedefData* ptd, const char* typ
case
'*'
:
case
'*'
:
case
'&'
:
case
'&'
:
PTS_ABORTIF
(
ptd
,
stabs_pts_read_type_def
(
ptd
,
NULL
,
&
ref_dt
)
==
-
1
);
PTS_ABORTIF
(
ptd
,
stabs_pts_read_type_def
(
ptd
,
NULL
,
&
ref_dt
)
==
-
1
);
new_dt
=
&
symt_new_pointer
(
ptd
->
module
,
ref_dt
)
->
symt
;
new_dt
=
&
symt_new_pointer
(
ptd
->
module
,
ref_dt
,
sizeof
(
void
*
)
)
->
symt
;
break
;
break
;
case
'k'
:
/* 'const' modifier */
case
'k'
:
/* 'const' modifier */
case
'B'
:
/* 'volatile' modifier */
case
'B'
:
/* 'volatile' modifier */
...
...
dlls/dbghelp/type.c
View file @
cf1cd335
...
@@ -356,7 +356,7 @@ BOOL symt_add_function_signature_parameter(struct module* module,
...
@@ -356,7 +356,7 @@ BOOL symt_add_function_signature_parameter(struct module* module,
return
TRUE
;
return
TRUE
;
}
}
struct
symt_pointer
*
symt_new_pointer
(
struct
module
*
module
,
struct
symt
*
ref_type
)
struct
symt_pointer
*
symt_new_pointer
(
struct
module
*
module
,
struct
symt
*
ref_type
,
unsigned
long
size
)
{
{
struct
symt_pointer
*
sym
;
struct
symt_pointer
*
sym
;
...
@@ -364,6 +364,7 @@ struct symt_pointer* symt_new_pointer(struct module* module, struct symt* ref_ty
...
@@ -364,6 +364,7 @@ struct symt_pointer* symt_new_pointer(struct module* module, struct symt* ref_ty
{
{
sym
->
symt
.
tag
=
SymTagPointerType
;
sym
->
symt
.
tag
=
SymTagPointerType
;
sym
->
pointsto
=
ref_type
;
sym
->
pointsto
=
ref_type
;
sym
->
size
=
size
;
symt_add_type
(
module
,
&
sym
->
symt
);
symt_add_type
(
module
,
&
sym
->
symt
);
}
}
return
sym
;
return
sym
;
...
@@ -639,7 +640,7 @@ BOOL symt_get_info(struct module* module, const struct symt* type,
...
@@ -639,7 +640,7 @@ BOOL symt_get_info(struct module* module, const struct symt* type,
X
(
DWORD64
)
=
((
const
struct
symt_function
*
)
type
)
->
size
;
X
(
DWORD64
)
=
((
const
struct
symt_function
*
)
type
)
->
size
;
break
;
break
;
case
SymTagPointerType
:
case
SymTagPointerType
:
X
(
DWORD64
)
=
sizeof
(
void
*
)
;
X
(
DWORD64
)
=
((
const
struct
symt_pointer
*
)
type
)
->
size
;
break
;
break
;
case
SymTagUDT
:
case
SymTagUDT
:
X
(
DWORD64
)
=
((
const
struct
symt_udt
*
)
type
)
->
size
;
X
(
DWORD64
)
=
((
const
struct
symt_udt
*
)
type
)
->
size
;
...
...
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