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]

AIX 64 bit breakpoints kaputt

For recent IBM compilers (XLC 6.005 and above, XLF) the GDB no longer
gets the right address for breakpoints *in 64 bit executables*. 

This behaviour is present in at least GDB 6.3 and GDB 6.3.50-20050112.

Eg. we see, for executable generated from:
int main() {printf("%d", sizeof(unsigned int));
        printf("\n%d\n", sizeof(void*));}

with 'xlc -q 64 -g test.c'

the following transcript shows the problem

GNU gdb
Copyright 2004 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
This GDB was configured as ""...
(gdb) b main
Breakpoint 1 at 0x428
(gdb) r
Starting program: /hpcx/home/z06/z06/dsl/a.out
Breakpoint 1 at 0x44c
Cannot insert breakpoint 1.
Error accessing memory address 0x44c: There is an input or output

DBX is capable of handling the breakpoint:

(dbx) stop in main
[1] stop in main
(dbx) run
[1] stopped in main at 0x1000003e0
0x1000003e0 (main)    7c0802a6       mflr   r0

Any advice?


David Lecomber <>

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