aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
AgeCommit message (Collapse)AuthorFilesLines
1995-08-01* configure.in: Check for working mmap, ansi headers, string.h,J.T. Conklin1-1/+1
strings.h, and memory.h. * configure: Regenerated. * gdb_stat.h: New file, "portable" <sys/stat.h>. * gdb_string.h: New file, "portable" <string.h>. * altos-xdep.c, arm-tdep.c, arm-xdep.c, convex-tdep.c, convex-xdep.c, coredep.c, cxux-nat.c, dbxread.c, exec.c, gould-xdep.c, hppa-tdep.c, i386aix-nat.c, i386b-nat.c, i386mach-nat.c, i386v-nat.c, infptrace.c, m88k-nat.c, main.c, mdebugread.c, objfiles.c, os9kread.c, procfs.c, pyr-xdep.c, rs6000-nat.c, source.c, standalone.c, stuff.c, sun386-nat.c, symfile.c, symm-nat.c, symm-tdep.c, symtab.c, top.c, ultra3-nat.c, ultra3-xdep.c, umax-xdep.c, xcoffread.c: Include "gdb_stat.h" instead of <sys/stat.h>. * alpha-tdep.c, breakpoint.c, buildsym.c, c-typeprint.c, ch-typeprint.c, coffread.c, command.c, core-sol2.c, core-svr4.c, core.c, corelow.c, cp-valprint.c, dbxread.c, dcache.c, demangle.c, dpx2-nat.c, dstread.c, dwarfread.c, elfread.c, environ.c, eval.c, exec.c, f-lang.c, f-typeprint.c, f-valprint.c, findvar.c, fork-child.c, gdbtypes.c, hpread.c, i386-tdep.c, infcmd.c, inflow.c, infptrace.c, infrun.c, irix5-nat.c, language.c, m2-typeprint.c, main.c, mdebugread.c, minsyms.c, mipsread.c, monitor.c, nlmread.c, objfiles.c, os9kread.c, osfsolib.c, parse.c, printcmd.c, procfs.c, regex.c, remote-adapt.c, remote-arc.c, remote-array.c, remote-bug.c, remote-e7000.c, remote-eb.c, remote-es.c, remote-hms.c, remote-mm.c, remote-os9k.c, remote-pa.c, remote-sim.c, remote-st.c, remote-udi.c, remote-utils.c, remote-vx.c, remote-vx29k.c, remote-vx68.c, remote-vx960.c, remote-vxmips.c, remote-vxsparc.c, remote.c, solib.c, somread.c, source.c, stabsread.c, stack.c, symfile.c, symmisc.c, symtab.c, target.c, top.c, typeprint.c, utils.c, valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Include "gdb_string.h" instead of <string.h>. * gdbtk.c: Likewise. * config/xm-sysv4.h, i386/xm-ptx.h, m68k/xm-sun3os4.h, sparc/xm-sun4os4.h (HAVE_MMAP): Removed. * config/xm-lynx.h, config/i386/xm-ptx.h, config/m68k/nm-apollo68b.h, config/m68k/xm-hp300hpux.h, config/mips/xm-irix3.h, config/mips/xm-mips.h, config/mips/xm-news-mips.h, config/mips/xm-riscos.h, config/pa/hppah.h, config/rs6000/xm-rs6000.h, config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h, config/vax/xm-vaxbsd.h, config/vax/xm-vaxult.h, config/vax/xm-vaxult2.h (MEM_FNS_DECLARED): Removed. * config/mips/xm-irix3.h, config/mips/xm-mips.h, config/pa/xm-hppah.h (memcpy, memset): Removed declarations.
1995-07-31* configure.in: Check for unistd.h.J.T. Conklin1-143/+173
* configure: Regenerated. * command.c, cp-valprint.c, fork-child.c, i386-tdep.c, i386b-nat.c, inflow.c, main.c, maint.c, objfiles.c, solib.c, source.c, stack.c, symfile.c, top.c, utils.c: Include strings.h and/or unistd.h to bring prototypes into scope.
1994-05-04 * valprint.c (print_longest): Clarify comment about use_local.Jim Kingdon1-21/+43
* printcmd.c, defs.h (print_address_numeric), callers in symmisc.c, symfile.c, stack.c, source.c, remote.c, infcmd.c, cp-valprint.c, core.c, ch-valprint.c, c-valprint.c, breakpoint.c, exec.c: New argument use_local. * source.c (identify_source_line): Use filtered output. Use print_address_numeric.
1994-01-27 Fix many sins which will come up in 32 bit x 64 bit GDB, andJim Kingdon1-3/+2
various miscellaneous things discovered in the process: * printcmd.c, defs.h (print_address_numeric): New function. * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print) breakpoint.c (describe_other_breakpoints, breakpoint_1, mention), cp-valprint.c (cplus_print_value), infcmd.c (jump_command), printcmd.c, stack.c, symfile.c, symmisc.c, valprint.c: Use it. * utils.c, defs.h (gdb_print_address): New function. * expprint (dump_expression), gdbtypes.h: Use it. * breakpoint.c (describe_other_breakpoints), symmisc.c (dump_symtab, print_symbol): Use filtered not unfiltered I/O. (remove_breakpoints): Remove BREAKPOINT_DEBUG code. Might as well just run gdb under a debugger for this (and it had problems with printing addresses, how to print b->shadow, etc.). * buildsym.c (make_blockvector), core.c (memory_error), exec.c (print_section_info), maint.c (print_section_table), mdebugread.c (parse_procedure), solib.c, source.c, symfile.c, symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c: Add comments saying code is broken. Marked with "FIXME-32x64". * dbxread.c (process_one_symbol), partial-stab.h (default), remote-vx.c (vx_run_files_info): Don't cast int being passed to local_hex_string. * symmisc.c (print_symbol): Don't cast long being passed to %lx. * symtab.h (general_symbol_info): Add comment about SYMBOL_VALUE only being a long. * symmisc.c (print_symbol): Print "offset" in message for LOC_ARG and LOC_LOCAL. * printcmd.c (print_address): Remove #if 0 code with ADDR_BITS_REMOVE. * source.c: Include <sys/types.h> regardless of USG.
1994-01-27 Fix many sins which will come up in 32 bit x 64 bit GDB, andJim Kingdon1-32/+55
various miscellaneous things discovered in the process: * printcmd.c, defs.h (print_address_numeric): New function. * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print) breakpoint.c (describe_other_breakpoints, breakpoint_1, mention), cp-valprint.c (cplus_print_value), infcmd.c (jump_command), printcmd.c, stack.c, symfile.c, symmisc.c, valprint.c: Use it. * utils.c, defs.h (gdb_print_address): New function. * expprint (dump_expression), gdbtypes.h: Use it. * breakpoint.c (describe_other_breakpoints), symmisc.c (dump_symtab, print_symbol): Use filtered not unfiltered I/O. (remove_breakpoints): Remove BREAKPOINT_DEBUG code. Might as well just run gdb under a debugger for this (and it had problems with printing addresses, how to print b->shadow, etc.). * buildsym.c (make_blockvector), core.c (memory_error), exec.c (print_section_info), maint.c (print_section_table), mdebugread.c (parse_procedure), solib.c, source.c, symfile.c, symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c: Add comments saying code is broken. Marked with "FIXME-32x64". * dbxread.c (process_one_symbol), partial-stab.h (default), remote-vx.c (vx_run_files_info): Don't cast int being passed to local_hex_string. * symmisc.c (print_symbol): Don't cast long being passed to %lx. * symtab.h (general_symbol_info): Add comment about SYMBOL_VALUE only being a long. * symmisc.c (print_symbol): Print "offset" in message for LOC_ARG and LOC_LOCAL. * printcmd.c (print_address): Remove #if 0 code with ADDR_BITS_REMOVE. * source.c: Include <sys/types.h> regardless of USG.
1994-01-19 * infrun.c (normal_stop): Set stop_pc after popping the dummy framePeter Schauer1-8/+21
in case execution was stopped in the called function. * stack.c (print_frame_info, frame_info): If backtracing through a call dummy, handle the starting source line number on a line boundary like backtracing through sigtramp. * sparc-tdep.c (sparc_frame_find_saved_regs): Get frame address for call dummy frame right. Remove old test for dummy frame, it has been unused at least since gdb-3.5. * sparc-tdep.c (sparc_push_dummy_frame): Set return address register of the dummy frame.
1993-12-30 * breakpoint.c (breakpoint_chain): Make static.Jim Kingdon1-1/+7
* breakpoint.c, breakpoint.h (frame_in_dummy): New function. * stack.c (print_frame_info): Use it.
1993-11-03* stack.c (down_silently_command): Add comment about PR 1913.Jim Kingdon1-1/+10
1993-11-01Change the stream argument to _filtered to GDB_FILE *.Thomas Lord1-23/+50
Change all references to stdout/stderr to gdb_stdout/gdb_stderr. Replace all calls to stdio output functions with calls to corresponding _unfiltered functions (`fprintf_unfiltered') Replaced calls to fopen for output to gdb_fopen. Added sufficient goo to utils.c and defs.h to make the above work. The net effect is that stdio output functions are only directly used in utils.c. Elsewhere, the _unfiltered and _filtered functions and GDB_FILE type are used. In the near future, GDB_FILE will stop being equivalant to FILE. The semantics of some commands has changed in a very subtle way: called in the right context, they may cause new occurences of prompt_for_continue() behavior. The testsuite doesn't notice anything like this, though. Please respect this change by not reintroducing stdio output dependencies in the main body of gdb code. All output from commands should go to a GDB_FILE. Target-specific code can still use stdio directly to communicate with targets.
1993-10-15 * Move comments on bypassing call dummy breakpoint from stack.cJim Kingdon1-30/+24
to breakpoint.h.
1993-09-08some gcc lintK. Richard Pixley1-10/+23
1993-08-16 * blockframe.c (create_new_frame, get_prev_frame_info):Peter Schauer1-7/+32
Use the function name when calling IN_SIGTRAMP. * config/m68k/tm-m68k.h (SIG_PC_FP_OFFSET, SIG_SP_FP_OFFSET): Define for correct handling of bachtraces through _sigtramp. * m68k-tdep.c (m68k_find_saved_regs): Adjust saved sp for fake sigtramp frames. * mipsread.c (parse_type): Handle corrupt TIR info with complaint instead of core dump. * mipsread.c (parse_partial_symbols): Put static symbols into the mimimal symbol table, use proper mst_types for all minimal symbols. * stack.c (frame_info, print_frame_info): Use the starting source line number on a line boundary if backtracing through sigtramp.
1993-07-08Revision to this change--use ->next != NULL, not just ->next, whenJim Kingdon1-2/+2
passing an integer argument to find_pc_line. * frame.h, blockframe.c, stack.c, a29k-tdep.c, config/gould/tmp-{pn,np1}.h, config/{sparc/tm-sparc.h,pyr/tm-pyr.h,vax/tm-vax.h}: Remove field next_frame from struct frame_info. It has no purpose beyond ->next->frame and is an artifact from GDB 2.8.
1993-07-07 * frame.h, blockframe.c, stack.c, a29k-tdep.c,Jim Kingdon1-8/+9
config/gould/tmp-{pn,np1}.h, config/{sparc/tm-sparc.h,pyr/tm-pyr.h,vax/tm-vax.h}: Remove field next_frame from struct frame_info. It has no purpose beyond ->next->frame and is an artifact from GDB 2.8.
1993-06-11 * stack.c (print_frame_info): Use catch_errors around print_frame_args.Jim Kingdon1-3/+25
1993-05-25 * Many places: replace "the inferior" in messages with "the program"Jim Kingdon1-3/+3
or "the program being debugged". * inflow.c (try_writing_regs): Remove; it's been #if 0'd forever and I'm getting sick of maintaining it.
1993-04-22Thu Apr 22 14:50:05 1993 Jim Kingdon (kingdon@cygnus.com)Jim Kingdon1-1/+2
* symtab.h: Fix LOC_REF_ARG comment. Wed Apr 22 20:21:30 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) and Jim Kingdon (kingdon@cygnus.com) * stabsread.c (define_symbol): Combine a 'p', 'r' arg pair to a LOC_REGPARM symbol. * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Revise comments. symfile.c (compare_symbols): Don't check first character; STRCMP does that. * stabsread.c (define_symbol): Generate a LOC_REGPARM_ADDR for structures that are passed by address in a register. * symtab.h (enum address_class): Add LOC_REGPARM_ADDR. * findvar.c (read_var_value), printcmd.c (address_info, print_frame_args), stack.c (print_frame_arg_vars), symmisc.c (print_{,partial_}symbol), * symtab.c (lookup_block_symbol): Deal with it.
1993-04-21 * stack.c (print_frame_arg_vars), printcmd.c (print_frame_args):Jim Kingdon1-4/+12
Expand comments about LOC_ARG/LOC_LOCAL pairs.
1993-04-20 * rs6000-tdep.c: Delete unused function print_frame.Jim Kingdon1-0/+9
* frame.h (struct frame_info): Doc fix for next_frame. New field signal_handler_caller. blockframe.c (create_new_frame, get_prev_frame_info), config/rs6000/tm-rs6000.h (INIT_EXTRA_FRAME_INFO): Set it (needs INIT_FRAME_PC_FIRST). stack.c (print_frame_info), rs6000-tdep.c (rs6000_frame_chain): Check it.
1993-04-15 * stack.c (print_frame_info): Print specially if dummy frame.Jim Kingdon1-3/+10
1993-03-11 * utils.c (fputs_demangled, fprint_symbol): Remove.Fred Fish1-2/+4
* utils.c (fprintf_symbol_filtered): New function which combines the functionality of fputs_demangled and fprint_symbol. Uses a caller provided language parameter to select the appropriate demangler, and caller provided args to pass to the demangler. * defs.h (fputs_demangled, fprint_symbol): Remove prototypes. * defs.h (fprintf_symbol_filtered): Add prototype. * c-typeprint.c (cp_type_print_method_args): Replace calls to fputs_demangled with call to fprintf_symbol_filtered. * cp-valprint.c (demangle.h): Include * cp-valprint.c (cp_print_value_fields): Replace calls to fprint_symbol with calls to fprintf_symbol_filtered. * printcmd.c (print_frame_args): Replace call to fprint_symbol with call to fprintf_symbol_filtered. * stack.c (print_frame_info, frame_info): Add language variable to pass to fprintf_symbol_demangled and initialize it from the symbol's language. Replace calls to fputs_demangled with calls to fprintf_symbol_filtered. * symtab.c (find_methods): Replace call to fputs_demangled with call to fprintf_symbol_filtered. **** start-sanitize-chill **** * ch-valprint.c (demangle.h): Include. * ch-valprint.c (chill_print_value_fields): Replace call to fprint_symbol with call to new fprintf_symbol_filtered. **** end-sanitize-chill ****
1993-03-11 * utils.c (fputs_demangled): Complete rewrite to clean up andFred Fish1-78/+61
add a language parameter that is used to select the demangling algorithm. * defs.h (enum language): Move further up in file so enum can be used in prototypes. * defs.h (fputs_demangled): Update prototype to add lang arg. * c-typeprint.c (cp_type_print_method_args): Add language arg to fputs_demangled calls, remove DMGL_PARAMS flag. * stack.c (print_frame_info): Remove obsolete code so we don't have to update fputs_demangled usage in it. * stack.c (print_frame_info, frame_info): Add language variable to pass to fputs_demangled and initialize it from the symbol's language. Call fputs_demangled with language arg. * symtab.c (find_methods): Add language arg to fputs_demangled call.
1992-09-11* xm-mips.h (KERNEL_U_ADDR): Get from <machine/param.h>.John Gilmore1-3/+4
(REGISTER_U_ADDR): Fix up for Ultrix 4.2. * tm-tahoe.h, xm-tahoe.h (KERNEL_U_ADDR): Move macro to xm-tahoe.h. * stack.c (_initialize_stack): "dow" should be a valid abbreviation for "down". Suggested by Richard Stallman.
1992-06-30* buildsym.c (scan_file_globals): Beware the null file.John Gilmore1-3/+14
Fix from Jim Williams. * stack.c (return_command): Evaluate expression *before* popping off the stack frames! Fix inspired by Jim Williams. (up_silently_command, down_silently_command): No sel frame is error. * defs.h (memcpy, memset): Conditionalize decls on #ifndef MEM_FNS_DECLARED, since DECstation differs. (alloca): Break out the STDC and non-STDC alloca cases, to make it work on old preprocessors as well as "picky ANSI" ones. * xm-mips.h (memcpy, memset): Declare, and set MEM_FNS_DECLARED. * mips-tdep.c (heuristic_proc_start): Zero arg produces zero. * utils.c (fputs_demangled): Rename SLOP since DECstation system header files define it!
1992-06-29 * dbxread.c, i386-pinsn.c, i386-tdep.c, regex.c, solib.c, symmisc.c,Fred Fish1-1/+1
symtab.h, tm-i386v4.h, valprint.c, values.c: Lint. * breakpoint.c, c-exp.y, coffread.c, command.c, environ.c, eval.c, findvar.c, infcmd.c, infptrace.c, infrun.c, m2-exp.y, parse.c, putenv.c, solib.c, sparc-xdep.c, symtab.c, tm-i386v.h, tm-sparc.h, utils.c, valarith.c, valops.c, valprint.c, values.c: Replace bcopy() use with memcpy(), which is more standard and can take advantage of gcc's builtin functions for increased performance. * breakpoint.c, buildsym.c, coffread.c, dbxread.c, i386-tdep.c, ieee-float.c, infcmd.c, sparc-tdep.c, stack.c, symtab.c, symtab.h, target.c, values.c: Replace bzero() use with memset(), which is more standard and can take advantage of gcc's builtin functions for increased performance. * i386-tdep.c, main.c, valprint.c: Replace bcmp() use with memcmp(), which is more standard and can take advantage of gcc's builtin functions for increased performance.
1992-06-20 * infcmd.c (jump_command): Use cleanups to avoid memory leaks.Fred Fish1-35/+132
* stack.c (return_command): Use cleanups to avoid memory leaks.
1991-11-09Lint and some rs/6000 port.John Gilmore1-28/+14
1991-10-25frame-select command. Cross funcalls to sun3. Build *.tab.c files inJohn Gilmore1-6/+22
target dir.
1991-09-28 * coffread.c (coff_symfile_read): Use xmalloc, not malloc.John Gilmore1-31/+3
* language.c, printcmd.c: Lint. * language.h (get_frame_language): Declare. * saber.suppress: update. * stack.c (find_relative_frame): Remove complex code that was #if 0'd, stick with simple code. Lint. * saber.suppress: Update a bit. * symfile.c (add_symbol_file_command): Add "?" to question. * utils.c (parse_escape): Avoid \a due to bdead compilers. * value.h: Declare typedef_print. * valprint.c (val_print, type_print_base): TYPE_CODE_RANGE less kludgey.
1991-09-19Eliminate uses of working_lang.John Gilmore1-1/+1
1991-09-19* stack.c (frame_info): Print language of stack frame.John Gilmore1-22/+72
(select_frame): Also select language, if in auto-mode. (get_frame_language): New subroutine. Output hex with local_hex_string for Modula-2 support.
1991-09-11* core.c (core_file_command): Print frame at coredump withJohn Gilmore1-43/+41
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.
1991-05-02The list of changes is too long to fit in the cvs log (since it truncates!).Jim Kingdon1-0/+3
Look at the ChangeLog for Apr 30 and May 1.
1991-04-22Check for NULL selected_frame in various places.Jim Kingdon1-5/+19
1991-03-28Initial revisionK. Richard Pixley1-0/+1139
1990-09-05Initial revisionJohn Gilmore1-934/+0
2012-06-03gdb-3.4gdb-3.41-14/+34
2012-06-03gdb-3.3gdb-3.31-72/+162
2012-06-03gdb-3.1gdb-3.11-66/+265
2012-06-03gdb-2.8.1gdb-2.8.11-3/+3
2012-06-03gdb-2.8gdb-2.81-5/+9
2012-06-03gdb-2.5.1gdb-2.5.11-1/+10
2012-06-03gdb-2.4+.aux.coffgdb-2.4+.aux.coff1-0/+612