• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisão4ef3f3be7ae2203142ecf69debf476b3545c7653 (tree)
Hora2003-01-10 03:03:38
AutorAndrew Cagney <cagney@redh...>
CommiterAndrew Cagney

Mensagem de Log

2003-01-09 Andrew Cagney <ac131313@redhat.com>

* infrun.c (follow_fork): Use ISO C definition.
* expprint.c (print_subexp): Use xfree instead of free.
* charset.c: Include "gdb_string.h" instead of <string.h>.
(register_iconv_charsets): Use ISO C definition.
(host_charset, target_charset): Ditto.
* Makefile.in (charset.o): Update dependencies.
(mi-cmd-env.o): Update dependencies.

Index: mi/ChangeLog
2003-01-09 Andrew Cagney <ac131313@redhat.com>

* mi-cmd-env.c: Include "gdb_string.h" instead of <string.h>.
Move all includes to after "defs.h".

Mudança Sumário

Diff

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,13 @@
1+2003-01-09 Andrew Cagney <ac131313@redhat.com>
2+
3+ * infrun.c (follow_fork): Use ISO C definition.
4+ * expprint.c (print_subexp): Use xfree instead of free.
5+ * charset.c: Include "gdb_string.h" instead of <string.h>.
6+ (register_iconv_charsets): Use ISO C definition.
7+ (host_charset, target_charset): Ditto.
8+ * Makefile.in (charset.o): Update dependencies.
9+ (mi-cmd-env.o): Update dependencies.
10+
111 2003-01-08 Andrew Cagney <cagney@redhat.com>
212
313 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1561,7 +1561,8 @@ c-typeprint.o: c-typeprint.c $(defs_h) $(gdb_obstack_h) $(bfd_h) $(symtab_h) \
15611561 c-valprint.o: c-valprint.c $(defs_h) $(gdb_string_h) $(symtab_h) \
15621562 $(gdbtypes_h) $(expression_h) $(value_h) $(valprint_h) $(language_h) \
15631563 $(c_lang_h) $(cp_abi_h)
1564-charset.o: charset.c $(defs_h) $(charset_h) $(gdbcmd_h) gdb_assert.h
1564+charset.o: charset.c $(defs_h) $(charset_h) $(gdbcmd_h) $(gdb_assert_h) \
1565+ $(gdb_string_h)
15651566 cli-out.o: cli-out.c $(defs_h) $(ui_out_h) $(cli_out_h) $(gdb_string_h) \
15661567 $(gdb_assert_h)
15671568 coff-solib.o: coff-solib.c $(defs_h) $(frame_h) $(bfd_h) $(gdbcore_h) \
@@ -2496,9 +2497,9 @@ mi-cmd-break.o: $(srcdir)/mi/mi-cmd-break.c $(defs_h) $(mi_cmds_h) \
24962497 mi-cmd-disas.o: $(srcdir)/mi/mi-cmd-disas.c $(defs_h) $(target_h) $(value_h) \
24972498 $(mi_cmds_h) $(mi_getopt_h) $(ui_out_h) $(gdb_string_h) $(disasm_h)
24982499 $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-cmd-disas.c
2499-mi-cmd-env.o: $(srcdir)/mi/mi-cmd-env.c $(defs_h) $(mi_cmds_h) $(ui_out_h) \
2500- $(mi_out_h) $(varobj_h) $(value_h) $(gdb_string_h) $(inferior.h) \
2501- $(mi_getopt_h) $(environ_h) $(gdbcmd_h) $(top_h)
2500+mi-cmd-env.o: $(srcdir)/mi/mi-cmd-env.c $(defs_h) $(inferior_h) $(value_h) \
2501+ $(mi_out_h) $(mi_cmds_h) $(mi_getopt_h) $(symtab_h) $(target_h) \
2502+ $(environ_h) $(command_h) $(ui_out_h) $(top_h) $(gdb_string_h)
25022503 $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-cmd-env.c
25032504 mi-cmd-stack.o: $(srcdir)/mi/mi-cmd-stack.c $(defs_h) $(target_h) $(frame_h) \
25042505 $(value_h) $(mi_cmds_h) $(ui_out_h) $(symtab_h)
--- a/gdb/charset.c
+++ b/gdb/charset.c
@@ -24,7 +24,7 @@
2424 #include "gdb_assert.h"
2525
2626 #include <stddef.h>
27-#include <string.h>
27+#include "gdb_string.h"
2828 #include <ctype.h>
2929
3030 #ifdef HAVE_ICONV
@@ -442,7 +442,7 @@ cached_iconv_convert (struct cached_iconv *ci, int from_char, int *to_char)
442442
443443
444444 static void
445-register_iconv_charsets ()
445+register_iconv_charsets (void)
446446 {
447447 /* Here we should check whether various character sets were
448448 recognized by the local iconv implementation.
@@ -479,7 +479,7 @@ cached_iconv_convert (struct cached_iconv *ci, int from_char, int *to_char)
479479 }
480480
481481 static void
482-register_iconv_charsets ()
482+register_iconv_charsets (void)
483483 {
484484 }
485485
@@ -1016,7 +1016,7 @@ set_host_charset (const char *charset)
10161016
10171017
10181018 const char *
1019-host_charset ()
1019+host_charset (void)
10201020 {
10211021 return current_host_charset->name;
10221022 }
@@ -1032,7 +1032,7 @@ set_target_charset (const char *charset)
10321032
10331033
10341034 const char *
1035-target_charset ()
1035+target_charset (void)
10361036 {
10371037 return current_target_charset->name;
10381038 }
--- a/gdb/expprint.c
+++ b/gdb/expprint.c
@@ -220,7 +220,7 @@ print_subexp (register struct expression *exp, register int *pos,
220220 }
221221 fprintf_unfiltered (stream, "]");
222222 /* "selector" was malloc'd by target_read_string. Free it. */
223- free (selector);
223+ xfree (selector);
224224 return;
225225 }
226226
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -66,7 +66,7 @@ static int restore_selected_frame (void *);
6666
6767 static void build_infrun (void);
6868
69-static int follow_fork ();
69+static int follow_fork (void);
7070
7171 static void set_schedlock_func (char *args, int from_tty,
7272 struct cmd_list_element *c);
@@ -377,7 +377,7 @@ static const char *follow_fork_mode_string = follow_fork_mode_parent;
377377
378378
379379 static int
380-follow_fork ()
380+follow_fork (void)
381381 {
382382 const char *follow_mode = follow_fork_mode_string;
383383 int follow_child = (follow_mode == follow_fork_mode_child);
--- a/gdb/mi/ChangeLog
+++ b/gdb/mi/ChangeLog
@@ -1,3 +1,8 @@
1+2003-01-09 Andrew Cagney <ac131313@redhat.com>
2+
3+ * mi-cmd-env.c: Include "gdb_string.h" instead of <string.h>.
4+ Move all includes to after "defs.h".
5+
16 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
27
38 * mi-cmds.c (-environment-directory) Change to use mi_cmd_env_dir,
--- a/gdb/mi/mi-cmd-env.c
+++ b/gdb/mi/mi-cmd-env.c
@@ -19,9 +19,6 @@
1919 Foundation, Inc., 59 Temple Place - Suite 330,
2020 Boston, MA 02111-1307, USA. */
2121
22-#include <string.h>
23-#include <sys/stat.h>
24-
2522 #include "defs.h"
2623 #include "inferior.h"
2724 #include "value.h"
@@ -35,6 +32,9 @@
3532 #include "ui-out.h"
3633 #include "top.h"
3734
35+#include "gdb_string.h"
36+#include <sys/stat.h>
37+
3838 static void env_cli_command (const char *cli, char *args);
3939 static void env_mod_path (char *dirname, char **which_path);
4040 extern void _initialize_mi_cmd_env (void);