This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit/Ada] struct ada_symbol_info minor reformatting & doc update.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>
- Date: Thu, 29 Mar 2012 11:25:30 -0700
- Subject: [commit/Ada] struct ada_symbol_info minor reformatting & doc update.
Hello,
While looking at something else, this attracted my attention...
gdb/ChangeLog:
* ada-lang.h (struct ada_symbol_info): Reformat. Improve
documentation.
Tested by rebuilding GDB (and, just for the record, tested later on
combined with another patch using AdaCore's testsuite, but not really
all that necessary in this case).
Checked in.
---
gdb/ChangeLog | 5 +++++
gdb/ada-lang.h | 14 +++++++++-----
2 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a334a06..981fda7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-29 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.h (struct ada_symbol_info): Reformat. Improve
+ documentation.
+
2012-03-28 Rathish C <rathish.c@kpitcummins.com>
* v850-tdep.c: Add the enum values for mpu and fpu registers.
diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h
index d019a1d..cbca3db 100644
--- a/gdb/ada-lang.h
+++ b/gdb/ada-lang.h
@@ -80,11 +80,15 @@ struct ada_opname_map
/* Defined in ada-lang.c */
extern const struct ada_opname_map ada_opname_table[];
-/* A tuple, (symbol, block), representing one instance of a
- * symbol-lookup operation. */
-struct ada_symbol_info {
- struct symbol* sym;
- struct block* block;
+/* A tuple representing one instance of a symbol-lookup operation. */
+
+struct ada_symbol_info
+{
+ /* The symbol that was found. */
+ struct symbol *sym;
+
+ /* The block where the symbol was found. */
+ struct block *block;
};
/* Denotes a type of renaming symbol (see ada_parse_renaming). */
--
1.7.1