Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* FW: GDB 5.1 on Solaris 2.8
@ 2001-11-27  3:58 debashis  mahata
  2001-11-16 17:10 ` debashis  mahata
  0 siblings, 1 reply; 2+ messages in thread
From: debashis  mahata @ 2001-11-27  3:58 UTC (permalink / raw)
  To: gdb

Looks like gdb list don't accept messages larger than 100000 bytes... This
time I am attaching just diff.txt ...

-----Original Message-----
From: Debashis Mahata [ mailto:debashis.mahata@wipro.com ]
Sent: Tuesday, November 27, 2001 2:51 PM
To: Albert Chin-A-Young
Cc: gdb@sources.redhat.com
Subject: RE: GDB 5.1 on Solaris 2.8


Hi Albert,

I am marking this mail to gdb list for others benefit/comments.

Originally I had made changes on GDB 4.18. Along with these changes, I also
had some other changes which are not related to the current problem.
Currently I have source code of GDB 5.0 in my machine. So I am attaching
three files (taken from GDB 5.0) where I made the changes for '/' and double
';' problem.

The '/' problem in N_SO stab looks like a bug in compiler since it violates
the documentation and probably SUN should provide a patch for that in
future. My fix for this problem is in file partial-stab.h and dbxread.c. The
current fix might be Solaris specific (I am not very sure what will happen
if some compiler generate single N_SO instead of two as in case of Solaris).
Although a generic fix is not required for me at this moment, any generic
fix is welcome.

I have placed the fix for double ';' in file stabsread.c. Stab document does
not says that the structure and unions should ends with two consecutive ';'.
GDB logic should not assume two consecutive ';' at the end. Either SUN
should also fix this or otherwise a permanent fix is required in GDB.

I am attaching the updated version of partial-stab.h, dbxread.c,
stabsread.c, and diff.txt .

Thanks,
debashis mahata.


> -----Original Message-----
> From: Albert Chin-A-Young [ mailto:china@thewrittenword.com ]
> Sent: Monday, November 26, 2001 9:27 PM
> To: debashis mahata
> Subject: Re: GDB 5.1 on Solaris 2.8
>
>
> On Mon, Nov 26, 2001 at 09:39:55AM +0500, debashis  mahata wrote:
> >  Because of that GDB takes "/h/mahatad/DBG/GDB" as a file name. The
> >  corresponding code is in the partial-stab.h -
> >    case N_SO:
> >     {
> >      ....
> >        p = strrchr (namestring, '/');
> >        if (p && *(p + 1) == '\000')
> >          continue; /* Simply ignore directory name SOs */
> >
> >     }
> >  I have put some fix for these two places in my local GDB source. After
> >  the fix -
>
> Can you forward your local patch to me?
>
> --
> albert chin (china@thewrittenword.com)
>
From john@drystone.co.uk Tue Nov 27 04:47:00 2001
From: John Hedges <john@drystone.co.uk>
To: Eli Zaretskii <eliz@is.elta.co.il>
Cc: gdb@sourceware.cygnus.com
Subject: Re: Problem with fld on i686
Date: Tue, 27 Nov 2001 04:47:00 -0000
Message-id: <E168haM-0003at-00@gwlinux>
References: <Pine.SUN.3.91.1011127131103.22199A-100000@is>
X-SW-Source: 2001-11/msg00286.html
Content-length: 749

On Tuesday 27 Nov 2001 11:18 am, Eli Zaretskii wrote:
> If the code _is_ correct (I think it is), but the results aren't, then
> the fact that static_cast was used in the C++ program is irrelevant,
> right?

Correct - static_cast is irrelevant if we assume it compiled correctly. The 
disassembly looks ok to me too but I'm no asm expert.

> > The problem does not occur when run outside the debugger, nor in a
> > minimal test program.
>
> This suggests that perhaps the FPU state is not saved/restored correctly
> across task switches.  What OS is that?  Can you try a different version
> of the same OS, or some similar but not identical OS?

OS is Linux 2.2.14-5.0. Problem does not occur with Linux 2.2.16 on a 
different (but stil i686) box.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-11-27 11:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-27  3:58 FW: GDB 5.1 on Solaris 2.8 debashis  mahata
2001-11-16 17:10 ` debashis  mahata

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox