Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#include <sys/stat.h>
+#include "gdb_stat.h"
#include "gdb_string.h"
#include "nto-tdep.h"
#include "top.h"
int which, CORE_ADDR reg_addr)
{
nto_regset_t regset;
-
- nto_init_solib_absolute_prefix ();
-
- if (which == NTO_REG_GENERAL)
+
+/* See corelow.c:get_core_registers for values of WHICH. */
+ if (which == 0)
{
memcpy ((char *) ®set, core_reg_sect,
min (core_reg_size, sizeof (regset)));
nto_supply_gregset ((char *) ®set);
}
- else if (which == NTO_REG_FLOAT)
+ else if (which == 2)
{
memcpy ((char *) ®set, core_reg_sect,
min (core_reg_size, sizeof (regset)));
nto_supply_fpregset ((char *) ®set);
}
- else if (which == NTO_REG_ALT)
- {
- memcpy ((char *) ®set, core_reg_sect,
- min (core_reg_size, sizeof (regset)));
- nto_supply_altregset ((char *) ®set);
- }
}
void
};
void
-_initialize_nto_tdep ()
+_initialize_nto_tdep (void)
{
- add_show_from_set (add_set_cmd ("nto-debug", class_maintenance, var_zinteger, (char *) &nto_internal_debugging, "Set QNX NTO internal debugging.\n\
+ add_setshow_cmd ("nto-debug", class_maintenance, var_zinteger,
+ &nto_internal_debugging, "Set QNX NTO internal debugging.\n\
When non-zero, nto specific debug info is\n\
displayed. Different information is displayed\n\
-for different positive values.", &setdebuglist),
- &showdebuglist);
+for different positive values.", "Show QNX NTO internal debugging.\n",
+ NULL, NULL, &setdebuglist, &showdebuglist);
/* We use SIG45 for pulses, or something, so nostop, noprint
and pass them. */