old-cross-binutils/gdb/testsuite/gdb.base
Pedro Alves 2277426b30 gdb/
2009-07-02  Pedro Alves  <pedro@codesourcery.com>

	* linux-nat.c (linux_child_follow_fork): If we're staying attached
	to the child process, enable event reporting on it.  Don't handle
	checkpoints here.  Instead, add the child fork to the lwp thread
	and inferior lists without clobbering the previous inferior.  Let
	the thread_db layer learn about a new child process, even if
	following the parent.
	(linux_nat_switch_fork): Delete lwps of the current inferior only,
	instead of clearing the whole list.  Use thread_change_ptid to
	give the core the illusion the new checkpoint is still the same
	inferior.  Clear the register cache.
	(linux_handle_extended_wait): Handle checkpoints here.
	(linux_multi_process): Turn on.
	* linux-fork.c (struct fork_info) <pc>: Remove field.
	(init_fork_list): Do not delete the checkpoint from the inferior
	list (it is not there).
	(fork_load_infrun_state): Don't switch inferior_ptid here.  Pass
	the new checkpoint's ptid to linux_nat_switch_fork.
	(fork_save_infrun_state): Make static.  Don't stop the pc field of
	fork_info, it's gone.
	(linux_fork_mourn_inferior): Don't delete the checkpoint from the
	inferior list, it's not there.
	(linux_fork_detach): Ditto.
	(delete_fork_command): Replace mention of fork/checkpoint by
	checkpoint only.
	(detach_fork_command): Likewise.  Don't delete the checkpoint from
	the inferior list.
	(info_forks_command): Adjust.
	(restore_detach_fork): Delete.
	(checkpointing_pid): New.
	(linux_fork_checkpointing_p): New.
	(save_detach_fork): Delete.
	(checkpoint_command): Delete temp_detach_fork.  Don't remove
	breakpoints, that's a nop.  Store the pid of the process we're
	checkpointing, and use make_cleanup_restore_integer to restore it.
	Don't reinsert breakpoints here.
	(process_command, fork_command): Delete.
	(restart_command): Update comments to only mention checkpoints,
	not forks.
	(_initialize_linux_fork): Delete "fork", "process", "info forks"
	commands.
	* linux-fork.h (fork_save_infrun_state, fork_list): Delete
	declarations.
	(linux_fork_checkpointing_p): Declare.
	* cli/cli-cmds.c (killlist): New.
	* cli/cli-cmds.h (killlist): Declare.
	* gdbcmd.h (killlist): Declare.
	* inferior.c: Include "gdbthread.h".
	(detach_inferior_command, kill_inferior_command)
	(inferior_command): New.
	(info_inferiors_command): Allow specifying a specific inferior id.
	(_initialize_inferiors): Register "inferior", "kill inferior" and
	"detach inferior" commands.
	* infcmd.c (_initialize_infcmd): Make "kill" a prefix command.
	* gdbthread.h (any_thread_of_process): Declare.
	* thread.c (any_thread_of_process): New.

	* NEWS: Mention multi-inferior debugging.  Mention 'info
	inferiors', 'inferior', 'detach inferior' and 'kill inferior' as
	new commands.
	(Removed commands): New section, mentioning that 'info forks',
	'fork', 'process', 'delete fork' and 'detach fork' are now gone.

gdb/testsuite/
2009-07-02  Pedro Alves  <pedro@codesourcery.com>

	* gdb.base/multi-forks.exp: Only run detach-on-fork tests on
	linux.  Adjust to use "inferior", "info inferiors", "detach
	inferior" and "kill inferior" instead of "restart", "info fork",
	"detach fork" and "delete fork".
	* gdb.base/ending-run.exp: Spell out "info".
	* gdb.base/help.exp: Adjust to use test_prefix_command_help for
	the "kill" command.

gdb/doc/
2009-07-02  Pedro Alves  <pedro@codesourcery.com>

	* gdb.texinfo (Debugging multiple inferiors): Document the
	"inferior", "detach inferior" and "kill inferior" commands.
	(Debugging Programs with Multiple Processes): Adjust to mention
	generic "inferior" commands.  Delete mention of "detach fork" and
	"delete fork".  Cross reference to "Debugging multiple inferiors"
	section.
