aboutsummaryrefslogtreecommitdiff
path: root/bfd/stab-syms.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-10-25 14:33:55 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-10-25 14:33:55 -0400
commit61d7f128e6ea37af805be4e365f5879b0d42bb93 (patch)
treec581803312ce6dcb9b37ef348c37367090ea293e /bfd/stab-syms.c
parentb3a9fe6f51fd3922ce7978b6ba5ce0cbdf33885e (diff)
downloadgdb-61d7f128e6ea37af805be4e365f5879b0d42bb93.zip
gdb-61d7f128e6ea37af805be4e365f5879b0d42bb93.tar.gz
gdb-61d7f128e6ea37af805be4e365f5879b0d42bb93.tar.bz2
gdbserver: make target_pid_to_str return std::string
I wanted to write a warning that included two target_pid_to_str calls, like this: warning (_("Blabla %s, blabla %s"), target_pid_to_str (ptid1), target_pid_to_str (ptid2)); This doesn't work, because target_pid_to_str stores its result in a static buffer, so my message would show twice the same ptid. Change target_pid_to_str to return an std::string to avoid this. I don't think we save much by using a static buffer, but it is more error-prone. Change-Id: Ie3f649627686b84930529cc5c7c691ccf5d36dc2
Diffstat (limited to 'bfd/stab-syms.c')
0 files changed, 0 insertions, 0 deletions