mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
Move arm_apcs_32 extern declaration to header
Instead of having several extern declarations for arm_apcs_32 in a few .c files, declare it in arm-tdep.h. This file is already included from these .c files. gdb/ChangeLog: 2019-09-19 Christian Biesinger <cbiesinger@google.com> * arm-linux-nat.c: Remove extern declaration for arm_apcs_32. * arm-linux-tdep.c: Likewise. * arm-nbsd-nat.c: Likewise. * arm-tdep.h: Declare arm_apcs_32.
This commit is contained in:
@ -1,3 +1,11 @@
|
||||
2019-09-19 Christian Biesinger <cbiesinger@google.com>
|
||||
|
||||
* arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
|
||||
* arm-linux-tdep.c: Likewise.
|
||||
* arm-nbsd-nat.c: Likewise.
|
||||
* arm-tdep.h: Declare arm_apcs_32.
|
||||
* arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
|
||||
|
||||
2019-09-19 Christian Biesinger <cbiesinger@google.com>
|
||||
|
||||
* dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
|
||||
|
@ -66,8 +66,6 @@
|
||||
#define PTRACE_SETHBPREGS 30
|
||||
#endif
|
||||
|
||||
extern bool arm_apcs_32;
|
||||
|
||||
class arm_linux_nat_target final : public linux_nat_target
|
||||
{
|
||||
public:
|
||||
|
@ -56,7 +56,6 @@
|
||||
#include "user-regs.h"
|
||||
#include <ctype.h>
|
||||
#include "elf/common.h"
|
||||
extern bool arm_apcs_32;
|
||||
|
||||
/* Under ARM GNU/Linux the traditional way of performing a breakpoint
|
||||
is to execute a particular software interrupt, rather than use a
|
||||
|
@ -40,8 +40,6 @@ public:
|
||||
|
||||
static arm_netbsd_nat_target the_arm_netbsd_nat_target;
|
||||
|
||||
extern bool arm_apcs_32;
|
||||
|
||||
static void
|
||||
arm_supply_gregset (struct regcache *regcache, struct reg *gregset)
|
||||
{
|
||||
|
@ -294,7 +294,7 @@ static CORE_ADDR arm_analyze_prologue (struct gdbarch *gdbarch,
|
||||
|
||||
#define DISPLACED_STEPPING_ARCH_VERSION 5
|
||||
|
||||
/* Set to true if the 32-bit mode is in use. */
|
||||
/* See arm-tdep.h. */
|
||||
|
||||
bool arm_apcs_32 = true;
|
||||
|
||||
|
@ -26,6 +26,10 @@ struct get_next_pcs;
|
||||
struct arm_get_next_pcs;
|
||||
struct gdb_get_next_pcs;
|
||||
|
||||
/* Set to true if the 32-bit mode is in use. */
|
||||
|
||||
extern bool arm_apcs_32;
|
||||
|
||||
#include "gdbarch.h"
|
||||
#include "arch/arm.h"
|
||||
#include "infrun.h"
|
||||
|
Reference in New Issue
Block a user