diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d9c0a97107..7b09eeda10 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-07-18 Tom Tromey + + * exec.c (exec_make_note_section): Move earlier. + 2014-07-17 Doug Evans PR gdb/17170 diff --git a/gdb/exec.c b/gdb/exec.c index 087c122204..5176bf1ffc 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -951,7 +951,11 @@ exec_has_memory (struct target_ops *ops) != current_target_sections->sections_end); } -static char *exec_make_note_section (struct target_ops *self, bfd *, int *); +static char * +exec_make_note_section (struct target_ops *self, bfd *obfd, int *note_size) +{ + error (_("Can't create a corefile")); +} /* Fill in the exec file target vector. Very few entries need to be defined. */ @@ -1019,9 +1023,3 @@ Show writing into executable and core files."), NULL, add_target_with_completer (&exec_ops, filename_completer); } - -static char * -exec_make_note_section (struct target_ops *self, bfd *obfd, int *note_size) -{ - error (_("Can't create a corefile")); -}