objc-lang.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* Objective-C language support definitions for GDB, the GNU debugger.
  2. Copyright (C) 1992-2022 Free Software Foundation, Inc.
  3. Contributed by Apple Computer, Inc.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  14. #if !defined(OBJC_LANG_H)
  15. #define OBJC_LANG_H
  16. struct stoken;
  17. struct value;
  18. struct block;
  19. struct parser_state;
  20. extern CORE_ADDR lookup_objc_class (struct gdbarch *gdbarch,
  21. const char *classname);
  22. extern CORE_ADDR lookup_child_selector (struct gdbarch *gdbarch,
  23. const char *methodname);
  24. extern int find_objc_msgcall (CORE_ADDR pc, CORE_ADDR *new_pc);
  25. extern const char *find_imps (const char *method,
  26. std::vector<const char *> *symbol_names);
  27. extern struct value *value_nsstring (struct gdbarch *gdbarch,
  28. const char *ptr, int len);
  29. /* for parsing Objective C */
  30. extern void start_msglist (void);
  31. extern void add_msglist (struct stoken *str, int addcolon);
  32. extern int end_msglist (struct parser_state *);
  33. struct symbol *lookup_struct_typedef (const char *name,
  34. const struct block *block,
  35. int noerr);
  36. #endif