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
3a869c1f
Commit
3a869c1f
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: Simplify some printing of addresses.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ad8b1074
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
12 deletions
+7
-12
db_disasm64.c
programs/winedbg/db_disasm64.c
+1
-4
info.c
programs/winedbg/info.c
+1
-1
memory.c
programs/winedbg/memory.c
+2
-4
stack.c
programs/winedbg/stack.c
+3
-3
No files found.
programs/winedbg/db_disasm64.c
View file @
3a869c1f
...
...
@@ -1603,10 +1603,7 @@ db_disasm(db_addr_t loc, boolean_t altfmt)
case
Ilq
:
len
=
db_lengths
[
rex
&
REX_W
?
QUAD
:
LONG
];
get_value_inc
(
imm64
,
loc
,
len
,
FALSE
);
if
(
imm64
>>
32
)
db_printf
(
"$0x%x%08x"
,
(
DWORD
)(
imm64
>>
32
),
(
DWORD
)
imm64
);
else
db_printf
(
"$%#x"
,
(
DWORD
)
imm64
);
db_printf
(
"$%#I64x"
,
imm64
);
break
;
case
O
:
...
...
programs/winedbg/info.c
View file @
3a869c1f
...
...
@@ -284,7 +284,7 @@ void info_win32_module(DWORD64 base)
HeapFree
(
GetProcessHeap
(),
0
,
im
.
modules
);
if
(
base
&&
!
num_printed
)
dbg_printf
(
"'0x%
x%08x' is not a valid module address
\n
"
,
(
DWORD
)(
base
>>
32
),
(
DWORD
)
base
);
dbg_printf
(
"'0x%
0*I64x' is not a valid module address
\n
"
,
ADDRWIDTH
,
base
);
}
struct
class_walker
...
...
programs/winedbg/memory.c
View file @
3a869c1f
...
...
@@ -336,10 +336,8 @@ static void dbg_print_hex(DWORD size, ULONGLONG sv)
{
if
(
!
sv
)
dbg_printf
(
"0"
);
else
if
(
size
>
4
&&
(
sv
>>
32
))
dbg_printf
(
"0x%x%08x"
,
(
DWORD
)(
sv
>>
32
),
(
DWORD
)
sv
);
else
dbg_printf
(
"
0x%x"
,
(
DWORD
)
sv
);
dbg_printf
(
"
%#I64x"
,
sv
);
}
static
void
print_typed_basic
(
const
struct
dbg_lvalue
*
lvalue
)
...
...
@@ -595,7 +593,7 @@ void print_address(const ADDRESS64* addr, BOOLEAN with_line)
si
->
MaxNameLen
=
256
;
if
(
!
SymFromAddr
(
dbg_curr_process
->
handle
,
(
DWORD_PTR
)
lin
,
&
disp64
,
si
))
return
;
dbg_printf
(
" %s"
,
si
->
Name
);
if
(
disp64
)
dbg_printf
(
"+0x%
lx"
,
(
DWORD_PTR
)
disp64
);
if
(
disp64
)
dbg_printf
(
"+0x%
I64x"
,
disp64
);
if
(
with_line
)
{
IMAGEHLP_LINE64
il
;
...
...
programs/winedbg/stack.c
View file @
3a869c1f
...
...
@@ -286,7 +286,7 @@ static void stack_print_addr_and_args(int nf)
DWORD
disp
;
dbg_printf
(
" %s"
,
si
->
Name
);
if
(
disp64
)
dbg_printf
(
"+0x%
lx"
,
(
DWORD_PTR
)
disp64
);
if
(
disp64
)
dbg_printf
(
"+0x%
I64x"
,
disp64
);
SymSetContext
(
dbg_curr_process
->
handle
,
&
ihsf
,
NULL
);
se
.
first
=
TRUE
;
...
...
@@ -301,8 +301,8 @@ static void stack_print_addr_and_args(int nf)
dbg_printf
(
" [%s:%u]"
,
il
.
FileName
,
il
.
LineNumber
);
dbg_printf
(
" in %s"
,
im
.
ModuleName
);
}
else
dbg_printf
(
" in %s (+0x%
lx)"
,
im
.
ModuleName
,
(
DWORD_PTR
)(
ihsf
.
InstructionOffset
-
im
.
BaseOfImage
)
);
else
dbg_printf
(
" in %s (+0x%
I64x)"
,
im
.
ModuleName
,
ihsf
.
InstructionOffset
-
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