mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
0d5cff5020
and fields.name members from char * to const char *. All uses updated. (struct cplus_struct_type): Change type of fn_fieldlists.name member from char * to const char *. All uses updated. (type_name_no_tag): Update. (lookup_unsigned_typename, lookup_signed_typename): Update. * gdbtypes.c (type_name_no_tag): Change result type from char * to const char *. All callers updated. (lookup_unsigned_typename, lookup_signed_typename): Change type of name parameter from char * to const char *. * symtab.h (struct cplus_specific): Change type of demangled_name member from char * to const char *. All uses updated. (struct general_symbol_info): Change type of name and mangled_lang.demangled_name members from char * to const char *. All uses updated. (symbol_get_demangled_name, symbol_natural_name): Update. (symbol_demangled_name, symbol_search_name): Update. * symtab.c (symbol_get_demangled_name): Change result type from char * to const char *. All callers updated. (symbol_natural_name, symbol_demangled_name): Ditto. (symbol_search_name): Ditto. (completion_list_add_name): Change type of symname,sym_text, text,word parameters from char * to const char *. (completion_list_objc_symbol): Change type of sym_text, text,word parameters from char * to const char *. * ada-lang.c (find_struct_field): Change type of name parameter from char * to const char *. (encoded_ordered_before): Similarly for N0,N1 parameters. (old_renaming_is_invisible): Similarly for function_name parameter. (ada_type_name): Change result type from char * to const char *. All callers updated. * ada-lang.h (ada_type_name): Update. * buildsym.c (hashname): Change type of name parameter from char * to const char *. * buildsym.h (hashname): Update. * dbxread.c (end_psymtab): Change type of include_list parameter from char ** to const char **. * dwarf2read.c (determine_prefix): Change result type from char * to const char *. All callers updated. * f-lang.c (find_common_for_function): Change type of name, funcname parameters from char * to const char *. * f-lang.c (find_common_for_function): Update. * f-valprint.c (list_all_visible_commons): Change type of funcname parameters from char * to const char *. * gdbarch.sh (static_transform_name): Change type of name parameter and result from char * to const char *. * gdbarch.c: Regenerate. * gdbarch.h: Regenerate. * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type of name parameter from char * to const char *. * jv-lang.c (java_primitive_type_from_name): Ditto. (java_demangled_signature_length): Similarly for signature parameter. (java_demangled_signature_copy): Ditto. (java_demangle_type_signature): Ditto. * jv-lang.h (java_primitive_type_from_name): Update. (java_demangle_type_signature): Update. * objc-lang.c (specialcmp): Change type of a,b parameters from char * to const char *. * p-lang.c (is_pascal_string_type): Change type of arrayname parameter from char * to const char *. All callers updated. * p-lang.h (is_pascal_string_type): Update. * solib-frv.c (find_canonical_descriptor_in_load_object): Change type of name parameter from char * to const char *. * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto. * utils.c (fprintf_symbol_filtered): Ditto. * defs.h (fprintf_symbol_filtered): Update. * sparc-tdep.h (sparc_sol2_static_transform_name): Update. * stabsread.h (end_psymtab): Update. * stack.c (find_frame_funname): Change type of funname parameter from char ** to const char **. * stack.h (find_frame_funname): Update. * typeprint.c (type_print): Change type of varstring parameter from char * to const char *. * value.h (type_print): Update. * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter from char * to const char *. All callers updated. (xcoff_end_psymtab): Change type of include_list parameter from char ** to const char **. All callers updated. (swap_sym): Similarly for name parameter. All callers updated. * coffread.c (patch_type): Add (char*) cast to xfree parameter. Use xstrdup. (process_coff_symbol): Use xstrdup. * stabsread.c (stabs_method_name_from_physname): Renamed from update_method_name_from_physname. Change result type from void to char *. All callers updated. (read_member_functions): In has_destructor case, store name in objfile obstack instead of malloc space. In !has_stub case, fix mem leak.
78 lines
2.4 KiB
C
78 lines
2.4 KiB
C
/* Java language support definitions for GDB, the GNU debugger.
|
|
|
|
Copyright (C) 1997-2000, 2005, 2007-2012 Free Software Foundation,
|
|
Inc.
|
|
|
|
This file is part of GDB.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
|
#ifndef JV_LANG_H
|
|
#define JV_LANG_H
|
|
|
|
struct value;
|
|
|
|
extern int java_parse (void); /* Defined in jv-exp.y */
|
|
|
|
extern void java_error (char *); /* Defined in jv-exp.y */
|
|
|
|
struct builtin_java_type
|
|
{
|
|
struct type *builtin_int;
|
|
struct type *builtin_byte;
|
|
struct type *builtin_short;
|
|
struct type *builtin_long;
|
|
struct type *builtin_boolean;
|
|
struct type *builtin_char;
|
|
struct type *builtin_float;
|
|
struct type *builtin_double;
|
|
struct type *builtin_void;
|
|
};
|
|
|
|
extern const struct builtin_java_type *builtin_java_type (struct gdbarch *);
|
|
|
|
extern int java_val_print (struct type *, const gdb_byte *, int, CORE_ADDR,
|
|
struct ui_file *, int,
|
|
const struct value *,
|
|
const struct value_print_options *);
|
|
|
|
extern int java_value_print (struct value *, struct ui_file *,
|
|
const struct value_print_options *);
|
|
|
|
extern struct value *java_class_from_object (struct value *);
|
|
|
|
extern struct type *type_from_class (struct gdbarch *, struct value *);
|
|
|
|
extern struct type *java_primitive_type (struct gdbarch *, int signature);
|
|
|
|
extern struct type *java_primitive_type_from_name (struct gdbarch *,
|
|
const char *, int);
|
|
|
|
extern struct type *java_array_type (struct type *, int);
|
|
|
|
extern struct type *get_java_object_type (void);
|
|
extern int get_java_object_header_size (struct gdbarch *);
|
|
|
|
extern struct type *java_lookup_class (char *);
|
|
|
|
extern int is_object_type (struct type *);
|
|
|
|
/* Defined in jv-typeprint.c */
|
|
extern void java_print_type (struct type *, const char *,
|
|
struct ui_file *, int, int);
|
|
|
|
extern char *java_demangle_type_signature (const char *);
|
|
|
|
#endif
|