aboutsummaryrefslogtreecommitdiff
path: root/gdb/f-valprint.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1994-09-17 11:35:51 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1994-09-17 11:35:51 +0000
commit4c664b8d0ac4c98faac11fd247688fdeae5cea86 (patch)
tree084f33b21f5268846667a51462b2584ba9f5cf40 /gdb/f-valprint.c
parentb0ed204dbf2b8e321a06df31d2a5a8ca4fdf8611 (diff)
downloadgdb-4c664b8d0ac4c98faac11fd247688fdeae5cea86.zip
gdb-4c664b8d0ac4c98faac11fd247688fdeae5cea86.tar.gz
gdb-4c664b8d0ac4c98faac11fd247688fdeae5cea86.tar.bz2
* cp-valprint.c (static_field_print): New variable, controls
printing of static members. (_initialize_cp_valprint): New print set subcommand "static-members". Turn on printing of static members by default. (cp_print_value_fields): Print static members if necessary. * solib.c: Remove inclusion of libelf.h and elf/mips.h. (elf_locate_base): Use only standard BFD functions to collect information about the .dynamic section. Check for DT_MIPS_RLD_MAP tag only if it got defined via the inclusion of <link.h>. * f-exp.y: Write block for OP_VAR_VALUE. * f-valprint.c (info_common_command): Handle `info common' without an argument correctly. * c-typeprint.c (c_type_print_base): Handle template constructors. * symtab.c (gdb_mangle_name): Handle template method mangling, get rid of GCC_MANGLE_BUG code, which only applied to gcc-2.2.2.
Diffstat (limited to 'gdb/f-valprint.c')
-rw-r--r--gdb/f-valprint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c
index 57d8ec1..73d0f15 100644
--- a/gdb/f-valprint.c
+++ b/gdb/f-valprint.c
@@ -786,10 +786,10 @@ info_common_command (comname, from_tty)
funname = SYMBOL_NAME (msymbol);
}
- /* If comnname is NULL, we assume the user wishes to see the
+ /* If comname is NULL, we assume the user wishes to see the
which COMMON blocks are visible here and then return */
- if (strlen (comname) == 0)
+ if (comname == 0)
{
list_all_visible_commons (funname);
return;