From owner-freebsd-bugs Tue Oct 23 18:15:44 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from adsl-63-198-35-122.dsl.snfc21.pacbell.net (adsl-63-198-35-122.dsl.snfc21.pacbell.net [63.198.35.122]) by hub.freebsd.org (Postfix) with ESMTP id 41D5837B407 for ; Tue, 23 Oct 2001 18:15:39 -0700 (PDT) Received: from lbl.gov (localhost [127.0.0.1]) by adsl-63-198-35-122.dsl.snfc21.pacbell.net (8.11.3/8.11.3) with ESMTP id f9O1IaT02076 for ; Tue, 23 Oct 2001 18:18:36 -0700 (PDT) (envelope-from j_guojun@lbl.gov) Message-ID: <3BD616EC.40F97564@lbl.gov> Date: Tue, 23 Oct 2001 18:18:36 -0700 From: Jin Guojun X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.3-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-bugs@FreeBSD.org Subject: Re: bin/30993: xxgdb cannot open source file References: <200110022120.f92LK0p30114@freefall.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org gnats-admin@FreeBSD.org wrote: > You can access the state of your problem report at any time > via this link: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=30993 > > >Category: bin > >Responsible: freebsd-bugs > >Synopsis: xxgdb cannot open source file > >Arrival-Date: Tue Oct 02 14:20:00 PDT 2001 If we can use xxgdb rather than gdb, the debugging life will be easier. However, I cannot trace the code further since I stuck at XtSetValues(sourceWindow, args, n). I guess this function may be switched to a different process since it cannot be traced any more. The tracing point, code segment, and debug output are appended below. Hopefully, the following information can help the designer to fix the bug. -Jin (gdb) n 789 XtSetValues(sourceWindow, args, n); (gdb) s Warning: Cannot open file /tmp/x.c; Resource temporarily unavailable source.c: unmodified, readonly: line 775 of 1112 [69%] static void DisplayFile(file) FileRec *file; { Arg args[MAXARGS]; Cardinal n, i; TextWidget ctx = (TextWidget) sourceWindow; n = 0; XtSetArg(args[n], XtNdisplayPosition, (XtArgVal)file->topPosition); n++; XtSetArg(args[n], XtNstring, (XtArgVal) file->pathname); n++; XtSetArg(args[n], XtNeditType, (XtArgVal) XawtextRead); n++; fprintf(stderr, "%s %s\n", __func__, "sourceWindow"); for (i=0; i< n; ++i) fprintf(stderr, "arg-%d %s ", i, args[i]); XtSetValues(sourceWindow, args, n); file->lines = ctx->text.lt.lines; fprintf(stderr, "%s %d\n", __func__, file->lines); file->bottomline = MIN (file->topline + file->lines - 1, file->lastline); } Located in /tmp/x.c Contains 5 lines. Source language is c. Compiled with stabs debugging format. , command = info source , flags = 1) C_INFO_SOURCE cdir = "/tmp" source = "x.c" source full path = "/tmp/x.c" >>info line =>Line 1 of "x.c" is at address 0x804849a but contains no code. =>yy/tmp/x.c:1:0:beg:0x804849a =>(gdb) Prompt detected parse(output = Line 1 of "x.c" is at address 0x804849a but contains no code. yy/tmp/x.c:1:0:beg:0x804849a , command = info line , flags = 1) C_INFO_LINE Full path of x.c is "/tmp/x.c" LoadFile x.c LoadFile DisplayFile DisplayFile sourceWindow arg-0 displayPosition arg-1 string arg-2 editType Warning: Cannot open file /tmp/x.c; Resource temporarily unavailable DisplayFile 24 LoadFile UpdateFileLabel >>info line =>Line 1 of "x.c" is at address 0x804849a but contains no code. =>yy/tmp/x.c:1:0:beg:0x804849a To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message