public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/11743] New: gdb --pid <pid> does not find file on AIX
@ 2010-06-23 14:48 rick dot stein at aciworldwide dot com
  2010-06-23 14:52 ` [Bug gdb/11743] " rick dot stein at aciworldwide dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: rick dot stein at aciworldwide dot com @ 2010-06-23 14:48 UTC (permalink / raw)
  To: gdb-prs

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.


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

* [Bug gdb/11743] gdb --pid <pid> does not find file on AIX
  2010-06-23 14:48 [Bug gdb/11743] New: gdb --pid <pid> does not find file on AIX rick dot stein at aciworldwide dot com
@ 2010-06-23 14:52 ` rick dot stein at aciworldwide dot com
  2010-08-27 21:02 ` rick dot stein at aciworldwide dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: rick dot stein at aciworldwide dot com @ 2010-06-23 14:52 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From rick dot stein at aciworldwide dot com  2010-06-23 14:52 -------
Created an attachment (id=4857)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4857&action=view)
Archive of test source and AIX binary


-- 


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.


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

* [Bug gdb/11743] gdb --pid <pid> does not find file on AIX
  2010-06-23 14:48 [Bug gdb/11743] New: gdb --pid <pid> does not find file on AIX rick dot stein at aciworldwide dot com
  2010-06-23 14:52 ` [Bug gdb/11743] " rick dot stein at aciworldwide dot com
@ 2010-08-27 21:02 ` rick dot stein at aciworldwide dot com
  2010-08-27 21:04 ` rick dot stein at aciworldwide dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: rick dot stein at aciworldwide dot com @ 2010-08-27 21:02 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From rick dot stein at aciworldwide dot com  2010-08-27 21:02 -------
Traced the issue to the fact that refactoring moved SOLIB_ADD() from
run_command_1() (in 5.3) to post_create_inferior() in infcmd.c:1952 and
conditionalized it on exec_bfd which is always NULL, and thus, skipped the
SOLIB_ADD() call. Not sure if this is the proper fix but it works for me.

-- 


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.


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

* [Bug gdb/11743] gdb --pid <pid> does not find file on AIX
  2010-06-23 14:48 [Bug gdb/11743] New: gdb --pid <pid> does not find file on AIX rick dot stein at aciworldwide dot com
  2010-06-23 14:52 ` [Bug gdb/11743] " rick dot stein at aciworldwide dot com
  2010-08-27 21:02 ` rick dot stein at aciworldwide dot com
@ 2010-08-27 21:04 ` rick dot stein at aciworldwide dot com
  2010-08-28  9:37 ` pedro at codesourcery dot com
  2010-09-01 14:58 ` rick dot stein at aciworldwide dot com
  4 siblings, 0 replies; 7+ messages in thread
From: rick dot stein at aciworldwide dot com @ 2010-08-27 21:04 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From rick dot stein at aciworldwide dot com  2010-08-27 21:04 -------
Created an attachment (id=4953)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4953&action=view)
Modifed to correct attach issue.


-- 


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.


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

* [Bug gdb/11743] gdb --pid <pid> does not find file on AIX
  2010-06-23 14:48 [Bug gdb/11743] New: gdb --pid <pid> does not find file on AIX rick dot stein at aciworldwide dot com
                   ` (2 preceding siblings ...)
  2010-08-27 21:04 ` rick dot stein at aciworldwide dot com
@ 2010-08-28  9:37 ` pedro at codesourcery dot com
  2010-09-01 14:58 ` rick dot stein at aciworldwide dot com
  4 siblings, 0 replies; 7+ messages in thread
From: pedro at codesourcery dot com @ 2010-08-28  9:37 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From pedro at codesourcery dot com  2010-08-28 09:37 -------
Please try mainline cvs and confirm whether the same problem persists there. 
Please attach changes as patches extracted with "cvs diff -up", and without any
unrelated changes to this problem, instead of whole modified source files.

>From the sounds of it, the real solution of this may be for someone motivated to
do the long overdue conversion of xcoffsolib.c to the generic solib.c
mechanisms, and get rid of all the DEPRECATED_IBM6000_TARGET code in exec.c.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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.


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

* [Bug gdb/11743] gdb --pid <pid> does not find file on AIX
  2010-06-23 14:48 [Bug gdb/11743] New: gdb --pid <pid> does not find file on AIX rick dot stein at aciworldwide dot com
                   ` (3 preceding siblings ...)
  2010-08-28  9:37 ` pedro at codesourcery dot com
@ 2010-09-01 14:58 ` rick dot stein at aciworldwide dot com
  4 siblings, 0 replies; 7+ messages in thread
From: rick dot stein at aciworldwide dot com @ 2010-09-01 14:58 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From rick dot stein at aciworldwide dot com  2010-09-01 14:58 -------
Created an attachment (id=4960)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4960&action=view)
Difference from source gdb-6.8.50.20090916


-- 


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.


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

* [Bug gdb/11743] gdb --pid <pid> does not find file on AIX
       [not found] <bug-11743-4717@http.sourceware.org/bugzilla/>
@ 2014-03-12 10:06 ` palves at redhat dot com
  0 siblings, 0 replies; 7+ messages in thread
From: palves at redhat dot com @ 2014-03-12 10:06 UTC (permalink / raw)
  To: gdb-prs

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

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
                 CC|                            |palves at redhat dot com
         Resolution|---                         |FIXED
   Target Milestone|7.1                         |7.7

--- Comment #6 from Pedro Alves <palves at redhat dot com> ---
> From the sounds of it, the real solution of this may be for someone motivated 
> to do the long overdue conversion of xcoffsolib.c to the generic solib.c
> mechanisms, and get rid of all the DEPRECATED_IBM6000_TARGET code in exec.c.

Turns out Joel did this for 7.7.  AIX now uses the same mechanisms as all other
ports, so this is most probably fixed in 7.7.  Therefore I'm closing this. 
Please reopen if you still see the same problem.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-03-12 10:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-23 14:48 [Bug gdb/11743] New: gdb --pid <pid> does not find file on AIX rick dot stein at aciworldwide dot com
2010-06-23 14:52 ` [Bug gdb/11743] " rick dot stein at aciworldwide dot com
2010-08-27 21:02 ` rick dot stein at aciworldwide dot com
2010-08-27 21:04 ` rick dot stein at aciworldwide dot com
2010-08-28  9:37 ` pedro at codesourcery dot com
2010-09-01 14:58 ` rick dot stein at aciworldwide dot com
     [not found] <bug-11743-4717@http.sourceware.org/bugzilla/>
2014-03-12 10:06 ` palves at redhat dot com

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).