mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 12:53:17 +08:00
* arch-utils.c (selected_byte_order): New.
* arch-utils.h (selected_byte_order): New prototype. * remote-sim.c (gdbsim_open): Use selected_byte_order.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
|
* arch-utils.c (selected_byte_order): New.
|
||||||
|
* arch-utils.h (selected_byte_order): New prototype.
|
||||||
|
* remote-sim.c (gdbsim_open): Use selected_byte_order.
|
||||||
|
|
||||||
2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
|
2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
* symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
|
* symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
|
||||||
|
@ -287,6 +287,15 @@ static const char *endian_enum[] =
|
|||||||
};
|
};
|
||||||
static const char *set_endian_string;
|
static const char *set_endian_string;
|
||||||
|
|
||||||
|
enum bfd_endian
|
||||||
|
selected_byte_order (void)
|
||||||
|
{
|
||||||
|
if (target_byte_order_user != BFD_ENDIAN_UNKNOWN)
|
||||||
|
return TARGET_BYTE_ORDER;
|
||||||
|
else
|
||||||
|
return BFD_ENDIAN_UNKNOWN;
|
||||||
|
}
|
||||||
|
|
||||||
/* Called by ``show endian''. */
|
/* Called by ``show endian''. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -118,6 +118,10 @@ int default_remote_register_number (struct gdbarch *gdbarch,
|
|||||||
|
|
||||||
extern int legacy_register_sim_regno (int regnum);
|
extern int legacy_register_sim_regno (int regnum);
|
||||||
|
|
||||||
|
/* Return the selected byte order, or BFD_ENDIAN_UNKNOWN if no byte
|
||||||
|
order was explicitly selected. */
|
||||||
|
extern enum bfd_endian selected_byte_order (void);
|
||||||
|
|
||||||
/* Return the selected architecture's name, or NULL if no architecture
|
/* Return the selected architecture's name, or NULL if no architecture
|
||||||
was explicitly selected. */
|
was explicitly selected. */
|
||||||
extern const char *selected_architecture_name (void);
|
extern const char *selected_architecture_name (void);
|
||||||
|
@ -504,9 +504,9 @@ gdbsim_open (char *args, int from_tty)
|
|||||||
+ 50) /* slack */ ;
|
+ 50) /* slack */ ;
|
||||||
arg_buf = (char *) alloca (len);
|
arg_buf = (char *) alloca (len);
|
||||||
strcpy (arg_buf, "gdbsim"); /* 7 */
|
strcpy (arg_buf, "gdbsim"); /* 7 */
|
||||||
/* Specify the byte order for the target when it is both selectable
|
/* Specify the byte order for the target when it is explicitly
|
||||||
and explicitly specified by the user (not auto detected). */
|
specified by the user (not auto detected). */
|
||||||
switch (TARGET_BYTE_ORDER)
|
switch (selected_byte_order ())
|
||||||
{
|
{
|
||||||
case BFD_ENDIAN_BIG:
|
case BFD_ENDIAN_BIG:
|
||||||
strcat (arg_buf, " -E big");
|
strcat (arg_buf, " -E big");
|
||||||
|
Reference in New Issue
Block a user