Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* How to run gdb with LD_PRELOAD?
@ 2011-01-15 14:45 陳韋任
  2011-01-15 23:16 ` Michael Snyder
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: 陳韋任 @ 2011-01-15 14:45 UTC (permalink / raw)
  To: gdb

Hi, all

  I have a program using LD_PRELOAD. The program should be run like
this, "LD_PRELOAD=/path/to/libfoo.so qemu -U LD_PRELOAD a.out", if
without gdb.

  Here are what I did while running gdb.

--------------------------------------------------------------------
$ gdb
(gdb) set environment LD_PRELOAD=/path/to/libfoo.so
(gdb) file qemu
(gdb) r -U LD_PRELOAD a.out
--------------------------------------------------------------------

  But gdb gave me the error below,

ERROR: ld.so: object '/nfs_home/chenwj/lib/libdbo.so' from LD_PRELOAD cannot be preloaded: ignored.

  Any suggestion appreciated.  

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Parallel Processing Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-01-20  9:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-15 14:45 How to run gdb with LD_PRELOAD? 陳韋任
2011-01-15 23:16 ` Michael Snyder
2011-01-16  2:56   ` 陳韋任
2011-01-16  8:01     ` Philippe Waroquiers
2011-01-16  8:04       ` 陳韋任
2011-01-16  0:52 ` Hui Zhu
2011-01-16  2:58   ` 陳韋任
2011-01-16  8:01 ` 陳韋任
2011-01-20  7:22   ` 陳韋任
2011-01-20  7:35     ` Pedro Alves
2011-01-20  9:29       ` 陳韋任

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox