Is it possible to store shell output into GDB variable in gdbinit?
Something like:
set solib-search-path=$(shell which gdb)+”..\project\lib”
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have a new-ish version of GDB (I believe that means 7.x) with python support built, you could add a section like:
I can’t claim it’s not possible without using python, but it’s the only way I know of to do it. [I also assumed you meant ../project/lib and not ..\project\lib, but that’s an easy change…].