Skip to content

Commit c573f27

Browse files
author
Yao Qi
committed
gdb/
* varobj.c (varobj_format_string): Remove "unknown". (languages): Remove the first element. * varobj.h (enum varobj_languages): Remove vlang_c.
1 parent 5625025 commit c573f27

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

gdb/ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2013-10-01 Yao Qi <[email protected]>
2+
3+
* varobj.c (varobj_format_string): Remove "unknown".
4+
(languages): Remove the first element.
5+
* varobj.h (enum varobj_languages): Remove vlang_c.
6+
17
2013-10-01 Yao Qi <[email protected]>
28

39
* varobj.c (struct language_specific) <language>: Remove.

gdb/varobj.c

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ char *varobj_format_string[] =
6262
{ "natural", "binary", "decimal", "hexadecimal", "octal" };
6363

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

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

453453
/* Array of known source language routines. */
454454
static struct language_specific languages[vlang_end] = {
455-
/* Unknown (try treating as C). */
456-
{
457-
c_number_of_children,
458-
c_name_of_variable,
459-
c_name_of_child,
460-
c_path_expr_of_child,
461-
c_value_of_root,
462-
c_value_of_child,
463-
c_type_of_child,
464-
c_value_of_variable,
465-
default_value_is_changeable_p,
466-
NULL /* value_has_mutated */}
467-
,
468455
/* C */
469456
{
470457
c_number_of_children,

gdb/varobj.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ extern char *varobj_format_string[];
5555
/* Languages supported by this variable objects system. */
5656
enum varobj_languages
5757
{
58-
vlang_unknown = 0, vlang_c, vlang_cplus, vlang_java, vlang_ada, vlang_end
58+
vlang_c = 0, vlang_cplus, vlang_java, vlang_ada, vlang_end
5959
};
6060

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

0 commit comments

Comments
 (0)