public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/12222] New: gdb broken on GNU/Hurd since 7.1
@ 2010-11-16 14:49 samuel.thibault@ens-lyon.org
  2010-11-16 16:31 ` [Bug gdb/12222] " tschwinge at sourceware dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: samuel.thibault@ens-lyon.org @ 2010-11-16 14:49 UTC (permalink / raw)
  To: gdb-prs

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

           Summary: gdb broken on GNU/Hurd since 7.1
           Product: gdb
           Version: 7.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: samuel.thibault@ens-lyon.org
                CC: ams@gnu.org
              Host: i386-unknown-gnu0.3


Hello,

gdb is not usable on GNU/Hurd since 7.1 (7.0 is working fine). For instance,
running with version 7.2:

$ gdb ./test
GNU gdb (GDB) 7.2-debian
Copyright (C) 2010 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 "i486-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /media/data/home/youpi/test...(no debugging symbols
found)...done.
(gdb) r
Starting program: /media/data/home/youpi/test 
Can't fetch registers from thread bogus thread id 1: No such thread

while with gdb 7.0:

$ gdb ./test
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 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 "i486-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /media/data/home/youpi/test...done.
(gdb) r
Starting program: /media/data/home/youpi/test 
[New Thread 26750.5]

Program received signal SIGSEGV, Segmentation fault.
0x0804846c in main () at test.c:2
2               *(int*)0 = 0;

(test is just an int main(void){ *(int*)0=0; } program compiled with just -g)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/12222] gdb broken on GNU/Hurd since 7.1
  2010-11-16 14:49 [Bug gdb/12222] New: gdb broken on GNU/Hurd since 7.1 samuel.thibault@ens-lyon.org
@ 2010-11-16 16:31 ` tschwinge at sourceware dot org
  2010-11-16 18:52 ` tschwinge at sourceware dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: tschwinge at sourceware dot org @ 2010-11-16 16:31 UTC (permalink / raw)
  To: gdb-prs

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

Thomas Schwinge <tschwinge at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |tschwinge at sourceware dot
                   |                            |org

--- Comment #1 from Thomas Schwinge <tschwinge at sourceware dot org> 2010-11-16 16:29:02 UTC ---
Also reported here: <http://bugs.debian.org/579834>, and I had tracked it
at <http://www.gnu.org/software/hurd/open_issues/gdb_head.html>.

A year ago, I posted a patch that worked for me,
<http://sourceware.org/ml/gdb-patches/2009-11/msg00581.html>, but I
didn't bring this issue to an end.  Still planning on getting back to
this sometime.  If you want, please review / test the patch.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/12222] gdb broken on GNU/Hurd since 7.1
  2010-11-16 14:49 [Bug gdb/12222] New: gdb broken on GNU/Hurd since 7.1 samuel.thibault@ens-lyon.org
  2010-11-16 16:31 ` [Bug gdb/12222] " tschwinge at sourceware dot org
@ 2010-11-16 18:52 ` tschwinge at sourceware dot org
  2010-11-18 23:30 ` ams at gnu dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: tschwinge at sourceware dot org @ 2010-11-16 18:52 UTC (permalink / raw)
  To: gdb-prs

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

Thomas Schwinge <tschwinge at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at sourceware    |tschwinge at sourceware dot
                   |dot org                     |org

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/12222] gdb broken on GNU/Hurd since 7.1
  2010-11-16 14:49 [Bug gdb/12222] New: gdb broken on GNU/Hurd since 7.1 samuel.thibault@ens-lyon.org
  2010-11-16 16:31 ` [Bug gdb/12222] " tschwinge at sourceware dot org
  2010-11-16 18:52 ` tschwinge at sourceware dot org
@ 2010-11-18 23:30 ` ams at gnu dot org
  2011-03-22 11:16 ` samuel.thibault@ens-lyon.org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ams at gnu dot org @ 2010-11-18 23:30 UTC (permalink / raw)
  To: gdb-prs

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

Alfred M. Szmidt <ams at gnu dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|tschwinge at sourceware dot |ams at gnu dot org
                   |org                         |

--- Comment #2 from Alfred M. Szmidt <ams at gnu dot org> 2010-11-18 20:08:28 UTC ---
Thanks, looking into it.  Please file bugs regarding gdb and the hurd to this
bugzilla in the future.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/12222] gdb broken on GNU/Hurd since 7.1
  2010-11-16 14:49 [Bug gdb/12222] New: gdb broken on GNU/Hurd since 7.1 samuel.thibault@ens-lyon.org
                   ` (2 preceding siblings ...)
  2010-11-18 23:30 ` ams at gnu dot org
@ 2011-03-22 11:16 ` samuel.thibault@ens-lyon.org
  2011-04-01 21:37 ` ams at gnu dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: samuel.thibault@ens-lyon.org @ 2011-03-22 11:16 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Samuel Thibault <samuel.thibault@ens-lyon.org> 2011-03-22 10:00:34 UTC ---
