I was figuring out a problem where starting the application from GDB results in a symbol lookup error, but starting it from the shell works.

It turns out that whenever you start a program from within GDB it will start a new shell and thus override all environment variables I had set before starting GDB (like LD_LIBRARY_PATH).

This is not really the behavior I want. Can someone explain the rationale behind this, or tell me how I can turn this off?

Edit
Report