Commit Graph

13553 Commits

Author SHA1 Message Date
Daniel Jacobowitz e7ba9c6584 * gdb.texinfo (Maintenance Commands): Add "maint set profile"
and "maint show profile".
2003-01-22 23:50:13 +00:00
gdbadmin 811daac402 *** empty log message *** 2003-01-22 00:00:01 +00:00
Martin Hunt df21e46583 2003-01-21 Martin M. Hunt <hunt@redhat.com>
* Makefile.in (install-gdbtk): Install PNG images too.
2003-01-21 21:39:31 +00:00
Andrew Cagney 73c1f219a3 2003-01-21 Andrew Cagney <ac131313@redhat.com>
* exec.c (text_start): Delete global variable.
	(exec_file_attach): Make text_start local to the function.
	* inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
	* valops.c (hand_function_call): Delete code that handles
	BEFORE_TEXT_END and AFTER_TEXT_END.
	* gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
	of CALL_DUMMY_LOCATION.
	* gdbarch.c: Regenerate.
	* inferior.h (deprecated_pc_in_call_dummy_before_text_end)
	(deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
	* blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
	(deprecated_pc_in_call_dummy_after_text_end): Delete functions.
	(text_end): Delete extern declaration.
2003-01-21 19:43:48 +00:00
Andrew Cagney eb4f72c5f9 2003-01-21 Andrew Cagney <ac131313@redhat.com>
* frame.h (FRAME_OBSTACK_ZALLOC): Define.
	* blockframe.c (backtrace_below_main): Move to "frame.c".
	(frame_chain_valid): Delete check for backtrace_below_main.
	(_initialize_blockframe): Delete initialization, move ``set
	backtrace-below-main'' command to "frame.c".
	(do_flush_frames_sfunc): Delete function.
	* frame.c: Include "command.h" and "gdbcmd.h".
	(frame_type_from_pc): New function.
	(create_new_frame): Use frame_type_from_pc.
	(legacy_get_prev_frame): New function.
	(get_prev_frame): Rewrite.  When an old style frame, call
	legacy_get_prev_frame.  Otherwize, unwind the PC first.
	(_initialize_frame): Add ``set backtrace-below-main'' command.
	* Makefile.in (frame.o): Update dependencies.
2003-01-21 19:32:42 +00:00
gdbadmin 6637feefbe *** empty log message *** 2003-01-21 00:00:32 +00:00
Elena Zannoni f2dd3617b5 2003-01-20 Elena Zannoni <ezannoni@redhat.com>
* gdb.arch/altivec-abi.exp: Set variable 'srcfile' differently, to
	allow for different test tree configurations.  Update some
	tescases accordingly.
	* gdb.arch/altivec-regs.exp: Ditto.
	* gdb.asm/asm-source.exp: Ditto.
	* gdb.base/advance.exp: Ditto.
	* gdb.base/display.exp: Ditto.
	* gdb.base/long_long.exp: Ditto.
	* gdb.base/mips_pro.exp: Ditto.
	* gdb.base/overlays.exp: Ditto.
	* gdb.base/relocate.exp: Ditto.
	* gdb.base/setshow.exp: Ditto.
	* gdb.base/step-line.exp: Ditto.
	* gdb.base/step-test.exp: Ditto.
	* gdb.base/until.exp: Ditto.
	* gdb.c++/virtfunc.exp: Get rid of variable 'src'.
2003-01-20 15:40:07 +00:00
Andrew Cagney 778ce8cc71 2003-01-19 Andrew Cagney <ac131313@redhat.com>
* config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
	DEPRECATED_REGISTERS_INFO.
2003-01-20 01:01:47 +00:00
Andrew Cagney 01c193c851 2003-01-19 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Replace `Blanket Write Privs' with `Global
	Maintainers'.  Update `Various Maintainers'.
2003-01-20 00:46:42 +00:00
gdbadmin 9c3d9c71b7 *** empty log message *** 2003-01-20 00:00:31 +00:00
Andrew Cagney dedc2a2b65 2003-01-19 Andrew Cagney <ac131313@redhat.com>
* frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
	* gdbarch.sh (POP_FRAME): Change to function with predicate.
	Suppress actual parameters when `-'.
	* gdbarch.h, gdbarch.c: Regenerate.
2003-01-19 23:27:28 +00:00
Andrew Cagney b7261c70f1 2003-01-19 Andrew Cagney <ac131313@redhat.com>
* d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
	code handling dummy frames.
2003-01-19 22:24:50 +00:00
Andrew Cagney dbe9fe588f 2003-01-19 Andrew Cagney <ac131313@redhat.com>
* frame-unwind.h (frame_unwind_pop_ftype): Declare.
	(struct frame_unwind): Add field pop.
	* frame.h (frame_pop): Declare.
	* frame.c (frame_saved_regs_pop): New function.
	(trad_frame_unwinder): Add frame_saved_regs_pop.
	(frame_pop): New function.
	* dummy-frame.c (dummy_frame_pop): New function.
	(discard_innermost_dummy): New function.
	(generic_pop_dummy_frame): Use discard_innermost_dummy.
	(dummy_frame_unwind): Add dummy_frame_pop.
	* infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
	* valops.c (hand_function_call): Ditto.
	* stack.c (return_command): Ditto.
2003-01-19 17:39:16 +00:00
gdbadmin b4fc4eff63 *** empty log message *** 2003-01-19 17:00:32 +00:00
Andrew Cagney 570b8f7c95 2003-01-18 Andrew Cagney <ac131313@redhat.com>
* cris-tdep.c: Fix function declaration indentation.
	* dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
	* mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
	* rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
	* symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
	* xcoffread.c, config/pa/tm-hppa.h: Ditto.
	* config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
2003-01-19 04:06:47 +00:00
Michael Chastain eaec4d85f1 2003-01-16 Michael Chastain <mec@shout.net>
* README (Unpacking and Installation -- quick overview):
	Warn against ".../gdb-5.3/gdb/configure".
2003-01-18 17:43:14 +00:00
Michael Chastain 94e91d6d1c 2003-01-16 Michael Chastain <mec@shout.net>
* gdb.texinfo (Installing GDB): Warn against
	".../gdb-VERSION/gdb/configure".
	(Separate Objdir): Likewise.
2003-01-18 17:41:34 +00:00
Andrew Cagney 494cca16bd 2003-01-18 Andrew Cagney <ac131313@redhat.com>
* dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
	(dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
	(struct frame_unwind): Declare opaque.
	(dummy_frame_p): Declare function.
	* dummy-frame.c (dummy_frame_id_unwind): Make static.
	(dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
	* dummy-frame.c: Include "frame-unwind.h".
	(dummy_frame_p): New function.
	(dummy_frame_unwind): New variable.
	* frame.c: Include "frame-unwind.h".
	(frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
	to use the new unwind field.
	(set_unwind_by_pc): Delete function.
	(create_new_frame, get_prev_frame): Set unwind field using
	frame_unwind_find_by_pc.
	(trad_frame_unwind, trad_frame_unwinder): New variables.
	* frame.h (trad_frame_unwind): Declare variable.
	(frame_id_unwind_ftype): Delete declaration.
	(frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
	(struct frame_unwind): Declare opaque.
	(struct frame_info): Replace the fields id_unwind, pc_unwind and
	register_unwind with a single unwind pointer.
	* frame-unwind.h, frame-unwind.c: New files.
	* Makefile.in (SFILES): Add frame-unwind.c.
	(frame_unwind_h): Define.
	(COMMON_OBS): Add frame-unwind.o.
	(frame-unwind.o): Specify dependencies.
	(frame.o, dummy-frame.o): Update dependencies.
2003-01-18 17:25:23 +00:00
Andrew Cagney 4efb68b1ad 2003-01-18 Andrew Cagney <ac131313@redhat.com>
* ada-valprint.c: Eliminate PTR.
	* breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
	* defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
	* exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
	* objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
	* remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
	* solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
	* symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
2003-01-18 15:55:53 +00:00
gdbadmin 88e90c405f *** empty log message *** 2003-01-18 00:00:02 +00:00
David Carlton c71cdefd6f 2003-01-17 David Carlton <carlton@math.stanford.edu>
* gdb.c++/demangle.exp (test_lucid_style_demangling): KFAIL test
	corresponding to PR c++/945.
	Update copyright.
2003-01-17 20:24:51 +00:00
David Carlton fdba05d75f 2003-01-17 David Carlton <carlton@math.stanford.edu>
* gdb.c++/inherit.exp (test_print_mi_members): KFAIL tests
	corresponding to PR c++/68.

(and fix date of previous ChangeLog entry; oops.)
2003-01-17 19:24:16 +00:00
David Carlton d2b29e01d7 2003-01-16 David Carlton <carlton@math.stanford.edu>
* gdb.c++/cplusfuncs.exp (print_addr_2_kfail): New procedure.
	(test_paddr_hairy_functions): Call print_addr_2_kfail for
	hairyfunc5 through hairyfunc7.  KFAIL for PR c++/19.
2003-01-17 19:22:27 +00:00
Andrew Cagney 762f08a397 2003-01-17 Andrew Cagney <ac131313@redhat.com>
* main.c (captured_main): Don't use PTR.
	* cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
	* gdbtypes.c (lookup_primitive_typename): Ditto.
	(lookup_struct_elt_type): Ditto.
	* f-valprint.c (info_common_command): Ditto.
	(list_all_visible_commons): Ditto.
	* jv-typeprint.c (java_type_print_base): Ditto.
2003-01-17 19:12:19 +00:00
Andrew Cagney a84d24ee80 2003-01-17 Andrew Cagney <ac131313@redhat.com>
* config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
	mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
	Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
	i386-interix-nat.c and i386-interix-tdep.c.  Rename
	m68klinux-nat.c and m68klinux-tdep.c.  Rename
	config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
	bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
	gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
	* main.c (captured_main): Use xfree, not free.
2003-01-17 16:56:52 +00:00
gdbadmin bb867e69e8 *** empty log message *** 2003-01-17 00:00:32 +00:00
Andrew Cagney c170fb600a 2003-01-16 Andrew Cagney <ac131313@redhat.com>
* frame.h (frame_id_unwind_ftype): Change type so that the frame's
	ID back using a parameter.
	* frame.c (frame_id_unwind): Update call.
	(frame_saved_regs_id_unwind): Update.
	* dummy-frame.c (dummy_frame_id_unwind): Update function.
	* dummy-frame.h (struct frame_id): Add opaque declaration.
	(dummy_frame_id_unwind): Update declaration.
2003-01-16 16:54:57 +00:00
Elena Zannoni 0fbc361cc7 2003-01-15 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/break.exp: Fix change of default location, because of
	removal of until tests.
	* gdb.base/help.exp: Update test for new 'until' help message.
	Add test for help on 'advance'.
2003-01-16 01:56:16 +00:00
Elena Zannoni c362c33a0d 2003-01-15 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/args.exp: Fix foobar with GDBFLAGS global.
2003-01-16 01:13:18 +00:00
gdbadmin 388ef33ffd *** empty log message *** 2003-01-16 00:00:04 +00:00
Stephen P. Smith 40622be892 Added a period under at the end of the comment and fixed the date. 2003-01-15 21:06:33 +00:00
Andrew Cagney 867f3898e3 2003-01-15 Andrew Cagney <ac131313@redhat.com>
* sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.

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

	* gdbint.texinfo (Target Architecture Definition): Delete
	definition of PRINT_REGISTER_HOOK.
2003-01-15 19:35:28 +00:00
Elena Zannoni f153cc9257 2003-01-15 Elena Zannoni <ezannoni@redhat.com>
(OpenRISC 1000): Fix formatting of command names.
2003-01-15 17:57:38 +00:00
Mark Kettenis dabf8a3592 * gdb.base/default.exp: Adapt "info float" test for recent changes
to that command.  Add test for "info vector".
* gdb.base/float.exp: New file.  Add test for "info float" that
resembles the old test in gdb.base/default.exp.
2003-01-15 17:46:20 +00:00
David Carlton a1769aca31 2003-01-15 David Carlton <carlton@math.stanford.edu>
* gdb.base/selftest.exp (do_steps_and_nexts): Allow gdb_sysroot.
2003-01-15 17:32:41 +00:00
Stephen P. Smith de3a8c23f0 Updated the email address for Stephen P. Smith 2003-01-15 15:54:04 +00:00
Elena Zannoni c60eb6f167 2003-01-15 Elena Zannoni <ezannoni@redhat.com>
* gdb.texinfo (Continuing and Stepping): Add new command
	'advance'. Clarify behavior of 'until'.
2003-01-15 14:31:59 +00:00
Elena Zannoni 82025e1307 2003-01-15 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/break.exp: Move the tests of until command from here...
	* gdb.base/until.exp: ... to here. New file. Add other tests.
	* gdb.base/advance.c: New file.
	* gdb.base/advance.exp: New file.
2003-01-15 14:25:11 +00:00
Elena Zannoni ae66c1fc9b 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
* breakpoint.c (until_break_command): Add new argument.  Use it to
	decide whether to stop only at the current frame or not.
	* breakpoint.h (until_break_command): Update prototype.
 	* infcmd.c (until_command): Add new argument to until_break_command
	call.
	(advance_command): New function.
	(_initialize_infcmd): Update help string for 'until' command.
	Add new 'advance' command.
2003-01-15 00:48:38 +00:00
gdbadmin 4abbaa29de *** empty log message *** 2003-01-15 00:00:02 +00:00
Elena Zannoni 8f9ab80108 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/args.c: New file.
        * gdb.base/args.exp: New file.
2003-01-14 21:03:44 +00:00
David Carlton a04257e6ab 2003-01-14 David Carlton <carlton@math.stanford.edu>
* linespec.c (decode_line_1): Normalize comments.
	(set_flags): Ditto.
	(locate_first_half): Ditto.
	(decode_compound): Ditto.
	(symtab_from_filename): Ditto.
	(decode_all_digits): Ditto.
	(decode_dollar): Ditto.
	(find_methods): Ditto.
	(find_toplevel_char): Ditto.
2003-01-14 20:48:50 +00:00
Daniel Jacobowitz a0d9b83140 Update copyright date. 2003-01-14 18:42:38 +00:00
Daniel Jacobowitz 9ae66589a7 * gdb.c++/virtfunc.exp: Remove fixed XFAIL. 2003-01-14 18:32:14 +00:00
Daniel Jacobowitz 8d77e5c3a8 * gdb.threads/killed.exp: Use KFAIL for gdb/568. 2003-01-14 18:13:11 +00:00
Daniel Jacobowitz 12d2f0a1dd * gdb.base/constvars.exp: Remove two extra XFAILs. Update copyright
dates.
2003-01-14 17:36:49 +00:00
Daniel Jacobowitz 6ca37014df * gdb.c++/printmethod.exp (print virtual method): Accept "(void)". 2003-01-14 04:40:48 +00:00
Daniel Jacobowitz b00234725e * gdb.base/printcmds.exp: Enable setup_kfail for gdb/538
(ptype &*"foo").
	* gdb.c++/local.exp: Enable setup_kfail for gdb/482.
2003-01-14 04:34:46 +00:00
Andrew Cagney 1bac305b72 2003-01-13 Andrew Cagney <ac131313@redhat.com>
* ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
	* demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
	* elfread.c, eval.c, expprint.c, expression.h: Update copyright.
	* f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
	* gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
	* language.c, language.h, m32r-tdep.c: Update copyright.
	* mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
	* somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
	* thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
	* values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
	* x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
	* cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.

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

	* mi-cmd-env.c: Update copyright.
2003-01-14 00:49:06 +00:00
Elena Zannoni 25caa7a88b 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
* stabsread.h (process_later, resolve_cfront_continuation):
	Obsolete.
	Update copyright years.
	* buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
	Update copyright year.
	* dbxread.c(struct cont_elem): Obsolete.
	(process_later, process_now): Obsolete functions.
	(read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
	Update copyright year.
	* gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
	(add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
	* mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
	(parse_partial_symbols): Obsolete cfront support.
	* stabsread.c
	(CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
	macros.
	(get_substring, get_cfront_method_physname, msg_unknown_complaint,
	read_cfront_baseclasses, read_cfront_member_functions,
	resolve_cfront_continuation,read_cfront_static_fields,
	copy_cfront_struct_fields): Obsolete functions.
	(define_symbol, read_one_struct_field): Obsolete cfront support.
	* xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
	Update Copyright year.
2003-01-14 00:15:05 +00:00
Elena Zannoni 7789c6f56a 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
* stack.c (print_frame_info, print_stack_frame_base_stub,
	print_stack_frame_base, show_and_print_stack_frame_stub,
	show_and_print_stack_frame, print_only_stack_frame_stub,
	print_only_stack_frame): Delete functions.
	(print_stack_frame_stub): Call print_frame_info instead of
	print_frame_info_base.
	(print_frame_info_base): Rename to print_frame_info.
	(backtrace_command_1): Call print_frame_info, instead of
	print_frame_info_base.
	(current_frame_command): Call print_stack_frame, instead of
	print_only_stack_frame.
	(frame_command): Call print_stack_frame, instead of
	show_and_print_stack_frame.
	(up_command): Ditto.
	(down_command): Ditto.
	* frame.h (print_only_stack_frame): Delete prototype.
	* infrun.c (normal_stop): Call print_stack_frame, instead of
	show_and_print_stack_frame.
	* thread.c (info_threads_command): Call print_stack_frame, instead
	of print_only_stack_frame.

2003-01-13  Elena Zannoni  <ezannoni@redhat.com>

	* mi-main.c (mi_cmd_exec_return): Use print_stack_frame instead of
	show_and_print_stack_frame.
2003-01-14 00:07:43 +00:00
gdbadmin 2a20538510 *** empty log message *** 2003-01-14 00:00:32 +00:00
Andrew Cagney e98d149fd1 Revert previous change. 2003-01-13 23:27:17 +00:00
Andrew Cagney d99ba3143f 2003-01-13 Andrew Cagney <ac131313@redhat.com>
* README (Graphical interface to GDB): Update URL.  Point at
	gdb/links/.
2003-01-13 23:25:55 +00:00
Daniel Jacobowitz d6abaea528 * gdb.mi/mi-console.exp: Remove extra "(known bug)".
* gdb.mi/mi1-console.exp: Likewise.
2003-01-13 23:24:43 +00:00
Andrew Cagney 3f5a30162c 2003-01-13 Andrew Cagney <ac131313@redhat.com>
* gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
	version match.
2003-01-13 23:07:07 +00:00
Daniel Jacobowitz dfd536a75e * gdb.mi/mi-console.exp: Add KFAIL for "Hello message (known bug)".
* gdb.mi/mi1-console.exp: Likewise.
2003-01-13 22:07:15 +00:00
Daniel Jacobowitz 083ae9356e * symtab.c (find_pc_sect_line): Don't consider end-of-function
lines.
2003-01-13 21:59:53 +00:00
Daniel Jacobowitz 5365276c13 * thread-db.c (attach_thread): Prototype.
(struct private_thread_info): Remove lwpid.  Add thread handle (th),
	thread information (ti), and valid flags (th_valid, ti_valid).
	(attach_thread): Move target_pid_to_str call to after the thread
	is added to GDB's list.  Initialize the cache.
	(thread_get_info_callback, thread_db_map_id2thr)
	(thread_db_get_info): New functions.
	(thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
	(thread_db_store_registers, thread_db_thread_alive)
	(thread_db_get_thread_local_address): Use them.
	(thread_db_pid_to_str): Likewise.  Return "Missing" instead
	of calling error() for threads in unknown state.

	(clear_lwpid_callback): New function.
	(thread_db_resume): Use it to clear the cache.
2003-01-13 21:48:32 +00:00
Daniel Jacobowitz 9fc30b6b12 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
(resume_callback): Remove dead code.
2003-01-13 21:47:35 +00:00
Andrew Cagney 8f87102502 2003-01-13 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
	predicate.
	* gdbarch.h, gdbarch.c: Regenerate.
	* stack.c (frame_info): Only initialize the saved registers when
	FRAME_INIT_SAVED_REGS_P.
	* frame.c (frame_saved_regs_register_unwind): Assert
	FRAME_INIT_SAVED_REGS_P.
	(deprecated_generic_get_saved_register): Ditto.
2003-01-13 21:10:30 +00:00
Daniel Jacobowitz 3f565f1eb5 * source.c (openp): Squelch warning about "filename". 2003-01-13 20:26:15 +00:00
Daniel Jacobowitz 32d34c7c4d Update copyright year. 2003-01-13 20:12:57 +00:00
Daniel Jacobowitz 072b102252 * source.c (openp): If the file does not exist don't necessarily
search the path.
2003-01-13 20:11:47 +00:00
Daniel Jacobowitz b5e5c35c01 Update copyright years. 2003-01-13 20:09:33 +00:00
Daniel Jacobowitz 973ccf8b55 Fix PR gdb/872.
* gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
	(integer_types_same_name_p): New function.
	(rank_one_type): Use it.
	* stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
2003-01-13 20:08:58 +00:00
Daniel Jacobowitz a1fb14a2c2 * gdb.c++/overload.exp: Remove some fixed XFAILs. 2003-01-13 20:08:16 +00:00
Daniel Jacobowitz 030292b70e * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
variables.
	(main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
	* configure.in: Add --with-sysroot.
	* configure: Regenerated.
	* main.c (gdb_sysroot): New variable.
	(captured_main): Initialize gdb_sysroot.
	* defs.h (gdb_sysroot): New extern declaration.
	* solib.c (_initialize_solib): Initialize solib_absolute_prefix.
2003-01-13 18:00:16 +00:00
Daniel Jacobowitz f5ebfba0ca * gdb.texinfo (Files): Document solib-absolute-prefix and
solib-search-path.
2003-01-13 17:59:49 +00:00
gdbadmin eccce3b646 *** empty log message *** 2003-01-13 00:00:32 +00:00
Michael Chastain afb5d334c7 2003-01-12 Michael Chastain <mec@shout.net>
* config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
2003-01-12 22:55:51 +00:00
Michael Chastain 751ceeb4f3 2003-01-12 Michael Chastain <mec@shout.net>
* top.c (print_gdb_version): Bump copyright year to 2003.
2003-01-12 21:38:16 +00:00
David Carlton 94cd26f8b6 2003-01-12 David Carlton <carlton@bactrian.org>
* linespec.c (symtab_from_filename): Rename variable 's' to
	'file_symtab'.
2003-01-12 20:55:32 +00:00
Andrew Cagney 1ce79225f2 2003-01-12 Andrew Cagney <ac131313@redhat.com>
* d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
	dummy frame.
	(d10v_frame_saved_pc, d10v_frame_chain): Ditto.
2003-01-12 19:25:39 +00:00
Andrew Cagney fa1fd571ea 2003-01-12 Andrew Cagney <ac131313@redhat.com>
* d10v-tdep.c: Include "gdb_assert.h".
	(d10v_store_return_value): Rewrite to match current interface.
	(d10v_extract_struct_value_address): Ditto.
	(d10v_extract_return_value): Ditto.
	(d10v_gdbarch_init): Set store_restore_value,
	extract_struct_value_address and extract_return_value.
2003-01-12 18:59:53 +00:00
Joel Brobecker 68b8d23eb2 * hpread.c (set_namestring): New procedure replacing the
SET_NAMESTRING macro.
        (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
        by calls to set_namestring.
2003-01-12 11:49:14 +00:00
gdbadmin a5ce0a93bb *** empty log message *** 2003-01-12 00:00:02 +00:00
Joel Brobecker 1fb309eaa6 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
a compilation warning.
       (hpread_process_one_debug_symbol): Likewise.
2003-01-11 02:13:23 +00:00
David Carlton 88d262ca1c 2003-01-10 David Carlton <carlton@math.stanford.edu>
* linespec.c (decode_line_1): Rename variable 's' to
	'file_symtab'.
	(decode_all_digits): Rename argument 's' to 'file_symtab'.
	(decode_dollar): Ditto.
	(decode_variable): Ditto.
	(symbol_found): Ditto.
2003-01-11 01:01:04 +00:00
gdbadmin df648bda9c *** empty log message *** 2003-01-11 00:00:01 +00:00
Michael Chastain 4ce8657e28 2003-01-09 Michael Chastain <mec@shout.net>
* gdbint.texinfo (Configuring @value{GDBN} for Release): Delete.
	(Create a Release): Add new instructions for new @file{src-release}.
	Document existing instructions for @file{Makefile.in} as
	being for @value{GDBN} 5.3.1 or earlier.
2003-01-10 22:51:57 +00:00
Michael Chastain 86669319d0 2003-01-09 Michael Chastain <mec@shout.net>
* config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
2003-01-10 20:55:04 +00:00
Corinna Vinschen 616a9dc4c0 * win32-nat.c (set_process_privilege): New function.
(child_attach): Call set_process_privilege() to enable the
	SE_DEBUG_NAME user privilege if available in process token.
2003-01-10 20:14:02 +00:00
Joel Brobecker 3269bcfa1c * hpread.c (hpread_process_one_debug_symbol): Fix a small
compilation error in the previous revision.
2003-01-10 15:39:10 +00:00
gdbadmin d0bf1cf1de *** empty log message *** 2003-01-10 00:00:33 +00:00
David Carlton 2b0ee4544f 2003-01-09 David Carlton <carlton@math.stanford.edu>
* linespec.c: Update copyright.
2003-01-09 21:34:15 +00:00
Andrew Cagney a80e2bcbae Roll ChangeLog / ChangeLog-2002. 2003-01-09 21:08:45 +00:00
Daniel Jacobowitz c4cf40b7ca * gdb.base/detach.exp: New test. 2003-01-09 19:18:04 +00:00
Daniel Jacobowitz b3ba1b4442 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
than inferior_ptid.
	(lin_lwp_wait): Ignore exit statuses for unknown LWPs.
2003-01-09 19:14:46 +00:00
Andrew Cagney 479ab5a00d 2003-01-09 Andrew Cagney <ac131313@redhat.com>
* frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
	Update comments.
	* frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
	(frame_saved_regs_zalloc): Update.
	(frame_saved_regs_register_unwind): Update.
	(create_new_frame): Update.
	(get_prev_frame): Update.
	(frame_extra_info_zalloc): Update.
	(deprecated_get_frame_saved_regs): Update.
	* dwarf2cfi.c (cfi_init_extra_frame_info): Update.
	* cris-tdep.c: Update comment.
2003-01-09 18:53:21 +00:00
Daniel Jacobowitz 696d5a5b84 * Makefile.in (ALL_SUBDIRS): New variable.
(subdirs, clean, distclean): Use it.
	* gdb.arch/Makefile.in: Clean up Makefile.  Remove rules for
	regenerating Makefile, since it is generated from the top level.
	* gdb.asm/Makefile.in: Likewise.
	* gdb.base/Makefile.in: Likewise.
	* gdb.c++/Makefile.in: Likewise.
	* gdb.disasm/Makefile.in: Likewise.
	* gdb.java/Makefile.in: Likewise.
	* gdb.mi/Makefile.in: Likewise.
	* gdb.threads/Makefile.in: Likewise.
	* gdb.trace/Makefile.in: Likewise.
2003-01-09 18:50:28 +00:00
Andrew Cagney 372613e32f 2003-01-09 Andrew Cagney <ac131313@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Mention
	frame_saved_regs_zalloc and frame_extra_info_zalloc as the way to
	allocate memory.
2003-01-09 18:46:02 +00:00
Andrew Cagney bde581776e 2003-01-09 Andrew Cagney <ac131313@redhat.com>
* somsolib.h: Fix function indentation.
	* disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
	* gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
	* demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
	* alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
	* somsolib.c, inftarg.c: Remove assignment in if conditional.
2003-01-09 18:30:32 +00:00
Andrew Cagney 4ef3f3be7a 2003-01-09 Andrew Cagney <ac131313@redhat.com>
* infrun.c (follow_fork): Use ISO C definition.
	* expprint.c (print_subexp): Use xfree instead of free.
	* charset.c: Include "gdb_string.h" instead of <string.h>.
	(register_iconv_charsets): Use ISO C definition.
	(host_charset, target_charset): Ditto.
	* Makefile.in (charset.o): Update dependencies.
	(mi-cmd-env.o): Update dependencies.

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

	* mi-cmd-env.c: Include "gdb_string.h" instead of <string.h>.
	Move all includes to after "defs.h".
2003-01-09 18:03:38 +00:00
David Carlton 754533e434 2003-01-09 David Carlton <carlton@math.stanford.edu>
* gdb.c++/annota2.exp: KFAIL "watch triggered on a.x".
	Add copyright year 2003.
2003-01-09 17:10:39 +00:00
Andrew Cagney c9a1dc08aa 2003-01-08 Andrew Cagney <ac131313@redhat.com>
* gdb_mbuild.sh: Add --keep option.  When specified, keep the
	build directories.  Save edited gdb output in Mbuild.log.  If a
	build fails, remove any final GDB executable.
2003-01-09 00:45:08 +00:00
Andrew Cagney 1c615f7a40 2003-01-08 Andrew Cagney <cagney@redhat.com>
* alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
	get_frame_base.
2003-01-09 00:24:50 +00:00
gdbadmin 67f047db78 *** empty log message *** 2003-01-09 00:00:35 +00:00
Andrew Cagney dbad9d940f 2003-01-08 Andrew Cagney <ac131313@redhat.com>
* gdb_mbuild.sh: Edit the output of `maint print architecture'
	replacing hex constants with function names and stripping leading
	file name directory prefixes.
2003-01-08 23:49:15 +00:00
Andrew Cagney 8d357ccaa7 2003-01-08 Andrew Cagney <cagney@redhat.com>
* gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
	get_frame_base.
2003-01-08 22:47:46 +00:00
David Carlton bca02a8a3a 2003-01-08 David Carlton <carlton@math.stanford.edu>
* linespec.c (decode_line_1): Move code into decode_variable.
	(decode_variable): New function.
2003-01-08 22:40:18 +00:00
Andrew Cagney 7f8ab3a0b7 2003-01-08 Andrew Cagney <ac131313@redhat.com>
* mn10300-tdep.c (analyze_dummy_frame): Fix typo.
2003-01-08 21:44:55 +00:00
Andrew Cagney 7b5849cc3e 2003-01-08 Andrew Cagney <cagney@redhat.com>
* cris-tdep.c (cris_frame_init_saved_regs): Use
	get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
	saved_regs buffer.
	* sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
	(sh64_nofp_frame_init_saved_regs): Ditto.
	(sh_fp_frame_init_saved_regs): Ditto.
	* arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
	* mips-tdep.c (mips_init_extra_frame_info): Ditto.
	* mcore-tdep.c (analyze_dummy_frame): Ditto.
	* mn10300-tdep.c (analyze_dummy_frame): Ditto.
2003-01-08 19:45:23 +00:00
Daniel Jacobowitz 72a5efb365 * minsyms.c (lookup_minimal_symbol): Update comment.
(lookup_minimal_symbol_text): Update comment.  Use the hash table.
	(lookup_minimal_symbol_solib_trampoline): Likewise.
2003-01-08 18:38:47 +00:00
Andrew Cagney aab3ea25c5 2003-01-08 Andrew Cagney <cagney@redhat.com>
* d10v-tdep.c (d10v_init_extra_frame_info): Use
	frame_relative_level.
2003-01-08 18:04:06 +00:00
Andrew Cagney da50a4b7b3 2003-01-08 Andrew Cagney <cagney@redhat.com>
* alpha-tdep.c: Use get_frame_extra_info.
	* arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
	* h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
	* mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
	* sparc-tdep.c, xstormy16-tdep.c: Ditto.
2003-01-08 17:21:30 +00:00
Andrew Cagney 11c02a10e2 2003-01-08 Andrew Cagney <cagney@redhat.com>
* alpha-tdep.c: Use get_next_frame.
	* arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
	* dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
	* m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
	* mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
	* ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
	* v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
	* xstormy16-tdep.c: Ditto.
2003-01-08 15:56:38 +00:00
Andrew Cagney 1e2330ba1f 2003-01-07 Andrew Cagney <cagney@redhat.com>
* alpha-tdep.c: Use get_frame_base.
	* arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
	* h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
	* m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
	* mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
	* sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
	* x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
	* config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
	* config/sparc/tm-sparc.h: Ditto.
2003-01-08 01:53:38 +00:00
gdbadmin 2fcf08fe58 *** empty log message *** 2003-01-08 00:00:32 +00:00
Andrew Cagney 2d75187b9e 2003-01-07 Andrew Cagney <cagney@redhat.com>
* frame.c (deprecated_get_frame_context): New function.
	(deprecated_set_frame_context): New function.
	* frame.h (deprecated_get_frame_context): Declare.
	(deprecated_set_frame_context): Declare.
	* dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
	(cfi_init_extra_frame_info): Use deprecated_set_frame_context.
2003-01-07 22:53:09 +00:00
Andrew Cagney 483d36b217 2003-01-07 Andrew Cagney <cagney@redhat.com>
* frame.c (deprecated_set_frame_next_hack): New function.
	(deprecated_set_frame_prev_hack): New function.
	* frame.h (deprecated_set_frame_next_hack): Declare.
	(deprecated_set_frame_prev_hack): Declare.
	* mcore-tdep.c (analyze_dummy_frame): Use
	deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
	* mn10300-tdep.c (analyze_dummy_frame): Ditto.
2003-01-07 19:19:00 +00:00
David Carlton 14e91ac52e 2003-01-07 David Carlton <carlton@math.stanford.edu>
* linespec.c (decode_line_1): Move code into decode_dollar.
	(decode_dollar): New function.
2003-01-07 17:05:49 +00:00
Andrew Cagney 9d3c96e6ec zap #define FRAME_C. 2003-01-07 16:29:22 +00:00
Andrew Cagney b0c6b05c0f 2003-01-07 Andrew Cagney <cagney@redhat.com>
* arm-tdep.c (arm_init_extra_frame_info): Use
	deprecated_update_frame_base_hack.
	* xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
	* mn10300-tdep.c (analyze_dummy_frame): Ditto.
	(fix_frame_pointer): Ditto.
	(mn10300_analyze_prologue): Ditto.
2003-01-07 16:22:29 +00:00
Andrew Cagney a00a19e94c 2003-01-07 Andrew Cagney <cagney@redhat.com>
* xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
	extra_info using frame_extra_info_zalloc.
	* sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
	* sh-tdep.c (sh_init_extra_frame_info): Ditto.
	(sh64_init_extra_frame_info): Ditto.
	* mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
	* s390-tdep.c (s390_init_extra_frame_info): Ditto.
	* mips-tdep.c (mips_init_extra_frame_info): Ditto.
	* mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
	* frv-tdep.c (frv_init_extra_frame_info): Ditto.
	* m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
	* ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
	* h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
	* d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
	* cris-tdep.c (cris_init_extra_frame_info): Ditto.
	* arm-tdep.c (arm_init_extra_frame_info): Ditto.
	* alpha-tdep.c (alpha_init_extra_frame_info): Ditto.

	* mn10300-tdep.c (analyze_dummy_frame): Use
	deprecated_set_frame_extra_info_hack.
	* mcore-tdep.c (analyze_dummy_frame): Ditto.
2003-01-07 14:51:11 +00:00
Joel Brobecker 1fb4c65b23 * mdebugread.c (parse_symbol): Skip stProc entries which storage
class is not scText. These do not define "real" procedures.
       (parse_partial_symbols): Likewise.
2003-01-07 07:09:25 +00:00
Michael Chastain d8b3e9ee2a 2003-01-06 Michael Chastain <mec@shout.net>
* gdb.mi/mi-pthreads.exp (check_mi_thread_command_set):
	When selecting a thread, 'line' and 'file' are optional.
	* gdb.mi/mi1-pthreads.exp: Likewise.
2003-01-07 03:31:27 +00:00
gdbadmin e8fa73225f *** empty log message *** 2003-01-07 00:01:02 +00:00
Michael Snyder 9fe7d6bf73 chael Snyder <msnyder@redhat.com>
* lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
qCVS: Committing in .
2003-01-06 23:12:29 +00:00
Andrew Cagney f6c609c4c2 2003-01-06 Andrew Cagney <ac131313@redhat.com>
* frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
	* frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
	* arm-tdep.c (arm_frame_chain): Allocate caller_fi using
	deprecated_frame_xmalloc_with_cleanup.
	* m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
	deprecated_frame_xmalloc.
	* mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
	* mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
2003-01-06 21:50:25 +00:00
Andrew Cagney 84dc46cbdb 2003-01-06 Andrew Cagney <cagney@redhat.com>
* x86-64-linux-tdep.c: Include "osabi.h".
	* Makefile.in (x86-64-linux-tdep.o): Update dependencies.
2003-01-06 20:45:30 +00:00
Andrew Cagney d995ff4bc0 2003-01-06 Andrew Cagney <cagney@redhat.com>
* sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
2003-01-06 20:04:11 +00:00
Andrew Cagney 66140c2616 2003-01-06 Andrew Cagney <cagney@redhat.com>
* MAINTAINERS (Target Instruction Set Architectures): Update
	arm-elf.  Can be built with -Werror, has been multiarched.

	* value.h (unpack_long): Make buffer parameter constant.
	(unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
	* scm-lang.h (scm_parse): Ditto.
	* defs.h (extract_typed_address, extract_address): Ditto.
	(extract_long_unsigned_integer): Ditto.
	* inferior.h (unsigned_pointer_to_address): Ditto.
	(signed_pointer_to_address): Ditto.
	* gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
	* gdbarch.h, gdbarch.c: Regenerate.
	* findvar.c (extract_long_unsigned_integer): Update.
	(extract_address): Update.
	(extract_typed_address): Update.
	(unsigned_pointer_to_address): Update.
	* values.c (unpack_long): Update.
	(unpack_double): Update.
	(unpack_pointer): Update.
	(unpack_field_as_long): Update.
	* d10v-tdep.c (d10v_pointer_to_address): Update.
	* avr-tdep.c (avr_pointer_to_address): Update.
	* scm-lang.c (scm_unpack): Update.
	* findvar.c (signed_pointer_to_address): Update.
2003-01-06 18:49:09 +00:00
Andreas Schwab 8e9e0fe6da * lib/gdb.exp: Set LC_ALL to "C" to avoid spurious testsuite
failures.
2003-01-06 18:10:32 +00:00
Michal Ludvig b089b3da75 2003-01-06 Michal Ludvig <mludvig@suse.cz>
* x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
	since it is in i386-tdep.c.
2003-01-06 14:47:37 +00:00
Joel Brobecker aff87235b0 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
failure introduced in the previous change.
2003-01-06 10:28:05 +00:00
gdbadmin 203708e3b1 *** empty log message *** 2003-01-06 00:00:32 +00:00
Michael Chastain 34f5e84556 2003-01-05 Michael Chastain <mec@shout.net>
* README: Remove references to deleted remote-*.c files:
	remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
	remote-nrom.c, remote-os9k.c, remote-udi.c.
2003-01-05 17:10:33 +00:00
Mark Kettenis 28bcfd306b * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
* x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
i386_get_longjmp_target.
2003-01-05 14:07:03 +00:00
Andrew Cagney 15a5b3eeaf 2003-01-05 Andrew Cagney <ac131313@redhat.com>
* arm-tdep.c (prologue_cache): Change to a pointer.
	(_initialize_arm_tdep): Allocate prologue_cache.
	(check_prologue_cache): Update.
	(save_prologue_cache): Update.
	(arm_gdbarch_init): Update.
2003-01-05 13:31:26 +00:00
Daniel Jacobowitz c263362b61 * stabsread.c (update_method_name_from_physname): Call complaint()
instead of error.
2003-01-05 04:59:28 +00:00
Daniel Jacobowitz b4e9345dbe * gdb.texinfo (Controlling GDB): Add @kindex for
"show osabi".
	(Backtraces): Add @kindex's for backtrace-below-main.
2003-01-05 04:34:39 +00:00
Daniel Jacobowitz 98b45e30a6 * gdb.texinfo (Controlling GDB): Document "set osabi". 2003-01-05 02:03:57 +00:00
Daniel Jacobowitz 516034834f * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
* d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
	* hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.

	* blockframe.c: Include "gdbcmd.h" and "command.h".
	(backtrace_below_main): New variable.
	(file_frame_chain_valid, func_frame_chain_valid)
	(nonnull_frame_chain_valid, generic_file_frame_chain_valid)
	(generic_func_frame_chain_valid): Remove functions.
	(frame_chain_valid, do_flush_frames_sfunc): New functions.
	(_initialize_blockframe): New function.
	* Makefile.in (blockframe.o): Update dependencies.
	* frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
	comment.  Call frame_chain_valid ().
	* frame.h: Remove old prototypes.  Add prototype for
	frame_chain_valid and update comments to match.
	* gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
	Remove old comment.
	* gdbarch.h: Regenerated.
	* gdbarch.c: Regenerated.

Plus updates to all other targets not to provide a FRAME_CHAIN_VALID.
2003-01-05 01:39:56 +00:00
Daniel Jacobowitz 95f90d2595 * gdb.texinfo (Backtraces): Document "set backtrace-below-main".
* gdbint.texinfo (FRAME_CHAIN_VALID): Update documentation.
2003-01-05 01:38:41 +00:00
gdbadmin f6b33856d3 *** empty log message *** 2003-01-05 00:00:32 +00:00
Daniel Jacobowitz b00a803742 * Makefile.in (acconfig_h): Remove incorrect macro.
(config_h): Define.
	(osabi.o): Update dependencies.
	* configure.tgt: Set gdb_osabi based on target triplet.
	* configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
	* configure: Regenerated.
	* config.in: Regenerated.
	* osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
	(GDB_OSABI_DEFAULT): Define if not already defined.
	(user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
	(set_osabi_string): New variables.
	(gdbarch_register_osabi): Add new OS ABI to
	gdb_osabi_available_names.
	(gdbarch_lookup_osabi): Honor specified and default OS ABIs.
	(set_osabi, show_osabi): New functions.
	(_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
2003-01-04 23:47:13 +00:00
Daniel Jacobowitz 4be87837a2 * arch-utils.c (gdbarch_info_init): Set osabi to
GDB_OSABI_UNINITIALIZED.
	* gdbarch.sh: Add osabi to struct gdbarch and to struct
	gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
	in gdbarch_list_lookup_by_info and in gdbarch_update_p.
	* gdbarch.c: Regenerated.
	* gdbarch.h: Regenerated.
	* osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
	there's no BFD.
	(gdbarch_init_osabi): Remove osabi argument; use info.osabi.
	* osabi.h (enum gdb_osabi): Move to defs.h.
	(gdbarch_init_osabi): Update prototype.
	* defs.h (enum gdb_osabi): Moved here.
	* Makefile.in: Update dependencies.

Plus updates to alpha, arm, hppa, i386, mips, ns32k, ppc, sh, sparc, and vax
ports to match.
2003-01-04 23:38:46 +00:00
Daniel Jacobowitz a881cf8e6b * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
entirely.
	(breakpoint_re_set_one): Don't fetch the value for a disabled
	watchpoint.
2003-01-04 23:07:24 +00:00
Daniel Jacobowitz b5ab8ff3a4 Fix PR gdb/844
* lib/gdb.exp (gdb_compile): Handle "quiet" option.
	(gdb_compile_pthreads): Pass "quiet" to gdb_compile.

	* gdb.threads/gcore-thread.exp: Use gdb_compile_pthreads.  Return
	instead of calling gdb_suppress_entire_file.
	* gdb.threads/print-threads.exp: Likewise.
	* gdb.threads/schedlock.exp: Likewise.

	* gdb.threads/killed.exp: Return instead of calling
	gdb_suppress_entire_file.
	* gdb.threads/linux-dp.exp: Likewise.
	* gdb.threads/pthreads.exp: Likewise.
2003-01-04 23:05:05 +00:00
Daniel Jacobowitz 1e69823536 gdb/
* buildsym.h (processing_hp_compilation): Remove obsolete variable.
	* gdbarch.sh Remove include of "value.h" in gdbarch.h.
	(COERCE_FLOAT_TO_DOUBLE): Remove.
	* gdbarch.c: Regenerate.
	* gdbarch.h: Regenerate.
	* Makefile.in: Remove value_h from gdbarch_h.
	* valops.c (coerce_float_to_double): New variable.
	(default_coerce_float_to_double): Remove.
	(standard_coerce_float_to_double): Remove.
	(value_arg_coerce): Use coerce_float_to_double.
	(_initialize_valops): Add "set coerce-float-to-double".
	* value.h (default_coerce_float_to_double): Remove prototype.
	(standard_coerce_float_to_double): Remove prototype.

	* hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
	prototyped.
	* mdebugread.c (parse_symbol): Likewise.
	* stabsread.c (define_symbol): Mark all functions as prototyped.

	* hppa-tdep.c (hppa_coerce_float_to_double): Remove.
	* alpha-tdep.c (alpha_gdbarch_init): Remove call to
	set_gdbarch_coerce_float_to_double.
	* arm-tdep.c (arm_gdbarch_init): Likewise.
	* frv-tdep.c (frv_gdbarch_init): Likewise.
	* h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
	* i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
	* mips-tdep.c (mips_gdbarch_init): Likewise.
	(mips_coerce_float_to_double): Remove.
	* rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
	(rs6000_coerce_float_to_double): Remove.
	* s390-tdep.c (s390_gdbarch_init): Likewise.
	* sh-tdep.c (sh_gdbarch_init): Likewise.
	(sh_coerce_float_to_double): Remove.
	* sparc-tdep.c (sparc_gdbarch_init): Likewise.
	(sparc_coerce_float_to_double): Remove.
	* v850-tdep.c (v850_gdbarch_init): Likewise.
	* xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
	* config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
	* config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
	(hppa_coerce_float_to_double): Remove prototype.
	* config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
doc/
	* gdb.texinfo (Controlling GDB): Add ABI section.  Document
	"set coerce-float-to-double".
	* gdbint.texinfo (COERCE_FLOAT_TO_DOUBLE): Remove documentation.
testsuite/
	* gdb.base/callfuncs.exp: Don't XFAIL unprototyped functions for
	stabs.
	* gdb.base/completion.exp: Allow marker1(void) as well as marker1().
	* gdb.base/whatis.exp: Always allow (void) after function names.
2003-01-04 22:37:49 +00:00
Daniel Jacobowitz 147ff08c6b * gdb.c++/casts.exp: Correct regexp. 2003-01-04 22:30:21 +00:00
Daniel Jacobowitz f436a26abf * regformats/reg-m68k.dat: Remove fpcode and fpflags. 2003-01-04 21:55:54 +00:00
Daniel Jacobowitz 4c0711e068 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31. 2003-01-04 21:55:30 +00:00
Daniel Jacobowitz d3336fcd34 Update copyright date with last commit. 2003-01-04 21:54:54 +00:00
Daniel Jacobowitz 248f805530 Suggested by Stewart Brown <sb24@avaya.com>:
* c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
	in recursive calls.  Handle TYPE_CODE_TYPEDEF.
	(c_type_print_varspec_suffix): Likewise.
2003-01-04 21:51:53 +00:00
Mark Kettenis bfd260bb5c * configure.in: Don't set and AC_SUBST SUBDIRS.
* configure: Regenerated.
2003-01-04 19:35:15 +00:00
Mark Kettenis 72cfdc7602 * configure.in: Remove code dealing with shared libraries.
* Makefile.in: Remove HLDFLAGS and HLDENV.
* configure: Regenerated.
2003-01-04 19:27:19 +00:00
Mark Kettenis dc62bfc2fc * configure.in: Call AC_CONFIG_HEADER. Don't call
AC_CONFIG_SUBDIRS on gdb.arch, gdb.asm, gdb.base gdb.c++ gdb.java,
gdb.disasm, gdb.mi, gdb.threads and gdb.trace.  Call
AC_CHECK_HEADERS on pthread.h.  Put Makefiles in the
aforementioned directories in the AC_OUPUT call.
* config.hin: New file.
* gdb.mi/gdb669.exp, gdb.mi/mi-pthreads.exp,
gdb.mi/mi1-pthreads.exp, gdb.threads/gcore-thread.exp,
gdb.threads/killed.exp, gdb.threads/print-threads.exp,
gdb.threads/pthreads.exp, gdb.threads/schedlock.exp: Make sure we
pass -I$objdir instead of -I$objdir/$subdir in compilation.
* gdb.arch/configure.in, gdb.arch/configure, gdb.asm/configure.in,
gdb.asm/configure, gdb.base/configure.in, gdb.base/configure,
gdb.c++/configure.in, gdb.c++/configure, gdb.disasm/configure.in,
gdb.disasm/configure, gdb.java/configure.in, gdb.java/configure,
gdb.mi/configure.in, gdb.mi/configure, gdb.mi/config.in,
gdb.threads/configure.in, gdb.threads/configure,
gdb.threads/config.in, gdb.trace/configure.in,
gdb.trace/configure: Removed.
2003-01-04 15:37:40 +00:00
Andrew Cagney c8b8a89831 2003-01-04 Andrew Cagney <ac131313@redhat.com>
* frame.c (deprecated_frame_xmalloc): New function.
	(deprecated_set_frame_saved_regs_hack): New function.
	(deprecated_set_frame_extra_info_hack): New function.
	* frame.h (deprecated_frame_xmalloc): Declare.
	(deprecated_set_frame_saved_regs_hack): Declare.
	(deprecated_set_frame_extra_info_hack): Declare.
2003-01-04 13:55:30 +00:00
Michael Chastain 77afa6398a 2003-01-03 Michael Chastain <mec@shout.net>
* gdb.base/miscexprs.c: Fix PR gdb/697, "buglet in
	testsuite/gdb.base/miscexprs.c, off-by-1 array reference".
2003-01-04 04:07:16 +00:00
Daniel Jacobowitz 7634bb6e63 * gdb.base/store.exp: Fix regular expressions. 2003-01-04 03:59:27 +00:00
Mark Kettenis 8ee5372653 * configure.in: Move code that provides the --enable-gdbtk option
right after the code that handles the --enable-tui option, and
polish it somewhat.
* configure: Regenerated.
2003-01-04 01:03:41 +00:00
Mark Kettenis b39c905ef8 * configure.in: Rewrite.
* configure: Regenerated.
2003-01-04 00:43:24 +00:00
Mark Kettenis 14abd0fbf0 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
AC_CHECK_FUNCS and remove the old check for pread64.
* acinclude.m4 (AC_GNU_SOURCE): New macro.
* acconfig.h (_GNU_SOURCE): Add.
(HAVE_PREAD64): Remove.
* configure, aclocal.m4, config.in: Regenerated.
2003-01-04 00:34:43 +00:00
gdbadmin a1ba22c71a *** empty log message *** 2003-01-04 00:00:02 +00:00
Andrew Cagney b2fb46766e 2003-01-03 Andrew Cagney <ac131313@redhat.com>
* alpha-tdep.c: Use get_frame_saved_regs.
	* arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
	* h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
	* m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
	* ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
	* vax-tdep.c, xstormy16-tdep.c: Ditto.
2003-01-03 23:53:48 +00:00
Mark Kettenis 8dcde88743 * configure.in: Remove all use of the SUBDIRS variable; add
directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
code providing the --enable-multi-ice option, and move it right in
front of the code that checks whether gdbserver is supported.
Polish that too.
* configure: Regenerated.
* Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
@SUBDIRS@.
2003-01-03 23:19:28 +00:00
David Carlton 0a8551ddd5 2003-01-03 David Carlton <carlton@math.stanford.edu>
* gdb.base/psymtab.exp: New file.
	* gdb.base/psymtab1.c: Ditto.
	* gdb.base/psymtab2.c: Ditto.
2003-01-03 20:55:46 +00:00
Andrew Cagney 8ccd593be0 2003-01-03 Andrew Cagney <cagney@redhat.com>
* alpha-tdep.c: Use deprecated_update_frame_base_hack.
	* avr-tdep.c, cris-tdep.c: Ditto.
	* mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
	* sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
2003-01-03 18:23:01 +00:00
Joel Brobecker 62707793ce Revert the previous change, as it was checked in by mistake. 2003-01-03 15:34:59 +00:00
Joel Brobecker 4c8749fde8 (parse_symbol): Skip stProc entries which storage class is not scText.
These do not define "real" procedures.
(parse_partial_symbols): Likewise.
Fixes [C102-001].
2003-01-03 15:29:29 +00:00
Mark Kettenis 91151a065a * configure.in: Remove --enable-netrom option.
* configure: Regenerated.
2003-01-03 14:45:47 +00:00
Mark Kettenis 8fe84d0149 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
declaration for `struct re_pattern_buffer' instead.
* Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
2003-01-03 14:10:08 +00:00
Joel Brobecker f0394be648 * mdebugread.c (parse_symbol): Count until the stEnd matching
the structure name.
2003-01-03 14:01:47 +00:00
gdbadmin 4343844ce8 *** empty log message *** 2003-01-03 00:01:32 +00:00
Mark Kettenis 93d331bafe * configure.in: Remove --with-cpu option.
subscripts.  Remove evil changequotes here.
* acconfig.h (TARGET_CPU_DEFAULT): Remove.
* config.in, configure: Regenerated.
2003-01-02 22:59:01 +00:00
Mark Kettenis 27e9bf901e * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
* configure.in: Cleanup section that sources GDB and BFD configure
subscripts.  Remove evil changequotes here.
* config.in, configure: Regenerated.
2003-01-02 22:49:31 +00:00
Andrew Cagney 50abf9e57b 2003-01-02 Andrew Cagney <ac131313@redhat.com>
* arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
	frame accessor methods.
	* alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
	* dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
	* m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
	* mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
	* s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
	* vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
	* z8k-tdep.c: Ditto.
2003-01-02 22:20:47 +00:00
Mark Kettenis f5dbc56d4d * configure.in: Remove UI_OUT configuration code.
* ada-lang.c: Update assuming UI_OUT is always true.
* Makefile.in (UIOUT_CFLAGS): Remove.
* configure: Regenerated.
* TODO: Remove blurb about elimination of -DUI_OUT.
2003-01-02 20:29:15 +00:00
Mark Kettenis 627af7eaa2 * configure.in: Move code that provides the --enable-gdbcli,
--enable-gdbmi options right before the code that handles the
--enable-tui option.  Polish a bit.
* configure: Regenerated.
2003-01-02 20:12:29 +00:00
Mark Kettenis 06825bd145 * configure.in: Rewrite check for GNU regex and the
--without-included regex option, and move it into the "Checks for
library functions" section.  This makes us use the system regex
again by default on systems with version 2 of the GNU C library.
This was apparently broken.
* gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
* acconfig.h (USE_INCLUDED_REGEX): Remove.
* config.in, configure: Regenerated.
2003-01-02 19:35:31 +00:00
Mark Kettenis 287c1a400f * configure.in: Move code that provides the --enable-tui option
before the "Checks for libraries" section.  Polish the code
somewhat and set need_curses to yes if we build the TUI.  Rewrite
code that looks for a library providing termcap functionality to
match more closely what's done in the Readline library, and move
it into to the "Checks for libraries" section.
* configure: Regenerated.
* Makefile.in (TERMCAP): Remove variable.
* config/i386/go32.mh (TERMCAP): Remove variable.
2003-01-02 16:54:56 +00:00
Andrew Cagney 684e56bf67 2003-01-02 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Mention gdb_mbuild.sh.
	* gdb_mbuild.sh: Rewrite.
2003-01-02 16:40:33 +00:00
Mark Kettenis e1ea1d755e * configure.in: Fix typo in last change.
* config.in, configure: Regenerated.
2003-01-02 14:47:01 +00:00
Andrew Cagney ef66e766fa 2003-01-02 Andrew Cagney <ac131313@redhat.com>
* Makefile.in: Remove obsolete code.
2003-01-02 14:40:35 +00:00
Andrew Cagney e632838e2e 2003-01-02 Andrew Cagney <ac131313@redhat.com>
* stabs.texinfo: Remove obsolete text.
	* gdbint.texinfo: Ditto.
	* gdb.texinfo: Ditto.
2003-01-02 14:36:48 +00:00
Andrew Cagney 1b831c9308 2003-01-02 Andrew Cagney <ac131313@redhat.com>
* valarith.c (value_binop): Delete obsolete code and comments.
	* configure.host: Ditto.
	* buildsym.h (make_blockvector): Ditto.
	* buildsym.c (make_blockvector): Ditto.
	* defs.h (enum language): Ditto.
	(chill_demangle): Ditto.
	* elfread.c (elf_symtab_read): Ditto.
	* dwarfread.c (CHILL_PRODUCER): Ditto.
	(set_cu_language): Ditto.
	(handle_producer): Ditto.
	* expprint.c (print_subexp): Ditto.
	* gdbtypes.c (chill_varying_type): Ditto.
	* gdbtypes.h (builtin_type_chill_bool): Ditto.
	(builtin_type_chill_char, builtin_type_chill_long): Ditto.
	(builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
	(chill_varying_type): Ditto.
	* language.h (_LANG_chill): Ditto.
	* language.c (binop_result_type, integral_type): Ditto.
	(character_type, string_type, structured_type): Ditto.
	(lang_bool_type, binop_type_check): Ditto.
	* stabsread.h (os9k_stabs): Ditto.
	* stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
	(define_symbol, read_type, read_struct_fields): Ditto.
	(read_array_type, read_enum_type, read_huge_number): Ditto.
	(read_range_type, start_stabs): Ditto.
	* symfile.c (init_filename_language_table): Ditto.
	(add_psymbol_with_dem_name_to_list): Ditto.
	* symtab.c (symbol_init_language_specific): Ditto.
	(symbol_init_demangled_name, symbol_demangled_name): Ditto.
	* symtab.h (struct general_symbol_info): Ditto.
	(SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
	* typeprint.c (typedef_print): Ditto.
	* utils.c (fprintf_symbol_filtered): Ditto.
	* valops.c (value_cast, search_struct_field, value_slice): Delete
	obsolete code.
	(varying_to_slice): Delete function.
	* value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
	(varying_to_slice): Delete declaration.
	* MAINTAINERS: Update.
2003-01-02 14:27:27 +00:00
Mark Kettenis 97bf5e38c3 * configure.in: Reorganize "Checks for library functions section"
a bit.  Remove check for `btowc' and `isascii' functions.
* configure: Regenerated.
2003-01-02 11:45:34 +00:00
Mark Kettenis 5ee754fce1 * acconfig.h (_MSE_INT_H): Remove.
* configure.in: Create "Checks for header files" section, and move
appropriate tests there.  Don't check for objlist.h, wchar.h,
wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
misdetection fix.  Also add "Checks for types", "Checks for
compiler characteristics" and "Checks for library functions"
sections.
* config.in, configure: Regenerated.
2003-01-02 11:14:33 +00:00
Mark Kettenis 8bb2c1226b * configure.in: Create "Checks for programs" section, and move
appropriate tests there.
2003-01-02 00:51:28 +00:00
gdbadmin 32efd69851 *** empty log message *** 2003-01-02 00:00:32 +00:00
Mark Kettenis 9a15616775 * configure.in: Create "Checks for libraries" section, and move
appropriate tests there.  Cleanup check for wctype in libw.  Use
AC_SEARCH_LIBS to see whether we need libsocket.
* configure: Regenerated.
2003-01-01 23:50:46 +00:00
gdbadmin e7b65dd705 *** empty log message *** 2003-01-01 00:00:31 +00:00
Mark Kettenis 3250596b89 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
* config.in, configure: Regenerated.
2002-12-31 13:05:02 +00:00
Mark Kettenis 9608ab8b2a * gdb_dirent.h: Cleanup and update code to match the example in
the Autoconf manual.
* configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
* configure: Regenerated.
2002-12-31 12:41:00 +00:00
Adam Fedor 7ee21aad7d objc-exp.y (parse_number): Cast sscanf arguments to proper type.
(yylex): Initialize c to avoid uninitialized warning.
2002-12-31 04:48:32 +00:00
gdbadmin 5cdfdecc37 *** empty log message *** 2002-12-31 00:00:33 +00:00
Kazu Hirata 4c8eeedd8b * doc/fdl.texi: Revert the last change. 2002-12-30 02:47:27 +00:00
gdbadmin 53135a63fd *** empty log message *** 2002-12-30 00:00:32 +00:00
gdbadmin 685db7b219 *** empty log message *** 2002-12-29 00:00:32 +00:00
Mark Kettenis 6f2ecac5d9 * tracepoint.c (ISATTY): Removed. 2002-12-28 23:22:21 +00:00
gdbadmin be2533e512 *** empty log message *** 2002-12-28 00:00:32 +00:00
gdbadmin 3549b250e7 *** empty log message *** 2002-12-27 00:00:32 +00:00
Joel Brobecker 60383d105d Continuing work to convert the hppa targets to multiarch partil.
* hppa-tdep.c: Add some missing forward declarations.
        (frameless_function_invocation): Prefix the function name
        by "hppa_" to avoid polluting the namespace.  Update all calls
        to use the new function name.
        (saved_pc_after_call): Ditto.
        (init_extra_frame_info): Ditto.
        (frame_chain): Ditto.
        (push_dummy_frame): Ditto.
        (target_read_pc): Ditto.
        (target_write_pc): Ditto.
        (in_solib_call_trampoline): Ditto.
        (in_solib_return_trampoline): Ditto.
        (skip_trampoline_code): Ditto.
        (hppa_read_fp): New function, renamed from target_read_fp.
        (hppa_target_read_fp): New function, using hppa_read_fp.
        This function conforms to the function profile for the
        READ_FP gdbarch method.
        (hppa_extract_struct_value_address): New function, extracted
        from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
        macro.
        (hppa_frame_num_args): New function.
        (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.

        * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
        inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
        for the switch to multiarch partial.
        Update some of the macros definitions to match some changes
        described above in the name of the function they are calling.
        (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
        not be straightforward to convert. Do now wrap it inside
        "#if !... #endif" to remember that this macro has still not
        been taken care of.
        (FIX_CALL_DUMMY): Likewise.
2002-12-26 20:10:13 +00:00
Joel Brobecker 60e1ff2716 Continuing work to convert the hppa targets to multiarch partial.
* hppa-tdep.c: (hppa_register_raw_size): New function replacing
       the body of macro REGISTER_RAW_SIZE.
       * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
       config/pa/tm-hppah.h. These functions will be used to initialize
       the gdbarch structure.
       (hppa_hpux_pc_in_sigtramp): New function.
       (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
       (hppa_hpux_frame_base_before_sigtramp): New function.
       (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
       Add gdbcore.h #include.
       * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
       of this gdbarch-eligible macro to a call to the new associated
       function.
       * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
       (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
       into a call to the new associated function.
       (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
       (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
       * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
2002-12-26 09:36:43 +00:00
gdbadmin f109f54a37 *** empty log message *** 2002-12-26 00:00:02 +00:00
gdbadmin c4e54c2a3c *** empty log message *** 2002-12-25 00:00:01 +00:00
David Carlton 6c756a306f 2002-12-24 David Carlton <carlton@math.stanford.edu>
* config/sparc/tm-sparc.h: Delete duplicate definition of
	DEPRECATED_PC_IN_CALL_DUMMY.
2002-12-24 20:14:30 +00:00
Kevin Buettner 96f026fc7b Add GNU/Linux specific support for the n32 and n64 MIPS ABIs. 2002-12-24 19:21:10 +00:00
Adam Fedor c60b71880d gdb.base/maint.exp: Update expect output to include 'ObjC'. 2002-12-24 04:03:46 +00:00
Adam Fedor 5a24b7e3b5 maint.c (maintenance_demangle): Add switch to demangle
ObjC language symbols as well.
2002-12-24 03:57:58 +00:00
Adam Fedor 9d1127c56c (lookup_objc_class, lookup_child_selector): Remove
last argument from complaint function call.
2002-12-24 03:42:36 +00:00
gdbadmin ee9f683daa *** empty log message *** 2002-12-24 00:00:02 +00:00
Kevin Buettner bcf16802ca * exec.c (print_section_info): Add FIXME comments regarding format
string choices.
2002-12-23 23:36:39 +00:00
Mark Kettenis c133ab7a41 * gdbint.texinfo (Target Architecture Definition): Update
description of gdbarch_register_osabi.
2002-12-23 18:53:16 +00:00
Daniel Jacobowitz 710686b360 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
* config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.

	* config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
2002-12-23 17:07:28 +00:00
David Carlton ee73db833f 2002-12-23 David Carlton <carlton@math.stanford.edu>
* gdb.base/selftest.exp (do_steps_and_nexts): Allow initial brace
	and current_directory initialization.
2002-12-23 16:56:25 +00:00
David Carlton e45febe22e 2002-12-23 David Carlton <carlton@math.stanford.edu>
* symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
	(lookup_symbol_aux_minsyms): Delete 'force_return' argument.
	(search_symbols): Call lookup_symbol_aux_minsyms to find debugging
	information associated to a minsym, not lookup_symbol.
2002-12-23 16:43:18 +00:00
Jim Blandy f0a847b8c7 * gdb.trace/tfind.exp: Pass '-O1' flag via the 'optimize' option,
rather than as part of the output file name.
2002-12-23 00:02:02 +00:00
gdbadmin 114019bb6e *** empty log message *** 2002-12-23 00:00:32 +00:00
Jim Blandy d6c1774ec3 * gdb.base/attach.exp: There's no need to copy the test program to
/tmp; that was only ever necessary on HP/UX, and this test is
entirely disabled there anyway.
2002-12-22 23:53:48 +00:00
Jim Blandy 4c2acfeafe * gdb.c++/psmang.exp: Doc fix. 2002-12-22 02:58:43 +00:00
gdbadmin f5dcdefd1b *** empty log message *** 2002-12-22 00:00:03 +00:00
Jim Blandy f0708dbbc4 * gdb.c++/psmang.exp, gdb.c++/psmang1.cc, gdb.c++/psmang2.cc: New
test.
2002-12-21 22:56:56 +00:00
Mark Kettenis 2213a65dbc * x86-64-tdep.h (x86_64_init_abi): New prototype.
* x86-64-tdep.c (i386_fp_regnum_p): Remove function.
(x86_64_init_abi): Make non-static.  Set number of pseudo
registers to 0.
(x86_64_gdbarch_init): Remove function.
(_initialize_x86_64_tdep): Renove register_gdbarch_init call.
Remove code dealing with dissambly.
* x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
(_initialize_x86_64_linux_tdep): New function.
* config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
i386-tdep.o.
2002-12-21 21:09:58 +00:00
Mark Kettenis 05816f706e * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
(struct gdb_osabi_handler): Remove member `arch'.  Add member
`arch_info'.
(gdbarch_register_osabi): Add new argument `machine'.  Use ot to
construct a `struct bfd_arch_info' and store it in the `struct
gdb_osabi_handler' that is created.
(gdbarch_init_osabi): Check for compatibility based on machine
type and architecture.
* osabi.h (gdbarch_register_osabi): Adjust prototype and update
comment.
* alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
second argument in call to gdbarch_register_osabi.
* alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
* alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
* alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
* arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
* arm-tdep.c (_initialize_arm_tdep): Likewise.
* armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
* hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
* i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
* i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
* i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
* i386-tdep.c (_initialize_i386_tdep): Likewise.
* i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
* i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
* i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
_initialize_i386bsd_tdep and updated likewise.
* i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
* i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
* mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
* mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
* mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
* ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
* ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
* ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
* shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
* sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
2002-12-21 19:58:07 +00:00
Kevin Buettner 743b930b59 Add DT_MIPS_RLD_MAP case for 64-bit targets. 2002-12-21 06:43:25 +00:00
Kevin Buettner 3758ac483d Fix bug introduced when multiarching NUM_REGS. 2002-12-21 06:36:02 +00:00
Kevin Buettner 19ed69dd06 Multiarch SVR4_FETCH_LINK_MAP_OFFSETS and GET_LONGJMP_TARGET for GNU/Linux/MIPS. 2002-12-21 05:07:36 +00:00
gdbadmin a5d8705f21 *** empty log message *** 2002-12-21 00:00:03 +00:00
David Carlton 9579e00017 2002-12-20 David Carlton <carlton@math.stanford.edu>
* gdb.c++/annota2.exp: KFAIL annotate-quit.
2002-12-20 18:37:15 +00:00
Kazu Hirata f821f325df * agentexpr.texi: Fix typos.
* annotate.texi: Likewise.
	* fdl.texi: Likewise.
2002-12-20 09:35:03 +00:00
Elena Zannoni 7990a5784c 2002-12-19 Keith Seitz <keiths@redhat.com>
patch committed by Elena Zannoni  <ezannoni@redhat.com>
	* thread.c (do_captured_list_thread_ids): Call prune_threads and
	target_find_new_threads. Fix for PR mi/669.
2002-12-20 03:37:33 +00:00
gdbadmin 3f076845f5 *** empty log message *** 2002-12-20 00:00:02 +00:00
Kevin Buettner 521168af1c Remove outdated FIXME comment. 2002-12-19 19:02:57 +00:00
David Carlton 84fba31b3b 2002-12-19 David Carlton <carlton@math.stanford.edu>
* linespec.c (decode_line_1): Move code into decode_all_digits.
	(decode_all_digits): New function.
2002-12-19 18:56:14 +00:00
Kevin Buettner 2fc70c99f5 * exec.c (print_section_info): Select a format string to use with
local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
2002-12-19 18:49:27 +00:00
Michael Chastain d181017144 2002-12-18 Michael Chastain <mec@shout.net>
* gdb.c++/annota2.exp: Add copyright year 2002.
2002-12-19 05:10:45 +00:00
gdbadmin 32504c66e0 *** empty log message *** 2002-12-19 00:00:33 +00:00
Andrew Cagney 2f1071075b 2002-12-18 Andrew Cagney <ac131313@redhat.com>
* frame.c (deprecated_update_current_frame_pc_hack): Replace
	deprecated_update_current_frame_pc_hack.
	(deprecated_update_frame_base_hack): New function.
	* frame.h (deprecated_update_frame_pc_hack): Replace
	(deprecated_update_frame_base_hack): Declare.
	* infrun.c (normal_stop): Update.
2002-12-18 18:03:42 +00:00
Andrew Cagney c9012c7106 2002-12-18 Andrew Cagney <ac131313@redhat.com>
* rs6000-tdep.c (rs6000_init_extra_frame_info): Use
	frame_extra_info_zalloc.
	(rs6000_frame_args_address): Use get_frame_extra_info.
	(frame_get_saved_regs): Use get_frame_saved_regs.
	(frame_initial_stack_address): Use get_frame_saved_regs and
	get_frame_extra_info.
	(frame_initial_stack_address): Use get_frame_extra_info.
2002-12-18 15:23:22 +00:00
gdbadmin 8ec36b7150 *** empty log message *** 2002-12-18 00:00:35 +00:00
David Carlton 7656509736 2002-12-17 David Carlton <carlton@math.stanford.edu>
* gdb.c++/try_catch.cc: Add marker comments.
	* gdb.c++/try_catch.exp: Get line numbers from marker comments.
	* gdb.c++/m-data.cc: Delete namespace __gnu_test.
	* gdb.c++/m-static.cc: Ditto.
	* gdb.c++/m-static1.cc: Ditto.
	* gdb.c++/try_catch.cc: Ditto.
2002-12-17 23:24:57 +00:00
Kevin Buettner 6819ae388f Don't use NUM_REGS to determine array size. 2002-12-17 23:13:31 +00:00
Richard Earnshaw 625602f2f4 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
All uses changed
(ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
2002-12-17 22:11:31 +00:00
David Carlton 38d49aff68 2002-12-17 David Carlton <carlton@math.stanford.edu>
* symtab.c (lookup_partial_symbol): Don't search past the end of
	the partial symbols.
2002-12-17 18:34:06 +00:00
Andrew Cagney 30f7db39bd 2002-12-17 Andrew Cagney <ac131313@redhat.com>
* stack.c (frame_info): Use get_frame_saved_regs.
	* breakpoint.c (until_break_command): Use get_frame_pc.
2002-12-17 17:27:45 +00:00
Kevin Buettner 231367095d Replace complain() with complaint(). 2002-12-17 00:39:08 +00:00
gdbadmin bcc61ecbbb *** empty log message *** 2002-12-17 00:00:35 +00:00
Andrew Cagney 1a14e23479 2002-12-16 Andrew Cagney <ac131313@redhat.com>
* config/arc/arc.mt, config/arc/tm-arc.h: Delete.
	* config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
	* config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
	* config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
	* config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
	* config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
	* config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
	* config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
	* config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
	* config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
	* config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
	* config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
	* config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
	* config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
	* config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
	* config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
	* config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
	* config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
	* config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
	* config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
	* config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
	* config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
	* config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
	* config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
	* config/m88k/xm-dgux.h: Delete.
	* fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
	* i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
	* os9kread.c, remote-bug.c, remote-nindy.c: Delete.
	* remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
	* d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
	* ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
	* ch-valprint.c: Delete.
2002-12-16 20:39:23 +00:00
Jeff Johnston da81390ba6 2002-12-16 Jeff Johnston <jjohnstn@redhat.com>
* lib/mi-support.exp (mi_reinitialize_dir): Check mi level
        to see whether we are using the new -environment-directory
        command which resets via -r or the old version of the command
        which may prompt the user.  Part of fix for gdb/741.
2002-12-16 20:03:17 +00:00
Andrew Cagney b304d13005 Remove obsolete testsuite code. 2002-12-16 19:33:54 +00:00
Joel Brobecker 273f84299e * hppa-hpux-tdep.c: New file.
* hppa-tdep.c (hppa_gdbarch_init): call the registered osabi-
        specific initialization routines.
        * Makefile.in (ALLDEPFILES): Add hppa-hpux-tdep.c.
        (hppa-hpux-tdep.o): Add rule.
        * config/pa/hppahpux.mt (TDEPFILES): Add hppa-hpux-tdep.o.
        * config/pa/hppa64.mt (TDEPFILES): Likewise.
2002-12-16 16:51:47 +00:00
gdbadmin 90b8a04724 *** empty log message *** 2002-12-16 00:00:03 +00:00
Daniel Jacobowitz 04e688714f * infrun.c (handle_inferior_event): Rearrange code to resume if
no catchpoint triggers for an event.
2002-12-15 20:38:52 +00:00
Daniel Jacobowitz deb3b17b03 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
and TARGET_WAITKIND_VFORKED cases.
2002-12-15 20:15:56 +00:00
Daniel Jacobowitz 675bf4cbc8 * infrun.c (handle_inferior_event): Assume that catchpoints
are not affected by DECR_PC_AFTER_BREAK.
2002-12-15 20:08:02 +00:00
Daniel Jacobowitz 81e5617914 * target.c (update_current_target): Don't inherit DONT_USE.
* target.h (struct target_ops): Remove DONT_USE.
	(target_next): Remove macro.
2002-12-15 19:00:33 +00:00
Mark Kettenis a3edc55b09 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654. 2002-12-15 16:05:37 +00:00