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
e4e7186b
Commit
e4e7186b
authored
Sep 23, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Sep 23, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix debugger for flat PC and non-flat frame.
parent
e85b67bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
stack.c
dlls/dbghelp/stack.c
+7
-0
stack.c
programs/winedbg/stack.c
+7
-0
No files found.
dlls/dbghelp/stack.c
View file @
e4e7186b
...
...
@@ -113,6 +113,13 @@ BOOL WINAPI StackWalk(DWORD MachineType, HANDLE hProcess, HANDLE hThread,
{
THREAD_BASIC_INFORMATION
info
;
if
((
frame
->
AddrPC
.
Mode
==
AddrModeFlat
)
&&
(
frame
->
AddrFrame
.
Mode
!=
AddrModeFlat
))
{
WARN
(
"Bad AddrPC.Mode / AddrFrame.Mode combination
\n
"
);
goto
done_err
;
}
/* Init done */
curr_mode
=
(
frame
->
AddrPC
.
Mode
==
AddrModeFlat
)
?
stm_32bit
:
stm_16bit
;
...
...
programs/winedbg/stack.c
View file @
e4e7186b
...
...
@@ -188,6 +188,13 @@ void stack_backtrace(DWORD tid, BOOL noisy)
memory_get_current_frame
(
&
sf
.
AddrFrame
);
memory_get_current_pc
(
&
sf
.
AddrPC
);
/* don't confuse StackWalk by passing in inconsistent addresses */
if
((
sf
.
AddrPC
.
Mode
==
AddrModeFlat
)
&&
(
sf
.
AddrFrame
.
Mode
!=
AddrModeFlat
))
{
sf
.
AddrFrame
.
Offset
=
(
DWORD
)
memory_to_linear_addr
(
&
sf
.
AddrFrame
);
sf
.
AddrFrame
.
Mode
=
AddrModeFlat
;
}
if
(
noisy
)
dbg_printf
(
"Backtrace:
\n
"
);
while
(
StackWalk
(
IMAGE_FILE_MACHINE_I386
,
dbg_curr_process
->
handle
,
thread
->
handle
,
&
sf
,
&
dbg_context
,
NULL
,
SymFunctionTableAccess
,
...
...
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