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 cli/17539] inferiors print in reverse order


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.


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