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
442b3441
Commit
442b3441
authored
Jul 27, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Simplify the "pointer to start of array" idiom.
parent
f93390f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
gdbproxy.c
programs/winedbg/gdbproxy.c
+1
-1
tgt_minidump.c
programs/winedbg/tgt_minidump.c
+5
-5
No files found.
programs/winedbg/gdbproxy.c
View file @
442b3441
...
...
@@ -1789,7 +1789,7 @@ static enum packet_return packet_query_remote_command(struct gdb_context* gdbctx
len
/=
2
;
hex_from
(
buffer
,
hxcmd
,
len
);
for
(
qd
=
&
query_details
[
0
]
;
qd
->
name
!=
NULL
;
qd
++
)
for
(
qd
=
query_details
;
qd
->
name
!=
NULL
;
qd
++
)
{
if
(
len
<
qd
->
len
||
strncmp
(
buffer
,
qd
->
name
,
qd
->
len
)
!=
0
)
continue
;
if
(
!
qd
->
with_arg
&&
len
!=
qd
->
len
)
continue
;
...
...
programs/winedbg/tgt_minidump.c
View file @
442b3441
...
...
@@ -102,7 +102,7 @@ static BOOL tgt_process_minidump_read(HANDLE hProcess, const void* addr,
MemoryListStream
,
NULL
,
&
stream
,
NULL
))
{
MINIDUMP_MEMORY_LIST
*
mml
=
stream
;
MINIDUMP_MEMORY_DESCRIPTOR
*
mmd
=
&
mml
->
MemoryRanges
[
0
]
;
MINIDUMP_MEMORY_DESCRIPTOR
*
mmd
=
mml
->
MemoryRanges
;
int
i
,
found
=
-
1
;
SIZE_T
ilen
,
prev_len
=
0
;
...
...
@@ -176,7 +176,7 @@ static BOOL is_pe_module_embedded(struct tgt_process_minidump_data* data,
MINIDUMP_MODULE
*
mm
;
unsigned
i
;
for
(
i
=
0
,
mm
=
&
mml
->
Modules
[
0
]
;
i
<
mml
->
NumberOfModules
;
i
++
,
mm
++
)
for
(
i
=
0
,
mm
=
mml
->
Modules
;
i
<
mml
->
NumberOfModules
;
i
++
,
mm
++
)
{
if
(
get_addr64
(
mm
->
BaseOfImage
)
<=
get_addr64
(
pe_mm
->
BaseOfImage
)
&&
get_addr64
(
mm
->
BaseOfImage
)
+
mm
->
SizeOfImage
>=
get_addr64
(
pe_mm
->
BaseOfImage
)
+
pe_mm
->
SizeOfImage
)
...
...
@@ -218,7 +218,7 @@ static enum dbg_start minidump_do_reload(struct tgt_process_minidump_data* data)
{
WCHAR
*
ptr
;
mm
=
&
mml
->
Modules
[
0
]
;
mm
=
mml
->
Modules
;
mds
=
(
MINIDUMP_STRING
*
)((
char
*
)
data
->
mapping
+
mm
->
ModuleNameRva
);
len
=
mds
->
Length
/
2
;
memcpy
(
exec_name
,
mds
->
Buffer
,
mds
->
Length
);
...
...
@@ -369,7 +369,7 @@ static enum dbg_start minidump_do_reload(struct tgt_process_minidump_data* data)
WCHAR
buffer
[
MAX_PATH
];
mml
=
stream
;
for
(
i
=
0
,
mm
=
&
mml
->
Modules
[
0
]
;
i
<
mml
->
NumberOfModules
;
i
++
,
mm
++
)
for
(
i
=
0
,
mm
=
mml
->
Modules
;
i
<
mml
->
NumberOfModules
;
i
++
,
mm
++
)
{
mds
=
(
MINIDUMP_STRING
*
)((
char
*
)
data
->
mapping
+
mm
->
ModuleNameRva
);
memcpy
(
nameW
,
mds
->
Buffer
,
mds
->
Length
);
...
...
@@ -388,7 +388,7 @@ static enum dbg_start minidump_do_reload(struct tgt_process_minidump_data* data)
WCHAR
buffer
[
MAX_PATH
];
mml
=
stream
;
for
(
i
=
0
,
mm
=
&
mml
->
Modules
[
0
]
;
i
<
mml
->
NumberOfModules
;
i
++
,
mm
++
)
for
(
i
=
0
,
mm
=
mml
->
Modules
;
i
<
mml
->
NumberOfModules
;
i
++
,
mm
++
)
{
mds
=
(
MINIDUMP_STRING
*
)((
char
*
)
data
->
mapping
+
mm
->
ModuleNameRva
);
memcpy
(
nameW
,
mds
->
Buffer
,
mds
->
Length
);
...
...
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