Re-indent (almost). Several cases where indent was getting it wrong
were omitted.
This commit is contained in:
parent
a960f24961
commit
eb2f494ab0
2 changed files with 41 additions and 32 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Apr 3 14:56:11 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
|
* top.c: Re-indent.
|
||||||
|
(set_hook, error_hook): Remove PARAMS.
|
||||||
|
|
||||||
Mon Apr 3 14:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
Mon Apr 3 14:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
* symtab.h (add_minsym_to_demangled_hash_table): Revert 2000-03-29
|
* symtab.h (add_minsym_to_demangled_hash_table): Revert 2000-03-29
|
||||||
|
|
36
gdb/top.c
36
gdb/top.c
|
@ -477,7 +477,7 @@ void (*call_command_hook) PARAMS ((struct cmd_list_element * c, char *cmd,
|
||||||
/* Called after a `set' command has finished. Is only run if the
|
/* Called after a `set' command has finished. Is only run if the
|
||||||
`set' command succeeded. */
|
`set' command succeeded. */
|
||||||
|
|
||||||
void (*set_hook) PARAMS ((struct cmd_list_element *c));
|
void (*set_hook) (struct cmd_list_element * c);
|
||||||
|
|
||||||
/* Called when the current thread changes. Argument is thread id. */
|
/* Called when the current thread changes. Argument is thread id. */
|
||||||
|
|
||||||
|
@ -486,8 +486,7 @@ void (*context_hook) PARAMS ((int id));
|
||||||
/* Takes control from error (). Typically used to prevent longjmps out of the
|
/* Takes control from error (). Typically used to prevent longjmps out of the
|
||||||
middle of the GUI. Usually used in conjunction with a catch routine. */
|
middle of the GUI. Usually used in conjunction with a catch routine. */
|
||||||
|
|
||||||
NORETURN void (*error_hook)
|
NORETURN void (*error_hook) (void) ATTR_NORETURN;
|
||||||
PARAMS ((void)) ATTR_NORETURN;
|
|
||||||
|
|
||||||
|
|
||||||
/* One should use catch_errors rather than manipulating these
|
/* One should use catch_errors rather than manipulating these
|
||||||
|
@ -540,7 +539,7 @@ return_to_top_level (reason)
|
||||||
to that call via setjmp's return value. Note that REASON can't
|
to that call via setjmp's return value. Note that REASON can't
|
||||||
be zero, by definition in defs.h. */
|
be zero, by definition in defs.h. */
|
||||||
|
|
||||||
(NORETURN void) SIGLONGJMP (*catch_return, (int)reason);
|
(NORETURN void) SIGLONGJMP (*catch_return, (int) reason);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Call FUNC with arg ARGS, catching any errors. If there is no
|
/* Call FUNC with arg ARGS, catching any errors. If there is no
|
||||||
|
@ -690,7 +689,7 @@ do_captured_command (void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
catch_command_errors (catch_command_errors_ftype *command,
|
catch_command_errors (catch_command_errors_ftype * command,
|
||||||
char *arg, int from_tty, return_mask mask)
|
char *arg, int from_tty, return_mask mask)
|
||||||
{
|
{
|
||||||
struct captured_command_args args;
|
struct captured_command_args args;
|
||||||
|
@ -3645,7 +3644,7 @@ cd_command (dir, from_tty)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
len = strlen (dir);
|
len = strlen (dir);
|
||||||
if (SLASH_P (dir[len-1]))
|
if (SLASH_P (dir[len - 1]))
|
||||||
{
|
{
|
||||||
/* Remove the trailing slash unless this is a root directory
|
/* Remove the trailing slash unless this is a root directory
|
||||||
(including a drive letter on non-Unix systems). */
|
(including a drive letter on non-Unix systems). */
|
||||||
|
@ -4000,8 +3999,7 @@ set_debug (arg, from_tty)
|
||||||
char *arg;
|
char *arg;
|
||||||
int from_tty;
|
int from_tty;
|
||||||
{
|
{
|
||||||
printf_unfiltered (
|
printf_unfiltered ("\"set debug\" must be followed by the name of a print subcommand.\n");
|
||||||
"\"set debug\" must be followed by the name of a print subcommand.\n");
|
|
||||||
help_list (setdebuglist, "set debug ", -1, gdb_stdout);
|
help_list (setdebuglist, "set debug ", -1, gdb_stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4338,14 +4336,16 @@ This value is used to set the speed of the serial port when debugging\n\
|
||||||
using remote targets.", &setlist),
|
using remote targets.", &setlist),
|
||||||
&showlist);
|
&showlist);
|
||||||
|
|
||||||
c = add_set_cmd("remotedebug", no_class, var_zinteger, (char *) &remote_debug, "Set debugging of remote protocol.\n\
|
c = add_set_cmd ("remotedebug", no_class, var_zinteger,
|
||||||
|
(char *) &remote_debug,
|
||||||
|
"Set debugging of remote protocol.\n\
|
||||||
When enabled, each packet sent or received with the remote target\n\
|
When enabled, each packet sent or received with the remote target\n\
|
||||||
is displayed.",&setlist);
|
is displayed.", &setlist);
|
||||||
deprecate_cmd(c,"set debug remote");
|
deprecate_cmd (c, "set debug remote");
|
||||||
deprecate_cmd(add_show_from_set(c,&showlist),"show debug remote");
|
deprecate_cmd (add_show_from_set (c, &showlist), "show debug remote");
|
||||||
|
|
||||||
add_show_from_set (
|
add_show_from_set (add_set_cmd ("remote", no_class, var_zinteger,
|
||||||
add_set_cmd ("remote", no_class, var_zinteger, (char *) &remote_debug,
|
(char *) &remote_debug,
|
||||||
"Set debugging of remote protocol.\n\
|
"Set debugging of remote protocol.\n\
|
||||||
When enabled, each packet sent or received with the remote target\n\
|
When enabled, each packet sent or received with the remote target\n\
|
||||||
is displayed.", &setdebuglist),
|
is displayed.", &setdebuglist),
|
||||||
|
@ -4389,7 +4389,11 @@ from the target.", &setlist),
|
||||||
Use \"on\" to enable the notification, and \"off\" to disable it.", &setlist),
|
Use \"on\" to enable the notification, and \"off\" to disable it.", &setlist),
|
||||||
&showlist);
|
&showlist);
|
||||||
}
|
}
|
||||||
add_prefix_cmd("debug",no_class,set_debug, "Generic command for setting gdb debugging flags", &setdebuglist, "set debug ", 0, &setlist);
|
add_prefix_cmd ("debug", no_class, set_debug,
|
||||||
|
"Generic command for setting gdb debugging flags",
|
||||||
|
&setdebuglist, "set debug ", 0, &setlist);
|
||||||
|
|
||||||
add_prefix_cmd("debug",no_class,show_debug,"Generic command for showing gdb debugging flags", &showdebuglist, "show debug ", 0, &showlist);
|
add_prefix_cmd ("debug", no_class, show_debug,
|
||||||
|
"Generic command for showing gdb debugging flags",
|
||||||
|
&showdebuglist, "show debug ", 0, &showlist);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue