Commit Graph

13553 Commits

Author SHA1 Message Date
Elena Zannoni 3b27aeeaa9 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
From Brian Ford  <ford@vss.fsi.com>

	* cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
	conditionalize tui_active test.
	(lookup_cmd_1): Ditto.
2003-02-14 20:36:58 +00:00
Mark Kettenis b0b1c2c0eb * configure.in: Add check for _etext.
* maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
available.
* config.in, configure: regenerated.
2003-02-14 20:07:00 +00:00
Daniel Jacobowitz 8f05cde5d3 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base. 2003-02-14 19:05:52 +00:00
Andrew Cagney 021e760905 2003-02-14 Andrew Cagney <ac131313@redhat.com>
* main.c (tui_version): Delete variable.
	(captured_main): When --tui, set interpreter_p to "tui" instead of
	enabling tui_version.
	* printcmd.c (display_command) [TUI]: Test tui_active instead of
	tui_version.
	* cli/cli-decode.c (lookup_cmd_composition): Ditto.
	* cli/cli-cmds.c (disassemble_command): Ditto.
	* defs.h (tui_version): Delete declaration.
	* Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
	(tui-interp.o): Add rules.
	(SUBDIR_TUI_OBS): Add "tui-interp.o".

Index: tui/ChangeLog
2003-02-14  Andrew Cagney  <ac131313@redhat.com>

	* tui.c (tui_enable, tui_disable): Don't modify tui_version.
	(tui_is_window_visible, tui_get_command_dimension): Test
	tui_active instead of tui_version.
	* tuiData.h (tui_version): Delete declaration.
	* tui-hooks.c (tui_init_hook, tui_event_loop): Delete function,
	moved to "tui-interp.c".
	(tui_exit, tui_command_loop): Ditto.
	(_initialize_tui): Don't initialize init_ui_hook.  Initialize
	target_new_objfile_hook.
	* tui-interp.c: New file.
2003-02-14 13:58:06 +00:00
Christopher Faylor e325dceca7 * win32-nat.cc (register_loaded_dll): Correctly set address range for
just-loaded dll.
2003-02-14 05:15:43 +00:00
Jason Molenda c4f90d873c [ChangeLog]
2003-02-12  Jason Molenda  (jmolenda@apple.com)

        * symmisc.c (print_objfile_statistics): Include information about
        the number of psymtabs and symtabs in each object file.

[testsuite/ChangeLog]
2003-02-13  Jason Molenda  (jmolenda@apple.com)

        * gdb.base/maint.exp: Update maint print statistics regexp to include
        new entries.
2003-02-14 01:13:45 +00:00
gdbadmin 8031856cdb *** empty log message *** 2003-02-14 00:00:31 +00:00
Michael Chastain cbc4d97c1c 2003-02-13 Michael Chastain <mec@shout.net>
* gdb.c++/inherit.exp: Remove call to get_debug_format.
2003-02-13 22:42:59 +00:00
Michael Chastain 40f235b7e2 2003-02-12 Michael Chastain <mec@shout.net>
* gdb.c++/classes.exp: Remove setup_xfail_format for DWARF 1.
	* gdb.c++/inherit.exp: Likewise.
	* gdb.c++/cplusfuncs.exp: Remove suppression logic for DWARF 1.
	* gdb.c++/templates.exp: Likewise.
	* gdb.c++/virtfunc.exp: Likewise.
2003-02-13 21:33:20 +00:00
Keith Seitz e46e5ccdd0 * main.h (struct captured_main_args): Add interpreter_p.
* main.c (captured_main): Initialize interpreter_p from context.
        * gdb.c (main): Set interpreter_p argument.
        * Makefile.in (gdb.o): Add dependency for interps.h.
