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
22c16194
Commit
22c16194
authored
Oct 12, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Oct 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Properly print 64bit integers.
Regression introduced in
0ea9fe99
. Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
671fe6f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
16 deletions
+15
-16
be_arm64.c
programs/winedbg/be_arm64.c
+7
-7
be_x86_64.c
programs/winedbg/be_x86_64.c
+8
-9
No files found.
programs/winedbg/be_arm64.c
View file @
22c16194
...
...
@@ -80,19 +80,19 @@ static void be_arm64_print_context(HANDLE hThread, const dbg_ctx_t *ctx, int all
if
(
!
((
ctx
->
ctx
.
Cpsr
>>
26
)
&
(
1
<<
(
sizeof
(
condflags
)
-
i
))))
buf
[
i
]
=
'-'
;
dbg_printf
(
" Pc:%016
lx Sp:%016lx Lr:%016l
x Cpsr:%08x(%s)
\n
"
,
dbg_printf
(
" Pc:%016
I64x Sp:%016I64x Lr:%016I64
x Cpsr:%08x(%s)
\n
"
,
ctx
->
ctx
.
Pc
,
ctx
->
ctx
.
Sp
,
ctx
->
ctx
.
u
.
s
.
Lr
,
ctx
->
ctx
.
Cpsr
,
buf
);
dbg_printf
(
" x0: %016
lx x1: %016lx x2: %016lx x3: %016lx x4: %016l
x
\n
"
,
dbg_printf
(
" x0: %016
I64x x1: %016I64x x2: %016I64x x3: %016I64x x4: %016I64
x
\n
"
,
ctx
->
ctx
.
u
.
s
.
X0
,
ctx
->
ctx
.
u
.
s
.
X1
,
ctx
->
ctx
.
u
.
s
.
X2
,
ctx
->
ctx
.
u
.
s
.
X3
,
ctx
->
ctx
.
u
.
s
.
X4
);
dbg_printf
(
" x5: %016
lx x6: %016lx x7: %016lx x8: %016lx x9: %016l
x
\n
"
,
dbg_printf
(
" x5: %016
I64x x6: %016I64x x7: %016I64x x8: %016I64x x9: %016I64
x
\n
"
,
ctx
->
ctx
.
u
.
s
.
X5
,
ctx
->
ctx
.
u
.
s
.
X6
,
ctx
->
ctx
.
u
.
s
.
X7
,
ctx
->
ctx
.
u
.
s
.
X8
,
ctx
->
ctx
.
u
.
s
.
X9
);
dbg_printf
(
" x10:%016
lx x11:%016lx x12:%016lx x13:%016lx x14:%016l
x
\n
"
,
dbg_printf
(
" x10:%016
I64x x11:%016I64x x12:%016I64x x13:%016I64x x14:%016I64
x
\n
"
,
ctx
->
ctx
.
u
.
s
.
X10
,
ctx
->
ctx
.
u
.
s
.
X11
,
ctx
->
ctx
.
u
.
s
.
X12
,
ctx
->
ctx
.
u
.
s
.
X13
,
ctx
->
ctx
.
u
.
s
.
X14
);
dbg_printf
(
" x15:%016
lx ip0:%016lx ip1:%016lx x18:%016lx x19:%016l
x
\n
"
,
dbg_printf
(
" x15:%016
I64x ip0:%016I64x ip1:%016I64x x18:%016I64x x19:%016I64
x
\n
"
,
ctx
->
ctx
.
u
.
s
.
X15
,
ctx
->
ctx
.
u
.
s
.
X16
,
ctx
->
ctx
.
u
.
s
.
X17
,
ctx
->
ctx
.
u
.
s
.
X18
,
ctx
->
ctx
.
u
.
s
.
X19
);
dbg_printf
(
" x20:%016
lx x21:%016lx x22:%016lx x23:%016lx x24:%016l
x
\n
"
,
dbg_printf
(
" x20:%016
I64x x21:%016I64x x22:%016I64x x23:%016I64x x24:%016I64
x
\n
"
,
ctx
->
ctx
.
u
.
s
.
X20
,
ctx
->
ctx
.
u
.
s
.
X21
,
ctx
->
ctx
.
u
.
s
.
X22
,
ctx
->
ctx
.
u
.
s
.
X23
,
ctx
->
ctx
.
u
.
s
.
X24
);
dbg_printf
(
" x25:%016
lx x26:%016lx x27:%016lx x28:%016lx Fp:%016l
x
\n
"
,
dbg_printf
(
" x25:%016
I64x x26:%016I64x x27:%016I64x x28:%016I64x Fp:%016I64
x
\n
"
,
ctx
->
ctx
.
u
.
s
.
X25
,
ctx
->
ctx
.
u
.
s
.
X26
,
ctx
->
ctx
.
u
.
s
.
X27
,
ctx
->
ctx
.
u
.
s
.
X28
,
ctx
->
ctx
.
u
.
s
.
Fp
);
if
(
all_regs
)
dbg_printf
(
"Floating point ARM64 dump not implemented
\n
"
);
...
...
programs/winedbg/be_x86_64.c
View file @
22c16194
...
...
@@ -89,13 +89,13 @@ static void be_x86_64_print_context(HANDLE hThread, const dbg_ctx_t *pctx,
buf
[
i
]
=
' '
;
dbg_printf
(
"Register dump:
\n
"
);
dbg_printf
(
" rip:%016
lx rsp:%016lx rbp:%016l
x eflags:%08x (%s)
\n
"
,
dbg_printf
(
" rip:%016
I64x rsp:%016I64x rbp:%016I64
x eflags:%08x (%s)
\n
"
,
ctx
->
Rip
,
ctx
->
Rsp
,
ctx
->
Rbp
,
ctx
->
EFlags
,
buf
);
dbg_printf
(
" rax:%016
lx rbx:%016lx rcx:%016lx rdx:%016l
x
\n
"
,
dbg_printf
(
" rax:%016
I64x rbx:%016I64x rcx:%016I64x rdx:%016I64
x
\n
"
,
ctx
->
Rax
,
ctx
->
Rbx
,
ctx
->
Rcx
,
ctx
->
Rdx
);
dbg_printf
(
" rsi:%016
lx rdi:%016lx r8:%016lx r9:%016lx r10:%016l
x
\n
"
,
dbg_printf
(
" rsi:%016
I64x rdi:%016I64x r8:%016I64x r9:%016I64x r10:%016I64
x
\n
"
,
ctx
->
Rsi
,
ctx
->
Rdi
,
ctx
->
R8
,
ctx
->
R9
,
ctx
->
R10
);
dbg_printf
(
" r11:%016
lx r12:%016lx r13:%016lx r14:%016lx r15:%016l
x
\n
"
,
dbg_printf
(
" r11:%016
I64x r12:%016I64x r13:%016I64x r14:%016I64x r15:%016I64
x
\n
"
,
ctx
->
R11
,
ctx
->
R12
,
ctx
->
R13
,
ctx
->
R14
,
ctx
->
R15
);
if
(
!
all_regs
)
return
;
...
...
@@ -104,9 +104,9 @@ static void be_x86_64_print_context(HANDLE hThread, const dbg_ctx_t *pctx,
ctx
->
SegCs
,
ctx
->
SegDs
,
ctx
->
SegEs
,
ctx
->
SegFs
,
ctx
->
SegGs
,
ctx
->
SegSs
);
dbg_printf
(
"Debug:
\n
"
);
dbg_printf
(
" dr0:%016
lx dr1:%016lx dr2:%016lx dr3:%016l
x
\n
"
,
dbg_printf
(
" dr0:%016
I64x dr1:%016I64x dr2:%016I64x dr3:%016I64
x
\n
"
,
ctx
->
Dr0
,
ctx
->
Dr1
,
ctx
->
Dr2
,
ctx
->
Dr3
);
dbg_printf
(
" dr6:%016
lx dr7:%016l
x
\n
"
,
ctx
->
Dr6
,
ctx
->
Dr7
);
dbg_printf
(
" dr6:%016
I64x dr7:%016I64
x
\n
"
,
ctx
->
Dr6
,
ctx
->
Dr7
);
dbg_printf
(
"Floating point:
\n
"
);
dbg_printf
(
" flcw:%04x "
,
LOWORD
(
ctx
->
u
.
FltSave
.
ControlWord
));
...
...
@@ -150,8 +150,7 @@ static void be_x86_64_print_context(HANDLE hThread, const dbg_ctx_t *pctx,
{
M128A
reg
=
ctx
->
u
.
FltSave
.
FloatRegisters
[
i
];
if
(
i
==
4
)
dbg_printf
(
"
\n
"
);
dbg_printf
(
" ST%u:%08x%08x%08x%08x "
,
i
,
(
DWORD
)(
reg
.
High
>>
32
),
(
DWORD
)
reg
.
High
,
(
DWORD
)(
reg
.
Low
>>
32
),
(
DWORD
)
reg
.
Low
);
dbg_printf
(
" ST%u:%016I64x%16I64x "
,
i
,
reg
.
High
,
reg
.
Low
);
}
dbg_printf
(
"
\n
"
);
...
...
@@ -162,7 +161,7 @@ static void be_x86_64_print_context(HANDLE hThread, const dbg_ctx_t *pctx,
for
(
i
=
0
;
i
<
16
;
i
++
)
{
dbg_printf
(
" %sxmm%u: uint=%016
lx%016l
x"
,
(
i
>
9
)
?
""
:
" "
,
i
,
dbg_printf
(
" %sxmm%u: uint=%016
I64x%016I64
x"
,
(
i
>
9
)
?
""
:
" "
,
i
,
ctx
->
u
.
FltSave
.
XmmRegisters
[
i
].
High
,
ctx
->
u
.
FltSave
.
XmmRegisters
[
i
].
Low
);
dbg_printf
(
" double={%g; %g}"
,
*
(
double
*
)
&
ctx
->
u
.
FltSave
.
XmmRegisters
[
i
].
Low
,
*
(
double
*
)
&
ctx
->
u
.
FltSave
.
XmmRegisters
[
i
].
High
);
...
...
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