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
50841431
Commit
50841431
authored
Nov 10, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Slightly change the option setting syntax (allows also to get the current state back).
parent
4c00325c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
dbg.y
programs/winedbg/dbg.y
+2
-2
debugger.h
programs/winedbg/debugger.h
+1
-1
winedbg.c
programs/winedbg/winedbg.c
+11
-4
No files found.
programs/winedbg/dbg.y
View file @
50841431
...
...
@@ -210,8 +210,8 @@ set_command:
| tSET '-' tIDENTIFIER { info_wine_dbg_channel(FALSE, NULL, $3); }
| tSET tIDENTIFIER '+' tIDENTIFIER { info_wine_dbg_channel(TRUE, $2, $4); }
| tSET tIDENTIFIER '-' tIDENTIFIER { info_wine_dbg_channel(FALSE, $2, $4); }
| tSET '!' tIDENTIFIER
'+' { dbg_set_option($3, TRUE
); }
| tSET '!' tIDENTIFIER
'-' { dbg_set_option($3, FALSE
); }
| tSET '!' tIDENTIFIER
tIDENTIFIER { dbg_set_option($3, $4
); }
| tSET '!' tIDENTIFIER
{ dbg_set_option($3, NULL
); }
;
x_command:
...
...
programs/winedbg/debugger.h
View file @
50841431
...
...
@@ -456,7 +456,7 @@ extern void dbg_del_thread(struct dbg_thread* t);
extern
BOOL
dbg_init
(
HANDLE
hProc
,
const
WCHAR
*
in
,
BOOL
invade
);
extern
BOOL
dbg_load_module
(
HANDLE
hProc
,
HANDLE
hFile
,
const
WCHAR
*
name
,
DWORD
base
,
DWORD
size
);
extern
BOOL
dbg_get_debuggee_info
(
HANDLE
hProcess
,
IMAGEHLP_MODULE
*
imh_mod
);
extern
void
dbg_set_option
(
const
char
*
,
BOOL
);
extern
void
dbg_set_option
(
const
char
*
,
const
char
*
);
/* gdbproxy.c */
extern
int
gdb_main
(
int
argc
,
char
*
argv
[]);
...
...
programs/winedbg/winedbg.c
View file @
50841431
...
...
@@ -501,13 +501,20 @@ void dbg_del_thread(struct dbg_thread* t)
HeapFree
(
GetProcessHeap
(),
0
,
t
);
}
void
dbg_set_option
(
const
char
*
option
,
BOOL
enable
)
void
dbg_set_option
(
const
char
*
option
,
const
char
*
val
)
{
if
(
!
strc
mp
(
option
,
"module
"
))
if
(
!
strc
asecmp
(
option
,
"module_load_mismatched
"
))
{
DWORD
opt
=
SymGetOptions
();
if
(
enable
)
opt
|=
SYMOPT_LOAD_ANYTHING
;
else
opt
&=
~
SYMOPT_LOAD_ANYTHING
;
if
(
!
val
)
dbg_printf
(
"Option: module_load_mismatched %s
\n
"
,
opt
&
SYMOPT_LOAD_ANYTHING
?
"true"
:
"false"
);
else
if
(
!
strcasecmp
(
val
,
"true"
))
opt
|=
SYMOPT_LOAD_ANYTHING
;
else
if
(
!
strcasecmp
(
val
,
"false"
))
opt
&=
~
SYMOPT_LOAD_ANYTHING
;
else
{
dbg_printf
(
"Syntax: module_load_mismatched [true|false]
\n
"
);
return
;
}
SymSetOptions
(
opt
);
}
else
dbg_printf
(
"Unknown option '%s'
\n
"
,
option
);
...
...
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