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
522a9a90
Commit
522a9a90
authored
Jul 10, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Jul 10, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed winedbg watchpoints.
parent
13ae2f5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
28 deletions
+28
-28
break.c
debugger/break.c
+28
-28
No files found.
debugger/break.c
View file @
522a9a90
...
...
@@ -553,15 +553,15 @@ void DEBUG_EnableBreakpoint( int num, BOOL enable )
*/
static
int
DEBUG_FindTriggeredWatchpoint
(
LPDWORD
oldval
)
{
int
i
;
int
found
=
-
1
;
#ifdef __i386__
int
i
;
/* Method 1 => get triggered watchpoint from context (doesn't work on Linux
* 2.2.x)
*/
for
(
i
=
0
;
i
<
next_bp
;
i
++
)
{
#ifdef __i386__
DWORD
val
=
0
;
if
(
breakpoints
[
i
].
refcount
&&
breakpoints
[
i
].
enabled
&&
...
...
@@ -576,10 +576,9 @@ static int DEBUG_FindTriggeredWatchpoint(LPDWORD oldval)
return
i
;
}
}
#endif
}
/* Method 1 failed, trying method2 */
/* Method 1 failed, trying method
2 */
/* Method 2 => check if value has changed among registered watchpoints
* this really sucks, but this is how gdb 4.18 works on my linux box
...
...
@@ -587,7 +586,6 @@ static int DEBUG_FindTriggeredWatchpoint(LPDWORD oldval)
*/
for
(
i
=
0
;
i
<
next_bp
;
i
++
)
{
#ifdef __i386__
DWORD
val
=
0
;
if
(
breakpoints
[
i
].
refcount
&&
breakpoints
[
i
].
enabled
&&
...
...
@@ -601,13 +599,13 @@ static int DEBUG_FindTriggeredWatchpoint(LPDWORD oldval)
breakpoints
[
i
].
u
.
w
.
oldval
=
val
;
found
=
i
;
/* cannot break, because two watch points may have been triggered on
* the same acces
* the same acces
s
* only one will be reported to the user (FIXME ?)
*/
}
}
#endif
}
#endif
return
found
;
}
...
...
@@ -667,30 +665,32 @@ void DEBUG_InfoBreakpoints(void)
*/
static
BOOL
DEBUG_ShallBreak
(
int
bpnum
)
{
if
(
breakpoints
[
bpnum
].
condition
!=
NULL
)
{
DBG_VALUE
value
=
DEBUG_EvalExpr
(
breakpoints
[
bpnum
].
condition
);
if
(
breakpoints
[
bpnum
].
condition
!=
NULL
)
{
DBG_VALUE
value
=
DEBUG_EvalExpr
(
breakpoints
[
bpnum
].
condition
);
if
(
value
.
type
==
NULL
)
{
/*
* Something wrong - unable to evaluate this expression.
*/
DEBUG_Printf
(
DBG_CHN_MESG
,
"Unable to evaluate expression "
);
DEBUG_DisplayExpr
(
breakpoints
[
bpnum
].
condition
);
DEBUG_Printf
(
DBG_CHN_MESG
,
"
\n
Turning off condition
\n
"
);
DEBUG_AddBPCondition
(
bpnum
,
NULL
);
}
else
if
(
!
DEBUG_GetExprValue
(
&
value
,
NULL
)
)
{
return
FALSE
;
}
}
if
(
value
.
type
==
NULL
)
{
/*
* Something wrong - unable to evaluate this expression.
*/
DEBUG_Printf
(
DBG_CHN_MESG
,
"Unable to evaluate expression "
);
DEBUG_DisplayExpr
(
breakpoints
[
bpnum
].
condition
);
DEBUG_Printf
(
DBG_CHN_MESG
,
"
\n
Turning off condition
\n
"
);
DEBUG_AddBPCondition
(
bpnum
,
NULL
);
}
else
if
(
!
DEBUG_GetExprValue
(
&
value
,
NULL
)
)
{
return
FALSE
;
}
}
if
(
breakpoints
[
bpnum
].
skipcount
>
0
&&
--
breakpoints
[
bpnum
].
skipcount
>
0
)
return
FALSE
;
if
(
breakpoints
[
bpnum
].
skipcount
>
0
&&
--
breakpoints
[
bpnum
].
skipcount
>
0
)
return
FALSE
;
return
(
breakpoints
[
bpnum
].
u
.
b
.
func
)
?
(
breakpoints
[
bpnum
].
u
.
b
.
func
)()
:
TRUE
;
if
((
breakpoints
[
bpnum
].
type
==
DBG_BREAK
)
&&
breakpoints
[
bpnum
].
u
.
b
.
func
)
return
breakpoints
[
bpnum
].
u
.
b
.
func
();
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