From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "carlo\.bramix" Newsgroups: gmane.lisp.guile.devel Subject: Re: Again on Windows support (2) Date: Fri, 19 Jun 2009 10:48:23 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1245401316 19484 80.91.229.12 (19 Jun 2009 08:48:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Jun 2009 08:48:36 +0000 (UTC) To: "guile-devel" Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Jun 19 10:48:34 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MHZlx-00005J-Be for guile-devel@m.gmane.org; Fri, 19 Jun 2009 10:48:33 +0200 Original-Received: from localhost ([127.0.0.1]:46174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHZlw-0000LK-SB for guile-devel@m.gmane.org; Fri, 19 Jun 2009 04:48:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHZls-0000Jc-M7 for guile-devel@gnu.org; Fri, 19 Jun 2009 04:48:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHZlo-0000HQ-Su for guile-devel@gnu.org; Fri, 19 Jun 2009 04:48:28 -0400 Original-Received: from [199.232.76.173] (port=34252 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHZlo-0000HJ-OD for guile-devel@gnu.org; Fri, 19 Jun 2009 04:48:24 -0400 Original-Received: from cp-out1.libero.it ([212.52.84.101]:55114) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHZlo-0005iR-6K for guile-devel@gnu.org; Fri, 19 Jun 2009 04:48:24 -0400 Original-Received: from libero.it (192.168.17.12) by cp-out1.libero.it (8.5.107) id 4A36F5B1003681D6 for guile-devel@gnu.org; Fri, 19 Jun 2009 10:48:23 +0200 X-Sensitivity: 3 X-XaM3-API-Version: 4.3 (R1) (B3pl25) X-SenderIP: 213.203.169.135 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:8710 Archived-At: Hello, this is the command that I gave me some results: $ ./pre-inst-guile-env ./libtool --mode=3Dexecute gdb --args libguile/gui= le.exe -c '(display "foo")' As you can see I added "--args" option to GDB. Without "--args" option, GDB says: C:\msys\1.0\home\Carlo\guile/(display "foo"): Invalid argument. argc=3D1 argv[0]=3DC:/msys/1.0/home/Carlo/guile/libguile/.libs/guile.exe With "--args" option I had this: argc=3D4 argv[0]=3DC:/msys/1.0/home/Carlo/guile/libguile/.libs/guile.exe argv[1]=3D-c argv[2]=3D\(display\ argv[3]=3D"foo"\) Since I had no idea about those unknown '\' characters, I added some debu= g prints before scm_boot_guile(): int main (int argc, char **argv) { int x; printf("argc=3D%d\n",argc); for (x=3D0; xFrom : "Neil Jerram" neil@ossau.uklinux.net To : "carlo.bramix" carlo.bramix@libero.it Cc : "guile-devel" guile-devel@gnu.org Date : Wed, 17 Jun 2009 22:09:08 +0100 Subject : Re: Again on Windows support (2) > Neil Jerram writes: > > > "carlo.bramix" writes: > > > >> $ ./pre-inst-guile -c '(display "foo")' > >> Backtrace: > >> In unknown file: > >> ?: 0* (begin (eval-string "(display") (quit)) > >> ?: 1* [eval-string "(display"] > > > > That is weird. > > > > Can we first rule out a problem with your shell? What output do you > > get from this? > > > > $ set - '(display "foo")' && echo "--${1}--" && echo "--${2}--" > > Assuming that that gives the expected output, i.e. > > --(display "foo")-- > ---- > > my next suggestion would be to run under GDB, with a breakpoint on > scm_shell(). The invocation for doing that is > > ./pre-inst-guile-env ./libtool --mode=3Dexecute gdb libguile/guile -c '= (display "foo")' > > In scm_shell, I would expect: > argc to be 3 > argv[1] to be "-c" > argv[2] to be "(display \"foo\")" > scm_get_meta_args () to return 0 > and hence not to execute the "if (new_argv)" block of code. > > Can you check those points? > > Regards, > Neil >