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
09d7fa70
Commit
09d7fa70
authored
Apr 08, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Add context dumping for x86_64.
parent
0865c278
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
be_x86_64.c
programs/winedbg/be_x86_64.c
+35
-1
No files found.
programs/winedbg/be_x86_64.c
View file @
09d7fa70
...
...
@@ -66,7 +66,41 @@ static void be_x86_64_single_step(CONTEXT* ctx, unsigned enable)
static
void
be_x86_64_print_context
(
HANDLE
hThread
,
const
CONTEXT
*
ctx
,
int
all_regs
)
{
dbg_printf
(
"Context printing for x86_64 not done yet
\n
"
);
char
*
pt
,
buf
[
33
];
dbg_printf
(
"Register dump:
\n
"
);
strcpy
(
buf
,
" - 00 - - - "
);
pt
=
buf
+
strlen
(
buf
)
-
1
;
if
(
ctx
->
EFlags
&
0x00000001
)
*
pt
--
=
'C'
;
/* Carry Flag */
if
(
ctx
->
EFlags
&
0x00000002
)
*
pt
--
=
'1'
;
if
(
ctx
->
EFlags
&
0x00000004
)
*
pt
--
=
'P'
;
/* Parity Flag */
if
(
ctx
->
EFlags
&
0x00000008
)
*
pt
--
=
'-'
;
if
(
ctx
->
EFlags
&
0x00000010
)
*
pt
--
=
'A'
;
/* Auxiliary Carry Flag */
if
(
ctx
->
EFlags
&
0x00000020
)
*
pt
--
=
'-'
;
if
(
ctx
->
EFlags
&
0x00000040
)
*
pt
--
=
'Z'
;
/* Zero Flag */
if
(
ctx
->
EFlags
&
0x00000080
)
*
pt
--
=
'S'
;
/* Sign Flag */
if
(
ctx
->
EFlags
&
0x00000100
)
*
pt
--
=
'T'
;
/* Trap/Trace Flag */
if
(
ctx
->
EFlags
&
0x00000200
)
*
pt
--
=
'I'
;
/* Interrupt Enable Flag */
if
(
ctx
->
EFlags
&
0x00000400
)
*
pt
--
=
'D'
;
/* Direction Indicator */
if
(
ctx
->
EFlags
&
0x00000800
)
*
pt
--
=
'O'
;
/* Overflow flags */
if
(
ctx
->
EFlags
&
0x00001000
)
*
pt
--
=
'1'
;
/* I/O Privilege Level */
if
(
ctx
->
EFlags
&
0x00002000
)
*
pt
--
=
'1'
;
/* I/O Privilege Level */
if
(
ctx
->
EFlags
&
0x00004000
)
*
pt
--
=
'N'
;
/* Nested Task Flag */
if
(
ctx
->
EFlags
&
0x00008000
)
*
pt
--
=
'-'
;
if
(
ctx
->
EFlags
&
0x00010000
)
*
pt
--
=
'R'
;
/* Resume Flag */
if
(
ctx
->
EFlags
&
0x00020000
)
*
pt
--
=
'V'
;
/* Vritual Mode Flag */
if
(
ctx
->
EFlags
&
0x00040000
)
*
pt
--
=
'a'
;
/* Alignment Check Flag */
dbg_printf
(
" rip:%016lx rsp:%016lx rbp:%016lx eflags:%08x (%s)
\n
"
,
ctx
->
Rip
,
ctx
->
Rsp
,
ctx
->
Rbp
,
ctx
->
EFlags
,
buf
);
dbg_printf
(
" rax:%016lx rbx:%016lx rcx:%016lx rdx:%016lx
\n
"
,
ctx
->
Rax
,
ctx
->
Rbx
,
ctx
->
Rcx
,
ctx
->
Rdx
);
dbg_printf
(
" rsi:%016lx rdi:%016lx r8:%016lx r9:%016lx r10:%016lx
\n
"
,
ctx
->
Rsi
,
ctx
->
Rdi
,
ctx
->
R8
,
ctx
->
R9
,
ctx
->
R10
);
dbg_printf
(
" r11:%016lx r12:%016lx r13:%016lx r14:%016lx r15:%016lx
\n
"
,
ctx
->
R11
,
ctx
->
R12
,
ctx
->
R13
,
ctx
->
R14
,
ctx
->
R15
);
if
(
all_regs
)
dbg_printf
(
"Floating point x86_64 dump not implemented
\n
"
);
}
static
void
be_x86_64_print_segment_info
(
HANDLE
hThread
,
const
CONTEXT
*
ctx
)
...
...
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