Note that a patch was checked as working by Thomas on
http://sourceware.org/ml/gdb-patches/2009-11/msg00581.html
but without answer.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/12222] gdb broken on GNU/Hurd since 7.1
  2010-11-16 14:49 [Bug gdb/12222] New: gdb broken on GNU/Hurd since 7.1 samuel.thibault@ens-lyon.org
                   ` (3 preceding siblings ...)
  2011-03-22 11:16 ` samuel.thibault@ens-lyon.org
@ 2011-04-01 21:37 ` ams at gnu dot org
  2011-04-02 19:54 ` samuel.thibault@ens-lyon.org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ams at gnu dot org @ 2011-04-01 21:37 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #4 from Alfred M. Szmidt <ams at gnu dot org> 2011-04-01 21:36:47 UTC ---
   Note that a patch was checked as working by Thomas on
   http://sourceware.org/ml/gdb-patches/2009-11/msg00581.html
   but without answer.

I couldn't compile GDB on GNU/Hurd to test this patch (kernel panics
all over the places as soon as I start linking anything large like
gdb) or get a cross compiler working on my system, if you can test it
and check Pedros concerns then that would be great.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/12222] gdb broken on GNU/Hurd since 7.1
  2010-11-16 14:49 [Bug gdb/12222] New: gdb broken on GNU/Hurd since 7.1 samuel.thibault@ens-lyon.org
                   ` (4 preceding siblings ...)
  2011-04-01 21:37 ` ams at gnu dot org
@ 2011-04-02 19:54 ` samuel.thibault@ens-lyon.org
  2011-05-17 17:05 ` svante.signell at telia dot com
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: samuel.thibault@ens-lyon.org @ 2011-04-02 19:54 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #5 from Samuel Thibault <samuel.thibault@ens-lyon.org> 2011-04-02 19:54:30 UTC ---
I have uploaded a debian package on debian-ports, and our testers have
confirmed that everything seems to be working fine.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/12222] gdb broken on GNU/Hurd since 7.1
  2010-11-16 14:49 [Bug gdb/12222] New: gdb broken on GNU/Hurd since 7.1 samuel.thibault@ens-lyon.org
                   ` (5 preceding siblings ...)
  2011-04-02 19:54 ` samuel.thibault@ens-lyon.org
@ 2011-05-17 17:05 ` svante.signell at telia dot com
  2011-05-17 17:11 ` tromey at redhat dot com
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: svante.signell at telia dot com @ 2011-05-17 17:05 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #6 from Svante Signell <svante.signell at telia dot com> 2011-05-17 17:04:31 UTC ---
Created attachment 5731
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5731
Updated patch for gdb-7.2 on GNU/Hurd

Attached is an updated patch for gdb-7.2, to make gdb fully functional on
GNU/Hurd. The previously attached patch did not include the change from static
to non-static to make the prune() function available outside the scope of
gnu-nat.c

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/12222] gdb broken on GNU/Hurd since 7.1
  2010-11-16 14:49 [Bug gdb/12222] New: gdb broken on GNU/Hurd since 7.1 samuel.thibault@ens-lyon.org
                   ` (6 preceding siblings ...)
  2011-05-17 17:05 ` svante.signell at telia dot com
@ 2011-05-17 17:11 ` tromey at redhat dot com
  2011-06-28 20:58 ` svante.signell at telia dot com
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: tromey at redhat dot com @ 2011-05-17 17:11 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com

--- Comment #7 from Tom Tromey <tromey at redhat dot com> 2011-05-17 17:10:21 UTC ---
Please follow the contribution instructions here:

http://sourceware.org/gdb/contribute/

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/12222] gdb broken on GNU/Hurd since 7.1
  2010-11-16 14:49 [Bug gdb/12222] New: gdb broken on GNU/Hurd since 7.1 samuel.thibault@ens-lyon.org
                   ` (7 preceding siblings ...)
  2011-05-17 17:11 ` tromey at redhat dot com
@ 2011-06-28 20:58 ` svante.signell at telia dot com
  2011-06-29 13:47 ` tromey at redhat dot com
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: svante.signell at telia dot com @ 2011-06-28 20:58 UTC (permalink / raw)
  To: gdb-prs

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

Svante Signell <svante.signell at telia dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |svante.signell at telia dot
                   |                            |com

--- Comment #8 from Svante Signell <svante.signell at telia dot com> 2011-06-28 20:57:52 UTC ---
(In reply to comment #7)
> Please follow the contribution instructions here:
> 
> http://sourceware.org/gdb/contribute/

What is missing from the comment and the patch? A problem description? And then
send to gdb-pacthes@sourceware.org? Regarding coypright assignment this patch
would be classified as a small change, right?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/12222] gdb broken on GNU/Hurd since 7.1
  2010-11-16 14:49 [Bug gdb/12222] New: gdb broken on GNU/Hurd since 7.1 samuel.thibault@ens-lyon.org
                   ` (8 preceding siblings ...)
  2011-06-28 20:58 ` svante.signell at telia dot com
@ 2011-06-29 13:47 ` tromey at redhat dot com
  2011-06-30 23:18 ` ams at gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: tromey at redhat dot com @ 2011-06-29 13:47 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #9 from Tom Tromey <tromey at redhat dot com> 2011-06-29 13:47:00 UTC ---
