Show line numbers in output for "info var/func/type"
[deliverable/binutils-gdb.git] / gdb / symtab.c
index 2b1f9558abeba0c8b95ad60779b57792450cc840..f66b6f00f0e67693edcdca69c2269464db61a8e9 100644 (file)
@@ -4517,6 +4517,11 @@ print_symbol_info (enum search_domain kind,
       fputs_filtered (":\n", gdb_stdout);
     }
 
+  if (SYMBOL_LINE (sym) != 0)
+    printf_filtered ("%d:\t", SYMBOL_LINE (sym));
+  else
+    puts_filtered ("\t");
+
   if (kind != TYPES_DOMAIN && block == STATIC_BLOCK)
     printf_filtered ("static ");
 
This page took 0.025055 seconds and 4 git commands to generate.