mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-20 15:03:31 +08:00
move exec_make_note_section earlier
This patch moves exec_make_note_section a bit earlier in exec.c. This lets us remove an otherwise unnecessary forward declaration and it also makes the file a bit more in line with other code, as now _initialize_exec is the final function in the file. Tested by rebuilding. I'm committing this as obvious. 2014-07-18 Tom Tromey <tromey@redhat.com> * exec.c (exec_make_note_section): Move earlier.
This commit is contained in:
parent
fe1873d019
commit
83814951ff
@ -1,3 +1,7 @@
|
|||||||
|
2014-07-18 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* exec.c (exec_make_note_section): Move earlier.
|
||||||
|
|
||||||
2014-07-17 Doug Evans <dje@google.com>
|
2014-07-17 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
PR gdb/17170
|
PR gdb/17170
|
||||||
|
12
gdb/exec.c
12
gdb/exec.c
@ -951,7 +951,11 @@ exec_has_memory (struct target_ops *ops)
|
|||||||
!= current_target_sections->sections_end);
|
!= 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
|
/* Fill in the exec file target vector. Very few entries need to be
|
||||||
defined. */
|
defined. */
|
||||||
@ -1019,9 +1023,3 @@ Show writing into executable and core files."), NULL,
|
|||||||
|
|
||||||
add_target_with_completer (&exec_ops, filename_completer);
|
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"));
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user