public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug cli/17539] New: inferiors print in reverse order
@ 2014-11-03 21:20 tromey at sourceware dot org
  2014-11-04  9:08 ` [Bug cli/17539] " palves at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: tromey at sourceware dot org @ 2014-11-03 21:20 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 17539
           Summary: inferiors print in reverse order
           Product: gdb
           Version: 7.7
            Status: NEW
          Severity: normal
          Priority: P2
         Component: cli
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org

I tried a multi-inferior debugging session today.
"info inferior" printed its results in reverse order:

(gdb) info inferior
  Num  Description       Executable        
* 2    process 12585    
/home/tromey/firefox-git/gecko-dev/obj-x86_64-unknown-linux-gnu/dist/bin/firefox 
  1    process 12575    
/home/tromey/firefox-git/gecko-dev/obj-x86_64-unknown-linux-gnu/dist/bin/firefox 


I think it should be sorted by increasing Nums.

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


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

* [Bug cli/17539] inferiors print in reverse order
  2014-11-03 21:20 [Bug cli/17539] New: inferiors print in reverse order tromey at sourceware dot org
@ 2014-11-04  9:08 ` palves at redhat dot com
  2014-11-04  9:17 ` palves at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: palves at redhat dot com @ 2014-11-04  9:08 UTC (permalink / raw)
  To: gdb-prs

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

Pedro Alves <palves at redhat dot com> changed:

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

--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
FWIW, the order here was modelled on "info threads"'s order.

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


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

* [Bug cli/17539] inferiors print in reverse order
  2014-11-03 21:20 [Bug cli/17539] New: inferiors print in reverse order tromey at sourceware dot org
  2014-11-04  9:08 ` [Bug cli/17539] " palves at redhat dot com
@ 2014-11-04  9:17 ` palves at redhat dot com
  2015-01-30 13:35 ` gbenson at redhat dot com
  2015-10-22 10:04 ` palves at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: palves at redhat dot com @ 2014-11-04  9:17 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Pedro Alves <palves at redhat dot com> ---
I (quickly) audited the "info" sub commands, and GDB is inconsistent on this
issue in several places.  E.g.,

increasing:

(gdb) info breakpoints 
Num     Type           Disp Enb Address            What
1       breakpoint     keep y   0x00000000004008ad in main at foo.c:81
2       breakpoint     keep y   0x00000000004008ad in main at foo.c:81
3       breakpoint     keep y   0x00000000004008ad in main at foo.c:81
4       breakpoint     keep y   0x00000000004008ad in main at foo.c:81

(gdb) info skip 
Num     Type           Enb What
1       function       y   main
2       function       y   main
3       function       y   main

(gdb) info bookmarks 
   1       0x4008ad    '0'
   2       0x4008ad    '0'
   3       0x4008ad    '0'
   4       0x4008ad    '0'

decreasing:

(gdb) info display 
Auto-display expressions now in effect:
Num Enb Expression
4:   y  1
3:   y  1
2:   y  1
1:   y  1

(gdb) info threads 
  Id   Target Id         Frame 
  3    Thread 0x7ffff77c3700 (LWP 29035) callme () at foo.c:30
  2    Thread 0x7ffff7fc4700 (LWP 29034) 0x000000000040087b in child_function_2
(arg=0x0) at foo.c:60
* 1    Thread 0x7ffff7fc5740 (LWP 29030) 0x0000003b37209237 in pthread_join
(threadid=140737353893632, thread_return=0x0) at pthread_join.c:92

(gdb) info checkpoints 
  3 process 29132 at 0x4008ad, file foo.c, line 81
  2 process 29131 at 0x4008ad, file foo.c, line 81
  1 process 29130 at 0x4008ad, file foo.c, line 81
* 0 Thread 0x7ffff7fc5740 (LWP 29128) (main process) at 0x4008ad, file foo.c,
line 81

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


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

* [Bug cli/17539] inferiors print in reverse order
  2014-11-03 21:20 [Bug cli/17539] New: inferiors print in reverse order tromey at sourceware dot org
  2014-11-04  9:08 ` [Bug cli/17539] " palves at redhat dot com
  2014-11-04  9:17 ` palves at redhat dot com
@ 2015-01-30 13:35 ` gbenson at redhat dot com
  2015-10-22 10:04 ` palves at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: gbenson at redhat dot com @ 2015-01-30 13:35 UTC (permalink / raw)
  To: gdb-prs

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

Gary Benson <gbenson at redhat dot com> changed:

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

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


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

* [Bug cli/17539] inferiors print in reverse order
  2014-11-03 21:20 [Bug cli/17539] New: inferiors print in reverse order tromey at sourceware dot org
                   ` (2 preceding siblings ...)
  2015-01-30 13:35 ` gbenson at redhat dot com
@ 2015-10-22 10:04 ` palves at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: palves at redhat dot com @ 2015-10-22 10:04 UTC (permalink / raw)
  To: gdb-prs

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

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at sourceware dot org   |palves at redhat dot com

--- Comment #3 from Pedro Alves <palves at redhat dot com> ---
https://sourceware.org/ml/gdb-patches/2015-10/msg00426.html

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


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

end of thread, other threads:[~2015-10-22 10:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-03 21:20 [Bug cli/17539] New: inferiors print in reverse order tromey at sourceware dot org
2014-11-04  9:08 ` [Bug cli/17539] " palves at redhat dot com
2014-11-04  9:17 ` palves at redhat dot com
2015-01-30 13:35 ` gbenson at redhat dot com
2015-10-22 10:04 ` 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).