On Mar 1, 2006, Daniel Jacobowitz wrote: > First: you're using gdb_expect directly. I'm sorry I didn't notice > this before. Don't do that; use gdb_test_multiple instead. Tricky to catch two independent messages triggered by the same command that way while still producing a fail if either fails to match, so I put them now in a single regexp. > We need to either copy the libraries around (complicated, fragile), or > punt if the system ld.so is not prelinked. Punting it is :-) Tricky, since prelink doesn't report an error in this case. Fortunately prelink -u does. How's this? I've tested it on amd64-linux-gnu, with and without prelinked system libraries. I got the warning in the latter case, and a pass in the former.