Bug 19395 - add a "save user" command
Summary: add a "save user" command
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: cli (show other bugs)
Version: unknown
: P2 normal
Target Milestone: 18.1
Assignee: Tom Tromey
URL:
Keywords: good-first-bug
Depends on:
Blocks:
 
Reported: 2015-12-22 20:54 UTC by Tom Tromey
Modified: 2026-02-19 00:48 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:
Project(s) to access:
ssh public key:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2015-12-22 20:54:51 UTC
Occasionally I write a new command with "define".
It would be nice to have a "save user" command that would
write out the definition to a file.
Comment 1 Tom Tromey 2023-01-24 00:16:52 UTC
I have a patch for this, just no docs yet.
Comment 2 Sourceware Commits 2026-02-19 00:46:44 UTC
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=989f741651a8626a887a5a63e06c5d82d3fd7dcd

commit 989f741651a8626a887a5a63e06c5d82d3fd7dcd
Author: Tom Tromey <tom@tromey.com>
Date:   Mon Jan 23 16:10:53 2023 -0700

    Add "save user" command
    
    PR cli/19395 points out that it would sometimes be convenient to save
    one's user-defined commands to a file.  This patch implements this
    feature.
    
    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=19395
    Reviewed-By: Eli Zaretskii <eliz@gnu.org>
    Reviewed-By: Keith Seitz <keiths@redhat.com>
Comment 3 Tom Tromey 2026-02-19 00:48:45 UTC
Fixed.