This is the mail archive of the insight@sourceware.org mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to run insight with a gdb script


Dave,

Thanks. But when i try this "insight ./MyServer -x gdb_script"

I get '/home/yinglcs/src/gdb_script' is not a directory.

It appears to me that it is treading 'gdb_script' as a directory
instead of  passing it to gdb as a list of command.

On 5/17/07, Dave Korn <dave.korn@artimi.com> wrote:
On 17 May 2007 16:19, ying lcs wrote:

> Thanks Dave,
>
> I start 'insight' and the program starts.
> But where do I type 'gdb -w ./MyServer -x gdb_script'?

  In the exact same place you were previously typing "gdb ./MyServer -x
gdb_script".  All I am saying is to add the -w flag.

  Or you could replace the 'gdb' in "gdb ./MyServer -x gdb_script" with
'insight', i.e. "insight ./MyServer -x gdb_script"

  'insight' and 'gdb -w' are the exact same thing.  And 'insight' understands
all the same command-line options as gdb, in particular it also accepts '-x
gdb_script'.


cheers, DaveK -- Can't think of a witty .sigline today....




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]