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
2bc33389
Commit
2bc33389
authored
Dec 20, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Fixed a few data types.
parent
938657b1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
be_i386.c
programs/winedbg/be_i386.c
+3
-3
debugger.h
programs/winedbg/debugger.h
+2
-2
gdbproxy.c
programs/winedbg/gdbproxy.c
+4
-4
info.c
programs/winedbg/info.c
+2
-2
tgt_minidump.c
programs/winedbg/tgt_minidump.c
+2
-2
No files found.
programs/winedbg/be_i386.c
View file @
2bc33389
...
...
@@ -574,7 +574,7 @@ static unsigned be_i386_is_func_call(const void* insn, ADDRESS64* callee)
#define DR7_ENABLE_MASK(dr) (1<<(DR7_LOCAL_ENABLE_SHIFT+DR7_ENABLE_SIZE*(dr)))
#define IS_DR7_SET(ctrl,dr) ((ctrl)&DR7_ENABLE_MASK(dr))
static
inline
int
be_i386_get_unused_DR
(
CONTEXT
*
ctx
,
unsigned
long
**
r
)
static
inline
int
be_i386_get_unused_DR
(
CONTEXT
*
ctx
,
DWORD
**
r
)
{
if
(
!
IS_DR7_SET
(
ctx
->
Dr7
,
0
))
{
...
...
@@ -607,7 +607,7 @@ static unsigned be_i386_insert_Xpoint(HANDLE hProcess, const struct be_process_i
{
unsigned
char
ch
;
SIZE_T
sz
;
unsigned
long
*
pr
;
DWORD
*
pr
;
int
reg
;
unsigned
long
bits
;
...
...
@@ -630,7 +630,7 @@ static unsigned be_i386_insert_Xpoint(HANDLE hProcess, const struct be_process_i
bits
=
DR7_RW_WRITE
;
hw_bp:
if
((
reg
=
be_i386_get_unused_DR
(
ctx
,
&
pr
))
==
-
1
)
return
0
;
*
pr
=
(
unsigned
long
)
addr
;
*
pr
=
(
DWORD
)
addr
;
if
(
type
!=
be_xpoint_watch_exec
)
switch
(
size
)
{
case
4
:
bits
|=
DR7_LEN_4
;
break
;
...
...
programs/winedbg/debugger.h
View file @
2bc33389
...
...
@@ -132,7 +132,7 @@ struct dbg_breakpoint
xpoint_type
:
2
,
refcount
:
13
,
skipcount
:
16
;
DWORD
info
;
unsigned
long
info
;
struct
/* only used for watchpoints */
{
BYTE
len
:
2
;
...
...
@@ -325,7 +325,7 @@ extern int expr_print(const struct expr* exp);
/* info.c */
extern
void
print_help
(
void
);
extern
void
info_help
(
void
);
extern
void
info_win32_module
(
DWORD
mod
);
extern
void
info_win32_module
(
DWORD
64
mod
);
extern
void
info_win32_class
(
HWND
hWnd
,
const
char
*
clsName
);
extern
void
info_win32_window
(
HWND
hWnd
,
BOOL
detailed
);
extern
void
info_win32_processes
(
void
);
...
...
programs/winedbg/gdbproxy.c
View file @
2bc33389
...
...
@@ -609,7 +609,7 @@ static void handle_debug_event(struct gdb_context* gdbctx, DEBUG_EVENT* de)
}
}
static
void
resume_debuggee
(
struct
gdb_context
*
gdbctx
,
unsigned
long
cont
)
static
void
resume_debuggee
(
struct
gdb_context
*
gdbctx
,
DWORD
cont
)
{
if
(
dbg_curr_thread
)
{
...
...
@@ -626,7 +626,7 @@ static void resume_debuggee(struct gdb_context* gdbctx, unsigned long cont)
}
static
void
resume_debuggee_thread
(
struct
gdb_context
*
gdbctx
,
unsigned
long
cont
,
unsigned
int
threadid
)
static
void
resume_debuggee_thread
(
struct
gdb_context
*
gdbctx
,
DWORD
cont
,
unsigned
int
threadid
)
{
if
(
dbg_curr_thread
)
...
...
@@ -725,7 +725,7 @@ static void detach_debuggee(struct gdb_context* gdbctx, BOOL kill)
static
void
get_process_info
(
struct
gdb_context
*
gdbctx
,
char
*
buffer
,
size_t
len
)
{
unsigned
long
status
;
DWORD
status
;
if
(
!
GetExitCodeProcess
(
gdbctx
->
process
->
handle
,
&
status
))
{
...
...
@@ -760,7 +760,7 @@ static void get_thread_info(struct gdb_context* gdbctx, unsigned tid,
char
*
buffer
,
size_t
len
)
{
struct
dbg_thread
*
thd
;
unsigned
long
status
;
DWORD
status
;
int
prio
;
/* FIXME: use the size of buffer */
...
...
programs/winedbg/info.c
View file @
2bc33389
...
...
@@ -198,7 +198,7 @@ static BOOL CALLBACK info_mod_cb(PSTR mod_name, DWORD64 base, void* ctx)
*
* Display information about a given module (DLL or EXE), or about all modules
*/
void
info_win32_module
(
DWORD
base
)
void
info_win32_module
(
DWORD
64
base
)
{
struct
info_module
im
;
int
i
,
j
,
num_printed
=
0
;
...
...
@@ -263,7 +263,7 @@ void info_win32_module(DWORD base)
HeapFree
(
GetProcessHeap
(),
0
,
im
.
mi
);
if
(
base
&&
!
num_printed
)
dbg_printf
(
"'0x%
08lx' is not a valid module address
\n
"
,
base
);
dbg_printf
(
"'0x%
lx%08lx' is not a valid module address
\n
"
,
(
DWORD
)(
base
>>
32
),
(
DWORD
)
base
);
}
struct
class_walker
...
...
programs/winedbg/tgt_minidump.c
View file @
2bc33389
...
...
@@ -85,7 +85,7 @@ static inline struct tgt_process_minidump_data* PRIVATE(struct dbg_process* pcs)
}
static
BOOL
WINAPI
tgt_process_minidump_read
(
HANDLE
hProcess
,
const
void
*
addr
,
void
*
buffer
,
DWORD
len
,
DWORD
*
rlen
)
void
*
buffer
,
SIZE_T
len
,
SIZE_T
*
rlen
)
{
ULONG
size
;
MINIDUMP_DIRECTORY
*
dir
;
...
...
@@ -127,7 +127,7 @@ static BOOL WINAPI tgt_process_minidump_read(HANDLE hProcess, const void* addr,
}
static
BOOL
WINAPI
tgt_process_minidump_write
(
HANDLE
hProcess
,
void
*
addr
,
const
void
*
buffer
,
DWORD
len
,
DWORD
*
wlen
)
const
void
*
buffer
,
SIZE_T
len
,
SIZE_T
*
wlen
)
{
return
FALSE
;
}
...
...
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