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
f16f847c
Commit
f16f847c
authored
Feb 24, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Cleanup the process_io usage.
- made be_process_io references 'const' - make use of it for dbg_read_memory and dbg_write_memory
parent
829e002c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
be_alpha.c
programs/winedbg/be_alpha.c
+4
-4
be_cpu.h
programs/winedbg/be_cpu.h
+2
-2
be_i386.c
programs/winedbg/be_i386.c
+2
-2
be_ppc.c
programs/winedbg/be_ppc.c
+2
-2
debugger.h
programs/winedbg/debugger.h
+3
-3
No files found.
programs/winedbg/be_alpha.c
View file @
f16f847c
...
...
@@ -82,7 +82,7 @@ static void be_alpha_disasm_one_insn(ADDRESS* addr, int display)
dbg_printf
(
"Disasm NIY
\n
"
);
}
static
unsigned
be_alpha_insert_Xpoint
(
HANDLE
hProcess
,
struct
be_process_io
*
pio
,
static
unsigned
be_alpha_insert_Xpoint
(
HANDLE
hProcess
,
const
struct
be_process_io
*
pio
,
CONTEXT
*
ctx
,
enum
be_xpoint_type
type
,
void
*
addr
,
unsigned
long
*
val
,
unsigned
size
)
{
...
...
@@ -104,9 +104,9 @@ static unsigned be_alpha_insert_Xpoint(HANDLE hProcess, struct be_process_io* pi
return
1
;
}
static
unsigned
be_alpha_remove_Xpoint
(
HANDLE
hProcess
,
CONTEXT
*
ctx
,
enum
be_xpoint_type
type
,
void
*
addr
,
unsigned
long
val
,
unsigned
size
)
static
unsigned
be_alpha_remove_Xpoint
(
HANDLE
hProcess
,
const
struct
be_process_io
*
pio
,
CONTEXT
*
ctx
,
enum
be_xpoint_type
type
,
void
*
addr
,
unsigned
long
val
,
unsigned
size
)
{
dbg_printf
(
"not done
\n
"
);
return
FALSE
;
...
...
programs/winedbg/be_cpu.h
View file @
f16f847c
...
...
@@ -82,11 +82,11 @@ struct backend_cpu
* break points / watchpoints handling
* -------------------------------------------------------------------------------*/
/* Inserts an Xpoint in the CPU context and/or debuggee address space */
unsigned
(
*
insert_Xpoint
)(
HANDLE
hProcess
,
struct
be_process_io
*
pio
,
unsigned
(
*
insert_Xpoint
)(
HANDLE
hProcess
,
const
struct
be_process_io
*
pio
,
CONTEXT
*
ctx
,
enum
be_xpoint_type
type
,
void
*
addr
,
unsigned
long
*
val
,
unsigned
size
);
/* Removes an Xpoint in the CPU context and/or debuggee address space */
unsigned
(
*
remove_Xpoint
)(
HANDLE
hProcess
,
struct
be_process_io
*
pio
,
unsigned
(
*
remove_Xpoint
)(
HANDLE
hProcess
,
const
struct
be_process_io
*
pio
,
CONTEXT
*
ctx
,
enum
be_xpoint_type
type
,
void
*
addr
,
unsigned
long
val
,
unsigned
size
);
/* Checks whether a given watchpoint has been triggered */
...
...
programs/winedbg/be_i386.c
View file @
f16f847c
...
...
@@ -392,7 +392,7 @@ static inline int be_i386_get_unused_DR(CONTEXT* ctx, unsigned long** r)
return
-
1
;
}
static
unsigned
be_i386_insert_Xpoint
(
HANDLE
hProcess
,
struct
be_process_io
*
pio
,
static
unsigned
be_i386_insert_Xpoint
(
HANDLE
hProcess
,
const
struct
be_process_io
*
pio
,
CONTEXT
*
ctx
,
enum
be_xpoint_type
type
,
void
*
addr
,
unsigned
long
*
val
,
unsigned
size
)
{
...
...
@@ -443,7 +443,7 @@ static unsigned be_i386_insert_Xpoint(HANDLE hProcess, struct be_process_io* pio
return
1
;
}
static
unsigned
be_i386_remove_Xpoint
(
HANDLE
hProcess
,
struct
be_process_io
*
pio
,
static
unsigned
be_i386_remove_Xpoint
(
HANDLE
hProcess
,
const
struct
be_process_io
*
pio
,
CONTEXT
*
ctx
,
enum
be_xpoint_type
type
,
void
*
addr
,
unsigned
long
val
,
unsigned
size
)
{
...
...
programs/winedbg/be_ppc.c
View file @
f16f847c
...
...
@@ -95,7 +95,7 @@ static void be_ppc_disasm_one_insn(ADDRESS* addr, int display)
dbg_printf
(
"Disasm NIY
\n
"
);
}
static
unsigned
be_ppc_insert_Xpoint
(
HANDLE
hProcess
,
struct
be_process_io
*
pio
,
static
unsigned
be_ppc_insert_Xpoint
(
HANDLE
hProcess
,
const
struct
be_process_io
*
pio
,
CONTEXT
*
ctx
,
enum
be_xpoint_type
type
,
void
*
addr
,
unsigned
long
*
val
,
unsigned
size
)
{
...
...
@@ -117,7 +117,7 @@ static unsigned be_ppc_insert_Xpoint(HANDLE hProcess, struct be_process_io* pio,
return
1
;
}
static
unsigned
be_ppc_remove_Xpoint
(
HANDLE
hProcess
,
struct
be_process_io
*
pio
,
static
unsigned
be_ppc_remove_Xpoint
(
HANDLE
hProcess
,
const
struct
be_process_io
*
pio
,
CONTEXT
*
ctx
,
enum
be_xpoint_type
type
,
void
*
addr
,
unsigned
long
val
,
unsigned
size
)
{
...
...
programs/winedbg/debugger.h
View file @
f16f847c
...
...
@@ -201,7 +201,7 @@ struct dbg_process
{
HANDLE
handle
;
DWORD
pid
;
struct
be_process_io
*
process_io
;
const
struct
be_process_io
*
process_io
;
const
char
*
imageName
;
struct
dbg_thread
*
threads
;
unsigned
continue_on_first_exception
;
...
...
@@ -417,13 +417,13 @@ extern BOOL gdb_remote(unsigned int);
static
inline
BOOL
dbg_read_memory
(
const
void
*
addr
,
void
*
buffer
,
size_t
len
)
{
DWORD
rlen
;
return
ReadProcessMemory
(
dbg_curr_process
->
handle
,
addr
,
buffer
,
len
,
&
rlen
)
&&
len
==
rlen
;
return
dbg_curr_process
->
process_io
->
read
(
dbg_curr_process
->
handle
,
addr
,
buffer
,
len
,
&
rlen
)
&&
len
==
rlen
;
}
static
inline
BOOL
dbg_write_memory
(
void
*
addr
,
const
void
*
buffer
,
size_t
len
)
{
DWORD
wlen
;
return
WriteProcessMemory
(
dbg_curr_process
->
handle
,
addr
,
buffer
,
len
,
&
wlen
)
&&
len
==
wlen
;
return
dbg_curr_process
->
process_io
->
write
(
dbg_curr_process
->
handle
,
addr
,
buffer
,
len
,
&
wlen
)
&&
len
==
wlen
;
}
static
inline
void
*
dbg_heap_realloc
(
void
*
buffer
,
size_t
size
)
...
...
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