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
c6c04836
Commit
c6c04836
authored
May 09, 1999
by
Ove Kaaven
Committed by
Alexandre Julliard
May 09, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a couple of bugs (silent backtrace not totally silent, crashes
when the stack is corrupted or similar).
parent
1e1eb509
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
stack.c
debugger/stack.c
+9
-0
No files found.
debugger/stack.c
View file @
c6c04836
...
...
@@ -189,6 +189,7 @@ static void DEBUG_DoBackTrace(int noisy)
nframe
=
1
;
if
(
frames
)
DBG_free
(
frames
);
frames
=
(
struct
bt_info
*
)
DBG_alloc
(
sizeof
(
struct
bt_info
)
);
if
(
noisy
)
fprintf
(
stderr
,
"%s%d "
,(
curr_frame
==
0
?
"=>"
:
" "
),
frameno
);
if
(
IS_SELECTOR_SYSTEM
(
ss
))
ss
=
0
;
...
...
@@ -232,6 +233,10 @@ static void DEBUG_DoBackTrace(int noisy)
sw_addr
.
seg
=
ss
;
sw_addr
.
off
=
cur_switch
;
}
if
(
DEBUG_IsBadReadPtr
(
&
sw_addr
,
1
))
{
sw_addr
.
seg
=
(
DWORD
)
-
1
;
sw_addr
.
off
=
(
DWORD
)
-
1
;
}
for
(
ok
=
TRUE
;
ok
;)
{
if
((
frames
[
frameno
].
ss
==
sw_addr
.
seg
)
&&
...
...
@@ -269,6 +274,10 @@ static void DEBUG_DoBackTrace(int noisy)
is16
=
TRUE
;
}
if
(
DEBUG_IsBadReadPtr
(
&
sw_addr
,
1
))
{
sw_addr
.
seg
=
(
DWORD
)
-
1
;
sw_addr
.
off
=
(
DWORD
)
-
1
;
}
}
else
{
/* ordinary stack frame */
ok
=
is16
?
DEBUG_Frame16
(
&
addr
,
&
cs
,
++
frameno
,
noisy
)
...
...
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