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
57c58be7
Commit
57c58be7
authored
Dec 08, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Fix printf format warnings on ARM platforms.
parent
7ae24a04
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
be_arm.c
programs/winedbg/be_arm.c
+4
-4
be_arm64.c
programs/winedbg/be_arm64.c
+1
-1
memory.c
programs/winedbg/memory.c
+1
-1
stack.c
programs/winedbg/stack.c
+1
-1
No files found.
programs/winedbg/be_arm.c
View file @
57c58be7
...
...
@@ -1704,13 +1704,13 @@ static void be_arm_print_context(HANDLE hThread, const dbg_ctx_t *ctx, int all_r
if
(
!
((
ctx
->
ctx
.
Cpsr
>>
26
)
&
(
1
<<
(
sizeof
(
condflags
)
-
i
))))
buf
[
i
]
=
'-'
;
dbg_printf
(
" Pc:%08
x Sp:%08x Lr:%08x Cpsr:%08
x(%s)
\n
"
,
dbg_printf
(
" Pc:%08
lx Sp:%08lx Lr:%08lx Cpsr:%08l
x(%s)
\n
"
,
ctx
->
ctx
.
Pc
,
ctx
->
ctx
.
Sp
,
ctx
->
ctx
.
Lr
,
ctx
->
ctx
.
Cpsr
,
buf
);
dbg_printf
(
" r0:%08
x r1:%08x r2:%08x r3:%08
x
\n
"
,
dbg_printf
(
" r0:%08
lx r1:%08lx r2:%08lx r3:%08l
x
\n
"
,
ctx
->
ctx
.
R0
,
ctx
->
ctx
.
R1
,
ctx
->
ctx
.
R2
,
ctx
->
ctx
.
R3
);
dbg_printf
(
" r4:%08
x r5:%08x r6:%08x r7:%08
x
\n
"
,
dbg_printf
(
" r4:%08
lx r5:%08lx r6:%08lx r7:%08l
x
\n
"
,
ctx
->
ctx
.
R4
,
ctx
->
ctx
.
R5
,
ctx
->
ctx
.
R6
,
ctx
->
ctx
.
R7
);
dbg_printf
(
" r8:%08
x r9:%08x r10:%08x r11:%08x r12:%08
x
\n
"
,
dbg_printf
(
" r8:%08
lx r9:%08lx r10:%08lx r11:%08lx r12:%08l
x
\n
"
,
ctx
->
ctx
.
R8
,
ctx
->
ctx
.
R9
,
ctx
->
ctx
.
R10
,
ctx
->
ctx
.
R11
,
ctx
->
ctx
.
R12
);
if
(
all_regs
)
dbg_printf
(
"Floating point ARM dump not implemented
\n
"
);
...
...
programs/winedbg/be_arm64.c
View file @
57c58be7
...
...
@@ -80,7 +80,7 @@ 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:%016I64x Sp:%016I64x Lr:%016I64x Cpsr:%08x(%s)
\n
"
,
dbg_printf
(
" Pc:%016I64x Sp:%016I64x Lr:%016I64x Cpsr:%08
l
x(%s)
\n
"
,
ctx
->
ctx
.
Pc
,
ctx
->
ctx
.
Sp
,
ctx
->
ctx
.
u
.
s
.
Lr
,
ctx
->
ctx
.
Cpsr
,
buf
);
dbg_printf
(
" x0: %016I64x x1: %016I64x x2: %016I64x x3: %016I64x x4: %016I64x
\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
);
...
...
programs/winedbg/memory.c
View file @
57c58be7
...
...
@@ -726,7 +726,7 @@ void print_address(const ADDRESS64* addr, BOOLEAN with_line)
if
(
!
SymGetModuleInfo
(
dbg_curr_process
->
handle
,
lin
,
&
im
))
return
;
dbg_printf
(
" %s"
,
im
.
ModuleName
);
if
(
lin
>
im
.
BaseOfImage
)
dbg_printf
(
"+0x%Ix"
,
lin
-
im
.
BaseOfImage
);
dbg_printf
(
"+0x%Ix"
,
lin
-
(
DWORD_PTR
)
im
.
BaseOfImage
);
}
if
(
with_line
)
{
...
...
programs/winedbg/stack.c
View file @
57c58be7
...
...
@@ -296,7 +296,7 @@ static void stack_print_addr_and_args(void)
dbg_printf
(
" [%s:%lu]"
,
il
.
FileName
,
il
.
LineNumber
);
dbg_printf
(
" in %s"
,
im
.
ModuleName
);
}
else
dbg_printf
(
" in %s (+0x%Ix)"
,
im
.
ModuleName
,
frm
->
linear_pc
-
im
.
BaseOfImage
);
else
dbg_printf
(
" in %s (+0x%Ix)"
,
im
.
ModuleName
,
frm
->
linear_pc
-
(
DWORD_PTR
)
im
.
BaseOfImage
);
}
/******************************************************************
...
...
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