This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug gdb/11743] New: gdb --pid <pid> does not find file on AIX


The above command does not work on AIX

--- Test Source ---

~/gdb/test
imts1-AIX(1):steinr> cat take5.c
#define ONE_MINUTE 60
main()
{
int minutes = 5;

while(minutes--)
  sleep(ONE_MINUTE);
}

~/gdb/test
imts1-AIX(1):steinr> cat maketake5
cc -go take5 take5.c

--- Test Results for gdb-6.8 ---

~/gdb/test
imts1-AIX(1):steinr> ./take5&
[1] 1913636

~/gdb/test
imts1-AIX(1):steinr> ~/gdb/gdb-6.8/gdb/gdb --pid 1913636
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix5.2.0.0"...
--pid: No such file or directory.
Attaching to process 1913636
0xd0359cf4 in ?? ()
(gdb) 

--- Test results for gdb-5.3 (our current version) ---

~/gdb/test
imts1-AIX(1):steinr> gdb-5.3 --pid 1913636
GNU gdb 5.3
Copyright 2002 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 "powerpc-ibm-aix4.3.3.0".
Attaching to process 1913636
0xd0359cf4 in nsleep () from /usr/lib/libc.a(shr.o)
(gdb)

The above happens on AIX 5.2 and AIX 5.3

I have ported support for COBOL from gdb-5.3 to gdb-6.8.  This port does not 
work on gdb-7.1, so I need the above to work on gdb-6.8.  The above tests were 
run with an unmodified, freshly compiled gdb-6.8.

--- Test results for gdb-6.8 on RedHat Linux ---
Note that this works fine on gdb-6.8 running on RedHat Linux

/home/ricks
edev5-Linux:ricks> ~/gdb/test/take5&
[1] 21668

/home/ricks
edev5-Linux:ricks> ~/gdb/gdb-6.8/gdb/gdb --pid 21668
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
Attaching to process 21668
Reading symbols from /enguard/home/ricks/gdb/test/take5...done.
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
0x009707a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb)

-- 
           Summary: gdb --pid <pid> does not find file on AIX
           Product: gdb
           Version: 6.8
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: rick dot stein at aciworldwide dot com
                CC: gdb-prs at sourceware dot org,rick dot stein at
                    aciworldwide dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11743

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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