GDB (API)
/home/stan/gdb/src/gdb/gdb.h
Go to the documentation of this file.
00001 /* Library interface into GDB.
00002    Copyright (C) 1999-2013 Free Software Foundation, Inc.
00003 
00004    This file is part of GDB.
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 3 of the License, or
00009    (at your option) any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00018 
00019 #ifndef GDB_H
00020 #define GDB_H
00021 
00022 struct ui_out;
00023 
00024 /* Return-code (RC) from a gdb library call.  (The abreviation RC is
00025    taken from the sim/common directory.) */
00026 
00027 enum gdb_rc {
00028   /* The operation failed.  The failure message can be fetched by
00029      calling ``char *error_last_message(void)''.  The value is
00030      determined by the catch_errors() interface.  The MSG parameter is
00031      set to a freshly allocated copy of the error message.  */
00032   /* NOTE: Since ``defs.h:catch_errors()'' does not return an error /
00033      internal / quit indication it is not possible to return that
00034      here.  */
00035   GDB_RC_FAIL = 0,
00036   /* No error occured but nothing happened.  Due to the catch_errors()
00037      interface, this must be non-zero.  */
00038   GDB_RC_NONE = 1,
00039   /* The operation was successful.  Due to the catch_errors()
00040      interface, this must be non-zero.  */
00041   GDB_RC_OK = 2
00042 };
00043 
00044 
00045 /* Print the specified breakpoint on GDB_STDOUT.  (Eventually this
00046    function will ``print'' the object on ``output'').  */
00047 enum gdb_rc gdb_breakpoint_query (struct ui_out *uiout, int bnum,
00048                                   char **error_message);
00049 
00050 /* Switch thread and print notification.  */
00051 enum gdb_rc gdb_thread_select (struct ui_out *uiout, char *tidstr,
00052                                char **error_message);
00053 
00054 /* Print a list of known thread ids.  */
00055 enum gdb_rc gdb_list_thread_ids (struct ui_out *uiout,
00056                                  char **error_message);
00057 
00058 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines