Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Oct 2001 18:18:36 -0700
From:      Jin Guojun <j_guojun@lbl.gov>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/30993: xxgdb cannot open source file
Message-ID:  <3BD616EC.40F97564@lbl.gov>
References:  <200110022120.f92LK0p30114@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <main+6> 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 <main+6> 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 <main+6> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BD616EC.40F97564>