aboutsummaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-10-07 18:40:39 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-10-07 18:40:39 +0000
commit2f1c7c3fd0024f4c396626602ea6da10d57ae9e2 (patch)
tree4f568317832cb93af72ac6e324c59230b304f5e6 /gdb/blockframe.c
parent01383fb4585c5cca3be827607c2067122604a443 (diff)
downloadfsf-binutils-gdb-2f1c7c3fd0024f4c396626602ea6da10d57ae9e2.zip
fsf-binutils-gdb-2f1c7c3fd0024f4c396626602ea6da10d57ae9e2.tar.gz
fsf-binutils-gdb-2f1c7c3fd0024f4c396626602ea6da10d57ae9e2.tar.bz2
* blockframe.c (find_pc_partial_function): If we call
PSYMTAB_TO_SYMTAB, call target_terminal_ours_for_output first. This is needed now that wait_for_inferior passes in endaddr. * infrun.c: Move call to target_terminal_inferior from proceed to resume.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index 0d0e89a..71c9057 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -648,7 +648,12 @@ find_pc_partial_function (pc, name, address, endaddr)
{
/* Need to read the symbols to get a good value for the end address. */
if (endaddr != NULL && !pst->readin)
- PSYMTAB_TO_SYMTAB (pst);
+ {
+ /* Need to get the terminal in case symbol-reading produces
+ output. */
+ target_terminal_ours_for_output ();
+ PSYMTAB_TO_SYMTAB (pst);
+ }
if (pst->readin)
{