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
d3f80c1e
Commit
d3f80c1e
authored
May 24, 2010
by
Andrew Eikum
Committed by
Alexandre Julliard
May 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Allow user to specify length of stack info output.
parent
084d5f1f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
10 deletions
+14
-10
dbg.y
programs/winedbg/dbg.y
+2
-1
debugger.h
programs/winedbg/debugger.h
+1
-1
info.c
programs/winedbg/info.c
+1
-1
stack.c
programs/winedbg/stack.c
+8
-5
tgt_active.c
programs/winedbg/tgt_active.c
+1
-1
tgt_minidump.c
programs/winedbg/tgt_minidump.c
+1
-1
No files found.
programs/winedbg/dbg.y
View file @
d3f80c1e
...
...
@@ -274,7 +274,8 @@ info_command:
| tINFO tALLREGS { be_cpu->print_context(dbg_curr_thread->handle, &dbg_context, 1); }
| tINFO tSEGMENTS expr_rvalue { info_win32_segments($3 >> 3, 1); }
| tINFO tSEGMENTS { info_win32_segments(0, -1); }
| tINFO tSTACK { stack_info(); }
| tINFO tSTACK tNUM { stack_info($3); }
| tINFO tSTACK { stack_info(-1); }
| tINFO tSYMBOL tSTRING { symbol_info($3); }
| tINFO tLOCAL { symbol_info_locals(); }
| tINFO tDISPLAY { display_info(); }
...
...
programs/winedbg/debugger.h
View file @
d3f80c1e
...
...
@@ -384,7 +384,7 @@ extern void source_nuke_path(struct dbg_process* p);
extern
void
source_free_files
(
struct
dbg_process
*
p
);
/* stack.c */
extern
void
stack_info
(
void
);
extern
void
stack_info
(
int
len
);
extern
void
stack_backtrace
(
DWORD
threadID
);
extern
BOOL
stack_set_frame
(
int
newframe
);
extern
BOOL
stack_get_current_frame
(
IMAGEHLP_STACK_FRAME
*
ihsf
);
...
...
programs/winedbg/info.c
View file @
d3f80c1e
...
...
@@ -106,7 +106,7 @@ void info_help(void)
" info segments <pid> Displays information about all known segments"
,
" info share Displays all loaded modules"
,
" info share <addr> Displays internal module state"
,
" info stack
Dumps information about top of stack
"
,
" info stack
[<len>] Dumps information about top of stack, up to len words
"
,
" info symbol <sym> Displays information about a given symbol"
,
" info thread Shows all running threads"
,
" info wnd <handle> Displays internal window state"
,
...
...
programs/winedbg/stack.c
View file @
d3f80c1e
...
...
@@ -33,12 +33,15 @@
/***********************************************************************
* stack_info
*
* Dump the top of the stack
* Dump the top of the stack
. If len <= 0, a default length is used.
*/
void
stack_info
(
void
)
void
stack_info
(
int
len
)
{
struct
dbg_lvalue
lvalue
;
if
(
len
<=
0
)
len
=
24
;
lvalue
.
cookie
=
0
;
lvalue
.
type
.
id
=
dbg_itype_segptr
;
lvalue
.
type
.
module
=
0
;
...
...
@@ -51,14 +54,14 @@ void stack_info(void)
switch
(
lvalue
.
addr
.
Mode
)
{
case
AddrModeFlat
:
/* 32-bit or 64-bit mode */
memory_examine
(
&
lvalue
,
24
,
'a'
);
memory_examine
(
&
lvalue
,
len
,
'a'
);
break
;
case
AddrMode1632
:
/* 32-bit mode */
memory_examine
(
&
lvalue
,
24
,
'x'
);
memory_examine
(
&
lvalue
,
len
,
'x'
);
break
;
case
AddrModeReal
:
/* 16-bit mode */
case
AddrMode1616
:
memory_examine
(
&
lvalue
,
24
,
'w'
);
memory_examine
(
&
lvalue
,
len
,
'w'
);
break
;
}
}
...
...
programs/winedbg/tgt_active.c
View file @
d3f80c1e
...
...
@@ -182,7 +182,7 @@ static unsigned dbg_exception_prolog(BOOL is_debug, BOOL first_chance, const EXC
{
/* This is a real crash, dump some info */
be_cpu
->
print_context
(
dbg_curr_thread
->
handle
,
&
dbg_context
,
0
);
stack_info
();
stack_info
(
-
1
);
be_cpu
->
print_segment_info
(
dbg_curr_thread
->
handle
,
&
dbg_context
);
stack_backtrace
(
dbg_curr_tid
);
}
...
...
programs/winedbg/tgt_minidump.c
View file @
d3f80c1e
...
...
@@ -389,7 +389,7 @@ static enum dbg_start minidump_do_reload(struct tgt_process_minidump_data* data)
memory_get_current_pc
(
&
addr
);
stack_fetch_frames
(
&
dbg_context
);
be_cpu
->
print_context
(
dbg_curr_thread
->
handle
,
&
dbg_context
,
0
);
stack_info
();
stack_info
(
-
1
);
be_cpu
->
print_segment_info
(
dbg_curr_thread
->
handle
,
&
dbg_context
);
stack_backtrace
(
mes
->
ThreadId
);
source_list_from_addr
(
&
addr
,
0
);
...
...
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