aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2003-08-10*** empty log message ***gdbadmin1-1/+1
2003-08-092003-08-09 Andrew Cagney <cagney@redhat.com>Andrew Cagney6-26/+126
Fix GDB PR cli/926. * cli/cli-decode.c (add_setshow_uinteger_cmd): New function. * command.h (add_setshow_uinteger_cmd): Declare. * frame.c (set_backtrace_cmd): New function. (show_backtrace_cmd): New function. * frame.c (_initialize_frame): Replace "set/show backtrace-below-main" with "set/show backtrace past-main". Add command "set/show backtrace limit". (backtrace_past_main): Rename "backtrace_below_main". (backtrace_limit): New variable. (get_prev_frame): Update. Check the backtrace_limit. 2003-08-09 Andrew Cagney <cagney@redhat.com> * gdb.texinfo (Backtrace): Replace "set/show backtrace-below-main" with "set/show backtrace past-main" and "set/show backtrace limit". Index: doc/gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.174 diff -u -r1.174 gdb.texinfo --- doc/gdb.texinfo 8 Aug 2003 01:58:00 -0000 1.174 +++ doc/gdb.texinfo 9 Aug 2003 14:57:10 -0000 @@ -3922,27 +3922,40 @@ value, indicating that your program has stopped at the beginning of the code for line @code{993} of @code{builtin.c}. -@kindex set backtrace-below-main -@kindex show backtrace-below-main +@kindex set backtrace past-main +@kindex show backtrace past-main +@kindex set backtrace limit +@kindex show backtrace limit -Most programs have a standard entry point---a place where system libraries -and startup code transition into user code. For C this is @code{main}. -When @value{GDBN} finds the entry function in a backtrace it will terminate -the backtrace, to avoid tracing into highly system-specific (and generally -uninteresting) code. If you need to examine the startup code, then you can -change this behavior. +Most programs have a standard user entry point---a place where system +libraries and startup code transition into user code. For C this is +@code{main}. When @value{GDBN} finds the entry function in a backtrace +it will terminate the backtrace, to avoid tracing into highly +system-specific (and generally uninteresting) code. + +If you need to examine the startup code, or limit the number of levels +in a backtrace, you can change this behavior: @table @code -@item set backtrace-below-main off +@item set backtrace past-main +@itemx set backtrace past-main on +Backtraces will continue past the user entry point. + +@item set backtrace past-main off Backtraces will stop when they encounter the user entry point. This is the default. -@item set backtrace-below-main -@itemx set backtrace-below-main on -Backtraces will continue past the user entry point to the top of the stack. +@item show backtrace past-main +Display the current user entry point backtrace policy. + +@item set backtrace limit @var{n} +@itemx set backtrace limit 0 +@cindex backtrace limit +Limit the backtrace to @var{n} levels. A value of zero means +unlimited. -@item show backtrace-below-main -Display the current backtrace policy. +@item show backtrace limit +Display the current limit on backtrace levels. @end table @node Selection
2003-08-092003-08-09 Andrew Cagney <cagney@redhat.com>Andrew Cagney4-82/+114
* defs.h (xstrprintf): Declare. * utils.c (xstrprintf): New function. * breakpoint.c (insert_breakpoints): Replace sprintf and non-literal format strings, with xstrprintf and cleanups. (delete_breakpoint,breakpoint_re_set): Ditto. (commands_command, insert_breakpoints): Ditto. (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto. (break_at_finish_command_1): Ditto.
2003-08-092003-08-09 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-1/+6
* MAINTAINERS (language support): List Adam Fedor as Objective C maintainer.
2003-08-09*** empty log message ***gdbadmin1-1/+1
2003-08-08 * NEWS (Multi-arched targets): Document that all hppa-hpux targetsJoel Brobecker2-1/+6
are now multiarched.
2003-08-08 * config/pa/tm-hppa64.h: Remove lots of macros that are noJoel Brobecker2-309/+6
longer necessary now that hppa64 is partially multiarch'ed.
2003-08-082003-08-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney5-4/+26
* interps.c (interp_set): Check for a NULL "old_interp". Index: mi/ChangeLog 2003-08-08 Andrew Cagney <cagney@redhat.com> * mi-main.c (captured_mi_execute_command): Add "mi2" and "mi3" to interpreters that hack around CLI. * mi-interp.c (mi3_command_loop): New function. (mi_interpreter_resume): Check for "mi3", default to "mi2".
2003-08-08gdb/H.J. Lu6-12/+33
2003-08-08 H.J. Lu <hongjiu.lu@intel.com> * Makefile.in (FLAGS_TO_PASS): Add DESTDIR. (install-only): Support DESTDIR. (uninstall): Likewise. (install-gdbtk): Likewise. gdb/doc/ 2003-08-08 H.J. Lu <hongjiu.lu@intel.com> * Makefile.in (install-info): Support DESTDIR. (install-html): Likewise. gdb/gdbserver/ 2003-08-08 H.J. Lu <hongjiu.lu@intel.com> * Makefile.in (install-only): Create dest dir. Support DESTDIR. (uninstall): Support DESTDIR. mmalloc/ 2003-08-08 H.J. Lu <hongjiu.lu@intel.com> * Makefile.in (install-info): Create dest dir. Support DESTDIR. (install): Likewise.
2003-08-082003-08-08 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-2/+14
* symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this contains something meaningful at all times.
2003-08-082003-08-07 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-63/+44
Patch from Nick Roberts. * gdb.texinfo (Using GDB under GNU Emacs): Fix/update key bindings. Remove description of send-gdb-command.
2003-08-08Add periods to my changelog entriesBrendan Conoboy1-2/+2
2003-08-08Mon Jul 21 20:10:16 UTC 2003 Brendan Conoboy <blc@redhat.com>Brendan Conoboy2-0/+5
* configure.host: Set gdb_host_cpu=arm when host_cpu=xscale
2003-08-08Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>Brendan Conoboy2-0/+9
* configure.srv: Add xscale*linux copy of arm*linux entry.
2003-08-08Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>Brendan Conoboy2-0/+5
* MAINTAINERS (write after approval): Added self
2003-08-08*** empty log message ***gdbadmin1-1/+1
2003-08-072003-08-07 Andrew Cagney <cagney@redhat.com>Andrew Cagney5-21/+33
* inferior.h (AT_SYMBOL): Define. * blockframe.c (inside_entry_file): Check for AT_SYMBOL. * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL. * mips-tdep.c (mips_call_dummy_address): Delete function. (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not set call_dummy_address.
2003-08-072003-08-07 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-207/+9
* language.c (op_error): Delete function. (binop_type_check): Delete function. * language.h (type_op_error, range_op_error): Delete macros. (op_error): Delete declaration.
2003-08-072003-08-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-32/+7
* gdb.base/completion.exp: Remove reduntant completion test on filename.
2003-08-072003-08-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni7-21/+38
* gdb.base/attach.exp, gdb.base/detach.exp, gdb.base/gcore.exp, gdb.mi/mi-basics.exp, gdb.threads/gcore-thread.exp, gdb.trace/save-trace.exp: Make sure that full pathnames are escaped correctly.
2003-08-072003-08-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni6-188/+60
* configure.in: Don't generate config.h from config.hin. * configure: Regenerate. * config.hin: Remove file. * gdb.mi/pthreads.c: Remove include of config.h, and other ifdefs. * gdb.threads/pthreads.c: Ditto.
2003-08-07Index: ChangeLogAndrew Cagney29-7/+5035
2003-08-07 Andrew Cagney <cagney@redhat.com> * interps.h (INTERP_MI2, INTERP_MI3): Define. Index: doc/ChangeLog 2003-08-07 Andrew Cagney <cagney@redhat.com> * gdb.texinfo (Mode Options): Mention that "mi2" was included in GDB 6.0. Index: mi/ChangeLog 2003-08-07 Andrew Cagney <cagney@redhat.com> * mi-interp.c (_initialize_mi_interp): Register "mi2" and "mi3". Make "mi" select "mi2". Index: testsuite/gdb.mi/ChangeLog 2003-08-07 Andrew Cagney <cagney@redhat.com> * mi2-basics.exp: Copy base MI .exp file, set MIFLAGS to -i=mi2. * mi2-break.exp, mi2-cli.exp, mi2-console.exp: Ditto. * mi2-disassemble.exp, mi2-eval.exp, mi2-file.exp: Ditto. * mi2-hack-cli.exp, mi2-pthreads.exp, mi2-read-memory.exp: Ditto. * mi2-regs.exp, mi2-return.exp, mi2-simplerun.exp: Ditto. * mi2-stack.exp, mi2-stepi.exp, mi2-syn-frame.exp: Ditto. * mi2-until.exp, mi2-var-block.exp, mi2-var-child.exp: Ditto. * mi2-var-cmd.exp, mi2-var-display.exp, mi2-watch.exp: Ditto.
2003-08-072003-08-07 Michal Ludvig <mludvig@suse.cz>Michal Ludvig2-0/+10
* x86-64-tdep.c (x86_64_push_arguments): Skip the red zone.
2003-08-072003-08-07 Michal Ludvig <mludvig@suse.cz>Michal Ludvig2-1/+4
* x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2003-08-072003-08-07 Kei Sakamoto <sakamoto.kei@renesas.com>Kazuhiro Inaoka1-1/+1
* MAINTAINERS (write after approval): Move Kei Sakamoto to the proper place.
2003-08-072003-08-07 Kei Sakamoto <sakamoto.kei@renesas.com>Kazuhiro Inaoka1-0/+1
* MAINTAINERS (write after approval): Add myself.
2003-08-07 From Kei Sakamoto <sakamoto.kei@renesas.com>:Daniel Jacobowitz3-2/+11
* gdb.asm/asm-source.exp : Add -lgloss to link-flags. * gdb.asm/m32r.inc : Remove an illegal nop after bl instruction. Replace ld24 with seth/add3.
2003-08-07*** empty log message ***gdbadmin1-1/+1
2003-08-062003-08-06 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-401/+40
* gdb.texinfo (Mode Options): Mention that level three is the highest available and that level 2 is deprecated. (Annotations Overview): Mention annotation levels. Cross reference to "Limitations of the Annotation Interface" in annotate.texi. (TODO, Value Annotations, Frame Annotations): Delete section. (Displays, Breakpoint Info): Delete.
2003-08-06*** empty log message ***gdbadmin1-1/+1
2003-08-052003-08-05 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-9/+20
* mi-cmd-env.c (env_execute_cli_command): Use an explicit "%s %s" when constructing the run command. (mi_cmd_env_cd, mi_cmd_env_path, mi_cmd_env_dir): Simplify command string removing the "%s".
2003-08-052003-08-05 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-2/+11
* reggroups.c (reggroup_next): Check for the final entry.
2003-08-052003-08-04 Andrew Cagney <cagney@redhat.com>Andrew Cagney5-7/+18
* monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT. * cli/cli-script.c (define_command): Call query directly, instead of passing it a buffer. * ocd.c (ocd_error): Pass error a constant format string. * remote-mips.c (mips_error): Use fputs_filtered.
2003-08-052003-08-04 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-2/+6
* solib-svr4.c (_initialize_svr4_solib): Update register_gdbarch_data call. * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2003-08-05*** empty log message ***gdbadmin1-1/+1
2003-08-042003-08-04 Andrew Cagney <cagney@redhat.com>Andrew Cagney5-154/+176
* mi-cmds.h (struct mi_cli): Define. (struct mi_cmd): Change type of "cli" to "struct mi_cli". * mi-cmds.c (mi_cmds): Update table. * mi-parse.c (mi_parse): Update. * mi-main.c (mi_execute_cli_command): Add "args_p" parameter, make others constant. (mi_cmd_execute): Update call. (captured_mi_execute_command): Ditto.
2003-08-042003-08-04 Andrew Cagney <cagney@redhat.com>Andrew Cagney11-21/+33
* gdbarch.sh (gdbarch_data_free_ftype): Delete declaration. (register_gdbarch_data): Delete "free" parameter. Update comments. * gdbarch.h, gdbarch.c: Re-generate. * reggroups.c (_initialize_reggroup): Update. * gnu-v3-abi.c (init_gnuv3_ops): Update. * frame-base.c (_initialize_frame_base): Update. * frame-unwind.c (_initialize_frame_unwind): Update. * user-regs.c (_initialize_user_regs): Update. * remote.c (_initialize_remote): Update. * regcache.c (_initialize_regcache): Update.
2003-08-042003-08-04 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-22/+17
* regcache.c (xfree_regcache_descr): Delete function. (_initialize_regcache): Update call to register_gdbarch_data. (init_regcache_descr, init_legacy_regcache_descr): Use GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2003-08-042003-08-04 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-12/+11
* remote.c (free_remote_state): Delete function. (_initialize_remote): Update register_gdbarch_data. (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2003-08-042003-08-04 Andrew Cagney <cagney@redhat.com>Andrew Cagney5-30/+29
* agentexpr.texi: Delete @bye. * Makefile.in (STABS_DOC_SOURCE_INCLUDES): Add "fdl.texi" (stabs.info): Add $(srcdir) to include search path. (html): Depend on "annotate_toc.html", and not "annotate.html". * stabs.texinfo: Ditto. Include "fdl.texi". * gdbint.texinfo: Update copyright statement's list of invariant sections.
2003-08-042003-08-04 Andrew Cagney <cagney@redhat.com>Andrew Cagney5-66/+93
* reggroups.c (struct reggroup_el): Define. (struct reggroups): Delete field "nr_group". Replace array "group" with a "first" to "last" linked list. (reggroups_init): Update. Allocate using gdbarch's obstack. (reggroups_free): Delete function. (add_group): Update. Add "el" parameter. (reggroup_add): Pass gdbarch obstack allocated space to add_group. (default_groups): Update. (reggroup_next): Replace reggroups. (reggroups_dump): Update. (_initialize_reggroup): Pass XMALLOC allocated space to add_group. * regcache.c (regcache_dump): Use reggroup_next instead of reggroups. * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2003-08-04 * tui-interp.c: Include "cli-out.h".Daniel Jacobowitz2-0/+22
(tui_resume): Update tui_old_uiout's stream to gdb_stdout.
2003-08-04 * Makefile.in (tui-interp.o): Update dependencies.Daniel Jacobowitz2-1/+5
2003-08-042003-08-04 David Carlton <carlton@kealia.com>David Carlton16-37/+66
* charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args to internal_error call. * source.c (forward_search_command): Add "%s" format argument. (reverse_search_command): Ditto. * top.c (quit_confirm): Ditto. * cli/cli-setshow.c (do_setshow_command): Ditto. * cp-valprint.c (cp_print_class_method): Replace {f,}printf_{un,}filtered by {f,}puts_{un,}filtered. (cp_print_class_member): Ditto. * event-top.c (command_line_handler): Ditto. * linux-proc.c (linux_info_proc_cmd): Ditto. * p-typeprint.c (pascal_type_print_base): Ditto. * p-valprint.c (pascal_object_print_class_method): Ditto. (pascal_object_print_class_member): Ditto. * printcmd.c (print_scalar_formatted,printf_command): Ditto. * remote.c (remote_cisco_section_offsets): Ditto. * top.c (command_line_input): Ditto. * utils.c (vwarning,error_stream,quit): Ditto. * valprint.c (print_floating,print_binary_chars) (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto. 2003-08-04 David Carlton <carlton@kealia.com> * mi-main.c (mi_error_last_message): Add "%s" second argument to xasprintf call. 2003-08-04 David Carlton <carlton@kealia.com> * generic/gdbtk.c (gdbtk_source_start_file): Add "%s" first argument to error call. (tk_command): Ditto. (view_command): Ditto.
2003-08-042003-08-04 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-1/+8
* frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2003-08-04*** empty log message ***gdbadmin1-1/+1
2003-08-032003-08-02 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-0/+10
* config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc, gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and amd64fbsd-nat.c.
2003-08-032003-08-02 Andrew Cagney <cagney@redhat.com>Andrew Cagney5-0/+732
* gdb.base/annota3.exp: New file. * gdb.base/annota3.c: New file. * gdb.c++/annota3.exp: New file. * gdb.c++/annota3.cc: New file.
2003-08-03*** empty log message ***gdbadmin1-1/+1
2003-08-022003-08-02 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-472/+499
* Makefile.in: Update all dependencies and definitions.