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
01ddc2f8
Commit
01ddc2f8
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: Use proper width when printing addresses with leading 0.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3a869c1f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
info.c
programs/winedbg/info.c
+8
-8
symbol.c
programs/winedbg/symbol.c
+2
-2
types.c
programs/winedbg/types.c
+1
-1
No files found.
programs/winedbg/info.c
View file @
01ddc2f8
...
...
@@ -791,8 +791,8 @@ void info_win32_virtual(DWORD pid)
type
=
""
;
prot
[
0
]
=
'\0'
;
}
dbg_printf
(
"%0
8lx %08
lx %s %s %s
\n
"
,
(
DWORD_PTR
)
addr
,
(
DWORD_PTR
)
addr
+
mbi
.
RegionSize
-
1
,
state
,
type
,
prot
);
dbg_printf
(
"%0
*lx %0*
lx %s %s %s
\n
"
,
ADDRWIDTH
,
(
DWORD_PTR
)
addr
,
ADDRWIDTH
,
(
DWORD_PTR
)
addr
+
mbi
.
RegionSize
-
1
,
state
,
type
,
prot
);
if
(
addr
+
mbi
.
RegionSize
<
addr
)
/* wrap around ? */
break
;
addr
+=
mbi
.
RegionSize
;
...
...
@@ -893,10 +893,10 @@ void info_win32_exception(void)
break
;
case
EXCEPTION_ACCESS_VIOLATION
:
if
(
rec
->
NumberParameters
==
2
)
dbg_printf
(
"page fault on %s access to 0x%0
8
lx"
,
dbg_printf
(
"page fault on %s access to 0x%0
*
lx"
,
rec
->
ExceptionInformation
[
0
]
==
EXCEPTION_WRITE_FAULT
?
"write"
:
rec
->
ExceptionInformation
[
0
]
==
EXCEPTION_EXECUTE_FAULT
?
"execute"
:
"read"
,
rec
->
ExceptionInformation
[
1
]);
ADDRWIDTH
,
rec
->
ExceptionInformation
[
1
]);
else
dbg_printf
(
"page fault"
);
break
;
...
...
@@ -961,15 +961,15 @@ void info_win32_exception(void)
break
;
case
EXCEPTION_WINE_CXX_EXCEPTION
:
if
(
rec
->
NumberParameters
==
3
&&
rec
->
ExceptionInformation
[
0
]
==
EXCEPTION_WINE_CXX_FRAME_MAGIC
)
dbg_printf
(
"C++ exception(object = 0x%0
8lx, type = 0x%08
lx)"
,
rec
->
ExceptionInformation
[
1
]
,
rec
->
ExceptionInformation
[
2
]);
dbg_printf
(
"C++ exception(object = 0x%0
*lx, type = 0x%0*
lx)"
,
ADDRWIDTH
,
rec
->
ExceptionInformation
[
1
],
ADDRWIDTH
,
rec
->
ExceptionInformation
[
2
]);
else
if
(
rec
->
NumberParameters
==
4
&&
rec
->
ExceptionInformation
[
0
]
==
EXCEPTION_WINE_CXX_FRAME_MAGIC
)
dbg_printf
(
"C++ exception(object = %p, type = %p, base = %p)"
,
(
void
*
)
rec
->
ExceptionInformation
[
1
],
(
void
*
)
rec
->
ExceptionInformation
[
2
],
(
void
*
)
rec
->
ExceptionInformation
[
3
]);
else
dbg_printf
(
"C++ exception with strange parameter count %d or magic 0x%0
8
lx"
,
rec
->
NumberParameters
,
rec
->
ExceptionInformation
[
0
]);
dbg_printf
(
"C++ exception with strange parameter count %d or magic 0x%0
*
lx"
,
rec
->
NumberParameters
,
ADDRWIDTH
,
rec
->
ExceptionInformation
[
0
]);
break
;
default:
dbg_printf
(
"0x%08x"
,
rec
->
ExceptionCode
);
...
...
programs/winedbg/symbol.c
View file @
01ddc2f8
...
...
@@ -755,7 +755,7 @@ BOOL symbol_info_locals(void)
addr
.
Mode
=
AddrModeFlat
;
addr
.
Offset
=
ihsf
.
InstructionOffset
;
print_address
(
&
addr
,
FALSE
);
dbg_printf
(
": (%0
8lx)
\n
"
,
(
DWORD_PTR
)
ihsf
.
FrameOffset
);
dbg_printf
(
": (%0
*lx)
\n
"
,
ADDRWIDTH
,
(
DWORD_PTR
)
ihsf
.
FrameOffset
);
SymEnumSymbols
(
dbg_curr_process
->
handle
,
0
,
NULL
,
info_locals_cb
,
(
void
*
)(
DWORD_PTR
)
ihsf
.
FrameOffset
);
return
TRUE
;
...
...
@@ -778,7 +778,7 @@ static BOOL CALLBACK symbols_info_cb(PSYMBOL_INFO sym, ULONG size, PVOID ctx)
mi
.
ModuleName
[
len
-
5
]
=
'\0'
;
}
dbg_printf
(
"%0
8lx: %s!%s"
,
(
ULONG_PTR
)
sym
->
Address
,
mi
.
ModuleName
,
sym
->
Name
);
dbg_printf
(
"%0
*lx: %s!%s"
,
ADDRWIDTH
,
(
ULONG_PTR
)
sym
->
Address
,
mi
.
ModuleName
,
sym
->
Name
);
type
.
id
=
sym
->
TypeIndex
;
type
.
module
=
sym
->
ModBase
;
...
...
programs/winedbg/types.c
View file @
01ddc2f8
...
...
@@ -571,7 +571,7 @@ static BOOL CALLBACK print_types_cb(PSYMBOL_INFO sym, ULONG size, void* ctx)
struct
dbg_type
type
;
type
.
module
=
sym
->
ModBase
;
type
.
id
=
sym
->
TypeIndex
;
dbg_printf
(
"Mod: %0
8lx ID: %08x
\n
"
,
type
.
module
,
type
.
id
);
dbg_printf
(
"Mod: %0
*lx ID: %08x
\n
"
,
ADDRWIDTH
,
type
.
module
,
type
.
id
);
types_print_type
(
&
type
,
TRUE
);
dbg_printf
(
"
\n
"
);
return
TRUE
;
...
...
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