* FW: GDB 5.1 on Solaris 2.8
2001-11-27 3:58 FW: GDB 5.1 on Solaris 2.8 debashis mahata
@ 2001-11-16 17:10 ` debashis mahata
0 siblings, 0 replies; 2+ messages in thread
From: debashis mahata @ 2001-11-16 17:10 UTC (permalink / raw)
To: gdb
[-- Attachment #1: Type: text/plain, Size: 2370 bytes --]
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)
>
[-- Attachment #2: diff.txt --]
[-- Type: text/plain, Size: 2189 bytes --]
$ct diff -ser partial-stab.h partial-stab.h.update
cleartool: Warning: No type info, using text file type manager.
********************************
<<< file 1: partial-stab.h
>>> file 2: partial-stab.h.update
********************************
-----[258 changed to 258]-----
<
---
> #if 0
-----[after 261 inserted 262-270]-----
> #else
> /* Sun WorkShop 6 update 2 C 5.3 does not generate the last back
> slash for the first N_SO stab. This is a bug with the compiler
> since it violates the documentation. The code under '#else'
> should be removed if SUN fix this problem.*/
>
> if (first_so_symnum == symnum)
> continue; /* Simply ignore directory name SOs */
> #endif
$ct diff -ser dbxread.c dbxread.c.update
cleartool: Warning: No type info, using text file type manager.
********************************
<<< file 1: dbxread.c
>>> file 2: dbxread.c.update
********************************
-----[after 2141 inserted 2142]-----
> #if 0
-----[after 2142 inserted 2144-2166]-----
> #else
> {
> /* Sun WorkShop 6 update 2 C 5.3 does not generate the last back
> slash for the first N_SO stab. This is a bug with the compiler
> since it violates the documentation. The code under "#else'
> should be removed if SUN fix this problem.*/
>
> int len = strlen(name);
> char * buf;
>
> if (name[len-1] != '/')
> {
> buf = (char *)xmalloc(len+2);
> sprintf(buf, "%s%c\0", name, '/');
> }
> else
> buf = name;
> start_symtab (buf, NULL, valu);
>
> if (name[len-1] != '/')
> free(buf);
> }
> #endif
$ct diff -ser stabsread.c stabsread.c.update
cleartool: Warning: No type info, using text file type manager.
********************************
<<< file 1: stabsread.c
>>> file 2: stabsread.c.update
********************************
-----[3557-3558 changed to 3557-3559]-----
<
< while (**pp != ';')
---
> /* Stab string for structure/union does not end with two ';' in
> Sun WorkShop 6 update 2 C 5.3 */
> while (**pp != ';' && **pp != '\0')
[-- Attachment #3: InterScan_Disclaimer.txt --]
[-- Type: text/plain, Size: 855 bytes --]
-------------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:mailadmin@wipro.com and delete this mail
from your records.
----------------------------------------------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* 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