Skip to content

Commit

Permalink
gdb/
Browse files Browse the repository at this point in the history
	* varobj.c (varobj_format_string): Remove "unknown".
	(languages): Remove the first element.
	* varobj.h (enum varobj_languages): Remove vlang_c.
  • Loading branch information
Yao Qi committed Oct 1, 2013
1 parent 5625025 commit c573f27
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
6 changes: 6 additions & 0 deletions gdb/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2013-10-01 Yao Qi <[email protected]>

* varobj.c (varobj_format_string): Remove "unknown".
(languages): Remove the first element.
* varobj.h (enum varobj_languages): Remove vlang_c.

2013-10-01 Yao Qi <[email protected]>

* varobj.c (struct language_specific) <language>: Remove.
Expand Down
15 changes: 1 addition & 14 deletions gdb/varobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ char *varobj_format_string[] =
{ "natural", "binary", "decimal", "hexadecimal", "octal" };

/* String representations of gdb's known languages. */
char *varobj_language_string[] = { "unknown", "C", "C++", "Java" };
char *varobj_language_string[] = { "C", "C++", "Java" };

/* True if we want to allow Python-based pretty-printing. */
static int pretty_printing = 0;
Expand Down Expand Up @@ -452,19 +452,6 @@ struct language_specific

/* Array of known source language routines. */
static struct language_specific languages[vlang_end] = {
/* Unknown (try treating as C). */
{
c_number_of_children,
c_name_of_variable,
c_name_of_child,
c_path_expr_of_child,
c_value_of_root,
c_value_of_child,
c_type_of_child,
c_value_of_variable,
default_value_is_changeable_p,
NULL /* value_has_mutated */}
,
/* C */
{
c_number_of_children,
Expand Down
2 changes: 1 addition & 1 deletion gdb/varobj.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ extern char *varobj_format_string[];
/* Languages supported by this variable objects system. */
enum varobj_languages
{
vlang_unknown = 0, vlang_c, vlang_cplus, vlang_java, vlang_ada, vlang_end
vlang_c = 0, vlang_cplus, vlang_java, vlang_ada, vlang_end
};

/* String representations of gdb's known languages (defined in varobj.c). */
Expand Down

0 comments on commit c573f27

Please sign in to comment.