GDB: Append to solib-search-path -


how can append contents of solib-search-path?

i smothing like:

set solib-search-path $(solib-search-path):some/other/path 

there isn't simple built-in way this. there 2 less simple ways, though.

the simplest of 2 ways use python scripting change setting. python easy current value , modify string.

the harder way use combination of set logging, shell, , source it. idea print current value file, rewrite file new set command, , source result.