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
57ccf822
Commit
57ccf822
authored
Feb 02, 2018
by
Vladimir Bespalov
Committed by
Alexandre Julliard
Feb 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Fix enum value compilation warning.
Signed-off-by:
Vlad Bespalov
<
vlad.botanic@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3e276f7e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
be_cpu.h
programs/winedbg/be_cpu.h
+1
-1
gdbproxy.c
programs/winedbg/gdbproxy.c
+4
-4
No files found.
programs/winedbg/be_cpu.h
View file @
57ccf822
...
...
@@ -20,7 +20,7 @@
enum
be_cpu_addr
{
be_cpu_addr_pc
,
be_cpu_addr_stack
,
be_cpu_addr_frame
};
enum
be_xpoint_type
{
be_xpoint_break
,
be_xpoint_watch_exec
,
be_xpoint_watch_read
,
be_xpoint_watch_write
};
be_xpoint_watch_write
,
be_xpoint_free
=-
1
};
struct
backend_cpu
{
const
DWORD
machine
;
...
...
programs/winedbg/gdbproxy.c
View file @
57ccf822
...
...
@@ -74,7 +74,7 @@
struct
gdb_ctx_Xpoint
{
enum
be_xpoint_type
type
;
/*
-1
means free */
enum
be_xpoint_type
type
;
/*
(-1) == be_xpoint_free
means free */
void
*
addr
;
unsigned
long
val
;
};
...
...
@@ -1583,7 +1583,7 @@ static BOOL read_memory(struct gdb_context *gdbctx, char *addr, char *buffer, SI
{
char
*
xpt_addr
=
xpt
->
addr
;
if
(
xpt
->
type
!=
-
1
&&
xpt_addr
>=
addr
&&
xpt_addr
<
addr
+
blk_len
)
if
(
xpt
->
type
!=
be_xpoint_free
&&
xpt_addr
>=
addr
&&
xpt_addr
<
addr
+
blk_len
)
buffer
[
xpt_addr
-
addr
]
=
xpt
->
val
;
}
}
...
...
@@ -2192,7 +2192,7 @@ static enum packet_return packet_remove_breakpoint(struct gdb_context* gdbctx)
gdbctx
->
process
->
process_io
,
&
gdbctx
->
context
,
t
,
xpt
->
addr
,
xpt
->
val
,
len
))
{
xpt
->
type
=
-
1
;
xpt
->
type
=
be_xpoint_free
;
return
packet_ok
;
}
break
;
...
...
@@ -2233,7 +2233,7 @@ static enum packet_return packet_set_breakpoint(struct gdb_context* gdbctx)
/* really set the Xpoint */
for
(
xpt
=
&
gdbctx
->
Xpoints
[
NUM_XPOINT
-
1
];
xpt
>=
gdbctx
->
Xpoints
;
xpt
--
)
{
if
(
xpt
->
type
==
-
1
)
if
(
xpt
->
type
==
be_xpoint_free
)
{
if
(
be_cpu
->
insert_Xpoint
(
gdbctx
->
process
->
handle
,
gdbctx
->
process
->
process_io
,
&
gdbctx
->
context
,
...
...
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