summaryrefslogtreecommitdiff
path: root/gdb/stack.c
Commit message (Collapse)AuthorAgeFilesLines
* * stack.c (select_and_print_frame): Make static. Delete theAndrew Cagney2002-05-051-18/+4
| | | | | | | parameter `level'. (func_command): Update call. (select_frame_command): Delete code computing the frame level. * frame.h (select_and_print_frame): Delete declaration.
* * frame.h (select_frame): Delete level parameter.Andrew Cagney2002-05-051-43/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * stack.c (select_frame): Update. Use frame_relative_level to obtain the frame's level. (select_and_print_frame): Update call. (select_frame_command): Ditto. (up_silently_base): Ditto. (down_silently_base): Ditto. * ocd.c (ocd_start_remote): Ditto. * remote-rdp.c (remote_rdp_open): Ditto. * remote-mips.c (mips_initialize): Ditto. (common_open): Ditto. * remote-e7000.c (e7000_start_remote): Ditto. * m3-nat.c (select_thread): Ditto. * hppa-tdep.c (child_get_current_exception_event): Ditto. (child_get_current_exception_event): Ditto. * varobj.c (varobj_create): Ditto. (varobj_update): Ditto. (c_value_of_root): Ditto. * tracepoint.c (finish_tfind_command): Ditto. * corelow.c (core_open): Ditto. * arch-utils.c (generic_prepare_to_proceed): Ditto. * thread.c (info_threads_command): Ditto. (switch_to_thread): Ditto. * infrun.c (normal_stop): Ditto. (restore_selected_frame): Ditto. (restore_inferior_status): Ditto. * breakpoint.c (insert_breakpoints): Ditto. (watchpoint_check): Ditto. (bpstat_stop_status): Ditto. (do_enable_breakpoint): Ditto. * blockframe.c (flush_cached_frames): Ditto. (reinit_frame_cache): Ditto.
* * stack.c (selected_frame_level):Andrew Cagney2002-04-261-8/+0
| | | | | (select_frame): Do not set selected_frame_level. * frame.h (selected_frame_level): Delete declaration.
* * frame.h (selected_frame_level): Document as deprecated.Andrew Cagney2002-04-211-11/+33
| | | | | | | | | | | | | | | | | | | (frame_relative_level): Declare. * stack.c (frame_relative_level): New function. (selected_frame_level): Document as deprecated. (select_frame): Do not set the selected_frame_level. * stack.c (frame_info, record_selected_frame): Update. (frame_command, current_frame_command): Update. (up_silently_base, up_command, down_silently_base): Update. (down_command): Update. * inflow.c (kill_command): Update. * tracepoint.c (finish_tfind_command): Update. * corelow.c (core_open): Update. * thread.c (info_threads_command): Update. (do_captured_thread_select): Update. * infcmd.c (finish_command): Update. * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
* * stack.c (select_frame): Cleanup internal error message, do notAndrew Cagney2002-04-101-2/+3
| | | | use %p.
* * stack.c (select_frame): Check that selected_frame and theAndrew Cagney2002-04-101-0/+32
| | | | | | | | | specified level are as expected. * blockframe.c (get_prev_frame): Set the `level' from next_frame. Update copyright. * frame.h (struct frame_info): Add field `level'. Update copyright. Work-in-progress PR gdb/464.
* gdb/ChangeLog:Jim Blandy2002-04-051-6/+10
| | | | | | | | | | | | | | | * stack.c (get_selected_block): Add new argument `addr_in_block', used to return the exact code address we used to select the block, not just the block. * blockframe.c (get_frame_block, get_current_block): Same. * frame.h (get_frame_block, get_current_block, get_selected_block): Update declarations. * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c, linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed. gdb/mi/ChangeLog: * mi-cmd-stack.c (list_args_or_locals): Pass new arg to get_frame_block. (See entry in gdb/ChangeLog.)
* * defs.h (error): Add printf format attribute.Andrew Cagney2002-03-231-1/+1
| | | | | | | | | | | * thread-db.c (thread_from_lwp): Fix error format string. * stack.c (parse_frame_specification): Ditto. * cli/cli-decode.c (undef_cmd_error): Ditto. * scm-lang.c (scm_lookup_name): Ditto. * tracepoint.c (trace_error): Ditto. * remote-utils.c (usage): Ditto. * remote.c (compare_sections_command): Ditto. Fix PR gdb/328.
* 2002-02-13 Martin M. Hunt <hunt@redhat.com>Martin Hunt2002-02-141-1/+4
| | | | | * stack.c (print_frame_info_base): When calling print_frame_info_listing_hook, set current_source_symtab.
* Remove else clause to #if UI_OUT.Andrew Cagney2002-01-171-67/+6
|
* * stack.c (print_frame_info_base): Print the frame's pcKeith Seitz2002-01-131-9/+20
| | | | only if when print_frame_info_listing_hook is not defined.
* s/value_ptr/struct value */Andrew Cagney2001-11-101-2/+2
|
* 2001-11-06 Fred Fish <fnf@redhat.com>Fred Fish2001-11-061-1/+0
| | | | | | | | | | | | | | | * complaints.c (info_verbose): Remove unneeded decl, is in defs.h. * dbxread.c: Ditto * dwarf2read.c: Ditto. * dwarfread.c: Ditto. * exec.c: Ditto. * hpread.c: Ditto. * hpread.h: Ditto. * mdebugread.c: Ditto. * os9kread.c: Ditto. * stack.c: Ditto. * symfile.c: Ditto. * tracepoint.c: Ditto.
* * value.h (value_as_address): Rename value_as_pointer.Andrew Cagney2001-10-161-2/+2
| | | | | | * eval.c, findvar.c, gnu-v2-abi.c, gnu-v3-abi.c, jv-lang.c, jv-valprint.c, printcmd.c, stack.c, top.c, valarith.c, valops.c, values.c: Update.
* 2001-10-12 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2001-10-121-16/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro. * symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS. (make_symbol_completion_list): Likewise. (make_symbol_overload_list): Likewise. * buildsym.c (finish_block): Likewise. * breakpoint.c (get_catch_sals): Likewise. * mdebugread.c (mylookup_symbol): Likewise. * objfiles.c (objfile_relocate): Likewise. * printcmd.c (print_frame_args): Likewise. * stack.c (print_block_frame_locals): Likewise. (print_block_frame_labels): Likewise. (print_frame_arg_vars): Likewise. * symmisc.c (dump_symtab): Likewise. * tracepoint.c (add_local_symbols): Likewise. (scope_info): Likewise. 2001-10-12 Daniel Jacobowitz <drow@mvista.com> * mi-cmd-stack.c (list_args_or_locals): Use ALL_BLOCK_SYMBOLS. 2001-10-12 Daniel Jacobowitz <drow@mvista.com> * generic/gdbtk-cmds.c (gdb_listfuncs): Use ALL_BLOCK_SYMBOLS. * generic/gdbtk-stack.c (gdb_block_vars): Likewise. (gdb_get_blocks): Likewise. (gdb_get_vars_command): Likewise. 5~
* * utils.c (query): Remove tui hacks; tui must use the query_hook.Stephane Carrez2001-07-141-60/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | * top.c (command_loop): Remove tui insert_mode hacks; don't call tuiCleanUp because this must be made with atexit by tui. * symfile.c (symbol_file_command): Remove call to TUIDO * stack.c (show_and_print_stack_frame_stub): Remove tui check; not necessary when using the selected frame hooks. (print_stack_frame_stub): Likewise. (print_frame_info_base): Likewise. (print_frame_info): Likewise. (up_silently_command): Likewise. (down_silently_command): Likewise. (show_stack_frame): Likewise for TUIDO. (select_frame): Likewise. (select_and_print_frame): Likewise. (stack_publish_stopped_with_no_frame): Remove. (select_and_maybe_print_frame): Remove. * main.c (captured_main): Remove tui_fileopen and tuiInit; tui must use the initialize ui hook. * infrun.c (normal_stop): Remove call to TUIDO; tui must use the selected frame hooks. * event-top.c (command_handler): Remove tui insert_mode hack. * defs.h: Remove TUIDO; Only include tui.h. * breakpoint.c (mention): Remove calls to TUIDO. (delete_breakpoint): Remove tui hacks; tui must install the breakpoint hooks.
* * stack.c (print_frame): For ui_out, output a list of arguments.Andrew Cagney2001-06-261-1/+1
| | | | Update all tests. Update doco.
* s/ui_out_list/ui_out_tupple/Andrew Cagney2001-05-121-6/+4
|
* Use cleanup machinery to invoke ui_out_list_end().Kevin Buettner2001-04-081-1/+6
|
* * arch-utils.c (#include "gdbthread.h"): Removed.J.T. Conklin2001-03-271-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#include "symfile.h"): Removed. (XMALLOC): Removed unused macro. * breakpoint.c (tbreak_command): Removed local declaration. (awatch_command, do_enable_breakpoint, set_breakpoint_count): Remove duplicate declarations. (bpstat_should_step, bpstat_have_active_hw_watchpoints) (remove_solib_event_breakpoints): Fix indentation botch. * c-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. * ch-exp.c (ch_terminal_match_float_literal, parse_expr) (parse_primval, parse_untyped_expr, parse_opt_untyped_expr): Removed duplicate declarations. * ch-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. * corefile.c (#include "frame.h"): Removed (#include "symfile.h"): Removed. (#include "language.h"): Removed. * dbxread.c (#include "command.h"): Removed. * environ.c (#include "gdbcore.h"): Removed. * event-loop.c (#include "top.h"): Removed. * f-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. (#include "language.h"): Removed. (#include "typeprint.h"): Removed. (#include "frame.h"): Removed. * gdbtypes.h (print_type_scalar): Removed declaration. * infcmd.c (#include "completer.h"): Removed. * language.c (#include "frame.h"): Removed. * m2-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. (#include "language.h"): Removed. * m2-valprint.c (#include "valprint.h"): Removed. * p-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. * p-valprint.c (#include "typeprint.h"): Removed. * parse.c (#include "linespec.h"): Removed. * regcache.c (#include "frame.h"): Removed. * remote.c (#include "frame.h"): Removed. (getpkt_sane): Make static. * source.c (#include "completer.h"): Removed. * stack.c (#include "symfile.h"): Removed. (#include "objfiles.h"): Removed. * symfile.c (#include "completer.h"): Removed. * tracepoint.c (#include "completer.h"): Removed. * values.c (#include "frame.h"): Removed. * varobj.c (#include "valprint.h"): Removed. * wrapper.c (#include "frame.h"): Removed. * memattr.c (create_mem_region): Removed unused variable. * remote-nrom.c: Removed spurious semicolon after init_nrom_ops. -------------------------------------------------------------------
* * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macroAndrew Cagney2001-03-211-1/+1
| | | | | | | | | | | | | already defined. From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>: * stabsread.c (define_symbol): A parameter ('R'), a local ('r'), or a reference ('a') can be in a pseudo register. * infcmd.c (do_registers_info): Must take into account the pseudo registers to print their value. (registers_info): Likewise. * stack.c (frame_info): Likewise. * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
* Eliminate ARCH_NUM_REGS.Andrew Cagney2001-03-131-1/+1
|
* Add comment (part of immediately previous commit).David Taylor2001-03-081-0/+5
|
* * stack.c (parse_frame_specification): For one argument case,David Taylor2001-03-081-2/+9
| | | | | | handle the situation where the argument is an integer, not an address -- arguably the most common case. This matters on targets where pointers and addresses are different.
* Update/correct copyright notices.Kevin Buettner2001-03-061-2/+2
|
* Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.Peter Schauer2001-02-101-18/+0
| | | | | | | | | | | | | * xcoffsolib.c (xcoff_solib_address): Renamed from pc_load_segment_name. Return NULL if address is not in a shared library. Cleanup shared library name construction, using xasprintf. Format shared library member names consistent with format in exec.c. (solib_info): Format shared library member names consistent with format in exec.c. * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB, using xcoff_solib_address for PC_SOLIB definition. * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer needed.
* * ui-out.c (do_list_end): New function.Mark Kettenis2001-01-271-2/+6
| | | | | | | | | | (make_cleanup_ui_out_list_end): New function. * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end. * stack.c (print_frame) [UI_OUT]: Call make_cleanup_ui_out_list_end to make sure we mark the end of the list if we do a non-local exit. At the end of the function, instead of calling ui_out_list_end directly, let do_cleanups handle it.
* Replace free() with xfree().Kevin Buettner2000-12-151-3/+3
|
* * stack.c (return_command): Pop dummy frame if we just returned fromPeter Schauer2000-11-061-0/+6
| | | | a stop in a call dummy.
* * eval.c (parse_and_eval_long): New function.David Taylor2000-10-301-4/+4
| | | | | | | | | | | | | | | | * value.h: Declare it. * breakpoint.c (breakpoints_info, maintenance_info_breakpoints): Call parse_and_eval_long, not parse_and_eval_address. * command.c (do_setshow_command): Ditto. * infcmd.c (step_1, signal_command, continue_command): Ditto. * infrun.c (signals_info): Ditto. * stack.c (set_backtrace_limit_command, backtrace_command_1, up_silently_base, down_silently_base): Ditto. * tracepoints.c (tracepoints_info, trace_find_command, trace_find_tracepoint_command): Ditto. * valprint.c (set_radix): Ditto. * values.c (show_values): Ditto.
* Protoization.gdb-post-protoization-2000-07-29Kevin Buettner2000-07-301-147/+57
|
* Eliminate PARAMS from function pointer declarations.gdb-post-params-removal-2000-06-04Kevin Buettner2000-06-041-1/+1
|
* PARAMS removal.gdb-post-params-removal-2000-05-28Kevin Buettner2000-05-281-28/+29
|
* Use make_cleanup_ui_out_stream_delete().Andrew Cagney2000-05-151-1/+1
|
* Add more checks for no stack frame.Andrew Cagney2000-02-291-0/+6
|
* Clean up compiler warnings:Jim Kingdon2000-02-081-1/+1
| | | | | | | | | | | | | * bcache.h, bcache.c, c-valprint.c, coffread.c, stabsread.c, stack.c, valprint.c: Change variables to unsigned. * bcache.c: Rearrange to avoid warnings about variables not being set. * c-lang.c, ch-lang.c, f-lang.c, m2-lang.c: Include valprint.h rather than declaring print_max and repeat_count_threashold ourselves (incorrectly). * valprint.h: Do declare repeat_count_threashold. * ch-exp.c: Use default case for internal error. * findvar.c: Don't omit argument type. * symtab.c: Remove unused variable.
* import gdb-2000-02-02 snapshotJason Molenda2000-02-031-1/+103
|
* import gdb-2000-02-01 snapshotJason Molenda2000-02-021-21/+18
|
* import gdb-2000-01-17 snapshotJason Molenda2000-01-181-114/+139
|
* import gdb-1999-10-25 snapshotJason Molenda1999-10-261-0/+1
|
* import gdb-1999-07-07 post reformatJason Molenda1999-07-071-253/+261
|
* import gdb-1999-06-01 snapshotJason Molenda1999-06-011-1/+3
|
* import gdb-1999-05-25 snapshotJason Molenda1999-05-251-6/+4
|
* import gdb-19990422 snapshotStan Shebs1999-04-261-12/+23
|
* Initial revisionStan Shebs1999-04-161-0/+2019