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
3833600c
Commit
3833600c
authored
Apr 19, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Correctly display whether we're in 32 vs 64 bit code.
parent
8734d5b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tgt_active.c
programs/winedbg/tgt_active.c
+6
-6
No files found.
programs/winedbg/tgt_active.c
View file @
3833600c
...
...
@@ -131,7 +131,8 @@ static unsigned dbg_exception_prolog(BOOL is_debug, BOOL first_chance, const EXC
switch
(
addr
.
Mode
)
{
case
AddrModeFlat
:
dbg_printf
(
" in 32-bit code (%s)"
,
dbg_printf
(
" in %d-bit code (%s)"
,
be_cpu
->
pointer_size
*
8
,
memory_offset_to_string
(
hexbuf
,
addr
.
Offset
,
0
));
break
;
case
AddrModeReal
:
...
...
@@ -141,7 +142,7 @@ static unsigned dbg_exception_prolog(BOOL is_debug, BOOL first_chance, const EXC
dbg_printf
(
" in 16-bit code (%04x:%04x)"
,
addr
.
Segment
,
(
unsigned
)
addr
.
Offset
);
break
;
case
AddrMode1632
:
dbg_printf
(
" in 32-bit code (%04x:%08lx)"
,
addr
.
Segment
,
(
unsigned
long
)
addr
.
Offset
);
dbg_printf
(
" in
segmented
32-bit code (%04x:%08lx)"
,
addr
.
Segment
,
(
unsigned
long
)
addr
.
Offset
);
break
;
default:
dbg_printf
(
" bad address"
);
}
...
...
@@ -164,15 +165,14 @@ static unsigned dbg_exception_prolog(BOOL is_debug, BOOL first_chance, const EXC
if
(
addr
.
Mode
!=
dbg_curr_thread
->
addr_mode
)
{
const
char
*
name
=
NULL
;
switch
(
addr
.
Mode
)
{
case
AddrMode1616
:
name
=
"16 bit"
;
break
;
case
AddrMode1632
:
name
=
"
32 bit"
;
break
;
case
AddrMode1632
:
name
=
"
segmented 32 bit"
;
break
;
case
AddrModeReal
:
name
=
"vm86"
;
break
;
case
AddrModeFlat
:
name
=
"32 bit"
;
break
;
case
AddrModeFlat
:
name
=
be_cpu
->
pointer_size
==
4
?
"32 bit"
:
"64 bit"
;
break
;
}
dbg_printf
(
"In %s mode.
\n
"
,
name
);
dbg_curr_thread
->
addr_mode
=
addr
.
Mode
;
}
...
...
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