aboutsummaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
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)
{