public inbox for gdb-cvs@sourceware.org help / color / mirror / Atom feed
From: Simon Marchi <simark@sourceware.org> To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb: use gdb_tilde_expand instead of gdb_tilde_expand_up in source_script_with_search Date: Mon, 18 Apr 2022 20:12:49 +0000 (GMT) [thread overview] Message-ID: <20220418201249.89BE53858D1E@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=56325e2ba62af99ff47c38679951115cbf5c6ba0 commit 56325e2ba62af99ff47c38679951115cbf5c6ba0 Author: Simon Marchi <simon.marchi@efficios.com> Date: Wed Apr 13 20:12:37 2022 -0400 gdb: use gdb_tilde_expand instead of gdb_tilde_expand_up in source_script_with_search Since this is the latest use of gdb_tilde_expand_up, remove it. Change-Id: I964c812ce55fe087876abf91e7a3577ad79c0425 Diff: --- gdbsupport/gdb_tilde_expand.cc | 9 --------- gdbsupport/gdb_tilde_expand.h | 4 ---- 2 files changed, 13 deletions(-) diff --git a/gdbsupport/gdb_tilde_expand.cc b/gdbsupport/gdb_tilde_expand.cc index e3f9308a14f..177d296a14f 100644 --- a/gdbsupport/gdb_tilde_expand.cc +++ b/gdbsupport/gdb_tilde_expand.cc @@ -102,12 +102,3 @@ gdb_tilde_expand (const char *dir) gdb_assert (glob.pathc () == 1); return std::string (glob.pathv ()[0]) + remainder; } - -/* See gdbsupport/gdb_tilde_expand.h. */ - -gdb::unique_xmalloc_ptr<char> -gdb_tilde_expand_up (const char *dir) -{ - const std::string expanded = gdb_tilde_expand (dir); - return make_unique_xstrdup (expanded.c_str ()); -} diff --git a/gdbsupport/gdb_tilde_expand.h b/gdbsupport/gdb_tilde_expand.h index c47cd6a214f..06b96517697 100644 --- a/gdbsupport/gdb_tilde_expand.h +++ b/gdbsupport/gdb_tilde_expand.h @@ -23,8 +23,4 @@ /* Perform tilde expansion on DIR, and return the full path. */ extern std::string gdb_tilde_expand (const char *dir); -/* Same as GDB_TILDE_EXPAND, but return the full path as a - gdb::unique_xmalloc_ptr<char>. */ -extern gdb::unique_xmalloc_ptr<char> gdb_tilde_expand_up (const char *dir); - #endif /* COMMON_GDB_TILDE_EXPAND_H */
reply other threads:[~2022-04-18 20:12 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220418201249.89BE53858D1E@sourceware.org \ --to=simark@sourceware.org \ --cc=gdb-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).