mcspam
28-08-2006, 21:44
Hallo zusammen,
ich möchte gerne eine Applikation, die ich auf einem ppc64 (linux) im 64bit Modus kompiliere mit gdb debuggen.
Die Applikation baue ich mit folgenden Compilerflags:
-Wall -m64 -pthread -g
sobald ich in gdb "run" tippe kommen folgende Fehlermeldungen und das Programm wird nicht ausgeführt:
gdb64 utest001_qdiosm_err
GNU gdb 6.4
Copyright 2005 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 "ppc64-suse-linux"...Using host libthread_db
library "/lib64/power5+/libthread_db.so.1".
(gdb) r
Starting program: [... confidential ;) ...]
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
warning: Breakpoint address adjusted from 0x1001e260 to 0x10001550.
[Thread debugging using libthread_db enabled]
[New Thread 4398046669552 (LWP 31341)]
Warning:
Cannot insert breakpoint -2.
Error accessing memory address 0x9cf0: Input/output error.
Cannot insert breakpoint -3.
Error accessing memory address 0x9d00: Input/output error.
Dabei kann es sich um eine Applikation handeln, die nichts macht. Sobald sie mit -pthread kompiliert wird, gibt es die obigen Fehlermeldungen in gdb.
Kompiliere ich die Anwendung ohne -m64, also im 32bit Modus läuft sie im 32bit-gdb wunderbar.
Hat jemand eine Idee, woran das liegen könnte?
Danke und Gruß
ich möchte gerne eine Applikation, die ich auf einem ppc64 (linux) im 64bit Modus kompiliere mit gdb debuggen.
Die Applikation baue ich mit folgenden Compilerflags:
-Wall -m64 -pthread -g
sobald ich in gdb "run" tippe kommen folgende Fehlermeldungen und das Programm wird nicht ausgeführt:
gdb64 utest001_qdiosm_err
GNU gdb 6.4
Copyright 2005 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 "ppc64-suse-linux"...Using host libthread_db
library "/lib64/power5+/libthread_db.so.1".
(gdb) r
Starting program: [... confidential ;) ...]
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
warning: Breakpoint address adjusted from 0x1001e260 to 0x10001550.
[Thread debugging using libthread_db enabled]
[New Thread 4398046669552 (LWP 31341)]
Warning:
Cannot insert breakpoint -2.
Error accessing memory address 0x9cf0: Input/output error.
Cannot insert breakpoint -3.
Error accessing memory address 0x9d00: Input/output error.
Dabei kann es sich um eine Applikation handeln, die nichts macht. Sobald sie mit -pthread kompiliert wird, gibt es die obigen Fehlermeldungen in gdb.
Kompiliere ich die Anwendung ohne -m64, also im 32bit Modus läuft sie im 32bit-gdb wunderbar.
Hat jemand eine Idee, woran das liegen könnte?
Danke und Gruß