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
9c63540d
Commit
9c63540d
authored
Oct 03, 2005
by
Eric Pouech
Committed by
Alexandre Julliard
Oct 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now printing information when changing function while single stepping.
parent
4cc0bf28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
winedbg.c
programs/winedbg/winedbg.c
+29
-0
No files found.
programs/winedbg/winedbg.c
View file @
9c63540d
...
...
@@ -552,6 +552,35 @@ static unsigned dbg_exception_prolog(BOOL is_debug, const EXCEPTION_RECORD* rec)
be_cpu
->
print_segment_info
(
dbg_curr_thread
->
handle
,
&
dbg_context
);
stack_backtrace
(
dbg_curr_tid
,
TRUE
);
}
else
{
static
char
*
last_name
;
static
char
*
last_file
;
char
buffer
[
sizeof
(
SYMBOL_INFO
)
+
256
];
SYMBOL_INFO
*
si
=
(
SYMBOL_INFO
*
)
buffer
;
void
*
lin
=
memory_to_linear_addr
(
&
addr
);
DWORD64
disp64
;
IMAGEHLP_LINE
il
;
DWORD
disp
;
si
->
SizeOfStruct
=
sizeof
(
*
si
);
si
->
MaxNameLen
=
256
;
il
.
SizeOfStruct
=
sizeof
(
il
);
if
(
SymFromAddr
(
dbg_curr_process
->
handle
,
(
DWORD_PTR
)
lin
,
&
disp64
,
si
)
&&
SymGetLineFromAddr
(
dbg_curr_process
->
handle
,
(
DWORD_PTR
)
lin
,
&
disp
,
&
il
))
{
if
((
!
last_name
||
strcmp
(
last_name
,
si
->
Name
))
||
(
!
last_file
||
strcmp
(
last_file
,
il
.
FileName
)))
{
HeapFree
(
GetProcessHeap
(),
0
,
last_name
);
HeapFree
(
GetProcessHeap
(),
0
,
last_file
);
last_name
=
strcpy
(
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
si
->
Name
)
+
1
),
si
->
Name
);
last_file
=
strcpy
(
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
il
.
FileName
)
+
1
),
il
.
FileName
);
dbg_printf
(
"%s () at %s:%ld
\n
"
,
last_name
,
last_file
,
il
.
LineNumber
);
}
}
}
if
(
!
is_debug
||
is_break
||
dbg_curr_thread
->
exec_mode
==
dbg_exec_step_over_insn
||
dbg_curr_thread
->
exec_mode
==
dbg_exec_step_into_insn
)
...
...
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