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
856aefa2
Commit
856aefa2
authored
Jul 08, 2000
by
Peter Hunnisett
Committed by
Alexandre Julliard
Jul 08, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Explicit init of rtn.cookie in DEBUG_EvalExpr to bad value to
expose further bad code - Print of pointer used as array now works
parent
1fb3298e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
debugger.h
debugger/debugger.h
+1
-0
expr.c
debugger/expr.c
+1
-0
types.c
debugger/types.c
+11
-1
No files found.
debugger/debugger.h
View file @
856aefa2
...
...
@@ -55,6 +55,7 @@ typedef struct
#define DV_TARGET 0xF00D
#define DV_HOST 0x50DA
#define DV_INVALID 0x0000
typedef
struct
{
...
...
debugger/expr.c
View file @
856aefa2
...
...
@@ -302,6 +302,7 @@ DBG_VALUE DEBUG_EvalExpr(struct expr * exp)
struct
datatype
*
type2
;
rtn
.
type
=
NULL
;
rtn
.
cookie
=
DV_INVALID
;
rtn
.
addr
.
off
=
0
;
rtn
.
addr
.
seg
=
0
;
...
...
debugger/types.c
View file @
856aefa2
...
...
@@ -761,13 +761,23 @@ DEBUG_ArrayIndex(const DBG_VALUE * value, DBG_VALUE * result, int index)
*/
size
=
DEBUG_GetObjectSize
(
value
->
type
->
un
.
pointer
.
pointsto
);
result
->
type
=
value
->
type
->
un
.
pointer
.
pointsto
;
result
->
addr
.
off
=
(
*
(
unsigned
int
*
)
(
value
->
addr
.
off
))
+
size
*
index
;
result
->
addr
.
off
=
(
DWORD
)
DEBUG_ReadMemory
(
value
)
+
size
*
index
;
/* Contents of array must be on same target */
result
->
cookie
=
value
->
cookie
;
}
else
if
(
value
->
type
->
type
==
DT_ARRAY
)
{
size
=
DEBUG_GetObjectSize
(
value
->
type
->
un
.
array
.
basictype
);
result
->
type
=
value
->
type
->
un
.
array
.
basictype
;
result
->
addr
.
off
=
value
->
addr
.
off
+
size
*
(
index
-
value
->
type
->
un
.
array
.
start
);
/* Contents of array must be on same target */
result
->
cookie
=
value
->
cookie
;
}
else
{
assert
(
FALSE
);
}
return
TRUE
;
...
...
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