diff options
-rw-r--r-- | gdb/utils.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/utils.h b/gdb/utils.h index f05e662..6f3a702 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -195,6 +195,11 @@ public: return m_argv; } + const char * const * get () const + { + return m_argv; + } + /* Return the underlying array, transferring ownership to the caller. */ @@ -227,6 +232,11 @@ public: return gdb::array_view<char *> (this->get (), this->count ()); } + gdb::array_view<const char * const> as_array_view () const + { + return gdb::array_view<const char * const> (this->get (), this->count ()); + } + /* Append arguments to this array. */ void append (gdb_argv &&other) { |