25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: debugger_expr.c,v 1.11 2007/06/15 17:02:39 debug Exp $ |
* $Id: debugger_expr.c,v 1.12 2007/06/28 14:58:38 debug Exp $ |
29 |
* |
* |
30 |
* Expression evaluator. |
* Expression evaluator. |
31 |
* |
* |
53 |
|
|
54 |
extern int debugger_cur_cpu; |
extern int debugger_cur_cpu; |
55 |
extern int debugger_cur_machine; |
extern int debugger_cur_machine; |
|
extern int debugger_cur_emul; |
|
56 |
|
|
57 |
|
|
58 |
/* |
/* |
142 |
|
|
143 |
if (!match_settings) { |
if (!match_settings) { |
144 |
snprintf(setting_name, sizeof(setting_name), |
snprintf(setting_name, sizeof(setting_name), |
145 |
GLOBAL_SETTINGS_NAME".emul[%i].%s", |
GLOBAL_SETTINGS_NAME".emul.%s", name); |
|
debugger_cur_emul, name); |
|
146 |
res = settings_access(global_settings, setting_name, |
res = settings_access(global_settings, setting_name, |
147 |
writeflag, valuep); |
writeflag, valuep); |
148 |
if (res == SETTINGS_OK) |
if (res == SETTINGS_OK) |
151 |
|
|
152 |
if (!match_settings) { |
if (!match_settings) { |
153 |
snprintf(setting_name, sizeof(setting_name), |
snprintf(setting_name, sizeof(setting_name), |
154 |
GLOBAL_SETTINGS_NAME".emul[%i].machine[%i].%s", |
GLOBAL_SETTINGS_NAME".emul.machine[%i].%s", |
155 |
debugger_cur_emul, debugger_cur_machine, name); |
debugger_cur_machine, name); |
156 |
res = settings_access(global_settings, setting_name, |
res = settings_access(global_settings, setting_name, |
157 |
writeflag, valuep); |
writeflag, valuep); |
158 |
if (res == SETTINGS_OK) |
if (res == SETTINGS_OK) |
161 |
|
|
162 |
if (!match_settings) { |
if (!match_settings) { |
163 |
snprintf(setting_name, sizeof(setting_name), |
snprintf(setting_name, sizeof(setting_name), |
164 |
GLOBAL_SETTINGS_NAME".emul[%i].machine[%i]." |
GLOBAL_SETTINGS_NAME".emul.machine[%i]." |
165 |
"cpu[%i].%s", debugger_cur_emul, |
"cpu[%i].%s", debugger_cur_machine, |
166 |
debugger_cur_machine, debugger_cur_cpu, name); |
debugger_cur_cpu, name); |
167 |
res = settings_access(global_settings, setting_name, |
res = settings_access(global_settings, setting_name, |
168 |
writeflag, valuep); |
writeflag, valuep); |
169 |
if (res == SETTINGS_OK) |
if (res == SETTINGS_OK) |