GDB: add to solib-search-path

How can I add solib-search-path to content ?

I would like to do smothing like:

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

      

+3


source to share


1 answer


There is no easy built-in way to do this. However, there are two less simple ways.

The simplest of the two is to use Python scripts to change the setting. It's easy to get the current value from Python and change it as a string.



The more difficult it is to use the combination set logging

, shell

and source

to do it. The idea is to print the current value in a file, overwrite the file as a new command set

and then the source

result.

+1


source