Make stap-probe.c:stap_parse_register_operand's "regname" an std::string
authorSergio Durigan Junior <sergiodj@redhat.com>
Wed, 11 Sep 2019 20:03:40 +0000 (22:03 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 11 Sep 2019 20:03:40 +0000 (22:03 +0200)
commite9224f6d80ea35e90a61d44575f12b26742eaaf3
tree6d080b7c78e91158781d1eba2d6f74a55ca8ce8b
parentd98f1d629b55120768cd51fab1e8869994fe4117
Make stap-probe.c:stap_parse_register_operand's "regname" an std::string

[ Backport of master commit 677052f2a5. ]

This patch simplifies the code of
stap-probe.c:stap_parse_register_operand by making "regname" an
std::string.  No functionality change.

I'm this code's maintainer, so I'm pushing this as it's a fairly
trivial patch.

gdb/ChangeLog:
2019-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>

* stap-probe.c (stap_parse_register_operand): Make "regname" an
"std::string", simplifying the algorithm.
gdb/ChangeLog
gdb/stap-probe.c