jed-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: svn.sl problems


Joachim Schmitz <js@xxxxxxxxxxxxx> wrote:
>Received Open failed error.  Entering the debugger
>sldb at /usr/local/share/slsh/sldbcore.sl:680
>680    () = evalfile (file);
>(SLdb) p _line
>Caught exception:***string***:1:<top-level>:Unable to locate --pid on 
>load path
>_line is undefined

You will need to use the version of sldb from slang 2.1.  Try
modifying the debug function to use this version of sldb instead of
the one in the slang 2.0 distribution.  Don't forget to make this
executable.  Thanks, --John

#!/usr/bin/env slsh

private define usage ()
{
   () = fprintf (stdout, "Usage: %s script args...\n", path_basename (__argv[0]));
   () = fprintf (stdout, " -or-: %s --pid pid\n", path_basename (__argv[0]));
   exit (1);
}

if (__argc == 1)
  usage ();

autoload ("sldbsock_attach", "sldbsock.sl");

if (__argv[1] == "--pid")
{
   private variable pid;

   if (__argc != 3)
     usage ();
   if (1 != sscanf (__argv[2], "%d", &pid))
     usage ();
   
   public variable __SLDB_CLIENT__ = 1;
   if (-1 == sldbsock_attach (pid))
     exit (1);
   exit (0);
}

__set_argc_argv (__argv[[1:]]);
$0 = __argv[0];
if (not path_is_absolute ($0))
  $0 = path_concat (getcwd (), $0);
sldb ($0);

#ifexists slsh_main
slsh_main ();
#endif

exit (0);

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]