Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5f9bcb13
Commit
5f9bcb13
authored
Nov 02, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscvpdb.h: Move parsing definitions to dbghelp.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
59a187ec
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
28 deletions
+20
-28
dbghelp_private.h
dlls/dbghelp/dbghelp_private.h
+15
-0
msc.c
dlls/dbghelp/msc.c
+5
-5
mscvpdb.h
include/wine/mscvpdb.h
+0
-23
No files found.
dlls/dbghelp/dbghelp_private.h
View file @
5f9bcb13
...
@@ -663,6 +663,21 @@ struct cpu
...
@@ -663,6 +663,21 @@ struct cpu
extern
struct
cpu
*
dbghelp_current_cpu
DECLSPEC_HIDDEN
;
extern
struct
cpu
*
dbghelp_current_cpu
DECLSPEC_HIDDEN
;
/* PDB and Codeview */
struct
msc_debug_info
{
struct
module
*
module
;
int
nsect
;
const
IMAGE_SECTION_HEADER
*
sectp
;
int
nomap
;
const
OMAP
*
omapp
;
const
BYTE
*
root
;
};
/* coff.c */
extern
BOOL
coff_process_info
(
const
struct
msc_debug_info
*
msc_dbg
)
DECLSPEC_HIDDEN
;
/* dbghelp.c */
/* dbghelp.c */
extern
struct
process
*
process_find_by_handle
(
HANDLE
hProcess
)
DECLSPEC_HIDDEN
;
extern
struct
process
*
process_find_by_handle
(
HANDLE
hProcess
)
DECLSPEC_HIDDEN
;
extern
BOOL
validate_addr64
(
DWORD64
addr
)
DECLSPEC_HIDDEN
;
extern
BOOL
validate_addr64
(
DWORD64
addr
)
DECLSPEC_HIDDEN
;
...
...
dlls/dbghelp/msc.c
View file @
5f9bcb13
...
@@ -1551,15 +1551,15 @@ static unsigned int codeview_map_offset(const struct msc_debug_info* msc_dbg,
...
@@ -1551,15 +1551,15 @@ static unsigned int codeview_map_offset(const struct msc_debug_info* msc_dbg,
unsigned
int
offset
)
unsigned
int
offset
)
{
{
int
nomap
=
msc_dbg
->
nomap
;
int
nomap
=
msc_dbg
->
nomap
;
const
OMAP
_DATA
*
omapp
=
msc_dbg
->
omapp
;
const
OMAP
*
omapp
=
msc_dbg
->
omapp
;
int
i
;
int
i
;
if
(
!
nomap
||
!
omapp
)
return
offset
;
if
(
!
nomap
||
!
omapp
)
return
offset
;
/* FIXME: use binary search */
/* FIXME: use binary search */
for
(
i
=
0
;
i
<
nomap
-
1
;
i
++
)
for
(
i
=
0
;
i
<
nomap
-
1
;
i
++
)
if
(
omapp
[
i
].
from
<=
offset
&&
omapp
[
i
+
1
].
from
>
offset
)
if
(
omapp
[
i
].
rva
<=
offset
&&
omapp
[
i
+
1
].
rva
>
offset
)
return
!
omapp
[
i
].
to
?
0
:
omapp
[
i
].
to
+
(
offset
-
omapp
[
i
].
from
);
return
!
omapp
[
i
].
rvaTo
?
0
:
omapp
[
i
].
rvaTo
+
(
offset
-
omapp
[
i
].
rva
);
return
0
;
return
0
;
}
}
...
@@ -3414,8 +3414,8 @@ BOOL pe_load_debug_directory(const struct process* pcs, struct module* module,
...
@@ -3414,8 +3414,8 @@ BOOL pe_load_debug_directory(const struct process* pcs, struct module* module,
{
{
if
(
dbg
[
i
].
Type
==
IMAGE_DEBUG_TYPE_OMAP_FROM_SRC
)
if
(
dbg
[
i
].
Type
==
IMAGE_DEBUG_TYPE_OMAP_FROM_SRC
)
{
{
msc_dbg
.
nomap
=
dbg
[
i
].
SizeOfData
/
sizeof
(
OMAP
_DATA
);
msc_dbg
.
nomap
=
dbg
[
i
].
SizeOfData
/
sizeof
(
OMAP
);
msc_dbg
.
omapp
=
(
const
OMAP
_DATA
*
)(
mapping
+
dbg
[
i
].
PointerToRawData
);
msc_dbg
.
omapp
=
(
const
OMAP
*
)(
mapping
+
dbg
[
i
].
PointerToRawData
);
break
;
break
;
}
}
}
}
...
...
include/wine/mscvpdb.h
View file @
5f9bcb13
...
@@ -2520,29 +2520,6 @@ typedef struct _PDB_FPO_DATA
...
@@ -2520,29 +2520,6 @@ typedef struct _PDB_FPO_DATA
#include "poppack.h"
#include "poppack.h"
/* ----------------------------------------------
* Information used for parsing
* ---------------------------------------------- */
typedef
struct
{
DWORD
from
;
DWORD
to
;
}
OMAP_DATA
;
struct
msc_debug_info
{
struct
module
*
module
;
int
nsect
;
const
IMAGE_SECTION_HEADER
*
sectp
;
int
nomap
;
const
OMAP_DATA
*
omapp
;
const
BYTE
*
root
;
};
/* coff.c */
extern
BOOL
coff_process_info
(
const
struct
msc_debug_info
*
msc_dbg
);
/* ===================================================
/* ===================================================
* The old CodeView stuff (for NB09 and NB11)
* The old CodeView stuff (for NB09 and NB11)
* =================================================== */
* =================================================== */
...
...
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