🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42420

is gdb-4.15.1 compatible with AIX 4.1.3.0 (Rs6000) ?

#42420
From: Thierry Dolidon
Date: Thu, 07 Dec 1995 00:00
64 lines
2683 bytes
is gdb-4.15.1 compatible with AIX 4.1.3.0 (Rs6000) ?
----------------------------------------------------
PROBLEM COMPILING gdb-4.15.1 on RS6000 with AIX 4.1.3.0
-------------------------------------------------------

Question : is gdb-4.15.1 compatible with AIX 4.1.3.0 ?
--------   If yes, which 'core.h' file should  I take ?
	   (Compilation goes well with AIX 3.2)

Command :
---------
gcc -c -O  -I. -I/gnu-src/gdb-4.15.1/bfd \
               -I/gnu-src/gdb-4.15.1/bfd/../include \
	         /gnu-src/gdb-4.15.1/bfd/rs6000-core.c

Symptom:
--------
In function `rs6000coff_core_p':
line 166.51: 1506-022 (S) "u_dsize" is not a member of "struct user".
line 218.25: 1506-022 (S) "u_save"  is not a member of "struct user".
line 232.25: 1506-022 (S) "u_save"  is not a member of "struct user".
line 268.32: 1506-022 (S) "u_dsize" is not a member of "struct user".

The same occurs with GCC or XLC.
(xlC says "structure has no member named `u_dsize'"
          "structure has no member named `u_save'" )

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
Below, more details.

Samples of source lines from rs6000-core.c:
------------------------
for U_DSIZE :
  +165    if (((bfd_vma)coredata.c_stack + coredata.c_size
  +166         + ((coredata.c_flag & FULL_CORE) ? coredata.c_u.u_dsize : 0))      
for U_SAVE :
  +217    core_regsec (abfd)->filepos =
  +218          (char*)&coredata.c_u.u_save - (char*)&coredata;

Declarations :
--------------
  +103    struct core_dump coredata;    /* local to `rs6000coff_core_p' function */

Included files :
/usr/include/sys/core.h
-----------------------
   +34  /* The core_dump structure occurs once at the beginning of a core file. */
   +35  struct core_dump
   +36  {
...
   +44          struct user     c_u;            /* copy of the user structure */
...

/usr/include/sys/user.h
-----------------------
   +80  struct user {
contains no 'u_dsize' neither `u_save'.


Thanx in advance.
-- 
Thierry DOLIDON,	T.Dolidon@frcl.bull.fr		
Technical Details
Message-ID: <4a77ur$d29@frclnews.frcl.bull.fr>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,1d329fef24ebec1d,start
X-Google-Attributes: gid11318c,public
From: T.Dolidon@frcl.bull.fr (Thierry Dolidon)
Subject: is gdb-4.15.1 compatible with AIX 4.1.3.0 (Rs6000) ?
Date: 1995/12/07
Message-ID: <4a77ur$d29@frclnews.frcl.bull.fr>
X-Deja-AN: 121483978
distribution: world
sender: dolidon@frcl.bull.fr (Thierry Dolidon)
organization: Bull, Les Clayes, France
keywords: gnu gcc gdb core.h user.h compilation
newsgroups: gnu.gcc.help