This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Make decode_line_internal static.


This is something that I noticed and Tom confirmed that the function
was meant to be static.  So this patch fixes it.

gdb/ChangeLog:

	* linespec.c (decode_line_internal): Make static.

Tested by rebuilding GDB.  Checked in.

---
 gdb/ChangeLog  |    4 ++++
 gdb/linespec.c |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9ce905f..e405141 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2011-12-14  Joel Brobecker  <brobecker@adacore.com>
+
+	* linespec.c (decode_line_internal): Make static.
+
 2011-12-14  Yao Qi  <yao@codesourcery.com>
 
 	* breakpoint.c (create_breakpoint): Set canonical.addr_string
diff --git a/gdb/linespec.c b/gdb/linespec.c
index 0ac54f7..cdfb59c 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -835,7 +835,7 @@ keep_name_info (char *p, int on_boundary)
    lack of single quotes.  FIXME: write a linespec_completer which we
    can use as appropriate instead of make_symbol_completion_list.  */
 
-struct symtabs_and_lines
+static struct symtabs_and_lines
 decode_line_internal (struct linespec_state *self, char **argptr)
 {
   char *p;
-- 
1.7.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]