Setting an std::string variable value from gdb?

Posted by Stabledog on Stack Overflow See other posts from Stack Overflow or by Stabledog
Published on 2010-03-23T17:50:56Z Indexed on 2010/03/23 17:53 UTC
Read the original article Hit count: 309

Filed under:
|

Is it possible... when the debugger is stopped at a breakpoint, to modify the value of a std::string variable without resorting to hacks like tweaking the memory image of the current buffer?

e.g. something like "set var mystring="hello world"

?

© Stack Overflow or respective owner

Related posts about gdb

Related posts about c++