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
a7ff2f67
Commit
a7ff2f67
authored
Feb 16, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: A couple of fixes after running valgrind.
parent
0ba307d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
stack.c
programs/winedbg/stack.c
+2
-1
winedbg.c
programs/winedbg/winedbg.c
+1
-0
No files found.
programs/winedbg/stack.c
View file @
a7ff2f67
...
...
@@ -84,6 +84,7 @@ static BOOL stack_set_frame_internal(int newframe)
static
BOOL
stack_get_frame
(
int
nf
,
IMAGEHLP_STACK_FRAME
*
ihsf
)
{
memset
(
ihsf
,
0
,
sizeof
(
*
ihsf
));
ihsf
->
InstructionOffset
=
(
unsigned
long
)
memory_to_linear_addr
(
&
dbg_curr_thread
->
frames
[
nf
].
addr_pc
);
ihsf
->
FrameOffset
=
(
unsigned
long
)
memory_to_linear_addr
(
&
dbg_curr_thread
->
frames
[
nf
].
addr_frame
);
return
TRUE
;
...
...
@@ -229,7 +230,7 @@ static void stack_print_addr_and_args(int nf)
DWORD
disp
;
dbg_printf
(
" %s"
,
si
->
Name
);
if
(
disp
)
dbg_printf
(
"+0x%lx"
,
(
DWORD_PTR
)
disp64
);
if
(
disp
64
)
dbg_printf
(
"+0x%lx"
,
(
DWORD_PTR
)
disp64
);
SymSetContext
(
dbg_curr_process
->
handle
,
&
ihsf
,
NULL
);
se
.
tmp
=
tmp
;
...
...
programs/winedbg/winedbg.c
View file @
a7ff2f67
...
...
@@ -397,6 +397,7 @@ struct dbg_thread* dbg_add_thread(struct dbg_process* p, DWORD tid,
t
->
frames
=
NULL
;
t
->
num_frames
=
0
;
t
->
curr_frame
=
-
1
;
t
->
addr_mode
=
AddrModeFlat
;
snprintf
(
t
->
name
,
sizeof
(
t
->
name
),
"0x%08lx"
,
tid
);
...
...
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