(In reply to comment #8)
> (In reply to comment #7)
> > Please follow the contribution instructions here:
> > 
> > http://sourceware.org/gdb/contribute/
> 
> What is missing from the comment and the patch? A problem description? And then
> send to gdb-pacthes@sourceware.org? Regarding coypright assignment this patch
> would be classified as a small change, right?

The patch is also missing a ChangeLog entry.
Yes, I think it would be called a small change.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/12222] gdb broken on GNU/Hurd since 7.1
  2010-11-16 14:49 [Bug gdb/12222] New: gdb broken on GNU/Hurd since 7.1 samuel.thibault@ens-lyon.org
                   ` (9 preceding siblings ...)
  2011-06-29 13:47 ` tromey at redhat dot com
@ 2011-06-30 23:18 ` ams at gnu dot org
  2011-07-04  8:17 ` svante.signell at telia dot com
  2011-07-05 15:04 ` tschwinge at sourceware dot org
  12 siblings, 0 replies; 14+ messages in thread
From: ams at gnu dot org @ 2011-06-30 23:18 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #10 from Alfred M. Szmidt <ams at gnu dot org> 2011-06-30 23:17:00 UTC ---
   What is missing from the comment and the patch? A problem description? 

I'd like to see a problem description, all I have seen is "this fixes
it" but no clear reasoning why it fixes.

   And then send to gdb-pacthes@sourceware.org?

Yes please, I'm going on a 5 week vacation so if someone can commit it
if you think it is good enough then that would be great.

   Regarding coypright assignment this patch would be classified as a
   small change, right?

As Tromney noted, this is a tiny change.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/12222] gdb broken on GNU/Hurd since 7.1
  2010-11-16 14:49 [Bug gdb/12222] New: gdb broken on GNU/Hurd since 7.1 samuel.thibault@ens-lyon.org
                   ` (10 preceding siblings ...)
  2011-06-30 23:18 ` ams at gnu dot org
@ 2011-07-04  8:17 ` svante.signell at telia dot com
  2011-07-05 15:04 ` tschwinge at sourceware dot org
  12 siblings, 0 replies; 14+ messages in thread
From: svante.signell at telia dot com @ 2011-07-04  8:17 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #11 from Svante Signell <svante.signell at telia dot com> 2011-07-04 08:16:28 UTC ---
(In reply to comment #10)
>    What is missing from the comment and the patch? A problem description? 
> 
> I'd like to see a problem description, all I have seen is "this fixes
> it" but no clear reasoning why it fixes.
> 
>    And then send to gdb-patches@sourceware.org?
> 
> Yes please, I'm going on a 5 week vacation so if someone can commit it
> if you think it is good enough then that would be great.

Aore informative description and the patch has now been sent to gdb-patches,
see
http://sourceware.org/ml/gdb-patches/2011-06/msg00458.html

Please let me know if there is still something missing?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/12222] gdb broken on GNU/Hurd since 7.1
  2010-11-16 14:49 [Bug gdb/12222] New: gdb broken on GNU/Hurd since 7.1 samuel.thibault@ens-lyon.org
                   ` (11 preceding siblings ...)
  2011-07-04  8:17 ` svante.signell at telia dot com
@ 2011-07-05 15:04 ` tschwinge at sourceware dot org
  12 siblings, 0 replies; 14+ messages in thread
From: tschwinge at sourceware dot org @ 2011-07-05 15:04 UTC (permalink / raw)
  To: gdb-prs

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

Thomas Schwinge <tschwinge at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |WORKSFORME
         AssignedTo|ams at gnu dot org          |tschwinge at sourceware dot
                   |                            |org

--- Comment #12 from Thomas Schwinge <tschwinge at sourceware dot org> 2011-07-05 15:03:42 UTC ---
As per <http://sourceware.org/ml/gdb-patches/2011-07/msg00104.html> and
confirmed in <http://sourceware.org/ml/gdb-patches/2011-07/msg00146.html>
this patch is no longer needed with GDB HEAD; thus closing.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2011-07-05 15:04 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-16 14:49 [Bug gdb/12222] New: gdb broken on GNU/Hurd since 7.1 samuel.thibault@ens-lyon.org
2010-11-16 16:31 ` [Bug gdb/12222] " tschwinge at sourceware dot org
2010-11-16 18:52 ` tschwinge at sourceware dot org
2010-11-18 23:30 ` ams at gnu dot org
2011-03-22 11:16 ` samuel.thibault@ens-lyon.org
2011-04-01 21:37 ` ams at gnu dot org
2011-04-02 19:54 ` samuel.thibault@ens-lyon.org
2011-05-17 17:05 ` svante.signell at telia dot com
2011-05-17 17:11 ` tromey at redhat dot com
2011-06-28 20:58 ` svante.signell at telia dot com
2011-06-29 13:47 ` tromey at redhat dot com
2011-06-30 23:18 ` ams at gnu dot org
2011-07-04  8:17 ` svante.signell at telia dot com
2011-07-05 15:04 ` tschwinge at sourceware dot org

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