This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help needed with sparc - sparcv9, the next problem

Using Alexandre's configure patches
$ $GDB cc1
GNU gdb 20020112
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
welcome to change it and/or distribute copies of it under certain
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparcv9-sun-solaris2.8"...
.gdbinit:7: Error in sourced command file:
../../gcc-20020121/gcc/ Error in sourced command file:
Cannot access memory at address 0xb5a74
(gdb) r $(cat tmp.bug)
Starting program: /space/home/rdb/src/gcc-20020121.obj/gcc/cc1 $(cat
procfs:4230 -- process not stopped.
procfs: up...
(gdb) $q
Undefined command: "".  Try "help".
(gdb) q
The program is running.  Exit anyway? (y or n) y

$ gcc -v
Reading specs from
Configured with: ../gcc-3.0.3-20011217/configure
--host=sparcv9-sun-solaris2.8 --exec-prefix=/usr/local/64-bit --with-gnu-as
--with-as=/usr/local/64-bit/bin/as --with-gnu-ld
Thread model: posix
gcc version 3.0.3 20011217 (prerelease)
(This gave a bootstrap comparison failure so maybe I'm in a mass of twisty
little passages...)

Solaris has had a conditional definition of the prstatus_t interface to
/proc since about 2.5.1
- maybe for 64-bit it's time to #define  _STRUCTURED_PROC  to 1
 * This definition is temporary.  Structured proc is the preferred API,
 * and the older ioctl-based interface will be removed in a future version
 * of Solaris.  Until then, by default, including <sys/procfs.h> will
 * provide the older ioctl-based /proc definitions.  To get the structured
 * /proc definitions, either include <procfs.h> or define _STRUCTURED_PROC
 * to be 1 before including <sys/procfs.h>.

Looks like that may need some extra configury ....

-I../../gdb+dejagnu-20020112/bfd -I. -D_GNU_SOURCE -I.
-I../../gdb+dejagnu-20020112/bfd/../intl -I../intl -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -g -c
../../gdb+dejagnu-20020112/bfd/elf.c -o elf.o
In file included from ../../gdb+dejagnu-20020112/bfd/elf.c:43:
../../gdb+dejagnu-20020112/bfd/elf.c: In function `elfcore_write_pstatus':
../../gdb+dejagnu-20020112/bfd/elf.c:6594: `prstat' undeclared (first use
in this function)
../../gdb+dejagnu-20020112/bfd/elf.c:6594: (Each undeclared identifier is
reported only once
../../gdb+dejagnu-20020112/bfd/elf.c:6594: for each function it appears
../../gdb+dejagnu-20020112/bfd/elf.c:6596: structure has no member named
../../gdb+dejagnu-20020112/bfd/elf.c:6596: structure has no member named
../../gdb+dejagnu-20020112/bfd/elf.c:6588: warning: unused parameter


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]