From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18410 invoked by alias); 13 Jan 2012 19:59:49 -0000 Received: (qmail 18398 invoked by uid 22791); 13 Jan 2012 19:59:48 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_BG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Jan 2012 19:59:33 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q0DJxXNw026883 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 13 Jan 2012 14:59:33 -0500 Received: from valrhona.uglyboxes.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q0DJxVt5023034 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 13 Jan 2012 14:59:32 -0500 Message-ID: <4F108D23.5050803@redhat.com> Date: Fri, 13 Jan 2012 20:20:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 MIME-Version: 1.0 To: "gdb-patches@sourceware.org ml" Subject: [RFA] [4/4] Remove libgdb API (gdb.h & doc) Content-Type: multipart/mixed; boundary="------------050709030302020706020507" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-01/txt/msg00502.txt.bz2 This is a multi-part message in MIME format. --------------050709030302020706020507 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 392 Hi, This final patch simply removes the gdb.h and removes mention of it from the makefile and gdbint.texinfo. Keith ChangeLog 2012-01-12 Keith Seitz * Makefile.in (HFILES_NO_SRCDIR): Remove gdb.h. * gdb.h: Remove file. doc/ChangeLog 2012-01-12 Keith Seitz * gdbint.texinfo (Node libgdb): Remove all mention of gdb.h and associated text. --------------050709030302020706020507 Content-Type: text/x-patch; name="remove-gdb_h.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="remove-gdb_h.patch" Content-length: 3416 diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 25067f1..8b0b768 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -772,7 +772,7 @@ c-lang.h d-lang.h frame.h event-loop.h block.h cli/cli-setshow.h \ cli/cli-decode.h cli/cli-cmds.h cli/cli-dump.h cli/cli-utils.h \ cli/cli-script.h macrotab.h symtab.h version.h gnulib/wchar.in.h \ gnulib/string.in.h gnulib/str-two-way.h \ -gnulib/stdint.in.h remote.h gdb.h sparc-nat.h \ +gnulib/stdint.in.h remote.h sparc-nat.h \ gdbthread.h dwarf2-frame.h dwarf2-frame-tailcall.h nbsd-nat.h dcache.h \ amd64-nat.h s390-tdep.h arm-linux-tdep.h exceptions.h macroscope.h \ gdbarch.h bsd-uthread.h gdb_stat.h memory-map.h memrange.h \ diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo index 136f77f..1dd8a57 100644 --- a/gdb/doc/gdbint.texinfo +++ b/gdb/doc/gdbint.texinfo @@ -1769,8 +1769,6 @@ Observer - @file{gdb-events.h}. Builder - @file{ui-out.h} @item Event Loop - @file{event-loop.h} -@item -Library - @file{gdb.h} @end itemize The model that ties these components together is described below. @@ -1853,12 +1851,6 @@ The event-loop will eventually be made re-entrant. This is so that @value{GDBN} can better handle the problem of some commands blocking instead of returning. -@subheading Library - @file{gdb.h} -@file{libgdb} is the most obvious component of this system. It provides -the query interface. Each function is parameterized by a @code{ui-out} -builder. The result of the query is constructed using that builder -before the query function returns. - @node Values @chapter Values @section Values diff --git a/gdb/gdb.h b/gdb/gdb.h deleted file mode 100644 index 97b787d..0000000 --- a/gdb/gdb.h +++ /dev/null @@ -1,44 +0,0 @@ -/* Library interface into GDB. - Copyright (C) 1999, 2001, 2007-2012 Free Software Foundation, Inc. - - This file is part of GDB. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#ifndef GDB_H -#define GDB_H - -struct ui_out; - -/* Return-code (RC) from a gdb library call. (The abreviation RC is - taken from the sim/common directory.) */ - -enum gdb_rc { - /* The operation failed. The failure message can be fetched by - calling ``char *error_last_message(void)''. The value is - determined by the catch_errors() interface. The MSG parameter is - set to a freshly allocated copy of the error message. */ - /* NOTE: Since ``defs.h:catch_errors()'' does not return an error / - internal / quit indication it is not possible to return that - here. */ - GDB_RC_FAIL = 0, - /* No error occured but nothing happened. Due to the catch_errors() - interface, this must be non-zero. */ - GDB_RC_NONE = 1, - /* The operation was successful. Due to the catch_errors() - interface, this must be non-zero. */ - GDB_RC_OK = 2 -}; - -#endif --------------050709030302020706020507--