* i386-nto-tdep.c (i386_nto_target): Remove definition.
(init_i386nto_ops): Use macros to set fields to global current_nto_target directly. (i386nto_init_abi): Remove unused nto_set_target call. * nto-tdep.h (nto_set_target): Remove unused declaration. * nto-tdep.c (nto_set_target): Remove unused function.
This commit is contained in:
parent
80c99de1bc
commit
80b1849c68
|
@ -1,3 +1,12 @@
|
||||||
|
2009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
|
||||||
|
|
||||||
|
* i386-nto-tdep.c (i386_nto_target): Remove definition.
|
||||||
|
(init_i386nto_ops): Use macros to set fields to global
|
||||||
|
current_nto_target directly.
|
||||||
|
(i386nto_init_abi): Remove unused nto_set_target call.
|
||||||
|
* nto-tdep.h (nto_set_target): Remove unused declaration.
|
||||||
|
* nto-tdep.c (nto_set_target): Remove unused function.
|
||||||
|
|
||||||
2009-06-11 Pedro Alves <pedro@codesourcery.com>
|
2009-06-11 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* breakpoint.c (break_command_really): Rename local variable
|
* breakpoint.c (break_command_really): Rename local variable
|
||||||
|
|
|
@ -34,9 +34,6 @@
|
||||||
#include "solib.h"
|
#include "solib.h"
|
||||||
#include "solib-svr4.h"
|
#include "solib-svr4.h"
|
||||||
|
|
||||||
/* Target vector for QNX NTO x86. */
|
|
||||||
static struct nto_target_ops i386_nto_target;
|
|
||||||
|
|
||||||
#ifndef X86_CPU_FXSR
|
#ifndef X86_CPU_FXSR
|
||||||
#define X86_CPU_FXSR (1L << 12)
|
#define X86_CPU_FXSR (1L << 12)
|
||||||
#endif
|
#endif
|
||||||
|
@ -310,14 +307,14 @@ i386nto_sigcontext_addr (struct frame_info *this_frame)
|
||||||
static void
|
static void
|
||||||
init_i386nto_ops (void)
|
init_i386nto_ops (void)
|
||||||
{
|
{
|
||||||
i386_nto_target.regset_id = i386nto_regset_id;
|
nto_regset_id = i386nto_regset_id;
|
||||||
i386_nto_target.supply_gregset = i386nto_supply_gregset;
|
nto_supply_gregset = i386nto_supply_gregset;
|
||||||
i386_nto_target.supply_fpregset = i386nto_supply_fpregset;
|
nto_supply_fpregset = i386nto_supply_fpregset;
|
||||||
i386_nto_target.supply_altregset = nto_dummy_supply_regset;
|
nto_supply_altregset = nto_dummy_supply_regset;
|
||||||
i386_nto_target.supply_regset = i386nto_supply_regset;
|
nto_supply_regset = i386nto_supply_regset;
|
||||||
i386_nto_target.register_area = i386nto_register_area;
|
nto_register_area = i386nto_register_area;
|
||||||
i386_nto_target.regset_fill = i386nto_regset_fill;
|
nto_regset_fill = i386nto_regset_fill;
|
||||||
i386_nto_target.fetch_link_map_offsets =
|
nto_fetch_link_map_offsets =
|
||||||
svr4_ilp32_fetch_link_map_offsets;
|
svr4_ilp32_fetch_link_map_offsets;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -371,8 +368,6 @@ i386nto_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
|
||||||
= nto_in_dynsym_resolve_code;
|
= nto_in_dynsym_resolve_code;
|
||||||
}
|
}
|
||||||
set_solib_ops (gdbarch, &nto_svr4_so_ops);
|
set_solib_ops (gdbarch, &nto_svr4_so_ops);
|
||||||
|
|
||||||
nto_set_target (&i386_nto_target);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Provide a prototype to silence -Wmissing-prototypes. */
|
/* Provide a prototype to silence -Wmissing-prototypes. */
|
||||||
|
|
|
@ -67,19 +67,6 @@ nto_target (void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
nto_set_target (struct nto_target_ops *targ)
|
|
||||||
{
|
|
||||||
nto_regset_id = targ->regset_id;
|
|
||||||
nto_supply_gregset = targ->supply_gregset;
|
|
||||||
nto_supply_fpregset = targ->supply_fpregset;
|
|
||||||
nto_supply_altregset = targ->supply_altregset;
|
|
||||||
nto_supply_regset = targ->supply_regset;
|
|
||||||
nto_register_area = targ->register_area;
|
|
||||||
nto_regset_fill = targ->regset_fill;
|
|
||||||
nto_fetch_link_map_offsets = targ->fetch_link_map_offsets;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Take a string such as i386, rs6000, etc. and map it onto CPUTYPE_X86,
|
/* Take a string such as i386, rs6000, etc. and map it onto CPUTYPE_X86,
|
||||||
CPUTYPE_PPC, etc. as defined in nto-share/dsmsgs.h. */
|
CPUTYPE_PPC, etc. as defined in nto-share/dsmsgs.h. */
|
||||||
int
|
int
|
||||||
|
|
|
@ -142,8 +142,6 @@ typedef struct _debug_regs
|
||||||
|
|
||||||
void nto_init_solib_absolute_prefix (void);
|
void nto_init_solib_absolute_prefix (void);
|
||||||
|
|
||||||
void nto_set_target(struct nto_target_ops *);
|
|
||||||
|
|
||||||
char **nto_parse_redirection (char *start_argv[], const char **in,
|
char **nto_parse_redirection (char *start_argv[], const char **in,
|
||||||
const char **out, const char **err);
|
const char **out, const char **err);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue