diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-02-19 17:39:18 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-02-24 16:58:05 +0000 |
commit | dd80d75040a291400c0fddb0f8b05c3f40da49ff (patch) | |
tree | 64425fc2d5a9a68a32b9da4ded3e3795c496b6fd /gdb/namespace.c | |
parent | 336aa7b740c64070ae14d2364edddb7df7bce011 (diff) | |
download | gdb-dd80d75040a291400c0fddb0f8b05c3f40da49ff.zip gdb-dd80d75040a291400c0fddb0f8b05c3f40da49ff.tar.gz gdb-dd80d75040a291400c0fddb0f8b05c3f40da49ff.tar.bz2 |
gdb: use std::string instead of a fixed size buffer
The 'section' command uses a fixed size buffer into which a section
name is copied. This commit replaces this with a use of std::string
so we can now display very long section names.
The expected results of one test need to be updated.
gdb/ChangeLog:
* exec.c (set_section_command): Move variable declarations into
the function body, and use std::string instead of a fixed size
buffer.
gdb/testsuite/ChangeLog:
* gdb.base/sect-cmd.exp: Update expected results.
Diffstat (limited to 'gdb/namespace.c')
0 files changed, 0 insertions, 0 deletions