Comment 28 for bug 1640518

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- 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.