aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2016-01-31 22:22:19 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2016-01-31 22:24:17 -0500
commit5fa1307022c1278575846faba5f3391b70d64b16 (patch)
treec7d0497700bf57c69688a1b1f6956c4b55f3b707 /gdb/varobj.c
parent0bc7245a3a6da700ed13bace22cdc157dc80f58d (diff)
downloadgdb-5fa1307022c1278575846faba5f3391b70d64b16.zip
gdb-5fa1307022c1278575846faba5f3391b70d64b16.tar.gz
gdb-5fa1307022c1278575846faba5f3391b70d64b16.tar.bz2
Fix some comments in varobj.{c,h}
A few typos. The comment about varobj_create has been misplaced since the dawn of time. gdb/ChangeLog: * varobj.h (struct varobj): Fix typos in comments. (struct lang_varobj_ops): Likewise. * varobj.c (VAROBJ_TABLE_SIZE): Likewise. (varobj_create): Move misplaced comment.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r--gdb/varobj.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 8116a5b..b846ac0 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -220,7 +220,7 @@ static int format_code[] = { 0, 't', 'd', 'x', 'o', 'z' };
static struct varobj_root *rootlist;
/* Prime number indicating the number of buckets in the hash table. */
-/* A prime large enough to avoid too many colisions. */
+/* A prime large enough to avoid too many collisions. */
#define VAROBJ_TABLE_SIZE 227
/* Pointer to the varobj hash table (built at run time). */
@@ -246,8 +246,6 @@ varobj_ensure_python_env (const struct varobj *var)
}
#endif
-/* Creates a varobj (not its children). */
-
/* Return the full FRAME which corresponds to the given CORE_ADDR
or NULL if no FRAME on the chain corresponds to CORE_ADDR. */
@@ -280,6 +278,8 @@ find_frame_addr_in_frame_chain (CORE_ADDR frame_addr)
return NULL;
}
+/* Creates a varobj (not its children). */
+
struct varobj *
varobj_create (char *objname,
char *expression, CORE_ADDR frame, enum varobj_type type)