summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Warkentin <kewarken@qnx.com>2003-05-06 16:47:47 +0000
committerKris Warkentin <kewarken@qnx.com>2003-05-06 16:47:47 +0000
commitcf6bb08ce04b21cfb618e186ed92cca5feee3c69 (patch)
treebad6ffaa3e6903b1f1c0b2135911592fbaf01746
parent6301641df6a0481f71306587948cb41a1528fdde (diff)
downloadgdb-cf6bb08ce04b21cfb618e186ed92cca5feee3c69.tar.gz
Fixed some ARI hits
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/i386-nto-tdep.c2
-rw-r--r--gdb/nto-tdep.c12
-rw-r--r--gdb/nto-tdep.h17
4 files changed, 26 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 05e92982eb4..f301476ed36 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2003-05-06 Kris Warkentin <kewarken@qnx.com>
+
+ * i386-nto-tdep.c: Fix old K&R function definitions.
+ * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
+ Also change add_show_from_set() call to add_setshow_cmd().
+ * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
+
2003-05-05 Andrew Cagney <cagney@redhat.com>
* dummy-frame.c: Include "command.h" and "gdbcmd.h".
diff --git a/gdb/i386-nto-tdep.c b/gdb/i386-nto-tdep.c
index 42eb9cefa6c..b35dd2a13b7 100644
--- a/gdb/i386-nto-tdep.c
+++ b/gdb/i386-nto-tdep.c
@@ -242,7 +242,7 @@ i386nto_sigcontext_addr (struct frame_info *frame)
}
static void
-init_i386nto_ops ()
+init_i386nto_ops (void)
{
current_nto_target.nto_regset_id = i386nto_regset_id;
current_nto_target.nto_supply_gregset = i386nto_supply_gregset;
diff --git a/gdb/nto-tdep.c b/gdb/nto-tdep.c
index abf63b91291..631290c56f1 100644
--- a/gdb/nto-tdep.c
+++ b/gdb/nto-tdep.c
@@ -21,7 +21,7 @@
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"
@@ -309,13 +309,21 @@ static struct core_fns regset_core_fns = {
};
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\
When non-zero, nto specific debug info is\n\
displayed. Different information is displayed\n\
for different positive values.", &setdebuglist),
&showdebuglist);
+ */
+ 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.", "Show QNX NTO internal debugging.\n",
+ NULL, NULL, &setdebuglist, &showdebuglist);
/* We use SIG45 for pulses, or something, so nostop, noprint
and pass them. */
diff --git a/gdb/nto-tdep.h b/gdb/nto-tdep.h
index ac6f6280cb1..e22e8fd525c 100644
--- a/gdb/nto-tdep.h
+++ b/gdb/nto-tdep.h
@@ -29,23 +29,22 @@
/* Generic functions in nto-tdep.c. */
-extern void nto_init_solib_absolute_prefix PARAMS ((void));
+extern void nto_init_solib_absolute_prefix (void);
-char **nto_parse_redirection
-PARAMS ((char *start_argv[], char **in, char **out, char **err));
+char **nto_parse_redirection (char *start_argv[], char **in,
+ char **out, char **err);
-int proc_iterate_over_mappings PARAMS ((int (*func) (int, CORE_ADDR)));
+int proc_iterate_over_mappings (int (*func) (int, CORE_ADDR));
-void nto_relocate_section_addresses
-PARAMS ((struct so_list *, struct section_table *));
+void nto_relocate_section_addresses (struct so_list *, struct section_table *);
-int nto_map_arch_to_cputype PARAMS ((const char *));
+int nto_map_arch_to_cputype (const char *);
-int nto_find_and_open_solib PARAMS ((char *, unsigned, char **));
+int nto_find_and_open_solib (char *, unsigned, char **);
/* Dummy function for initializing nto_target_ops on targets which do
not define a particular regset. */
-void nto_dummy_supply_regset PARAMS ((char *regs));
+void nto_dummy_supply_regset (char *regs);
/* Target operations defined for Neutrino targets (<target>-nto-tdep.c). */