gdb/objc-lang.h - gdb

Macros defined

Source code

  1. /* Objective-C language support definitions for GDB, the GNU debugger.

  2.    Copyright (C) 1992-2015 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. #include "cp-support.h"                /* For VEC (const_char_ptr) */

  17. struct stoken;

  18. struct value;
  19. struct block;
  20. struct parser_state;

  21. extern CORE_ADDR lookup_objc_class     (struct gdbarch *gdbarch,
  22.                                         char *classname);
  23. extern CORE_ADDR lookup_child_selector (struct gdbarch *gdbarch,
  24.                                         char *methodname);

  25. extern char *objc_demangle (const char *mangled, int options);

  26. extern int find_objc_msgcall (CORE_ADDR pc, CORE_ADDR *new_pc);

  27. extern const char *
  28.   find_imps (const char *method, VEC (const_char_ptr) **symbol_names);

  29. extern struct value *value_nsstring (struct gdbarch *gdbarch,
  30.                                      char *ptr, int len);

  31. /* for parsing Objective C */
  32. extern void start_msglist (void);
  33. extern void add_msglist (struct stoken *str, int addcolon);
  34. extern int end_msglist (struct parser_state *);

  35. struct symbol *lookup_struct_typedef (char *name, const struct block *block,
  36.                                       int noerr);

  37. #endif