diff options
author | gdb-3.5 <gdb@fsf.org> | 1990-02-08 06:14:00 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-06-03 15:36:32 +0100 |
commit | 7a67dd45ca1c191a0220697a3ec9fa92993caf8c (patch) | |
tree | ea93641dd0b45fbca686b5e989b0f1085a7541b7 /gdb/symtab.c | |
parent | 1c997a4ae86938343edb715efc3fc742c5f668fe (diff) | |
download | gdb-7a67dd45ca1c191a0220697a3ec9fa92993caf8c.zip gdb-7a67dd45ca1c191a0220697a3ec9fa92993caf8c.tar.gz gdb-7a67dd45ca1c191a0220697a3ec9fa92993caf8c.tar.bz2 |
gdb-3.5
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 2b4dfb7..376733f 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -17,11 +17,11 @@ You should have received a copy of the GNU General Public License along with GDB; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <stdio.h> #include "defs.h" #include "symtab.h" #include "param.h" -#include <stdio.h> #include <obstack.h> #include <assert.h> @@ -1802,6 +1802,9 @@ decode_line_spec (string, funfirstline) return sals; } +/* Given a list of NELTS symbols in sym_arr (with corresponding + mangled names in physnames), return a list of lines to operate on + (ask user if necessary). */ struct symtabs_and_lines decode_line_2 (argptr, sym_arr, physnames, nelts, funfirstline) char **argptr; @@ -2130,8 +2133,8 @@ list_symbols (regexp, class) } else { - char buf[1024]; # if 0 + char buf[1024]; type_print_base (TYPE_FN_FIELD_TYPE(t, i), stdout, 0, 0); type_print_varspec_prefix (TYPE_FN_FIELD_TYPE(t, i), stdout, 0); sprintf (buf, " %s::", TYPE_NAME (t)); @@ -2166,12 +2169,15 @@ types_info (regexp) list_symbols (regexp, 2); } +#if 0 +/* Tiemann says: "info methods was never implemented." */ static void methods_info (regexp) char *regexp; { list_symbols (regexp, 3); } +#endif /* 0 */ /* Call sort_block_syms to sort alphabetically the symbols of one block. */ @@ -2393,11 +2399,13 @@ _initialize_symtab () "All function names, or those matching REGEXP."); add_info ("types", types_info, "All types names, or those matching REGEXP."); +#if 0 add_info ("methods", methods_info, "All method names, or those matching REGEXP::REGEXP.\n\ If the class qualifier is ommited, it is assumed to be the current scope.\n\ If the first REGEXP is ommited, then all methods matching the second REGEXP\n\ are listed."); +#endif add_info ("sources", sources_info, "Source files in the program."); |