mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
2011-06-06 Pedro Alves <pedro@codesourcery.com>
gdb/ * infcall.c (run_inferior_call): Don't mask async. Instead force a synchronous wait, if the target can async. * target.h (struct target_ops): Delete to_async_mask. (target_async_mask): Delete. * target.c (update_current_target): Delete references to to_async_mask. * linux-nat.c (linux_nat_async_mask_value): Delete. (linux_nat_is_async_p, linux_nat_can_async_p): Remove references to linux_nat_async_mask_value. (linux_nat_async_mask): Delete. (linux_nat_async, linux_nat_close): Remove references to linux_nat_async_mask_value. * record.c (record_async_mask_value): Delete. (record_async): Remove references to record_async_mask_value. (record_async_mask): Delete. (record_can_async_p, record_is_async_p): Remove references to record_async_mask_value. (init_record_ops, init_record_core_ops): Remove references to record_async_mask. * remote.c (remote_async_mask_value): Delete. (init_remote_ops): Remove reference to remote_async_mask. (remote_can_async_p, remote_is_async_p): Remove references to remote_async_mask_value. (remote_async): Remove references to remote_async_mask_value. (remote_async_mask): Delete. * infrun.c (fetch_inferior_event): Don't claim registers changed if the current thread is already not executing.
This commit is contained in:
18
gdb/target.h
18
gdb/target.h
@ -524,7 +524,6 @@ struct target_ops
|
||||
int (*to_can_async_p) (void);
|
||||
int (*to_is_async_p) (void);
|
||||
void (*to_async) (void (*) (enum inferior_event_type, void *), void *);
|
||||
int (*to_async_mask) (int);
|
||||
int (*to_supports_non_stop) (void);
|
||||
/* find_memory_regions support method for gcore */
|
||||
int (*to_find_memory_regions) (find_memory_region_ftype func, void *data);
|
||||
@ -1255,23 +1254,6 @@ int target_supports_non_stop (void);
|
||||
#define target_async(CALLBACK,CONTEXT) \
|
||||
(current_target.to_async ((CALLBACK), (CONTEXT)))
|
||||
|
||||
/* This is to be used ONLY within call_function_by_hand(). It provides
|
||||
a workaround, to have inferior function calls done in sychronous
|
||||
mode, even though the target is asynchronous. After
|
||||
target_async_mask(0) is called, calls to target_can_async_p() will
|
||||
return FALSE , so that target_resume() will not try to start the
|
||||
target asynchronously. After the inferior stops, we IMMEDIATELY
|
||||
restore the previous nature of the target, by calling
|
||||
target_async_mask(1). After that, target_can_async_p() will return
|
||||
TRUE. ANY OTHER USE OF THIS FEATURE IS DEPRECATED.
|
||||
|
||||
FIXME ezannoni 1999-12-13: we won't need this once we move
|
||||
the turning async on and off to the single execution commands,
|
||||
from where it is done currently, in remote_resume(). */
|
||||
|
||||
#define target_async_mask(MASK) \
|
||||
(current_target.to_async_mask (MASK))
|
||||
|
||||
#define target_execution_direction() \
|
||||
(current_target.to_execution_direction ())
|
||||
|
||||
|
Reference in New Issue
Block a user