2003-02-13 18:07:24 +00:00
gdbadmin df7b423ca4 *** empty log message *** 2003-02-13 00:00:32 +00:00
Andrew Cagney fe97fe9cf0 2003-02-12 Andrew Cagney <ac131313@redhat.com>
* event-top.c (cli_command_loop): Delete declaration.
	(_initialize_event_loop): Delete function setting event_loop_hook.
	* event-top.h (cli_command_loop): Declare.  Update copyright.
	(EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
	* interps.c (current_interp_command_loop): When event_loop_p, call
	cli_command_loop.
2003-02-12 15:31:30 +00:00
Andrew Cagney 1cdac4ef8f 2003-02-12 Andrew Cagney <ac131313@redhat.com>
* interps.h (interp_command_loop_ftype): Change return type to
	void.
2003-02-12 15:23:20 +00:00
Andrew Cagney 88fa91b473 2003-02-12 Andrew Cagney <ac131313@redhat.com>
* tuiIO.c (tui_prep_terminal): Add one notused parameter.
	* tui.c (tui_rl_switch_mode): Add two notused parameters.
	(tui_rl_change_windows, tui_rl_next_keymap): Ditto.
	(tui_rl_delete_other_windows): Ditto.
	(tui_rl_change_windows, tui_rl_delete_other_windows): Update
	calls.
2003-02-12 15:14:36 +00:00
gdbadmin 41b22a8ddd *** empty log message *** 2003-02-12 00:00:31 +00:00
Michal Ludvig 48037eadc7 2003-02-12 Michal Ludvig <mludvig@suse.cz>
* x86-64-tdep.c (x86_64_extract_return_value)
	(x86_64_store_return_value): Use regcache instead of regbuf.
	(x86_64_gdbarch_init): Change related set_gdbarch_* functions.
	* x86-64-linux-nat.c (fill_gregset): Use regcache.
2003-02-11 23:09:59 +00:00
Andrew Cagney 033afc6377 2003-02-11 Andrew Cagney <ac131313@redhat.com>
* acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
	TCL_LD_SEARCH_FLAGS.
2003-02-11 16:11:16 +00:00
gdbadmin 34d97300be *** empty log message *** 2003-02-11 00:00:31 +00:00
Michal Ludvig 40d02bca51 * dwarf2cfi.c: Reindented. 2003-02-10 11:50:20 +00:00
gdbadmin 469def5365 *** empty log message *** 2003-02-10 00:00:01 +00:00
Andrew Cagney 11308a4187 2003-02-09 Andrew Cagney <ac131313@redhat.com>
* interps.c (clear_interpreter_hooks): Convert function definition
	to ISO C.

Index: mi/ChangeLog
2003-02-09  Andrew Cagney  <ac131313@redhat.com>

	* mi-interp.c (mi_remove_notify_hooks): Convert function
	definition to ISO C.
2003-02-09 10:47:37 +00:00
gdbadmin 1bed3d8532 *** empty log message *** 2003-02-09 00:00:32 +00:00
David Carlton e1c1c0f6a0 2003-02-07 David Carlton <carlton@math.stanford.edu>
* gdb_mbuild.sh: Delete extra shift after parsing '-f'.
2003-02-08 00:39:53 +00:00
gdbadmin 63a300ab1e *** empty log message *** 2003-02-08 00:00:31 +00:00
Kevin Buettner ab5d3da63e Move ``length'' from struct main_type to struct type. 2003-02-07 21:44:01 +00:00
Andrew Cagney b8a92b826d 2003-02-07 Andrew Cagney <ac131313@redhat.com>
* sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
	<sys/stat.h>.
	* Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
2003-02-07 05:33:45 +00:00
Andrew Cagney 2555fe1a4f 2003-02-06 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (symm-nat.o): Update dependencies.
	(sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
	(lynx-nat.o, ia64-linux-nat.): Ditto.
	* symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
	"gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
	* ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
2003-02-07 04:49:34 +00:00
Andrew Cagney 44270758cd 2003-02-06 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (inflow_h): Define.
	(procfs.o, inflow.o, procfs.o): Update dependencies.
	* inftarg.c (child_stop): Delete extern declaration of
	inferior_process_group.  Include "inflow.h".
	* procfs.c (procfs_stop): Ditto.  Include "inflow.h".
	* inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
	* inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
	(our_process_group, inferior_process_group): Extern declarations.
2003-02-07 04:21:34 +00:00
Andrew Cagney df8f727469 2003-02-06 Andrew Cagney <ac131313@redhat.com>
* procfs.c: Include "gdb_assert.h".
2003-02-07 03:23:20 +00:00
Andrew Cagney 5cb316ef79 2003-02-06 Andrew Cagney <ac131313@redhat.com>
* linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
	* cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
	* jv-typeprint.c (java_type_print_base): Ditto.
	* typeprint.c (typedef_print): Eliminate STREQ.
	* cli/cli-script.c (define_command, define_command): Ditto.
	* main.c (captured_main): Ditto.
	* values.c (lookup_internalvar): Ditto.
	* utils.c (safe_strerror, parse_escape): Eliminate assignment
	within `if' conditional.
	* linespec.c (decode_line_2): Ditto.
	* cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
	(bfd_openw_with_cleanup): Ditto.

Index: mi/ChangeLog
2003-02-06  Andrew Cagney  <ac131313@redhat.com>

	* mi-cmd-env.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2003-02-07 00:27:31 +00:00
gdbadmin e77e4e3ff8 *** empty log message *** 2003-02-07 00:00:01 +00:00
Mark Kettenis 2a28ccea64 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
legacy_extract_return_value and store_return_value to
legacy_return_value.
2003-02-06 23:20:52 +00:00
Christopher Faylor 295732ea1e whitespace cleanup 2003-02-06 20:37:55 +00:00
Christopher Faylor 786b8124ce * win32-nat.c (get_relocated_section_addrs): New function. Find section load
addresses for symbol handling in relocated DLLs.
(solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
2003-02-06 19:51:25 +00:00
Jason Molenda c56716b08b 2003-02-06 Jason Molenda (jason-cl@molenda.com)
* gdb.mi/mi-syn-frame.c (subroutine): Add a comment explaining
	why the code is written that way.
2003-02-06 18:26:20 +00:00
Fred Fish b871e4ecc4 Checked in as obvious fixes. Also updated FSF copyright year to 2003
for remote-e7000.c and infttrace.c.

	2003-02-05  Fred Fish  <fnf@intrinsity.com>
	* remote-e7000.c (e7000_drain_command): Fix precedence problem with
	'=' and '!='.
	* rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
	with '&' and '=='.
	(angel_RDI_info): Ditto.
	* infttrace.c (threads_continue_all_but_one): Fix precedence problem
	with '&' and '!='.
	(threads_continue_all_with_signals): Ditto.
2003-02-06 17:58:01 +00:00
Michael Chastain 070afcf86f 2003-02-05 Michael Chastain <mec@shout.net>
* gdb.base/dump.exp: Add missing copyright line.
2003-02-06 06:39:38 +00:00
Jason Molenda f7ae6d3e1f typeo 2003-02-06 06:30:18 +00:00
Jason Molenda 5d0331e5f2 2003-02-05 Jason Molenda (jason-cl@molenda.com)
* gdb.mi/mi-syn-frames.c (subroutine): Add an extra statement
	at the beginning so the breakpoint doesn't get set on the loop.
2003-02-06 06:27:01 +00:00
Andrew Cagney 4a8f6654af Add missing files from last commit :-( 2003-02-06 05:30:17 +00:00
Michael Chastain 92851186c3 2003-02-05 Michael Chastain <mec@shout.net>
* gdb.c++/local.exp: Relax the test for PR gdb/825 to accept
	output for configurations with gcc 2.95.3.
2003-02-06 02:11:01 +00:00
Michael Chastain 8b8d752579 2003-02-05 Michael Chastain <mec@shout.net>
* gdb.c++/local.exp: Relax the test for PR gdb/825 to accept
	output for configurations with gcc 2.95.3.
2003-02-06 02:04:21 +00:00
Andrew Cagney cbf1e08505 2003-02-05 Keith Seitz <keiths@redhat.com>
Andrew Cagney  <ac131313@redhat.com>

	* gdb.mi/mi-cli.exp: New file.
2003-02-06 01:22:06 +00:00
Andrew Cagney 4389a95abb 2003-02-05 Jim Ingham <jingham@apple.com>
Keith Seitz  <keiths@redhat.com>
            Elena Zannoni  <ezannoni@redhat.com>
            Andrew Cagney  <ac131313@redhat.com>

	* Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
	(SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
	(SUBDIR_MI_OBS): Add "mi-interp.o".
	(SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
	(SFILES): Add "interps.c".
	(COMMON_OBS): Add "interps.o".
	(interps_h, mi_main_h): Define.
	(interps.o, cli-interp.o, mi-interp.o): Add dependencies.
	(mi-main.o, main.o, event-top.o): Update dependencies.
	* cli/cli-interp.c: New file.
	* interps.h, interps.c: New files.
	* top.c: (gdb_init): Don't install the default interpreter, handed
	by captured_main.
	* main.c: Include "interps.h".
	(interpreter_p): Note that it should malloc'ed.
	(captured_command_loop): Call current_interp_command_loop.
	(captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
	xfree and xstrdup when updating interpreter_p.  Install the
	default interpreter.  Add hack to stop mi1's copyright notice
	being encoded.
	* event-top.h (gdb_setup_readline): Declare.
	(gdb_disable_readline): Declare.
	* event-top.c: Include "interps.h".
	(display_gdb_prompt): Call current_interp_display_prompt_p.
	(gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
	gdb_stdlog, and gdb_stdtarg.
	(_initialize_event_loop): Don't call gdb_setup_readline.
	* cli-out.c (cli_out_set_stream): New function.
	* cli-out.h (cli_out_set_stream): Declare.
2003-02-06 01:19:12 +00:00
gdbadmin 0667fdb0c6 *** empty log message *** 2003-02-06 00:00:32 +00:00
Mark Kettenis ff3b581062 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
* config/i386/i386sco5.mt, config/i386/i386v4.mt,
config/i386/i386v42mp.mt: Removed.
2003-02-05 23:14:47 +00:00
Mark Kettenis 5b729aa5d6 * configure.tgt (*-*-solaris*): Set gdb_osabi to
GDB_OSABI_SOLARIS.
2003-02-05 23:04:16 +00:00
Michael Chastain 8cc15142e8 2003-02-05 Michael Chastain <mec@shout.net>
* PROBLEMS (i[3456]86-*-linux*): Warn about binutils
	2.12.1 and earlier versions.
2003-02-05 17:45:14 +00:00
Andrew Cagney 5aa5d4b987 2003-02-05 Andrew Cagney <ac131313@redhat.com>
Remove orphaned hosts, targets and files.
	* config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
	* config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
	* config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
	* config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
	* config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
	* config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
	* config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
	* config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
	* config/sparc/tm-sp64sim.h: Delete.
	* configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
	hosts.
	* configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
	mips*-dec-mach3* targets.
2003-02-05 15:31:56 +00:00
Michael Chastain b68767c12c 2003-02-04 Michael Chastain <mec@shout.net>
* NEWS: Fix typo: sepcifying -> specifying.
2003-02-05 07:58:40 +00:00
Michael Chastain 29518e1ebf 2003-02-04 Michael Chastain <mec@shout.net>
* gdb.c++/anon-union.exp: Do not call gdb_suppress_entire_file.
	Call perror and then continue.
2003-02-05 07:25:00 +00:00
Michael Chastain 5ae7ca1d5b 2003-02-04 Michael Chastain <mec@shout.net>
* dwarfread.c: Add documentation on the state of dwarf-1,
	looking towards obsoletion.
2003-02-05 06:48:55 +00:00
Michael Chastain d08a428064 2003-02-03 Michael Chastain <mec@shout.net>
* config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
	gdb/testsuite/gdb.c++/pr-1023.exp.
2003-02-05 06:42:08 +00:00
Michael Chastain 5af1d5f3ff 2003-02-03 Michael Chastain <mec@shout.net>
* gdb.c++/pr-1023.cc: New file.
	* gdb.c++/pr-1023.exp: New file.
2003-02-05 06:38:33 +00:00
Jim Blandy 6b5497864a * gdb.c++/local.exp: Don't expect Local to be in scope in main;
it's local to foobar.  Check for it there, and check that it's not
present in main.
* gdb.c++/local.cc (marker2): New function.
(foobar): Call marker1.
(main): Call marker2 instead of marker1.
2003-02-05 05:48:46 +00:00
gdbadmin 5d83691bdf *** empty log message *** 2003-02-05 00:00:02 +00:00
Andrew Cagney e9be73e47f 2003-02-04 Andrew Cagney <ac131313@redhat.com>
* values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
	* TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
	* utils.c (init_page_info): Delete reference to MPW in comments.
	* main.c (captured_main): Delete #ifdef MPW.

Index: doc/ChangeLog
2003-02-04  Andrew Cagney  <ac131313@redhat.com>

	* gdbint.texinfo (Target Architecture Definition): Delete
	descrption of IS_TRAPPED_INTERNALVAR.
2003-02-04 23:59:26 +00:00
Andrew Cagney 05d57f6f5f 2003-02-04 Andrew Cagney <ac131313@redhat.com>
* NEWS: Note that the m32r-*-elf* is obsolete.
	* monitor.c (monitor_expect): Obsolete reference to m32r.
	* configure.tgt: Mark m32r-*-elf* as obsolete.
	* MAINTAINERS: Mark m32k as obsolete.
	* m32r-rom.c: Obsolete file.
	* config/m32r/m32r.mt: Obsolete file.
	* config/m32r/tm-m32r.h: Obsolete file.
	* m32r-stub.c: Obsolete file.
	* m32r-tdep.c: Obsolete file.
2003-02-04 23:26:43 +00:00
Andrew Cagney 8b0e56911e 2003-02-04 Andrew Cagney <ac131313@redhat.com>
* NEWS: Mention that the z8k-zilog-none is obsolete.
	* MAINTAINERS: Mark z8k as obsolete.
	* configure.tgt: Obsolete the z8k-*-coff* target.
	* config/z8k/z8k.mt: Obsolete file.
	* config/z8k/tm-z8k.h: Obsolete file.
	* z8k-tdep.c: Obsolete file.
2003-02-04 23:22:25 +00:00
Andrew Cagney 21c294e62a 2003-02-04 Andrew Cagney <ac131313@redhat.com>
From Keith Seitz <keiths@redhat.com>:
	* gdb.texinfo (Interpreters): New chapter.  Refer the command-line
	option "-i"/"--interpreter" to this chapter.  Include index
	entries.
2003-02-04 22:52:51 +00:00
Andrew Cagney 67f1660612 2003-02-04 Andrew Cagney <ac131313@redhat.com>
* NEWS: Mention that the mn10200-elf is obsolete.
	* configure.tgt: Obsolete mn10200-*-* target.
	* breakpoint.c (update_breakpoints_after_exec): Update comment to
	mention that the mn10200 is obsolete.
	* breakpoint.h: Ditto.
	* MAINTAINERS: Mark the mn10200-elf as obsolete.
	* config/mn10200/mn10200.mt: Obsolete file.
	* config/mn10200/tm-mn10200.h: Obsolete file.
	* mn10200-tdep.c: Obsolete file.

Index: testsuite/ChangeLog
2003-02-04  Andrew Cagney  <ac131313@redhat.com>

	* gdb.disasm/mn10200.exp: Obsolete file.
	* gdb.trace/Makefile.in (clean mostlyclean): Remove mn10200.
	* gdb.disasm/Makefile.in (clean mostlyclean): Remove mn10200.
	* gdb.base/watchpoint.exp: Mark the mn10200 xfails as obsolete.
2003-02-04 22:49:19 +00:00
Andrew Cagney fd2299bd8d 2003-02-04 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Mark h8500 as obsolete.
	* configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
	* findvar.c (value_from_register): Ditto.
	* h8500-tdep.c: Mark file as obsolete.
	* config/h8500/h8500.mt: Ditto.
	* config/h8500/tm-h8500.h: Ditto.
	* NEWS: Mention that h8500 is obsolete.
2003-02-04 22:04:08 +00:00
David Carlton eb9a305d40 2003-02-04 David Carlton <carlton@math.stanford.edu>
* objfiles.c (allocate_objfile): Always set name.  Add comment at
	start of function.
	* jv-lang.c (get_dynamics_objfile): Add comment.
2003-02-04 21:55:26 +00:00
David Carlton 406fc7fbeb 2003-02-04 David Carlton <carlton@math.stanford.edu>
* symtab.h (SYMBOL_LINKAGE_NAME): Delete.
	* printcmd.c (build_address_symbolic): Replace uses of
	SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
	SYMBOL_NAME, and asm_demangle.
	Update copyright.
2003-02-04 21:37:03 +00:00
David Carlton 93d9162961 2003-02-04 David Carlton <carlton@math.stanford.edu>
* linespec.c (decode_compound): Extract code into
	lookup_prefix_sym.
	(lookup_prefix_sym): New function.
2003-02-04 21:24:21 +00:00
David Carlton 1c5cb38e90 2003-02-04 David Carlton <carlton@math.stanford.edu>
* gdb.texinfo (C@t{++}): Recommend DWARF 2, then stabs+.
	(Variables): Recommend stabs+ and DWARF 2.
	(C plus plus expressions): Correct info about
	compiler versions, debug formats.
	(Contributors): Change 'DWARF2' to 'DWARF 2'.
	PR symtab/874.

2003-02-04  David Carlton  <carlton@math.stanford.edu>

	* gdb.c++/overload.exp: Test intToChar(1).
	* gdb.c++/overload.cc (intToChar): New.
	(main): Call intToChar.
2003-02-04 21:19:27 +00:00
David Carlton 0179ffacc7 2003-02-04 David Carlton <carlton@math.stanford.edu>
* gdb.texinfo (C@t{++}): Recommend DWARF 2, then stabs+.
	(Variables): Recommend stabs+ and DWARF 2.
	(C plus plus expressions): Correct info about
	compiler versions, debug formats.
	(Contributors): Change 'DWARF2' to 'DWARF 2'.
	PR symtab/874.
2003-02-04 21:14:46 +00:00
Jim Blandy 0cf824c9e4 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
section, let dwarf_macinfo_section point to it, not
dwarf_loc_section.
2003-02-04 20:17:02 +00:00
Andrew Cagney eca48b00fd 2003-02-04 Andrew Cagney <ac131313@redhat.com>
From Keith Seitz <keiths@redhat.com>:
	* gdbmi.texinfo (GDB/MI Miscellaneous Commands): Document the
	interpreter-exec command.
2003-02-04 18:41:29 +00:00
Daniel Jacobowitz a2d356b075 Pointed out by Anton Blanchard <anton@samba.org>.
* ppc-linux-tdep.c (insn_is_sigreturn): New function.
	(ppc_linux_at_sigtramp_return_path): Use it.
2003-02-04 18:21:29 +00:00
Daniel Jacobowitz 2de7ced707 * defs.h (streq): Add prototype.
* utils.c (streq): New function.

	* dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
	SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
	* mdebugread.c (new_symbol): Likewise.
	* stabsread.c (define_symbol): Likewise.
	* coffread.c (process_coff_symbol): Likewise.
	* dwarfread.c (new_symbol): Likewise.

	* minsyms.c (prim_record_minimal_symbol_and_info): Use
	SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
	here.
	(install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
	SYMBOL_INIT_DEMANGLED_NAME.
	* objfiles.c: Include "hashtab.h".
	(allocate_objfile): Call htab_set_functions_ex for the
	demangled_names_hash.
	(free_objfile): Call htab_delete for the demangled_names_hash.
	* objfiles.h (struct htab): Add declaration.
	(struct objfile): Add demangled_names_hash.
	* symfile.c: Include "hashtab.h".
	(reread_symbols): Call htab_delete for the demangled_names_hash.
	(add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
	SYMBOL_NAME in the bcache.
	* symtab.c: Include "hashtab.h".  Update comments.
	(create_demangled_names_hash, symbol_set_names): New functions.
	(symbol_find_demangled_name): New function, broken out from
	symbol_init_demangled_names.
	(symbol_init_demangled_names): Use it.
	* symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
	(SYMBOL_SET_NAMES): New macro.
	(symbol_set_names): Add prototype.
2003-02-04 18:07:01 +00:00
David Carlton d1fe6965e5 2003-02-03 David Carlton <carlton@math.stanford.edu>
* gdb.c++/ovldbreak.exp (continue_to_bp_overloaded): Add
	'might_kfail' arg.
	KFAIL some of the continue_to_bp_overloaded calls, according to
	PR c++/1025.
2003-02-04 01:09:03 +00:00
gdbadmin febddc0b33 *** empty log message *** 2003-02-04 00:00:01 +00:00
Jim Blandy 158314526c Use a single, consistent representation for an empty minimal
symbol table in an objfile.
* objfiles.c (terminate_minimal_symbol_table): New function.
(allocate_objfile): Call it.
* objfiles.h (terminate_minimal_symbol_table): New declaration.
(ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
non-NULL.
* minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
objfile has minimal symbols, compare minimal_symbol_count to zero,
instead of comparing msymbols with NULL.
* objfiles.c (have_minimal_symbols): Same.
* solib-sunos.c (solib_add_common_symbols): Call
terminate_minimal_symbol_table.
* symfile.c (reread_symbols): Same.
2003-02-03 20:39:41 +00:00
Kevin Buettner ffc65945ba * s390-tdep.c (s390_address_class_type_flags)
(s390_address_class_type_flags_to_name)
	(s390_address_class_name_to_type_flags): New functions.
	(s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
	ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
2003-02-03 20:35:44 +00:00
Michael Snyder f211c6d462 2003-02-03 Michael Snyder <msnyder@redhat.com>
* arm-tdep.c: Fix spell-o in comment.
2003-02-03 20:03:00 +00:00
Michael Chastain 9ba61c5d3a 2003-02-01 Michael Chastain <mec@shout.net>
* gdb.base/advance.c (marker1): New marker function.
	* gdb.base/advance.exp: When the 'advance' command lands on the
	return breakpoint, it can legitimately stop on either the
	current line or the next line.  Accommodate both outcomes.
	* gdb.base/until.exp: Likewise.
2003-02-03 16:07:31 +00:00
Nick Clifton 2d188dd3bb Add support for SH2E processor. 2003-02-03 14:38:05 +00:00
Michal Ludvig 659b038978 2003-02-03 Michal Ludvig <mludvig@suse.cz>
* dwarf2cfi.c (pointer_encoding): Added new parameter.
	* dwarf2cfi.c, dwarf2read.c: Changed all warnings and
	error messages to contain BFD filename.
2003-02-03 14:33:20 +00:00
Elena Zannoni 997b089a4d Forgot to mention PR numbers. 2003-02-03 01:22:46 +00:00
Elena Zannoni 3b31d625f3 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
Fix PR gdb/742 gdb/743
	* disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
	(do_mixed_source_and_assembly): Use
	make_cleanup_ui_out_tuple_begin_end and
	make_cleanup_ui_out_tuple_begin_end.
	(do_mixed_source_and_assembly): Ditto.
	* thread.c (do_captured_list_thread_ids): Ditto.
	* ui-out.h (ui_out_table_begin, ui_out_list_begin,
	ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
	ui_out_tuple_end): Delete prototypes.
	* ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
	ui_out_list_end, ui_out_tuple_end): Delete.

	From Kevin Buettner  <kevinb@redhat.com>:
	* ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
        * ui-out.c (make_cleanup_ui_out_table_begin_end)
        (do_cleanup_table_end):  New functions.
        * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
        Use cleanups to invoke_ui_out_tuple_end().
        (breakpoint_1): Use cleanup to invoke ui_out_table_end().
	* cli/cli-setshow.c (cmd_show_list): Use
	make_cleanup_ui_out_tuple_begin_end.
2003-02-03 01:18:37 +00:00
gdbadmin 70a296bc46 *** empty log message *** 2003-02-03 00:00:32 +00:00
Andrew Cagney 5b181d6277 2003-02-02 Andrew Cagney <ac131313@redhat.com>
* frame.c (frame_unwind_register): New function.
	(frame_unwind_unsigned_register): Use.
	(frame_unwind_signed_register): Use.
	(frame_read_register): New function.
	* frame.h (frame_unwind_register): Declare.
	(frame_read_register): Declare.

	* d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
	and frame_unwind_register instead of read_memory, write_register and
	deprecated_write_register_bytes.
2003-02-02 20:31:43 +00:00
Andrew Cagney 5f601589e1 2003-02-02 Andrew Cagney <ac131313@redhat.com>
* frame.h: Note that namelen can be negative.
	* frame.c (frame_map_name_to_regnum): When LEN is negative, use
	NAME's length.

	* NEWS: Mention that the d10v's `regs' command is deprecated.
	* d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
	(d10v_print_registers_info): New function.
	(show_regs): Call d10v_print_registers_info.
	(_initialize_d10v_tdep): Mark "show regs" command as deprecated.
2003-02-02 18:53:22 +00:00
Mark Kettenis 6a3fe0a431 * stack.c (print_frame_info): Restore call to annotate_frame_begin
lost in the previous patch.
2003-02-02 18:30:56 +00:00
Andrew Cagney e7494ffb71 2003-02-02 Andrew Cagney <ac131313@redhat.com>
From 2002-11-10 Jason Molenda (jason-cl@molenda.com):
        * mi-cmd-var.c (mi_cmd_var_list_children): CHILDREN field is
        now a list; still a tuple when in mi1.
        * gdbmi.texinfo: Update var-list-children example.

2003-02-02  Andrew Cagney  <ac131313@redhat.com>

	2002-11-10 Jason Molenda (jason-cl@molenda.com):
        * gdb.mi/mi-var-child.exp: -var-list-children's CHILDREN field is
        now a list, not a tuple.
        * gdb.mi/mi-var-display.exp: Ditto.
        * gdb.mi/gdb792.exp: Ditto.
2003-02-02 06:24:04 +00:00
Andrew Cagney 075559bc19 2003-02-01 Andrew Cagney <ac131313@redhat.com>
From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
        * stack.c (print_frame_info_base): Output complete FRAME tuple
        for synthesized frames.

2003-02-01  Andrew Cagney  <ac131313@redhat.com>

	From 2002-11-09 Jason Molenda (jason-cl@molenda.com):
        * gdb.mi/mi-syn-frame.exp: New tests for synthetic frames in
        stack backtraces.
        * gdb.mi/mi-syn-frame.c: Part of same.
2003-02-02 05:51:09 +00:00
Andrew Cagney 6789195b42 2003-02-02 Andrew Cagney <ac131313@redhat.com>
* mips-nat.c (zerobuf): Delete.
	(fetch_inferior_registers): Alloc local zerobuf.
	(fetch_core_registers): Alloc local zerobuf.
	* d10v-tdep.c (show_regs): Don't allocate a dynamic array using
	MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
	* thread-db.c (thread_db_store_registers): Ditto.
	* sh-tdep.c (sh_do_register): Ditto.
	* rom68k-rom.c (rom68k_supply_one_register): Ditto.
	* remote-sim.c (gdbsim_store_register): Ditto.
	* remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
	* remote-e7000.c (fetch_regs_from_dump): Ditto.
	* monitor.c (monitor_supply_register): Ditto.
	* mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
	* mips-nat.c (fetch_inferior_registers): Ditto.
	* m68klinux-nat.c (fetch_register): Ditto.
	* lynx-nat.c (fetch_inferior_registers): Ditto.
	(fetch_inferior_registers): Ditto.
	* irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
	* hpux-thread.c (hpux_thread_fetch_registers): Ditto.
	(hpux_thread_store_registers): Ditto.
	* hppah-nat.c (fetch_register): Ditto.
	* hppab-nat.c (fetch_register): Ditto.
	* hppa-tdep.c (pa_register_look_aside): Ditto.
	(pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
	* dve3900-rom.c (fetch_bitmapped_register): Ditto.
2003-02-02 05:46:14 +00:00
Andrew Cagney e669114a39 2003-02-01 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh: Explictly specify all method levels.  When a
	variable with an empty level, provide a non-multi-arch default.
	(BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
	* gdbarch.h: Re-generate.
	* stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
	* config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
2003-02-02 03:16:44 +00:00
gdbadmin 15490677da *** empty log message *** 2003-02-02 00:00:32 +00:00
Andrew Cagney 9a043c1d0c 2003-02-01 Andrew Cagney <ac131313@redhat.com>
* defs.h (host_pointer_to_address): Delete declaration.
	(address_to_host_pointer): Delete declaration.
	* utils.c (host_pointer_to_address): Delete function.
	(address_to_host_pointer): Delete function.
	* procfs.c (procfs_address_to_host_pointer): New function.
	* procfs.c (proc_set_watchpoint): Use.
	(procfs_can_use_hw_breakpoint): Update comments.
	* somsolib.c (hpux_address_to_host_pointer_hack): New function.
	(som_solib_add): Use.
	* hppa-tdep.c (hppa_pointer_to_address_hack): New function.
	* hppa-tdep.c (unwind_command): Use.
2003-02-01 23:34:05 +00:00
Andrew Cagney 94bbfd30fe 2003-02-01 Andrew Cagney <ac131313@redhat.com>
* gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
	strlen d_name.
2003-02-01 20:56:57 +00:00
Andrew Cagney 7ca9f392fc 2003-02-01 Andrew Cagney <ac131313@redhat.com>
* main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
	ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
	(print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
	* stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
	(define_symbol): Update.
	* symfile.c (generic_load): Remove references to nindy.
	* symtab.c: Remove references to nindy.

Index: doc/ChangeLog
2003-02-01  Andrew Cagney  <ac131313@redhat.com>

	* gdbint.texinfo (Target Architecture Definition): Delete
	description of ADDITIONAL_OPTIONS, ADDITIONAL_OPTION_CASES,
	ADDITIONAL_OPTION_HANDLER, and ADDITIONAL_OPTION_HELP, and
	BEFORE_MAIN_LOOP_HOOK, and DBX_PARM_SYMBOL_CLASS along with
	references to nindy and i960.
	* gdb.texinfo (i960): Delete all references to i960 and nindy.
2003-02-01 20:51:06 +00:00
Mark Kettenis 2bd4c7b179 * gdb.mi/gdb669.exp, gdb.mi/mi-pthreads.exp,
gdb.mi/mi1-pthreads.exp: Return instead of calling
gdb_suppress_entire_file.
2003-02-01 20:47:16 +00:00
Andrew Cagney 31a85ea289 2003-02-01 Andrew Cagney <ac131313@redhat.com>
* infcmd.c (print_float_info): Delete code conditional on
	FLOAT_INFO.
	* config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
	* config/m68k/nm-apollo68b.h: Ditto.
	* config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
	* config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
	* config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.

Index: doc/ChangeLog
2003-02-01  Andrew Cagney  <ac131313@redhat.com>

	* gdbint.texinfo (Target Architecture Definition): Delete
	FLOAT_INFO.
2003-02-01 17:28:41 +00:00
Mark Salter eabd89923e *** empty log message *** 2003-02-01 14:29:29 +00:00
Mark Salter 5ac125ce75 Clear frame pointer, not sp. 2003-02-01 14:29:12 +00:00
Mark Kettenis 6015b6a047 * config/i386/tm-i386os9k.h: Removed. 2003-02-01 12:35:49 +00:00
Mark Kettenis f7a30bdf92 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
they're identical to i[3456]86-*-sysv* now.
* config/i386/i386v32.mh: Removed.
* config/i386/xm-i386v32.h: Removed.
* config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
2003-02-01 12:28:00 +00:00
Mark Kettenis 28d5211104 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed. 2003-02-01 12:08:54 +00:00