From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Patrick Mahan Newsgroups: gmane.emacs.help Subject: Automatically modifying the gud-gdb command line Date: Tue, 23 Jun 2020 13:21:41 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="20699"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 23 22:22:17 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jnpQu-0005IL-P4 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 23 Jun 2020 22:22:16 +0200 Original-Received: from localhost ([::1]:51670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnpQt-0006Xa-Qt for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 23 Jun 2020 16:22:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnpQZ-0006UE-Ta for help-gnu-emacs@gnu.org; Tue, 23 Jun 2020 16:21:55 -0400 Original-Received: from mail-ua1-x92a.google.com ([2607:f8b0:4864:20::92a]:37864) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jnpQY-0007Dh-0f for help-gnu-emacs@gnu.org; Tue, 23 Jun 2020 16:21:55 -0400 Original-Received: by mail-ua1-x92a.google.com with SMTP id v25so7237486uau.4 for ; Tue, 23 Jun 2020 13:21:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=2/t1QZt8Rcg6TxJzJJcMYogUPkuOVoWxoy2q40NarbE=; b=DyyjQ7Wftm5wzJLZIbt0UhdCcC+n4StMCyrqYIUZX9GgLku3+ElWC4msSO8XWW7ekz p3MfEvKh+A0Yscn1uk2AaE+mwo0JUzOw5D2fnNFGMSIIGw5H+D9JJdt/53tA/1lhBOcn TvJKcRTx99DDtf4HmDyJxKDR4syrzFvPlxmDHkpsFlqsRo/76pcs6SDVgO6YNUvuwmpP i9XXQtmGuv9SfhPZDtCbdI4a5cY/P4/ISoKnLv+mPM3K1hGSp9M+eIGAaNbdKxKQM+Fr WZrMMYTDuF+INPfw6ezYB2nusXU8n863uAI7UHSkz9N+yJL5Ea9gfynw+dImExNpXdpL IskA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=2/t1QZt8Rcg6TxJzJJcMYogUPkuOVoWxoy2q40NarbE=; b=W+JHGaZ5Huqk6jBzSYs88cml9T/38G2cZrScD6NPwQIo8oAE7QNB6AgVzDQcRKQrC5 Jg7v7YaWO1PSheEoW/RXUw8rIE3iPUoiZGtvugdR1o3Xig6SOcuAjUllLWWlMXjGj9jl 5ephVh7My5VlHt7kAUs+KcRs/mbBC+h4AKgl9f+6SIRE+tP9t3UU3Ux0mThlfCKlbRvf 8N5XscLXn/sJqOSLtkj+7sdppK+XJhhKno789Z9iLPcvMOX2pWIoAjWeg/Rne6Hi/LUv Cz19E+rIFyB3ybbkTAo+Eg7Sg0foXpCdxdgVzIPmCRYI1KEdMK2BI/NuqDztchaTOqLD jQvw== X-Gm-Message-State: AOAM5305Jr7Lp/vFro0h5JGoVB+VG7fCEoLSss88f1m8dQJVP5nNOnIm PGGXMyjk3o9UBtGmLB0PjdguFRzrsz19b8BNJ1Wy2Q== X-Google-Smtp-Source: ABdhPJxrLnJ4JP2kkaGiEr90yQmZju8x3cQnakgXW6QH+gUhZamNnVUopwnqdZvMQ5HOau8hTN6hUd/BxIA0u5/OhKo= X-Received: by 2002:ab0:6445:: with SMTP id j5mr15086223uap.26.1592943712089; Tue, 23 Jun 2020 13:21:52 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::92a; envelope-from=plmahan@gmail.com; helo=mail-ua1-x92a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123429 Archived-At: Before wandering off into the bowels of the GUD lisp code, I was wonder if anyone has ever done what I want (I could not find anything on the Emacs Wiki site nor via google-fu). Basically, when I am starting a debug session, I enter the command 'gud-gdb ' which then prompts me with 'Run gud-gdb (like this): gdb --fullname '. Now I have code that breaks apart a core dump into its core file and the image that dumped and creates a gdb init file. I then modify the command line that gud-gdb prompted me with by adding '-x gdbinit' and 'core.XXXX' to that line and starting the debug session. I would like to automate this process (can I pre-config the command line used by gud-gdb?) so I can possibly turn this into a simple turnkey procedure that I can then give to our tech-support guys to do the preliminary phase 1 analysis. I like the way emacs presents the output, especially since they will have sources to dump and it is easier in emacs to walk up the backtrace display source. Any pointers would be appreciated. Thanks, Patrick