public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Re: Multilib GDB on Linux S390x (zSeries) [Deutsche Boerse Systems: Virus checked]
@ 2003-06-25 12:21 Dirk Volkmar
  2003-06-25 12:22 ` Andreas Jaeger
  0 siblings, 1 reply; 3+ messages in thread
From: Dirk Volkmar @ 2003-06-25 12:21 UTC (permalink / raw)
  To: Andreas Jaeger; +Cc: gdb

[-- Attachment #1: Type: text/plain, Size: 1953 bytes --]

Ok!
So how can I build a 32 bit gdb? I didn't find an configure option to build it.

On the other hand there is a option
"set architecture"  that can be set to

(gdb) set architecture
Requires an argument. Valid arguments are s390:31-bit, s390:64-bit, auto.

but it has no effect.
And I think that gdb is multilib capable (on sparc it is).

So I made an experiment. I replaced in the gdb source tree the bfd subdirectory
with the newest binututils bfd directory, compiled it and now the gdb can read
the symbols.
It seems that the bfd part in gdb is not up to date ?? I take it from
binutils-2.13.2.

But now I have an other problem. When I set a Break point and run the program, i
get some strange error:

(gdb) break main
Breakpoint 1 at 0x400418: file hello.c, line 4.
(gdb) run
Starting program: /xentric/volkdir/src/a.out
Warning:
Cannot insert breakpoint -1.
Error accessing memory address 0x9ddc: Input/output error.
The same program may be running in another process.
(gdb)

other things like accessing symbols (whatis) works.
Any suggestions ?




|-------+-------------->
|       |              |
|       | Andreas      |
|       | Jaeger       |
|       | <aj@suse.de> |
|       |              |
|       | 25.06.2003   |
|       | 13:03        |
|       |              |
|-------+-------------->
  >---------------------------------------------------------------------------->
  |                                                                            |
  |     To:  Dirk Volkmar/DBS/GDB@Deutsche Boerse                              |
  |     cc:  gdb@sources.redhat.com^                                           |
  |     Subject:  Re: Multilib GDB on Linux S390x (zSeries) [Deutsche Boerse   |
  | Systems: Virus checked]                                                    |
  >---------------------------------------------------------------------------->
  >--------------------|
  |                    |
  >--------------------|





[-- Attachment #2: Type: text/plain, Size: 538 bytes --]



"Dirk Volkmar" <Dirk.Volkmar@deutsche-boerse.com> writes:

> Hi!
>
> We are porting some software to linux for zSeries. The software uses MQSeries
> that is only availabe for 32 bit. So we use the gcc with the -m31 switch.
> The Appliction work but could'nt be debugged with gdb.

You need a 32-bit debugger for this,

Andreas
--
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

[-- Attachment #3: att1.unk --]
[-- Type: application/octet-stream, Size: 205 bytes --]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQA++YFyOJpWPMJyoSYRAl4HAJ444CGJXF/er7yzWq/GgLBs/SHwoACcCyPs
/hn93h8uEeg1ZWsLsUs9KAE=
=4tcD
-----END PGP SIGNATURE-----

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

* Re: Multilib GDB on Linux S390x (zSeries) [Deutsche Boerse Systems: Virus checked]
  2003-06-25 12:21 Multilib GDB on Linux S390x (zSeries) [Deutsche Boerse Systems: Virus checked] Dirk Volkmar
@ 2003-06-25 12:22 ` Andreas Jaeger
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Jaeger @ 2003-06-25 12:22 UTC (permalink / raw)
  To: Dirk Volkmar; +Cc: gdb

"Dirk Volkmar" <Dirk.Volkmar@deutsche-boerse.com> writes:

> Ok!
> So how can I build a 32 bit gdb? I didn't find an configure option to build it.

configure for s390-ibm-linux-gnu as target/host.

Or take the gdb binary from an existing s390 installation.  It should
run just fine...

> On the other hand there is a option
> "set architecture"  that can be set to
>
> (gdb) set architecture
> Requires an argument. Valid arguments are s390:31-bit, s390:64-bit, auto.
>
> but it has no effect.
> And I think that gdb is multilib capable (on sparc it is).

This is currently work in progress but does not work under Linux
platforms.

> So I made an experiment. I replaced in the gdb source tree the bfd subdirectory
> with the newest binututils bfd directory, compiled it and now the gdb can read
> the symbols.

But it won't work, the interface is not that stable.

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

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

* Re: Multilib GDB on Linux S390x (zSeries) [Deutsche Boerse Systems: Virus checked]
@ 2003-06-27 10:22 Dirk Volkmar
  0 siblings, 0 replies; 3+ messages in thread
From: Dirk Volkmar @ 2003-06-27 10:22 UTC (permalink / raw)
  To: gdb; +Cc: Andreas Jaeger


Hi!



On 25.06.2003 13:52:48 Andreas Jaeger wrote:
>"Dirk Volkmar" <Dirk.Volkmar@deutsche-boerse.com> writes:
>
>> Ok!
>> So how can I build a 32 bit gdb? I didn't find an configure option to build
>it.
>
>configure for s390-ibm-linux-gnu as target/host.
>
I tried it with (on s390x/ SUSE SLES8 ;-)
./configure --prefix=/xentric/volkdir/public/gdb --target=s390-ibm-linux-gnu
--host=s390-ibm-linux-gnu


And make brings folowing messages:
gcc -c -g -O2    -I. -I. -I./config
-DLOCALEDIR="\"/xentric/volkdir/public/gdb/share/locale\"" -DHAVE_CONFIG_H
-I./../include/opcode -I./../readline/.. -I../bfd -I./../bfd  -I./../include
-I../intl -I./../intl -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE
-DMI_OUT=1 -DUI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat
-Wparentheses -Wpointer-arith -Wuninitialized  s390-nat.c
In file included from defs.h:59,
                 from s390-nat.c:22:
../include/ansidecl.h:149:1: warning: "PARAMS" redefined
In file included from gdb_locale.h:29,
                 from defs.h:42,
                 from s390-nat.c:22:
../intl/libintl.h:48:1: warning: this is the location of the previous definition
s390-nat.c: In function `s390_register_u_addr':
s390-nat.c:55: error: `PT_FPR0_HI' undeclared (first use in this function)
s390-nat.c:55: error: (Each undeclared identifier is reported only once
s390-nat.c:55: error: for each function it appears in.)
make[1]: *** [s390-nat.o] Error 1
make[1]: Leaving directory `/xentric/volkdir/public/src/gdb-5.3/gdb'
make: *** [all-gdb] Error 2


>Or take the gdb binary from an existing s390 installation.  It should
>run just fine...

So I will go to plan B and look for an m31 gdb.


>This is currently work in progress but does not work under Linux
>platforms.
>
>> So I made an experiment. I replaced in the gdb source tree the bfd
>subdirectory
>> with the newest binututils bfd directory, compiled it and now the gdb can
read
>> the symbols.
>
>But it won't work, the interface is not that stable.
>
>Andreas

Are there plans to enable multilib debugging for s390-linux?

Thanks a lot so far.


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

end of thread, other threads:[~2003-06-27  9:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-25 12:21 Multilib GDB on Linux S390x (zSeries) [Deutsche Boerse Systems: Virus checked] Dirk Volkmar
2003-06-25 12:22 ` Andreas Jaeger
2003-06-27 10:22 Dirk Volkmar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).