mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
* Makefile.in (SFILES): Add new and missed files.
(target_descriptions_h): New. (COMMON_OBS): Add target-descriptions.o. (arch-utils.o, infcmd.o, remote.o, target.o): Update. (target-descriptions.o): New. * arch-utils.c (gdbarch_info_fill): Check for a target description. * target-descriptions.c, target-descriptions.h: New files. * gdbarch.sh: Add target_desc to info. Declare it in gdbarch.h. Correct typos. (gdbarch_list_lookup_by_info): Check target_desc. * gdbarch.c, gdbarch.h: Regenerated. * target.c (update_current_target): Mention to_read_description. (target_pre_inferior): Call target_clear_description. (target_read_description): New. * target.h (struct target_ops): Add to_read_description. (target_read_description): New prototype. * infcmd.c (post_create_inferior): Call target_find_description. * remote.c (remote_open_1): Likewise. (extended_remote_create_inferior): Add a comment. (extended_remote_async_create_inferior): Likewise.
This commit is contained in:
@ -48,6 +48,7 @@
|
||||
#include <ctype.h>
|
||||
#include "gdb_assert.h"
|
||||
#include "observer.h"
|
||||
#include "target-descriptions.h"
|
||||
|
||||
/* Functions exported for general use, in inferior.h: */
|
||||
|
||||
@ -405,6 +406,12 @@ tty_command (char *file, int from_tty)
|
||||
void
|
||||
post_create_inferior (struct target_ops *target, int from_tty)
|
||||
{
|
||||
/* If the target hasn't taken care of this already, do it now.
|
||||
Targets which need to access registers during to_open,
|
||||
to_create_inferior, or to_attach should do it earlier; but many
|
||||
don't need to. */
|
||||
target_find_description ();
|
||||
|
||||
if (exec_bfd)
|
||||
{
|
||||
/* Sometimes the platform-specific hook loads initial shared
|
||||
|
Reference in New Issue
Block a user