Make stap-probe.c:stap_parse_register_operand's "regname" an std::string
authorSergio Durigan Junior <sergiodj@redhat.com>
Thu, 16 May 2019 20:23:24 +0000 (16:23 -0400)
committerSergio Durigan Junior <sergiodj@redhat.com>
Thu, 16 May 2019 20:26:30 +0000 (16:26 -0400)
commit677052f2a5c67f1d9b2e6d1b2a2149b5f0c20cd0
tree26764897d83d8fad0c8fe8fa14383d6603dab988
parentf3da9116654bb2e899063a0aa9e11c2606b38fff
Make stap-probe.c:stap_parse_register_operand's "regname" an std::string

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