* dwarf2read.c (struct attribute): Increase sizes of unsnd and snd
[deliverable/binutils-gdb.git] / gdb / varobj.c
index 2e4cf43ca65daf15543c009754d191b11a2a73c9..1523bf4c21d72baccb36ca3d884608d73810ad18 100644 (file)
@@ -2793,8 +2793,9 @@ c_describe_child (struct varobj *parent, int index,
     {
     case TYPE_CODE_ARRAY:
       if (cname)
-       *cname = xstrprintf ("%d", index
-                            + TYPE_LOW_BOUND (TYPE_INDEX_TYPE (type)));
+       *cname = xstrdup (int_string (index 
+                                     + TYPE_LOW_BOUND (TYPE_INDEX_TYPE (type)),
+                                     10, 1, 0, 0));
 
       if (cvalue && value)
        {
@@ -2806,9 +2807,11 @@ c_describe_child (struct varobj *parent, int index,
        *ctype = get_target_type (type);
 
       if (cfull_expression)
-       *cfull_expression = xstrprintf ("(%s)[%d]", parent_expression, 
-                                       index
-                                       + TYPE_LOW_BOUND (TYPE_INDEX_TYPE (type)));
+       *cfull_expression = 
+         xstrprintf ("(%s)[%s]", parent_expression, 
+                     int_string (index
+                                 + TYPE_LOW_BOUND (TYPE_INDEX_TYPE (type)),
+                                 10, 1, 0, 0));
 
 
       break;
This page took 0.024517 seconds and 4 git commands to generate.