------- Comment From <email address hidden> 2016-11-10 19:54 EDT-------
(In reply to comment #49)
Something doesn't look right in your commands. They all have "LD_PRELOAD=" with nothing after the '=':
Comment #49 has:
> $ LD_PRELOAD= gdb ./a.out
That should be:
$ LD_PRELOAD=/path-to.../libfoo.so.1 gdb ./a.out
Also, if you use LD_PRELOAD (without export) for the gdb command, I wouldn't expect it to carry forward to the inferior. Although, as you say, gdb shows the library loaded.
------- Comment From <email address hidden> 2016-11-10 19:54 EDT-------
(In reply to comment #49)
Something doesn't look right in your commands. They all have "LD_PRELOAD=" with nothing after the '=':
Comment #49 has:
> $ LD_PRELOAD= gdb ./a.out
That should be: /path-to. ../libfoo. so.1 gdb ./a.out
$ LD_PRELOAD=
Also, if you use LD_PRELOAD (without export) for the gdb command, I wouldn't expect it to carry forward to the inferior. Although, as you say, gdb shows the library loaded.