binutils-gdb/gdb/testsuite/gdb.python
Pedro Alves 7e0aa6aa99 List inferiors/threads/pspaces in ascending order
Before:
  (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

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

gdb/doc/ChangeLog:
2015-11-24  Pedro Alves  <palves@redhat.com>

	PR 17539
	* gdb.texinfo (Inferiors and Programs): Adjust "maint info
	program-spaces" example to ascending order listing.
	(Threads): Adjust "info threads" example to ascending order
	listing.
	(Forks): Adjust "info inferiors" example to ascending order
	listing.

gdb/ChangeLog:
2015-11-24  Pedro Alves  <palves@redhat.com>

	PR 17539
	* inferior.c (add_inferior_silent): Append the new inferior to the
	end of the list.
	* progspace.c (add_program_space): Append the new pspace to the
	end of the list.
	* thread.c (new_thread): Append the new thread to the end of the
	list.

gdb/testsuite/ChangeLog:
2015-11-24  Pedro Alves  <palves@redhat.com>

	PR 17539
	* gdb.base/foll-exec-mode.exp: Adjust to GDB listing inferiors and
	threads in ascending order.
	* gdb.base/foll-fork.exp: Likewise.
	* gdb.base/foll-vfork.exp: Likewise.
	* gdb.base/multi-forks.exp: Likewise.
	* gdb.mi/mi-nonstop.exp: Likewise.
	* gdb.mi/mi-nsintrall.exp: Likewise.
	* gdb.multi/base.exp: Likewise.
	* gdb.multi/multi-arch.exp: Likewise.
	* gdb.python/py-inferior.exp: Likewise.
	* gdb.threads/break-while-running.exp: Likewise.
	* gdb.threads/execl.exp: Likewise.
	* gdb.threads/gcore-thread.exp: Likewise.
	* gdb.threads/info-threads-cur-sal.exp: Likewise.
	* gdb.threads/kill.exp: Likewise.
	* gdb.threads/linux-dp.exp: Likewise.
	* gdb.threads/multiple-step-overs.exp: Likewise.
	* gdb.threads/next-bp-other-thread.exp: Likewise.
	* gdb.threads/step-bg-decr-pc-switch-thread.exp: Likewise.
	* gdb.threads/step-over-lands-on-breakpoint.exp: Likewise.
	* gdb.threads/step-over-trips-on-watchpoint.exp: Likewise.
	* gdb.threads/thread-find.exp: Likewise.
	* gdb.threads/tls.exp: Likewise.
	* lib/mi-support.exp (mi_reverse_list): Delete.
	(mi_check_thread_states): No longer reverse list.
2015-11-24 18:36:31 +00:00
..
amd64-py-framefilter-invalidarg.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
lib-types.cc Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
lib-types.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
Makefile.in
py-arch.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-arch.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-bad-printers.c PR python/18089 2015-04-28 21:53:54 -07:00
py-bad-printers.exp PR python/18089 2015-04-28 21:53:54 -07:00
py-bad-printers.py PR python/18089 2015-04-28 21:53:54 -07:00
py-block.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-block.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-breakpoint.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-breakpoint.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-caller-is.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-caller-is.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-cmd.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-cmd.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-completion.exp Fix Python completion when using the "complete" command 2015-04-08 18:27:10 -04:00
py-completion.py Fix Python completion when using the "complete" command 2015-04-08 18:27:10 -04:00
py-error.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-error.py Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-events-shlib.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-events.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-events.exp gdb.python/py-events.exp and normal_stop observers ordering 2015-07-24 19:34:17 +01:00
py-events.py Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-evsignal.exp gdb.python/py-events.exp and normal_stop observers ordering 2015-07-24 19:34:17 +01:00
py-evthreads.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-evthreads.exp gdb.python/py-events.exp and normal_stop observers ordering 2015-07-24 19:34:17 +01:00
py-explore-cc.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-explore.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-explore.cc Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-explore.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-finish-breakpoint2.cc Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-finish-breakpoint2.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-finish-breakpoint2.py Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-finish-breakpoint.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-finish-breakpoint.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-finish-breakpoint.py Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-frame-args.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-frame-args.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-frame-args.py Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-frame-inline.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-frame-inline.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-frame.c
py-frame.exp [testsuite patch] Fix new FAIL: py-frame.exp: test Frame.read_register(rip) 2015-01-12 11:02:46 +01:00
py-framefilter-gdb.py.in Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-framefilter-invalidarg-gdb.py.in Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-framefilter-invalidarg.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-framefilter-invalidarg.py Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-framefilter-mi.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-framefilter-mi.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-framefilter.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-framefilter.exp framefilter quit: New test 2015-02-11 14:53:14 +01:00
py-framefilter.py Some Python 3 fixes 2015-04-15 11:54:33 -04:00
py-function.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-inferior.c
py-inferior.exp List inferiors/threads/pspaces in ascending order 2015-11-24 18:36:31 +00:00
py-infthread.c
py-infthread.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-lazy-string.c PR python/18438 2015-05-26 16:13:04 -07:00
py-lazy-string.exp Fix test for Python 3 2015-07-07 11:39:06 -04:00
py-linetable.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-linetable.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-linetable.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-lookup-type.exp check gdb.lookup_type return value in gdb.python/py-lookup-type.exp 2015-01-26 08:41:37 +04:00
py-mi-objfile-gdb.py PR mi/18833 gdb.execute ("set param value", to_string=True) will crash gdb if using MI 2015-08-18 14:02:03 -07:00
py-mi-objfile.c PR mi/18833 gdb.execute ("set param value", to_string=True) will crash gdb if using MI 2015-08-18 14:02:03 -07:00
py-mi-objfile.exp PR mi/18833 gdb.execute ("set param value", to_string=True) will crash gdb if using MI 2015-08-18 14:02:03 -07:00
py-mi.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-objfile-script-gdb.py Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-objfile-script.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-objfile-script.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-objfile.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-objfile.exp Fix typo in gdb.python/py-objfile.exp 2015-07-29 10:16:38 -04:00
py-parameter.exp Fix py-parameter.exp and scm-parameter.exp path matching 2015-04-28 11:15:47 +02:00
py-pp-integral.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-pp-integral.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-pp-integral.py Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-pp-maint.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-pp-maint.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-pp-maint.py PR python/18299 2015-04-28 22:14:23 -07:00
py-pp-re-notag.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-pp-re-notag.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-pp-re-notag.py Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-pp-registration.c PR python/18299 2015-04-28 22:14:23 -07:00
py-pp-registration.exp Uniquify test names from gdb.python/{py-objfile.exp,py-pp-registration.exp} 2015-07-28 17:39:16 -04:00
py-pp-registration.py PR python/18299 2015-04-28 22:14:23 -07:00
py-prettyprint.c PR python/18438 2015-05-26 16:13:04 -07:00
py-prettyprint.exp * gdb.python/py-prettyprint.exp: Check result of run_lang_tests. 2015-09-09 11:42:52 -07:00
py-prettyprint.py PR python/18438 2015-05-26 16:13:04 -07:00
py-progspace.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-progspace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-prompt.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-prompt.exp testsuite: tcl exec& -> 'kill -9 $pid' is racy (attach-many-short-lived-thread.exp races and others) 2015-07-31 20:06:24 +01:00
py-section-script.c Add support for inlining scripts into .debug_gdb_scripts. 2015-01-31 12:01:13 -08:00
py-section-script.exp Add support for inlining scripts into .debug_gdb_scripts. 2015-01-31 12:01:13 -08:00
py-section-script.py Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-shared-sl.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-shared.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-shared.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-strfns.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-strfns.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-symbol.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-symbol.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-symtab.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-sync-interp.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-sync-interp.exp testsuite: tcl exec& -> 'kill -9 $pid' is racy (attach-many-short-lived-thread.exp races and others) 2015-07-31 20:06:24 +01:00
py-template.cc Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-template.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-type.c Fix accessing a function's fields (parameters) from Python (PR 18073) 2015-10-21 15:57:22 -04:00
py-type.exp Fix accessing a function's fields (parameters) from Python (PR 18073) 2015-10-21 15:57:22 -04:00
py-typeprint.cc Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-typeprint.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-typeprint.py Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-unwind-maint.c Add support for writing unwinders in Python. 2015-04-01 11:49:12 -07:00
py-unwind-maint.exp Add support for writing unwinders in Python. 2015-04-01 11:49:12 -07:00
py-unwind-maint.py Some Python 3 fixes 2015-04-15 11:54:33 -04:00
py-unwind.c Add support for writing unwinders in Python. 2015-04-01 11:49:12 -07:00
py-unwind.exp Add support for writing unwinders in Python. 2015-04-01 11:49:12 -07:00
py-unwind.py Add support for writing unwinders in Python. 2015-04-01 11:49:12 -07:00
py-value-cc.cc Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-value-cc.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-value.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-value.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
py-xmethods.cc [Python] Add methods reference_value and const_value to gdb.Value. 2015-05-09 17:30:35 -07:00
py-xmethods.exp [Python] Add methods reference_value and const_value to gdb.Value. 2015-05-09 17:30:35 -07:00
py-xmethods.py [Python] Add methods reference_value and const_value to gdb.Value. 2015-05-09 17:30:35 -07:00
python-1.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
python.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
python.exp PR python/18938: source -s foo.py with foo.py a symlink to foo.notpy fails 2015-10-26 14:33:19 -07:00
source1 Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
source2.py Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00