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
40587a62
Commit
40587a62
authored
Jul 02, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Jul 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Add helper in gdbproxy mode to get proper address width information.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6c91e61c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
gdbproxy.c
programs/winedbg/gdbproxy.c
+10
-3
No files found.
programs/winedbg/gdbproxy.c
View file @
40587a62
...
...
@@ -702,6 +702,13 @@ static void get_thread_info(struct gdb_context* gdbctx, unsigned tid,
* =============================================== *
*/
static
int
addr_width
(
struct
gdb_context
*
gdbctx
)
{
int
sz
=
(
gdbctx
&&
gdbctx
->
process
&&
gdbctx
->
process
->
be_cpu
)
?
gdbctx
->
process
->
be_cpu
->
pointer_size
:
(
int
)
sizeof
(
void
*
);
return
sz
*
2
;
}
enum
packet_return
{
packet_error
=
0x00
,
packet_ok
=
0x01
,
packet_done
=
0x02
,
packet_last_f
=
0x80
};
...
...
@@ -1343,7 +1350,7 @@ static void packet_query_monitor_wnd_helper(struct gdb_context* gdbctx, HWND hWn
"%*s%04lx%*s%-17.17s %08x %0*lx %.14s
\n
"
,
indent
,
""
,
(
ULONG_PTR
)
hWnd
,
13
-
indent
,
""
,
clsName
,
GetWindowLongW
(
hWnd
,
GWL_STYLE
),
ADDRWIDTH
,
(
ULONG_PTR
)
GetWindowLongPtrW
(
hWnd
,
GWLP_WNDPROC
),
addr_width
(
gdbctx
)
,
(
ULONG_PTR
)
GetWindowLongPtrW
(
hWnd
,
GWLP_WNDPROC
),
wndName
);
packet_reply_hex_to_str
(
gdbctx
,
buffer
);
packet_reply_close
(
gdbctx
);
...
...
@@ -1468,8 +1475,8 @@ static void packet_query_monitor_mem(struct gdb_context* gdbctx, int len, const
}
packet_reply_open
(
gdbctx
);
snprintf
(
buffer
,
sizeof
(
buffer
),
"%0*lx %0*lx %s %s %s
\n
"
,
(
unsigned
)
sizeof
(
void
*
),
(
DWORD_PTR
)
addr
,
(
unsigned
)
sizeof
(
void
*
),
mbi
.
RegionSize
,
state
,
type
,
prot
);
addr_width
(
gdbctx
),
(
DWORD_PTR
)
addr
,
addr_width
(
gdbctx
),
mbi
.
RegionSize
,
state
,
type
,
prot
);
packet_reply_add
(
gdbctx
,
"O"
);
packet_reply_hex_to_str
(
gdbctx
,
buffer
);
packet_reply_close
(
gdbctx
);
...
...
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