mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
2010-05-17 Michael Snyder <msnyder@vmware.com>
* cli/cli-cmds.c: White space. * cli/cli-decode.c: White space. * cli/cli-dump.c: White space. * cli/cli-interp.c: White space. * cli/cli-logging.c: White space. * cli/cli-script.c: White space. * cli/cli-setshow.c: White space.
This commit is contained in:
@@ -52,6 +52,7 @@ scan_expression_with_cleanup (char **cmd, const char *def)
|
||||
if ((*cmd) == NULL || (**cmd) == '\0')
|
||||
{
|
||||
char *exp = xstrdup (def);
|
||||
|
||||
make_cleanup (xfree, exp);
|
||||
return exp;
|
||||
}
|
||||
@@ -108,6 +109,7 @@ FILE *
|
||||
fopen_with_cleanup (const char *filename, const char *mode)
|
||||
{
|
||||
FILE *file = fopen (filename, mode);
|
||||
|
||||
if (file == NULL)
|
||||
perror_with_name (filename);
|
||||
make_cleanup_fclose (file);
|
||||
@@ -389,6 +391,7 @@ static void
|
||||
call_dump_func (struct cmd_list_element *c, char *args, int from_tty)
|
||||
{
|
||||
struct dump_context *d = get_cmd_context (c);
|
||||
|
||||
d->func (args, d->mode);
|
||||
}
|
||||
|
||||
@@ -664,6 +667,7 @@ void
|
||||
_initialize_cli_dump (void)
|
||||
{
|
||||
struct cmd_list_element *c;
|
||||
|
||||
add_prefix_cmd ("dump", class_vars, dump_command, _("\
|
||||
Dump target code/data to a local file."),
|
||||
&dump_cmdlist, "dump ",
|
||||
|
||||
Reference in New Issue
Block a user