15796c8dcSSimon Schubert /* Pascal language support definitions for GDB, the GNU debugger. 25796c8dcSSimon Schubert 3*cf7f2e2dSJohn Marino Copyright (C) 2000, 2005, 2006, 2007, 2008, 2009, 2010 45796c8dcSSimon Schubert Free Software Foundation, Inc. 55796c8dcSSimon Schubert 65796c8dcSSimon Schubert This file is part of GDB. 75796c8dcSSimon Schubert 85796c8dcSSimon Schubert This program is free software; you can redistribute it and/or modify 95796c8dcSSimon Schubert it under the terms of the GNU General Public License as published by 105796c8dcSSimon Schubert the Free Software Foundation; either version 3 of the License, or 115796c8dcSSimon Schubert (at your option) any later version. 125796c8dcSSimon Schubert 135796c8dcSSimon Schubert This program is distributed in the hope that it will be useful, 145796c8dcSSimon Schubert but WITHOUT ANY WARRANTY; without even the implied warranty of 155796c8dcSSimon Schubert MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 165796c8dcSSimon Schubert GNU General Public License for more details. 175796c8dcSSimon Schubert 185796c8dcSSimon Schubert You should have received a copy of the GNU General Public License 195796c8dcSSimon Schubert along with this program. If not, see <http://www.gnu.org/licenses/>. */ 205796c8dcSSimon Schubert 215796c8dcSSimon Schubert /* This file is derived from c-lang.h */ 225796c8dcSSimon Schubert 235796c8dcSSimon Schubert struct value; 245796c8dcSSimon Schubert 255796c8dcSSimon Schubert /* Defined in p-lang.c */ 265796c8dcSSimon Schubert extern const char *pascal_main_name (void); 275796c8dcSSimon Schubert 285796c8dcSSimon Schubert extern int pascal_parse (void); /* Defined in p-exp.y */ 295796c8dcSSimon Schubert 305796c8dcSSimon Schubert extern void pascal_error (char *); /* Defined in p-exp.y */ 315796c8dcSSimon Schubert 325796c8dcSSimon Schubert /* Defined in p-typeprint.c */ 33*cf7f2e2dSJohn Marino extern void pascal_print_type (struct type *, const char *, struct ui_file *, 34*cf7f2e2dSJohn Marino int, int); 355796c8dcSSimon Schubert 365796c8dcSSimon Schubert extern void pascal_print_typedef (struct type *, struct symbol *, 375796c8dcSSimon Schubert struct ui_file *); 385796c8dcSSimon Schubert 395796c8dcSSimon Schubert extern int pascal_val_print (struct type *, const gdb_byte *, int, 405796c8dcSSimon Schubert CORE_ADDR, struct ui_file *, int, 41*cf7f2e2dSJohn Marino const struct value *, 425796c8dcSSimon Schubert const struct value_print_options *); 435796c8dcSSimon Schubert 445796c8dcSSimon Schubert extern int pascal_value_print (struct value *, struct ui_file *, 455796c8dcSSimon Schubert const struct value_print_options *); 465796c8dcSSimon Schubert 475796c8dcSSimon Schubert extern void pascal_type_print_method_args (char *, char *, 485796c8dcSSimon Schubert struct ui_file *); 495796c8dcSSimon Schubert 505796c8dcSSimon Schubert /* These are in p-lang.c: */ 515796c8dcSSimon Schubert 525796c8dcSSimon Schubert extern int 535796c8dcSSimon Schubert is_pascal_string_type (struct type *, int *, int *, int *, 545796c8dcSSimon Schubert struct type **, char **); 555796c8dcSSimon Schubert 565796c8dcSSimon Schubert extern void pascal_printchar (int, struct type *, struct ui_file *); 575796c8dcSSimon Schubert 585796c8dcSSimon Schubert extern void pascal_printstr (struct ui_file *, struct type *, const gdb_byte *, 59*cf7f2e2dSJohn Marino unsigned int, const char *, int, 605796c8dcSSimon Schubert const struct value_print_options *); 615796c8dcSSimon Schubert 625796c8dcSSimon Schubert extern struct type **const (pascal_builtin_types[]); 635796c8dcSSimon Schubert 645796c8dcSSimon Schubert /* These are in p-typeprint.c: */ 655796c8dcSSimon Schubert 665796c8dcSSimon Schubert extern void 675796c8dcSSimon Schubert pascal_type_print_base (struct type *, struct ui_file *, int, int); 685796c8dcSSimon Schubert 695796c8dcSSimon Schubert extern void 705796c8dcSSimon Schubert pascal_type_print_varspec_prefix (struct type *, struct ui_file *, int, int); 715796c8dcSSimon Schubert 725796c8dcSSimon Schubert extern void pascal_object_print_value_fields (struct type *, const gdb_byte *, 735796c8dcSSimon Schubert CORE_ADDR, struct ui_file *, 745796c8dcSSimon Schubert int, 75*cf7f2e2dSJohn Marino const struct value *, 765796c8dcSSimon Schubert const struct value_print_options *, 775796c8dcSSimon Schubert struct type **, int); 785796c8dcSSimon Schubert 795796c8dcSSimon Schubert extern int pascal_object_is_vtbl_ptr_type (struct type *); 805796c8dcSSimon Schubert 815796c8dcSSimon Schubert extern int pascal_object_is_vtbl_member (struct type *); 82