aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2014-07-18 09:35:04 -0600
committerTom Tromey <tromey@redhat.com>2014-07-18 09:35:04 -0600
commit83814951ff9b8f73dcf7c860ad7b4f34a31f2be6 (patch)
tree480ad3d9aeeff407826f7d2bf1cfe186c6080148 /gdb
parentfe1873d01904620c71a309249c0ae029e53ae0b6 (diff)
downloadgdb-83814951ff9b8f73dcf7c860ad7b4f34a31f2be6.zip
gdb-83814951ff9b8f73dcf7c860ad7b4f34a31f2be6.tar.gz
gdb-83814951ff9b8f73dcf7c860ad7b4f34a31f2be6.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/exec.c12
2 files changed, 9 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d9c0a97..7b09eed 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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>
PR gdb/17170
diff --git a/gdb/exec.c b/gdb/exec.c
index 087c122..5176bf1 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"));
-}