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
193c83f6
Commit
193c83f6
authored
Dec 06, 2004
by
Jeremy White
Committed by
Alexandre Julliard
Dec 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly respect a disassemble x,y command (prior behavior would do
y-x instructions, no matter how wide each instruction was).
parent
627260f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
debugger.h
programs/winedbg/debugger.h
+1
-1
memory.c
programs/winedbg/memory.c
+8
-3
No files found.
programs/winedbg/debugger.h
View file @
193c83f6
...
@@ -314,7 +314,7 @@ extern BOOL memory_get_current_stack(ADDRESS* address);
...
@@ -314,7 +314,7 @@ extern BOOL memory_get_current_stack(ADDRESS* address);
extern
BOOL
memory_get_current_frame
(
ADDRESS
*
address
);
extern
BOOL
memory_get_current_frame
(
ADDRESS
*
address
);
extern
BOOL
memory_get_string
(
HANDLE
hp
,
void
*
addr
,
BOOL
in_debuggee
,
BOOL
unicode
,
char
*
buffer
,
int
size
);
extern
BOOL
memory_get_string
(
HANDLE
hp
,
void
*
addr
,
BOOL
in_debuggee
,
BOOL
unicode
,
char
*
buffer
,
int
size
);
extern
BOOL
memory_get_string_indirect
(
HANDLE
hp
,
void
*
addr
,
BOOL
unicode
,
char
*
buffer
,
int
size
);
extern
BOOL
memory_get_string_indirect
(
HANDLE
hp
,
void
*
addr
,
BOOL
unicode
,
char
*
buffer
,
int
size
);
extern
void
memory_disassemble
(
const
struct
dbg_lvalue
*
,
const
struct
dbg_lvalue
*
,
int
offse
t
);
extern
void
memory_disassemble
(
const
struct
dbg_lvalue
*
,
const
struct
dbg_lvalue
*
,
int
instruction_coun
t
);
extern
BOOL
memory_disasm_one_insn
(
ADDRESS
*
addr
);
extern
BOOL
memory_disasm_one_insn
(
ADDRESS
*
addr
);
extern
void
print_bare_address
(
const
ADDRESS
*
addr
);
extern
void
print_bare_address
(
const
ADDRESS
*
addr
);
extern
void
print_address
(
const
ADDRESS
*
addr
,
BOOLEAN
with_line
);
extern
void
print_address
(
const
ADDRESS
*
addr
,
BOOLEAN
with_line
);
...
...
programs/winedbg/memory.c
View file @
193c83f6
...
@@ -598,9 +598,11 @@ BOOL memory_disasm_one_insn(ADDRESS* addr)
...
@@ -598,9 +598,11 @@ BOOL memory_disasm_one_insn(ADDRESS* addr)
}
}
void
memory_disassemble
(
const
struct
dbg_lvalue
*
xstart
,
void
memory_disassemble
(
const
struct
dbg_lvalue
*
xstart
,
const
struct
dbg_lvalue
*
xend
,
int
offse
t
)
const
struct
dbg_lvalue
*
xend
,
int
instruction_coun
t
)
{
{
static
ADDRESS
last
=
{
0
,
0
,
0
};
static
ADDRESS
last
=
{
0
,
0
,
0
};
int
stop
=
0
;
int
i
;
if
(
!
xstart
&&
!
xend
)
if
(
!
xstart
&&
!
xend
)
{
{
...
@@ -613,7 +615,10 @@ void memory_disassemble(const struct dbg_lvalue* xstart,
...
@@ -613,7 +615,10 @@ void memory_disassemble(const struct dbg_lvalue* xstart,
last
.
Mode
=
AddrModeFlat
;
last
.
Mode
=
AddrModeFlat
;
last
.
Offset
=
types_extract_as_integer
(
xstart
);
last
.
Offset
=
types_extract_as_integer
(
xstart
);
}
}
if
(
xend
)
offset
=
types_extract_as_integer
(
xend
)
-
last
.
Offset
+
1
;
if
(
xend
)
stop
=
types_extract_as_integer
(
xend
);
}
}
while
(
offset
--
>
0
&&
memory_disasm_one_insn
(
&
last
));
for
(
i
=
0
;
(
instruction_count
==
0
||
i
<
instruction_count
)
&&
(
stop
==
0
||
last
.
Offset
<=
stop
);
i
++
)
memory_disasm_one_insn
(
&
last
);
}
}
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