tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Achim Gaedke <achim () zpr ! uni-koeln ! de>
To: tru64-unix-managers
Subject: Problems with gdb-5.0 on true64
Date: Thu, 25 Jan 2001 13:56:42 +0000	[thread overview]
Message-ID: <98043109619713.tru64-unix-managers.marc@archive.invalid> (raw)

Hi!

Yesterday I tried to build gdb-5.0 with gcc-2.95.2. After some fixes in
gdb/alpha-nat.c concerning the function fetch_osf_core_registers, it
compiled, but doesn't work.

Please help!

The Error Message was:

bash-2.03$ gcc -g gcc_test.c -o gcc_test
bash-2.03$ /usr/users/achim/install/bin/gdb gcc_test
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "alphaev67-dec-osf5.1"...
(gdb) run
Starting program: /usr/users/achim/c/gcc_test=20
gdb-internal-error: virtual memory exhausted: can't allocate 1074612449
bytes.
An internal GDB error was detected.  This may make make further
debugging unreliable.  Continue this debugging session? (y or n)=20
[1]+  Stopped                 /usr/users/achim/install/bin/gdb gcc_test
bash-2.03$ fg
/usr/users/achim/install/bin/gdb gcc_test
n
Create a core file containing the current state of GDB? (y or n) n
bash-2.03$=20

The Programm was:
bash-2.03$ gcc -g gcc_test.c -o gcc_test =20
bash-2.03$ cat gcc_test.c
int main()
{
  return 0;
}


Some system information:

bash-2.03$ uname -a
OSF1 promoter.mi.uni-koeln.de V5.1 732 alpha

bash-2.03$ ulimit -a
core file size (blocks)     unlimited
data seg size (kbytes)      131072
file size (blocks)          unlimited
max memory size (kbytes)    6161616
open files                  4096
pipe size (512 bytes)       8
stack size (kbytes)         8192
cpu time (seconds)          unlimited
max user processes          64
virtual memory (kbytes)     4194304


Here the diff:

*** gdb-5.0/gdb/alpha-nat.c     Wed Oct  6 01:07:58 1999
--- gdb-5.0-alpha/gdb/alpha-nat.c       Wed Jan 24 11:19:06 2001
***************
*** 27,33 ****
  #include <asm/reg.h>
  #include <alpha/ptrace.h>
  #else
! #include <machine/reg.h>
  #endif
  #include <sys/user.h>
 =20
--- 27,33 ----
  #include <asm/reg.h>
  #include <alpha/ptrace.h>
  #else
! #include <alpha/coreregs.h>
  #endif
  #include <sys/user.h>
 =20
***************
*** 101,121 ****
       The floating point register values are garbage in OSF/1.2 core
files.  */
    static int core_reg_mapping[NUM_REGS] =3D
    {
! #define EFL (EF_SIZE / 8)
!     EF_V0, EF_T0, EF_T1, EF_T2, EF_T3, EF_T4, EF_T5, EF_T6,
!     EF_T7, EF_S0, EF_S1, EF_S2, EF_S3, EF_S4, EF_S5, EF_S6,
!     EF_A0, EF_A1, EF_A2, EF_A3, EF_A4, EF_A5, EF_T8, EF_T9,
!     EF_T10, EF_T11, EF_RA, EF_T12, EF_AT, EF_GP, EF_SP, -1,
      EFL + 0, EFL + 1, EFL + 2, EFL + 3, EFL + 4, EFL + 5, EFL + 6, EFL +
7,
      EFL + 8, EFL + 9, EFL + 10, EFL + 11, EFL + 12, EFL + 13, EFL + 14,
EFL + 15,
      EFL + 16, EFL + 17, EFL + 18, EFL + 19, EFL + 20, EFL + 21, EFL +
22, EFL + 23,
      EFL + 24, EFL + 25, EFL + 26, EFL + 27, EFL + 28, EFL + 29, EFL +
30, EFL + 31,
!     EF_PC, -1
    };
    static char zerobuf[MAX_REGISTER_RAW_SIZE] =3D
    {0};
 =20
!   for (regno =3D 0; regno < NUM_REGS; regno++)
      {
        if (CANNOT_FETCH_REGISTER (regno))
        {
--- 101,121 ----
       The floating point register values are garbage in OSF/1.2 core
files.  */
    static int core_reg_mapping[NUM_REGS] =3D
    {
! #define EFL (NCF_REGS)
!     CF_V0, CF_T0, CF_T1, CF_T2, CF_T3, CF_T4, CF_T5, CF_T6,
!     CF_T7, CF_S0, CF_S1, CF_S2, CF_S3, CF_S4, CF_S5, CF_S6,
!     CF_A0, CF_A1, CF_A2, CF_A3, CF_A4, CF_A5, CF_T8, CF_T9,
!     CF_T10, CF_T11, CF_RA, CF_T12, CF_AT, CF_GP, CF_SP, -1,
      EFL + 0, EFL + 1, EFL + 2, EFL + 3, EFL + 4, EFL + 5, EFL + 6, EFL +
7,
      EFL + 8, EFL + 9, EFL + 10, EFL + 11, EFL + 12, EFL + 13, EFL + 14,
EFL + 15,
      EFL + 16, EFL + 17, EFL + 18, EFL + 19, EFL + 20, EFL + 21, EFL +
22, EFL + 23,
      EFL + 24, EFL + 25, EFL + 26, EFL + 27, EFL + 28, EFL + 29, EFL +
30, EFL + 31,
!     CF_PC, -1
    };
    static char zerobuf[MAX_REGISTER_RAW_SIZE] =3D
    {0};
 =20
!   for (regno =3D 0; regno < NCF_REGS; regno++)
      {
        if (CANNOT_FETCH_REGISTER (regno))
        {

Yours,
Achim

Achim Gaedke, ZPR
Weyertal 80, 50931 K=F6ln
Tel: +49 221 470 6021

                 reply	other threads:[~2001-01-25 13:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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