gdb/mi/mi-common.h - gdb

Data types defined

Macros defined

Source code

  1. /* Interface for common GDB/MI data
  2.    Copyright (C) 2005-2015 Free Software Foundation, Inc.

  3.    This file is part of GDB.

  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. #ifndef MI_COMMON_H
  15. #define MI_COMMON_H

  16. /* Represents the reason why GDB is sending an asynchronous command to
  17.    the front end.  NOTE: When modifing this, don't forget to update
  18.    gdb.texinfo!  */
  19. enum async_reply_reason
  20. {
  21.   EXEC_ASYNC_BREAKPOINT_HIT = 0,
  22.   EXEC_ASYNC_WATCHPOINT_TRIGGER,
  23.   EXEC_ASYNC_READ_WATCHPOINT_TRIGGER,
  24.   EXEC_ASYNC_ACCESS_WATCHPOINT_TRIGGER,
  25.   EXEC_ASYNC_FUNCTION_FINISHED,
  26.   EXEC_ASYNC_LOCATION_REACHED,
  27.   EXEC_ASYNC_WATCHPOINT_SCOPE,
  28.   EXEC_ASYNC_END_STEPPING_RANGE,
  29.   EXEC_ASYNC_EXITED_SIGNALLED,
  30.   EXEC_ASYNC_EXITED,
  31.   EXEC_ASYNC_EXITED_NORMALLY,
  32.   EXEC_ASYNC_SIGNAL_RECEIVED,
  33.   EXEC_ASYNC_SOLIB_EVENT,
  34.   EXEC_ASYNC_FORK,
  35.   EXEC_ASYNC_VFORK,
  36.   EXEC_ASYNC_SYSCALL_ENTRY,
  37.   EXEC_ASYNC_SYSCALL_RETURN,
  38.   EXEC_ASYNC_EXEC,
  39.   /* This is here only to represent the number of enums.  */
  40.   EXEC_ASYNC_LAST
  41. };

  42. const char *async_reason_lookup (enum async_reply_reason reason);

  43. struct mi_interp
  44. {
  45.   /* MI's output channels */
  46.   struct ui_file *out;
  47.   struct ui_file *err;
  48.   struct ui_file *log;
  49.   struct ui_file *targ;
  50.   struct ui_file *event_channel;

  51.   /* MI's builder.  */
  52.   struct ui_out *mi_uiout;

  53.   /* MI's CLI builder (wraps OUT).  */
  54.   struct ui_out *cli_uiout;

  55.   /* This is the interpreter for the mi... */
  56.   struct interp *mi2_interp;
  57.   struct interp *mi1_interp;
  58.   struct interp *mi_interp;
  59. };

  60. #endif