From cadbb07a69baa48a153c0c4c148d24342ce4474f Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Wed, 11 Sep 1991 01:49:50 +0000 Subject: * core.c (core_file_command): Print frame at coredump with its level number, by calling print_stack_frame. * frame.h: Add selected_frame_level, print_stack_frame. * frame.h, stack.c: Remove print_sel_frame, print_selected_frame. * convex-tdep.c, convex-xdep.c, infcmd.c, inflow.c, infrun.c: Change print_sel_frame and print_selected_frame callers to print_stack_frame. * dbxread.c (read_ofile_symtab): Avoid empty else clause. * symfile.c (free_named_symtabs): Ditto. * main.c (main): wrap_here needs an arg. * solib.c (find_solib): Avoid memory access if _DYNAMIC is zero. (solib_add): Avoid noise. (solib_create_inferior_hook): Lint. (sharedlibrary_command): Move dont_repeat to here. * utils.c (error): Call wrap_here to force buffered output. Small patches from Peter Schauer: * coffread.c (start_symtab): Free any existing line_vector before malloc-ing new one. (read_coff_symtab): Ditto for type_vector. * source.c (lines_to_list): New variable, replacing function. (all uses): Use as variable. (_initialize_source): Add 'set listsize' and 'show listsize'. * utils.c (lines_to_list): Remove function. * stack.c (print_frame_info): Use as variable. * defs.h (lines_to_list): Remove declaration. --- gdb/inflow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/inflow.c') diff --git a/gdb/inflow.c b/gdb/inflow.c index d267ffc..fd8f0b8 100644 --- a/gdb/inflow.c +++ b/gdb/inflow.c @@ -381,7 +381,7 @@ kill_command (arg, from_tty) if (selected_frame == NULL) fputs_filtered ("No selected stack frame.\n", stdout); else - print_sel_frame (0); + print_stack_frame (selected_frame, selected_frame_level, 1); } } @@ -478,7 +478,7 @@ Report which ones can be written."); inferior_pid = 0; ioctl (0, TIOCGETP, &sg_ours); - fcntl (0, F_GETFL, tflags_ours); + tflags_ours = fcntl (0, F_GETFL, 0); #if defined(TIOCGETC) && !defined(TIOCGETC_BROKEN) ioctl (0, TIOCGETC, &tc_ours); -- cgit v1.1