2009-07-02 21:57:28 +00:00
..
a2-run.exp
advance.c
advance.exp
all-bin.exp
all-types.c
annota1.c
annota1.exp ChangeLog: 2009-06-17 18:32:40 +00:00
annota3.c
annota3.exp
args.c
args.exp
arithmet.exp
arrayidx.c
arrayidx.exp
assign.exp
async.c
async.exp
attach.c
attach.exp
attach2.c
auxv.c
auxv.exp
average.c
bang.exp
bar.c
baz.c
bfp-test.c
bfp-test.exp
bigcore.c
bigcore.exp 2009-07-01 Tristan Gingold <gingold@adacore.com> 2009-07-01 10:17:06 +00:00
bitfields.c
bitfields.exp
bitfields2.c
bitfields2.exp
bitops.exp
branches.c
break-always.c
break-always.exp 2009-05-29 Michael Snyder <msnyder@vmware.com> 2009-06-01 19:31:52 +00:00
break.c
break.exp gdb/ 2009-06-28 00:20:24 +00:00
break1.c
breakpoint-shadow.c
breakpoint-shadow.exp
call-ar-st.c
call-ar-st.exp
call-rt-st.c
call-rt-st.exp
call-sc.c
call-sc.exp
call-signal-resume.exp
call-signals.c
call-strs.c
call-strs.exp
callexit.c
callexit.exp
callfuncs.c
callfuncs.exp
charset.c gdb 2009-06-23 16:26:05 +00:00
charset.exp gdb 2009-06-23 16:26:05 +00:00
checkpoint.c
checkpoint.exp
chng-syms.c
chng-syms.exp
code-expr.exp
commands.exp
completion.exp gdb/testsuite/ 2009-06-30 21:33:20 +00:00
complex.c
complex.exp
cond-expr.exp
condbreak.exp
consecutive.c
consecutive.exp
constvars.c
constvars.exp
corefile.exp
coremaker.c
coremaker2.c
cursal.c
cursal.exp
cvexpr.c
cvexpr.exp
d10v.ld
d10vovly.c
dbx.exp
default.exp ChangeLog: 2009-07-02 12:14:01 +00:00
define.exp
del.c
del.exp
detach.exp
dfp-exprs.exp
dfp-test.c
dfp-test.exp
display.c
display.exp gdb 2009-05-28 01:05:14 +00:00
dump.c
dump.exp ChangeLog: 2009-06-17 18:49:37 +00:00
echo.exp
ena-dis-br.exp
ending-run.c
ending-run.exp gdb/ 2009-07-02 21:57:28 +00:00
environ.exp
eval-skip.exp
exe-lock.exp * gdb.base/exe-lock.exp (binfile): Add $EXEEXT suffix to fix 2009-06-25 22:40:23 +00:00
execd-prog.c
expand-psymtabs.c
expand-psymtabs.exp
exprs.c
exprs.exp
fileio.c
fileio.exp
find.c
find.exp
finish.exp
fixsection.c
fixsection.exp
fixsectshr.c
float.exp
foll-exec.c
foll-exec.exp
foll-fork.c
foll-fork.exp
foll-vfork.c
foll-vfork.exp
foo.c
frame-args.c
frame-args.exp
freebpcmd.c
freebpcmd.exp
fullname.c
fullname.exp
funcargs.c
funcargs.exp
gcore-buffer-overflow.c
gcore-buffer-overflow.exp
gcore.c
gcore.exp
gdb1056.exp
gdb1090.c
gdb1090.exp
gdb1250.c
gdb1250.exp
gdb1555-main.c
gdb1555.c
gdb1555.exp
gdb1821.c
gdb1821.exp
gdb_history
gdbvars.exp
grbx.c
hashline1.exp
hashline2.exp
hashline3.exp
help.exp gdb/ 2009-07-02 21:57:28 +00:00
hook-stop-continue.c
hook-stop-continue.exp
hook-stop-frame.c
hook-stop-frame.exp
huge.c
huge.exp
ifelse.exp
included.c
included.exp
included.h
infnan.c
infnan.exp
info-proc.exp
info-target.exp
int-type.c
interp.exp
interrupt.c
interrupt.exp
jump.c
jump.exp
langs.exp
langs0.c
langs1.c
langs1.f
langs2.c
langs2.cxx
lineinc.c
lineinc.exp
lineinc1.h
lineinc2.h
lineinc3.h
list.exp
list0.c
list0.h
list1.c
logical.exp
long_long.c
long_long.exp
longjmp.c
longjmp.exp
m32r.ld
m32rovly.c
macscp.exp * gdb.base/macscp.exp (info_macro): Return undefined if undefined. 2009-05-30 07:58:42 +00:00
macscp1.c
macscp2.h
macscp3.h
macscp4.h
maint.exp
Makefile.in
mips_pro.c
mips_pro.exp
miscexprs.c
miscexprs.exp
multi-forks.c
multi-forks.exp gdb/ 2009-07-02 21:57:28 +00:00
nodebug.c
nodebug.exp
nofield.c
nofield.exp
opaque.exp
opaque0.c
opaque1.c
overlays.c
overlays.exp
ovlymgr.c
ovlymgr.h
page.exp
pc-fp.c
pc-fp.exp
pending.c
pending.exp
pendshr.c
pi.txt
pointers.c
pointers.exp
prelink-lib.c
prelink.c
prelink.exp
printcmds.c
printcmds.exp
prologue.c
prologue.exp
psymtab.exp * gdb.base/psymtab.exp: Turn off pending breakpoints. 2009-06-26 16:08:20 +00:00
psymtab1.c
psymtab2.c
ptr-typedef.c
ptr-typedef.exp
ptype.c
ptype.exp
ptype1.c
radix.exp
randomize.c
randomize.exp
readline.exp
recurse.c
recurse.exp
regs.exp
relational.exp
relativedebug.c
relativedebug.exp
relocate.c
relocate.exp
remote.c
remote.exp
remotetimeout.exp
reread.exp
reread1.c
reread2.c
restore.c
restore.exp
return-nodebug.c
return-nodebug.exp
return-nodebug1.c
return.c
return.exp
return2.c
return2.exp
run.c
savedregs.c
savedregs.exp
scope.exp
scope0.c
scope1.c
sect-cmd.exp
sep-proc.c
sep.c
sep.exp
sepdebug.c
sepdebug.exp
sepsymtab.c
sepsymtab.exp
set-lang-auto.exp
setshow.c
setshow.exp gdb/testsuite/ 2009-06-30 18:28:12 +00:00
setvar.c
setvar.exp
shlib-call.exp
shmain.c
shr1.c
shr2.c
shreloc.c
shreloc.exp
shreloc1.c
shreloc2.c
sigall.c
sigall.exp
sigaltstack.c
sigaltstack.exp
sigbpt.c
sigbpt.exp
sigchld.c
sigchld.exp
siginfo-addr.c
siginfo-addr.exp
siginfo-obj.c
siginfo-obj.exp
siginfo.c
siginfo.exp
signals.c
signals.exp
signull.c
signull.exp
sigrepeat.c
sigrepeat.exp
sigstep.c
sigstep.exp
sizeof.c
sizeof.exp
so-disc-shr.c
so-impl-ld.c
so-impl-ld.exp
so-indr-cl.c
so-indr-cl.exp
solib-disc.c
solib-disc.exp
solib-display-lib.c
solib-display-main.c
solib-display.exp
solib-symbol-lib.c
solib-symbol-main.c
solib-symbol.exp
solib-weak.c
solib-weak.exp
solib.c
solib.exp
solib1.c
solib2.c
source-error.gdb
source.exp
spu.ld
ss.h
stack-checking.c
stack-checking.exp
start.c
start.exp
step-break.c
step-break.exp
step-bt.c
step-bt.exp
step-line.c
step-line.exp
step-line.inp
step-test.c
step-test.exp
store.c
store.exp
structs.c
structs.exp
structs2.c
structs2.exp
structs3.c
structs3.exp
subst.exp
sum.c
term.exp
trace-commands.exp
twice.c
twice.exp
type-opaque-lib.c
type-opaque-main.c
type-opaque.exp
unload.c
unload.exp
unloadshr.c
until.exp
unwindonsignal.c
unwindonsignal.exp
value-double-free.c
value-double-free.exp
varargs.c
varargs.exp
vforked-prog.c
volatile.exp
watch_thread_num.c
watch_thread_num.exp
watchpoint-hw.c
watchpoint-hw.exp
watchpoint-solib-shr.c
watchpoint-solib.c
watchpoint-solib.exp
watchpoint.c
watchpoint.exp
weaklib1.c
weaklib2.c
whatis-exp.exp
whatis.c
whatis.exp