15796c8dcSSimon Schubert /* Objective-C language support definitions for GDB, the GNU debugger. 25796c8dcSSimon Schubert 3*ef5ccd6cSJohn Marino Copyright (C) 1992-2013 Free Software Foundation, Inc. 45796c8dcSSimon Schubert 55796c8dcSSimon Schubert Contributed by Apple Computer, Inc. 65796c8dcSSimon Schubert 75796c8dcSSimon Schubert This program is free software; you can redistribute it and/or modify 85796c8dcSSimon Schubert it under the terms of the GNU General Public License as published by 95796c8dcSSimon Schubert the Free Software Foundation; either version 3 of the License, or 105796c8dcSSimon Schubert (at your option) any later version. 115796c8dcSSimon Schubert 125796c8dcSSimon Schubert This program is distributed in the hope that it will be useful, 135796c8dcSSimon Schubert but WITHOUT ANY WARRANTY; without even the implied warranty of 145796c8dcSSimon Schubert MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 155796c8dcSSimon Schubert GNU General Public License for more details. 165796c8dcSSimon Schubert 175796c8dcSSimon Schubert You should have received a copy of the GNU General Public License 185796c8dcSSimon Schubert along with this program. If not, see <http://www.gnu.org/licenses/>. */ 195796c8dcSSimon Schubert 205796c8dcSSimon Schubert #if !defined(OBJC_LANG_H) 215796c8dcSSimon Schubert #define OBJC_LANG_H 225796c8dcSSimon Schubert 23a45ae5f8SJohn Marino #include "cp-support.h" /* For VEC (const_char_ptr) */ 24a45ae5f8SJohn Marino 255796c8dcSSimon Schubert struct stoken; 265796c8dcSSimon Schubert 275796c8dcSSimon Schubert struct value; 285796c8dcSSimon Schubert struct block; 295796c8dcSSimon Schubert 305796c8dcSSimon Schubert extern CORE_ADDR lookup_objc_class (struct gdbarch *gdbarch, 315796c8dcSSimon Schubert char *classname); 325796c8dcSSimon Schubert extern CORE_ADDR lookup_child_selector (struct gdbarch *gdbarch, 335796c8dcSSimon Schubert char *methodname); 345796c8dcSSimon Schubert 355796c8dcSSimon Schubert extern char *objc_demangle (const char *mangled, int options); 365796c8dcSSimon Schubert 375796c8dcSSimon Schubert extern int find_objc_msgcall (CORE_ADDR pc, CORE_ADDR *new_pc); 385796c8dcSSimon Schubert 39a45ae5f8SJohn Marino extern char *find_imps (char *method, VEC (const_char_ptr) **symbol_names); 405796c8dcSSimon Schubert 415796c8dcSSimon Schubert extern struct value *value_nsstring (struct gdbarch *gdbarch, 425796c8dcSSimon Schubert char *ptr, int len); 435796c8dcSSimon Schubert 445796c8dcSSimon Schubert /* for parsing Objective C */ 455796c8dcSSimon Schubert extern void start_msglist (void); 465796c8dcSSimon Schubert extern void add_msglist (struct stoken *str, int addcolon); 475796c8dcSSimon Schubert extern int end_msglist (void); 485796c8dcSSimon Schubert 49*ef5ccd6cSJohn Marino struct symbol *lookup_struct_typedef (char *name, const struct block *block, 505796c8dcSSimon Schubert int noerr); 515796c8dcSSimon Schubert 525796c8dcSSimon Schubert #endif 53