* target.c (target_preopen): If target_kill doesn't remove the

target from the stack, use pop_target to do it.
This commit is contained in:
Jim Kingdon 1994-02-07 01:31:15 +00:00
parent 5bf581053c
commit 1dd29bef1b
2 changed files with 3 additions and 6 deletions

View File

@ -1,5 +1,8 @@
Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com) Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
* target.c (target_preopen): If target_kill doesn't remove the
target from the stack, use pop_target to do it.
* coffread.c (process_coff_symbol, case C_TPDEF): Don't set name * coffread.c (process_coff_symbol, case C_TPDEF): Don't set name
of TYPE_CODE_PTR or TYPE_CODE_FUNC types. This parallels similar of TYPE_CODE_PTR or TYPE_CODE_FUNC types. This parallels similar
changes to stabsread.c from summer 1993. changes to stabsread.c from summer 1993.
@ -10,8 +13,6 @@ Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
try to call UDIDisconnect again. Print better message. try to call UDIDisconnect again. Print better message.
(udi_kill): Just call UDIDisconnect ourselves, rather than doing (udi_kill): Just call UDIDisconnect ourselves, rather than doing
it via udi_close. it via udi_close.
(udi_open): Unpush UDI target after target_preopen, now that
udi_kill doesn't pop the target.
(udi_create_inferior): If udi_session_id is negative, open a new (udi_create_inferior): If udi_session_id is negative, open a new
TIP rather than giving an error. TIP rather than giving an error.

View File

@ -221,10 +221,6 @@ udi_open (name, from_tty)
UDIUInt32 TIPId, TargetId, DFEId, DFE, TIP, DFEIPCId, TIPIPCId; UDIUInt32 TIPId, TargetId, DFEId, DFE, TIP, DFEIPCId, TIPIPCId;
target_preopen(from_tty); target_preopen(from_tty);
/* target_preopen calls target_kill to clean up the previous target. But
udi_kill leaves it on the stack. So we pop it here (the call to udi_close
is harmless now that udi_session_id is -1). */
unpush_target (&udi_ops);
entry.Offset = 0; entry.Offset = 0;