GNU Binutils with patches for OS216
Revisão | 4ef3f3be7ae2203142ecf69debf476b3545c7653 (tree) |
---|---|
Hora | 2003-01-10 03:03:38 |
Autor | Andrew Cagney <cagney@redh...> |
Commiter | Andrew Cagney |
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".
@@ -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 | + | |
1 | 11 | 2003-01-08 Andrew Cagney <cagney@redhat.com> |
2 | 12 | |
3 | 13 | * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use |
@@ -1561,7 +1561,8 @@ c-typeprint.o: c-typeprint.c $(defs_h) $(gdb_obstack_h) $(bfd_h) $(symtab_h) \ | ||
1561 | 1561 | c-valprint.o: c-valprint.c $(defs_h) $(gdb_string_h) $(symtab_h) \ |
1562 | 1562 | $(gdbtypes_h) $(expression_h) $(value_h) $(valprint_h) $(language_h) \ |
1563 | 1563 | $(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) | |
1565 | 1566 | cli-out.o: cli-out.c $(defs_h) $(ui_out_h) $(cli_out_h) $(gdb_string_h) \ |
1566 | 1567 | $(gdb_assert_h) |
1567 | 1568 | 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) \ | ||
2496 | 2497 | mi-cmd-disas.o: $(srcdir)/mi/mi-cmd-disas.c $(defs_h) $(target_h) $(value_h) \ |
2497 | 2498 | $(mi_cmds_h) $(mi_getopt_h) $(ui_out_h) $(gdb_string_h) $(disasm_h) |
2498 | 2499 | $(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) | |
2502 | 2503 | $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-cmd-env.c |
2503 | 2504 | mi-cmd-stack.o: $(srcdir)/mi/mi-cmd-stack.c $(defs_h) $(target_h) $(frame_h) \ |
2504 | 2505 | $(value_h) $(mi_cmds_h) $(ui_out_h) $(symtab_h) |
@@ -24,7 +24,7 @@ | ||
24 | 24 | #include "gdb_assert.h" |
25 | 25 | |
26 | 26 | #include <stddef.h> |
27 | -#include <string.h> | |
27 | +#include "gdb_string.h" | |
28 | 28 | #include <ctype.h> |
29 | 29 | |
30 | 30 | #ifdef HAVE_ICONV |
@@ -442,7 +442,7 @@ cached_iconv_convert (struct cached_iconv *ci, int from_char, int *to_char) | ||
442 | 442 | |
443 | 443 | |
444 | 444 | static void |
445 | -register_iconv_charsets () | |
445 | +register_iconv_charsets (void) | |
446 | 446 | { |
447 | 447 | /* Here we should check whether various character sets were |
448 | 448 | recognized by the local iconv implementation. |
@@ -479,7 +479,7 @@ cached_iconv_convert (struct cached_iconv *ci, int from_char, int *to_char) | ||
479 | 479 | } |
480 | 480 | |
481 | 481 | static void |
482 | -register_iconv_charsets () | |
482 | +register_iconv_charsets (void) | |
483 | 483 | { |
484 | 484 | } |
485 | 485 |
@@ -1016,7 +1016,7 @@ set_host_charset (const char *charset) | ||
1016 | 1016 | |
1017 | 1017 | |
1018 | 1018 | const char * |
1019 | -host_charset () | |
1019 | +host_charset (void) | |
1020 | 1020 | { |
1021 | 1021 | return current_host_charset->name; |
1022 | 1022 | } |
@@ -1032,7 +1032,7 @@ set_target_charset (const char *charset) | ||
1032 | 1032 | |
1033 | 1033 | |
1034 | 1034 | const char * |
1035 | -target_charset () | |
1035 | +target_charset (void) | |
1036 | 1036 | { |
1037 | 1037 | return current_target_charset->name; |
1038 | 1038 | } |
@@ -220,7 +220,7 @@ print_subexp (register struct expression *exp, register int *pos, | ||
220 | 220 | } |
221 | 221 | fprintf_unfiltered (stream, "]"); |
222 | 222 | /* "selector" was malloc'd by target_read_string. Free it. */ |
223 | - free (selector); | |
223 | + xfree (selector); | |
224 | 224 | return; |
225 | 225 | } |
226 | 226 |
@@ -66,7 +66,7 @@ static int restore_selected_frame (void *); | ||
66 | 66 | |
67 | 67 | static void build_infrun (void); |
68 | 68 | |
69 | -static int follow_fork (); | |
69 | +static int follow_fork (void); | |
70 | 70 | |
71 | 71 | static void set_schedlock_func (char *args, int from_tty, |
72 | 72 | struct cmd_list_element *c); |
@@ -377,7 +377,7 @@ static const char *follow_fork_mode_string = follow_fork_mode_parent; | ||
377 | 377 | |
378 | 378 | |
379 | 379 | static int |
380 | -follow_fork () | |
380 | +follow_fork (void) | |
381 | 381 | { |
382 | 382 | const char *follow_mode = follow_fork_mode_string; |
383 | 383 | int follow_child = (follow_mode == follow_fork_mode_child); |
@@ -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 | + | |
1 | 6 | 2002-12-13 Jeff Johnston <jjohnstn@redhat.com> |
2 | 7 | |
3 | 8 | * mi-cmds.c (-environment-directory) Change to use mi_cmd_env_dir, |
@@ -19,9 +19,6 @@ | ||
19 | 19 | Foundation, Inc., 59 Temple Place - Suite 330, |
20 | 20 | Boston, MA 02111-1307, USA. */ |
21 | 21 | |
22 | -#include <string.h> | |
23 | -#include <sys/stat.h> | |
24 | - | |
25 | 22 | #include "defs.h" |
26 | 23 | #include "inferior.h" |
27 | 24 | #include "value.h" |
@@ -35,6 +32,9 @@ | ||
35 | 32 | #include "ui-out.h" |
36 | 33 | #include "top.h" |
37 | 34 | |
35 | +#include "gdb_string.h" | |
36 | +#include <sys/stat.h> | |
37 | + | |
38 | 38 | static void env_cli_command (const char *cli, char *args); |
39 | 39 | static void env_mod_path (char *dirname, char **which_path); |
40 | 40 | extern void _initialize_mi_cmd_env (void); |