From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13040 invoked by alias); 16 Oct 2014 11:21:10 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 13031 invoked by uid 89); 16 Oct 2014 11:21:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f170.google.com Received: from mail-wi0-f170.google.com (HELO mail-wi0-f170.google.com) (209.85.212.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 16 Oct 2014 11:21:08 +0000 Received: by mail-wi0-f170.google.com with SMTP id hi2so1095881wib.1 for ; Thu, 16 Oct 2014 04:21:05 -0700 (PDT) X-Received: by 10.180.94.34 with SMTP id cz2mr19419175wib.4.1413458465816; Thu, 16 Oct 2014 04:21:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.106.68 with HTTP; Thu, 16 Oct 2014 04:20:25 -0700 (PDT) From: =?UTF-8?Q?=C3=96mer_Sinan_A=C4=9Facan?= Date: Thu, 16 Oct 2014 11:21:00 -0000 Message-ID: Subject: GDB C API -- does such a thing exist? To: gdb Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00034.txt.bz2 Do we have a C API for GDB? Something that allows me to run all the GDB commands/functions that I can run in GDB prompt, but without messing with GDB prompt? Python API is not great for what I want to do. I want to run GDB inside a program, search for some specific currently-running processes, attach to them, add some breakpoints etc. although all of those are possible with Python API, 1) I'm not huge fan of the language 2) I feel like most things would be a lot easier if I could use a C API that allows me to drive GDB itself. Thanks.