Skip to content

Commit 5625025

Browse files
author
Yao Qi
committed
gdb/
* varobj.c (struct language_specific) <language>: Remove. (languages): Update the initialization.
1 parent 29f9ebf commit 5625025

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

gdb/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2013-10-01 Yao Qi <[email protected]>
2+
3+
* varobj.c (struct language_specific) <language>: Remove.
4+
(languages): Update the initialization.
5+
16
2013-10-01 Yao Qi <[email protected]>
27

38
* arm-wince-tdep.c: Remove inclusion of "solib.h" and

gdb/varobj.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,6 @@ static int ada_value_has_mutated (struct varobj *var, struct value *new_val,
398398

399399
struct language_specific
400400
{
401-
402-
/* The language of this variable. */
403-
enum varobj_languages language;
404-
405401
/* The number of children of PARENT. */
406402
int (*number_of_children) (struct varobj * parent);
407403

@@ -458,7 +454,6 @@ struct language_specific
458454
static struct language_specific languages[vlang_end] = {
459455
/* Unknown (try treating as C). */
460456
{
461-
vlang_unknown,
462457
c_number_of_children,
463458
c_name_of_variable,
464459
c_name_of_child,
@@ -472,7 +467,6 @@ static struct language_specific languages[vlang_end] = {
472467
,
473468
/* C */
474469
{
475-
vlang_c,
476470
c_number_of_children,
477471
c_name_of_variable,
478472
c_name_of_child,
@@ -486,7 +480,6 @@ static struct language_specific languages[vlang_end] = {
486480
,
487481
/* C++ */
488482
{
489-
vlang_cplus,
490483
cplus_number_of_children,
491484
cplus_name_of_variable,
492485
cplus_name_of_child,
@@ -500,7 +493,6 @@ static struct language_specific languages[vlang_end] = {
500493
,
501494
/* Java */
502495
{
503-
vlang_java,
504496
java_number_of_children,
505497
java_name_of_variable,
506498
java_name_of_child,
@@ -513,7 +505,6 @@ static struct language_specific languages[vlang_end] = {
513505
NULL /* value_has_mutated */},
514506
/* Ada */
515507
{
516-
vlang_ada,
517508
ada_number_of_children,
518509
ada_name_of_variable,
519510
ada_name_of_child,

0 commit comments

Comments
 (0)