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
7daa50c0
Commit
7daa50c0
authored
Dec 12, 2009
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Ensure all addresses passed to break functions are 64bit wide.
parent
485280c6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
break.c
programs/winedbg/break.c
+4
-4
debugger.h
programs/winedbg/debugger.h
+1
-1
tgt_active.c
programs/winedbg/tgt_active.c
+2
-3
No files found.
programs/winedbg/break.c
View file @
7daa50c0
...
@@ -484,9 +484,9 @@ static inline BOOL module_is_container(const IMAGEHLP_MODULE* wmod_cntnr,
...
@@ -484,9 +484,9 @@ static inline BOOL module_is_container(const IMAGEHLP_MODULE* wmod_cntnr,
*
*
* Remove all Xpoints from module which base is 'base'
* Remove all Xpoints from module which base is 'base'
*/
*/
void
break_delete_xpoints_from_module
(
unsigned
long
base
)
void
break_delete_xpoints_from_module
(
DWORD64
base
)
{
{
IMAGEHLP_MODULE
im
,
im_elf
;
IMAGEHLP_MODULE
64
im
,
im_elf
;
int
i
;
int
i
;
DWORD_PTR
linear
;
DWORD_PTR
linear
;
struct
dbg_breakpoint
*
bp
=
dbg_curr_process
->
bp
;
struct
dbg_breakpoint
*
bp
=
dbg_curr_process
->
bp
;
...
@@ -494,10 +494,10 @@ void break_delete_xpoints_from_module(unsigned long base)
...
@@ -494,10 +494,10 @@ void break_delete_xpoints_from_module(unsigned long base)
/* FIXME: should do it also on the ELF sibbling if any */
/* FIXME: should do it also on the ELF sibbling if any */
im
.
SizeOfStruct
=
sizeof
(
im
);
im
.
SizeOfStruct
=
sizeof
(
im
);
im_elf
.
SizeOfStruct
=
sizeof
(
im_elf
);
im_elf
.
SizeOfStruct
=
sizeof
(
im_elf
);
if
(
!
SymGetModuleInfo
(
dbg_curr_process
->
handle
,
base
,
&
im
))
return
;
if
(
!
SymGetModuleInfo
64
(
dbg_curr_process
->
handle
,
base
,
&
im
))
return
;
/* try to get in fact the underlying ELF module (if any) */
/* try to get in fact the underlying ELF module (if any) */
if
(
SymGetModuleInfo
(
dbg_curr_process
->
handle
,
im
.
BaseOfImage
-
1
,
&
im_elf
)
&&
if
(
SymGetModuleInfo
64
(
dbg_curr_process
->
handle
,
im
.
BaseOfImage
-
1
,
&
im_elf
)
&&
im_elf
.
BaseOfImage
<=
im
.
BaseOfImage
&&
im_elf
.
BaseOfImage
<=
im
.
BaseOfImage
&&
im_elf
.
BaseOfImage
+
im_elf
.
ImageSize
>=
im
.
BaseOfImage
+
im
.
ImageSize
)
im_elf
.
BaseOfImage
+
im_elf
.
ImageSize
>=
im
.
BaseOfImage
+
im
.
ImageSize
)
im
=
im_elf
;
im
=
im_elf
;
...
...
programs/winedbg/debugger.h
View file @
7daa50c0
...
@@ -291,7 +291,7 @@ extern void break_add_watch_from_lvalue(const struct dbg_lvalue* lva
...
@@ -291,7 +291,7 @@ extern void break_add_watch_from_lvalue(const struct dbg_lvalue* lva
extern
void
break_add_watch_from_id
(
const
char
*
name
);
extern
void
break_add_watch_from_id
(
const
char
*
name
);
extern
void
break_check_delayed_bp
(
void
);
extern
void
break_check_delayed_bp
(
void
);
extern
void
break_delete_xpoint
(
int
num
);
extern
void
break_delete_xpoint
(
int
num
);
extern
void
break_delete_xpoints_from_module
(
unsigned
long
base
);
extern
void
break_delete_xpoints_from_module
(
DWORD64
base
);
extern
void
break_enable_xpoint
(
int
num
,
BOOL
enable
);
extern
void
break_enable_xpoint
(
int
num
,
BOOL
enable
);
extern
void
break_info
(
void
);
extern
void
break_info
(
void
);
extern
void
break_adjust_pc
(
ADDRESS64
*
addr
,
DWORD
code
,
BOOL
first_chance
,
BOOL
*
is_break
);
extern
void
break_adjust_pc
(
ADDRESS64
*
addr
,
DWORD
code
,
BOOL
first_chance
,
BOOL
*
is_break
);
...
...
programs/winedbg/tgt_active.c
View file @
7daa50c0
...
@@ -626,9 +626,8 @@ static unsigned dbg_handle_debug_event(DEBUG_EVENT* de)
...
@@ -626,9 +626,8 @@ static unsigned dbg_handle_debug_event(DEBUG_EVENT* de)
WINE_TRACE
(
"%04x:%04x: unload DLL @%p
\n
"
,
WINE_TRACE
(
"%04x:%04x: unload DLL @%p
\n
"
,
de
->
dwProcessId
,
de
->
dwThreadId
,
de
->
dwProcessId
,
de
->
dwThreadId
,
de
->
u
.
UnloadDll
.
lpBaseOfDll
);
de
->
u
.
UnloadDll
.
lpBaseOfDll
);
break_delete_xpoints_from_module
((
unsigned
long
)
de
->
u
.
UnloadDll
.
lpBaseOfDll
);
break_delete_xpoints_from_module
((
DWORD_PTR
)
de
->
u
.
UnloadDll
.
lpBaseOfDll
);
SymUnloadModule
(
dbg_curr_process
->
handle
,
SymUnloadModule64
(
dbg_curr_process
->
handle
,
(
DWORD_PTR
)
de
->
u
.
UnloadDll
.
lpBaseOfDll
);
(
unsigned
long
)
de
->
u
.
UnloadDll
.
lpBaseOfDll
);
break
;
break
;
case
OUTPUT_DEBUG_STRING_EVENT
:
case
OUTPUT_DEBUG_STRING_EVENT
:
...
...
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