Commit Graph

19211 Commits

Author SHA1 Message Date
Christopher Faylor 3ee6f62373 Change child_ to win32_ throughout.
* win32-nat.c (win32_ops): New variable.
(win32_so_ops): Ditto.
(psapi_get_dll_name): Make function static.
(struct so_stuff): Delete.
(struct lm_info): New struct.
(solib_start, solib_end): Redefine as struct so_list.
(safe_symbol_file_add_stub): Use so_list rather than so_stuff.
(register_loaded_dll): Ditto.  Special-case ntdll.dll.  Fill in lm_info field
of so_list with information previously stored in so_stuff.
(get_image_name): Make function static.
(max_dll_name_len): Make variable static.
(win32_free_so): New function.
(win32_current_sos): Ditto.
(win32_relocate_section_addresses): Ditto.
(handle_unload_dll): Use so_list rather than so_stuff.  Call free_so to delete
shared library.
(solib_address): Delete function.
(child_solib_loaded_library_pathname): Ditto.
(win32_clear_solib): Rename from child_clear_solibs.  Use so_list rather than
so_stuff.  Just clear win32-specific stuff.
(get_relocated_section_addrs): Delete.
(solib_symbols_add): Ditto.
(info_dll_command): Make static.  Use lm_info field from so_list to retrieve
load address.
(fake_create_process): Make function static.
(win32_xfer_memory): Ditto.
(win32_kill_inferior): Ditto.
(win32_resume): Ditto.
(cygwin_pid_to_str): Ditto.
(do_initial_win32_stuff): Use win32_ops rather than deprecated_child_ops.
(child_detach): Ditto.
(win32_mourn_inferior): Ditto.
(_initialize_win32_nat): Ditto.
(init_win32_ops): Ditto.  Fill out win32_so_ops and set current_target_so_ops
to win32_so_ops.
(core_dll_symbols_add): Delete.
(map_single_dll_code_section): Ditto.
(dll_code_sections_add): Ditto.
(core_section_load_dll_symbols): Ditto.
(child_solib_add): Ditto.
2005-10-31 22:50:58 +00:00
Mark Kettenis 31d3fb18aa * gdb.asm/asm-source.exp: Use -e instead of --entry. 2005-10-31 20:33:22 +00:00
Andrew Stubbs bbe6b987a5 2005-10-31 Andrew Stubbs <andrew.stubbs@st.com>
* tui/tui-command.c (tui_dispatch_ctrl_char): Test output of
	getenv() before using it.
2005-10-31 19:11:35 +00:00
Mark Kettenis e52b687cc5 * gdb.base/bfp-test.exp: Properly anchor gdb_multiple_test usage. 2005-10-31 16:00:46 +00:00
gdbadmin 49958b7d4f *** empty log message *** 2005-10-31 00:00:33 +00:00
gdbadmin 5f522e1e04 *** empty log message *** 2005-10-30 00:00:35 +00:00
Mark Kettenis d275c05160 * hppa-tdep.h (HPPA_INSN_SIZE): New define.
* hppa-hpux-tdep.c (hppa_hpux_search_pattern)
(hppa64_hpux_search_dummy_call_sequence): Rewrite to avoid
assumption on sizeof(unsigned).
2005-10-29 21:31:45 +00:00
Mark Kettenis 7c35e3f307 * inf-ttrace.c (inf_ttrace_wait): Comment out TARGET_WAITKIND_EXEC
code; return TARGET_WAITKIND_STOPPED instead.
2005-10-29 21:22:39 +00:00
gdbadmin 3b86368e68 *** empty log message *** 2005-10-29 00:00:04 +00:00
Mark Kettenis a0c758791c * ppc-tdep.h (PPC_INSN_SIZE): Define. 2005-10-28 18:23:32 +00:00
Mark Kettenis 346e281c43 * inf-ttrace.c (inf_ttrace_mourn_inferior): Remove redundant cast.
(inf_ttrace_kill): Renamed from inf_ttrace_kill_inferior.
(inf_ttrace_target): Resort assignments.
2005-10-28 18:20:35 +00:00
Eli Zaretskii 656d5e120f * gdb.texinfo (GDB/MI Variable Objects): Fix @pxref usage under
"The -var-update Command".
2005-10-28 17:20:03 +00:00
Nick Roberts f0afd306b6 Sync with Emacs 22.0.50. 2005-10-28 03:26:19 +00:00
Nick Roberts 589e97524f *** empty log message *** 2005-10-28 03:25:41 +00:00
gdbadmin 8e33215f84 *** empty log message *** 2005-10-28 00:00:08 +00:00
gdbadmin 73f5106ac2 *** empty log message *** 2005-10-27 00:00:02 +00:00
gdbadmin f6733773aa *** empty log message *** 2005-10-26 00:00:03 +00:00
Andreas Schwab 7fb85e4190 * regformats/reg-ia64.dat: Remove NAT registers.
gdbserver:
	* server.c (main): Allocate mem_buf with PBUFSIZ bytes.

	* linux-ia64-low.c (ia64_regmap): Remove NAT registers.
	(ia64_num_regs): Reduce to 462.
2005-10-25 11:11:08 +00:00
gdbadmin a2377e33fd *** empty log message *** 2005-10-25 00:00:32 +00:00
gdbadmin 92c3f2482b *** empty log message *** 2005-10-24 00:00:04 +00:00
gdbadmin d9072af4b7 *** empty log message *** 2005-10-23 00:00:33 +00:00
Mark Kettenis 1ad4d2ade7 * rs6000-tdep.c (info_powerpc_cmdlist): Remove variable.
(rs6000_info_powerpc_command): Remove function.
2005-10-22 15:12:36 +00:00
gdbadmin 2093f4e652 *** empty log message *** 2005-10-22 00:00:02 +00:00
Andreas Schwab 31f1d37116 * dwarf2read.c (isreg): Removed.
(decode_locdesc): Don't set it.
2005-10-21 09:14:48 +00:00
Joel Brobecker 682b96ec7e * Makefile.in (YYFILES): Add ada-lex.c 2005-10-21 06:26:27 +00:00
gdbadmin 99fa508bb2 *** empty log message *** 2005-10-21 00:00:04 +00:00
gdbadmin 9e8db2f480 *** empty log message *** 2005-10-20 00:00:05 +00:00
gdbadmin 7cced3600d *** empty log message *** 2005-10-19 00:00:02 +00:00
Jim Blandy ef0fdf07a4 2005-10-17 Jim Blandy <jimb@redhat.com>
* dwarf2expr.c (dwarf_expr_fetch): Use correct comparison to
	detect stack underflow.
2005-10-18 00:04:11 +00:00
gdbadmin ea44d563c7 *** empty log message *** 2005-10-18 00:00:33 +00:00
Paul Gilliam f4711d79c9 2005-10-17 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.arch/altivec-regs.exp: Adjust "info reg vrsave" and "info reg
        vscr" tests to better match output.
2005-10-17 22:16:54 +00:00
gdbadmin e89e299e00 *** empty log message *** 2005-10-17 00:00:03 +00:00
gdbadmin ddbde4fd13 *** empty log message *** 2005-10-16 00:00:02 +00:00
gdbadmin 781274babc *** empty log message *** 2005-10-15 00:00:04 +00:00
Paul Gilliam 3bf49e1b24 2005-10-14 Paul Gilliam <pgilliam@us.ibm.com>
* rs6000-tdep.c (rs6000_register_reggroup_p): Add vscr to test for
        vector registers.
2005-10-14 20:17:11 +00:00
gdbadmin e1c819caf8 *** empty log message *** 2005-10-14 00:00:33 +00:00
Andreas Schwab 16451949d7 * Makefile.in (linux-thread-db.o): Depend on $(gdbcore_h).
* linux-thread-db.c (enable_thread_event): Extend pointer value as
	specified by target.
	(thread_db_get_thread_local_address): Likewise.
2005-10-13 09:31:59 +00:00
gdbadmin ec5a9b416f *** empty log message *** 2005-10-13 00:00:37 +00:00
Jim Blandy 987a910636 2005-10-12 Jim Blandy <jimb@redhat.com>
* gdb.base/structs.exp (any): New function.
	(test_struct_returns): Don't make any assumptions at all about
	what value the function returns when GDB can't set the return
	value.
2005-10-12 17:56:41 +00:00
gdbadmin 017e7a90ee *** empty log message *** 2005-10-12 00:00:02 +00:00
gdbadmin 170aa2243b *** empty log message *** 2005-10-11 00:00:03 +00:00
Joel Brobecker 2336bb5846 * gdb.ada/arrayidx/p.adb: New file.
* gdb.ada/arrayidx.exp: New testcase
2005-10-10 01:14:36 +00:00
Joel Brobecker 1495de3fd3 * gdb.ada/array_return/pck.ads: New file.
* gdb.ada/array_return/pck.adb: New file.
        * gdb.ada/array_return/p.adb: New file.
        * gdb.ada/array_return.exp: New testcase.
2005-10-10 01:11:51 +00:00
Joel Brobecker 0e4377e151 * i386-tdep.c (i386_reg_struct_return_p): Allow array types as well.
(i386_return_value): Add handling for functions that return array
        types.
2005-10-10 01:08:07 +00:00
Joel Brobecker fd1b946ec5 * ada-valprint.c (print_optional_low_bound): Handle properly
cases where the array index type is a TYPE_CODE_RANGE.
2005-10-10 01:05:32 +00:00
Joel Brobecker 168de233a7 * valprint.c (val_print_array_elements): Check array size before
computing its low bound. If zero, then use a default bound of zero.
2005-10-10 01:03:59 +00:00
gdbadmin ad5da28ce6 *** empty log message *** 2005-10-10 00:00:33 +00:00
gdbadmin 2bb8451fc0 *** empty log message *** 2005-10-09 00:00:03 +00:00
gdbadmin dd29689293 *** empty log message *** 2005-10-08 00:00:05 +00:00
gdbadmin 4e9235671a *** empty log message *** 2005-10-07 00:00:34 +00:00
Alan Modra 8ba0209fdd PR 1659
* rs6000-tdep.c (rs6000_push_dummy_call): Correct size of
	backchain write.
	(rs6000_convert_from_func_ptr_addr): Correct comment.
2005-10-06 00:22:57 +00:00
gdbadmin 896ae8701f *** empty log message *** 2005-10-06 00:00:32 +00:00
gdbadmin 12f94210ba *** empty log message *** 2005-10-05 00:00:33 +00:00
Joel Brobecker b4ef3495d9 * MAINTAINERS: Add section for release management. 2005-10-04 00:56:30 +00:00
Joel Brobecker 31e353780d * NEWS: Add entry for new "set print array-indexes" command. 2005-10-04 00:16:07 +00:00
gdbadmin 059117dcbf *** empty log message *** 2005-10-04 00:00:03 +00:00
Joel Brobecker 3c9c013acb * gdb.texinfo (Print Settings): Add documentation for set/show
print array-indexes.
2005-10-03 22:26:54 +00:00
Joel Brobecker 705335ead4 * gdb.base/arrayidx.c: New file.
* gdb.base/arrayidx.exp: New testcase.
2005-10-03 21:28:04 +00:00
Joel Brobecker e79af960e2 2005-10-03 Joel Brobecker <brobecker@adacore.com>
* language.h (language_defn): New field la_print_array_index.
        (LA_PRINT_ARRAY_INDEX): New macro.
        (default_print_array_index): Add declaration.
        * language.c (default_print_array_index): new function.
        (unknown_language): Add value for new field.
        (auto_language): Likewise.
        (local_language): Likewise.
        * ada-lang.c (ada_print_array_index): New function.
        (ada_language_defn): Add value for new field.
        * c-lang.c (c_language_defn): Likewise.
        (cpluc_language_defn): Likewise.
        (asm_language_defn): Likewise.
        (minimal_language_defn): Likewise.
        * f-lang.c (f_language_defn): Likewise.
        * jv-lang.c (java_language_defn): Likewise.
        * m2-lang.c (m2_language_defn): Likewise.
        * objc-lang.c (objc_language_defn): Likewise.
        * p-lang.c (pascal_language_defn): Likewise.
        * scm-lang.c (scm_language_defn): Likewise.
        * valprint.h (print_array_indexes_p): Add declaration.
        (get_array_low_bound): Add declaration.
        (maybe_print_array_index): Add declaration.
        * valprint.c (print_array_indexes): New static variable.
        (show_print_array_indexes): New function.
        (print_array_indexes_p): New function.
        (get_array_low_bound): New function.
        (maybe_print_array_index): New function.
        (val_print_array_elements): Print the index of each element if
        requested by the user.
        (_initialize_valprint): Add new array-indexes "set/show print" command.
        * ada-valprint.c (print_optional_low_bound): Replace extracted code
        by call to ada_get_array_low_bound_and_type(). Stop printing the low
        bound if indexes will be printed for all elements of the array.
        (val_print_packed_array_elements): Print the index of each element
        of the array if necessary.
2005-10-03 21:21:20 +00:00
Joel Brobecker 043f5962ba * hppa-tdep.c (read_unwind_info): Fix typo in comment. 2005-10-03 20:53:01 +00:00
gdbadmin 8ff11c250f *** empty log message *** 2005-10-03 00:00:02 +00:00
Daniel Jacobowitz dfb893afaa * gdb_gcore.sh: Use a temporary file. Use gdb from $PATH. 2005-10-02 23:01:01 +00:00
gdbadmin 5f9dfa63e9 *** empty log message *** 2005-10-02 03:00:02 +00:00
gdbadmin b18ff430e5 *** empty log message *** 2005-10-01 00:00:03 +00:00
gdbadmin 288424419e *** empty log message *** 2005-09-30 00:00:34 +00:00
Andreas Schwab 9022543867 PR threads/2015
* infrun.c (adjust_pc_after_break): Don't use the state from a
	non-matching thread context.
2005-09-29 20:41:27 +00:00
Daniel Jacobowitz e10b1c4cbb * rs6000-tdep.c (rs6000_frame_cache): Handle misdetected frameless
functions.
2005-09-29 15:37:44 +00:00
gdbadmin 9fe95be9d9 *** empty log message *** 2005-09-29 00:00:35 +00:00
Nick Roberts 3ca42dbe77 * annotate.c (breakpoints_changed, annotate_frames_invalid)
(_initialize_annotate): Print breakpoints-invalid and
frames-invalid for level 2 annotations only.

* gdb.base/annota3.exp, gdb.cp/annota3.exp: The annotations
frames-invalid and breakpoints-invalid are no longer generated
with level 3 so don't expect them in the output.
2005-09-28 23:44:02 +00:00
Nick Roberts 11ee99408d *** empty log message *** 2005-09-28 23:32:43 +00:00
Daniel Jacobowitz 6ad80df050 * infrun.c (init_execution_control_state): Initialize
ecs->another_trap.
2005-09-28 16:17:06 +00:00
Nick Roberts bd31016f96 (TAGS): Put DEPFILES back and add as a dependency. 2005-09-28 02:55:41 +00:00
Nick Roberts 5e58133c13 *** empty log message *** 2005-09-28 02:54:45 +00:00
gdbadmin b9e809a2b4 *** empty log message *** 2005-09-28 00:00:05 +00:00
Bob Rossi 39fb8e9e0f 2005-09-27 Bob Rossi <bob@brasko.net>
* gdb.mi/mi-disassemble.exp, gdb.mi/mi2-disassemble.exp: Remove .*
        from test.  Escape the | in mi_gdb_test call.
        * gdb.mi/mi-basics.exp, gdb.mi/mi-cli.exp, gdb.mi/mi-disassemble.exp,
        gdb.mi/mi-pthreads.exp, gdb.mi/mi-stack.exp, gdb.mi/mi2-basics.exp,
        gdb.mi/mi2-cli.exp, gdb.mi/mi2-disassemble.exp,
        gdb.mi/mi2-pthreads.exp, gdb.mi/mi2-stack.exp: Add extra details to
        expected regex's in mi_gdb_test calls.
        * lib/mi-support.exp: Remove arbitrary .* from tests.
        (mi_gdb_test): Add string_regex variable. Add anchor to main -re.
        Fully anchor GDB/MI expected results in mi_gdb_test.
        * lib/gdb.exp (string_to_regexp): Escape the ] character.
        * gdb.base/sizeof.exp: Remove escape character. Correct test.
2005-09-27 22:39:04 +00:00
gdbadmin c8829c4863 *** empty log message *** 2005-09-27 00:00:04 +00:00
Joel Brobecker f8f989ef77 Remove change description for a file that is actually part of the testsuite/
subdirectory. The description is included in testsuite/ChangeLog.
2005-09-26 22:31:16 +00:00
Joel Brobecker 25f7492a66 Fix name of directory in one ChangeLog entry. 2005-09-26 22:09:41 +00:00
Nick Roberts b9ff61f809 (HFILES_NO_SRCDIR): Remove minimon.h, symfile-mem.h.
(ALLDEPFILES) Correct typo amdfbsd-nat.c -> amd64fbsd-nat.c.
Remove irix4-nat.c, m3-nat.c, mipsm3-nat.c, ns32k-tdep.c
symm-tdep.c and symm-nat.c.
(TAGFILES_NO_SRCDIR): Add CONFIG_SRCS.
(DEPFILES): Remove CONFIG_OBS and include it explicitly where
needed.
2005-09-26 21:45:37 +00:00
Nick Roberts 2a3314402a *** empty log message *** 2005-09-26 21:40:33 +00:00
Jan Beulich ae2a31bf15 gdb/
2005-09-26  Jan Beulich  <jbeulich@novell.com>

	* MAINTAINERS (Write After Approval): Add myself.
2005-09-26 07:04:23 +00:00
Jan Beulich c6f4c129c6 gdb/
2005-09-26  Jan Beulich  <jbeulich@novell.com>

	* amd64-tdep.h (AMD64_FCTRL_REGNUM, AMD64_FSTAT_REGNUM,
	AMD64_MXCSR_REGNUM): New.
	* amd64-tdep.c (amd64_dwarf_regmap): Add eflags, selector regs,
	mxcsr, fp control and status words.
	* i386-tdep.c (): Add selector regs, mxcsr, fp control and status
	words.
2005-09-26 06:59:39 +00:00
Paul Brook 2af48f6826 2005-09-26 Paul Brook <paul@codesourcery.com>
* arm-tdep.c (arm_type_align): New function.
	(arm_push_dummy_call): Use it.  Ensure proper argument alignment.
	(arm_extract_struct_value_address): Remove.
	(arm_use_struct_convention): Rename...
	(arm_return_in_memory): ... To this.  Return nonzero for all small
	aggregates under the EABI.
	(arm_return_value): New function.
	(arm_gdbarch_init): Default for VFP float model for EABI binaries.
	Use set_gdbarch_return_value instead of obsolete functions.
	* testsuite/long_long.exp: Exclude eabi targets from arm FPA float
	format test.
2005-09-26 02:17:34 +00:00
gdbadmin 20fec34cac *** empty log message *** 2005-09-26 00:00:04 +00:00
gdbadmin fccec359b1 *** empty log message *** 2005-09-25 00:00:33 +00:00
gdbadmin 4158410528 *** empty log message *** 2005-09-24 00:00:34 +00:00
gdbadmin df0bdca9f5 *** empty log message *** 2005-09-23 00:00:03 +00:00
gdbadmin 016ab8f2ba *** empty log message *** 2005-09-22 00:00:03 +00:00
Mark Kettenis 2244f67142 * mips-tdep.c (n32n64_floatformat_always_valid): Use 'const void
*' for second argument instead of 'const char *'.
2005-09-21 20:45:46 +00:00
gdbadmin 098ec4a190 *** empty log message *** 2005-09-21 00:00:04 +00:00
Paul Gilliam 1260befad1 2005-09-20 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.arch/altivec-abi.exp: Elide the 'in' from what's expected
         after a 'finish' command.
2005-09-20 23:40:51 +00:00
Wu Zhou f34502bcd6 * bfp-test.c: New file.
* bfp-test.exp: New testcase.
2005-09-20 09:01:14 +00:00
Wu Zhou 42969d33cb * c-exp.y (parse-number): Modify the float parsing logic to let it
recognize a suffix.
2005-09-20 08:55:55 +00:00
Wu Zhou ca9295176c * gdb.fortran/subarray.exp: New testcase to test the evaluation
of subarray and substring variable.
	* gdb.fortran/subarray.f: New source file for the test of subarray
	and substring variable evaluation.
	* gdb.fortran/exprs.exp: Add four tests for substring evaluation
	of string constant.
2005-09-20 06:37:03 +00:00
Wu Zhou c3e308a89c expression.h (enum exp_opcode): Fix a format error of a comment. 2005-09-20 06:31:59 +00:00
Wu Zhou 0b4e13251c * expression.h (enum exp_opcode): Add a new operator for F90
subrange.
        * f-lang.h (enum f90_range_type): New enumeration type to identify
        F90 subrange type.
        * f-exp.y (yyparse): Add support for parsing F90 subrange and
        change substring parsing to subrange parsing.
        * parse.c (operator_length_standard): Set the operator length
        and args number for OP_F90_RANGE.
        * eval.c (evaluate_subexp_standard): Add code to evaluate F90
        array section and substring.
        (value_f90_subarray): New function to evaluate F90 array section.
        (evaluate_subexp_standard): Delete label op_f77_substr and its code
        because the logic is implemented by function value_f90_subarray now.
2005-09-20 06:25:34 +00:00
gdbadmin 3592b9717c *** empty log message *** 2005-09-20 00:00:37 +00:00
Daniel Jacobowitz c761af65c2 * gdb.arch/altivec-regs.exp, gdb.arch/altivec-abi.exp: Update
copyright dates.
2005-09-19 18:09:08 +00:00
Paul Gilliam 561d7a1d04 * rs6000-tdep.c (_initialize_rs6000_tdep): Get rid of the unused
'info powerpc' command prefix.
* gdb.arch/altivec-regs.exp (info powerpc altivec): Replace the 'info
  powerpc altivec' test with an almost identical 'info vector' test.
2005-09-19 17:38:04 +00:00
gdbadmin e92babf632 *** empty log message *** 2005-09-19 00:00:08 +00:00
Daniel Jacobowitz 7ba3cf9c85 * gdb.texinfo (Contributors): Thank Andrew Cagney for releases
6.2 and 6.3.
2005-09-18 03:28:18 +00:00
gdbadmin 9ce743b2d7 *** empty log message *** 2005-09-18 00:00:34 +00:00
Daniel Jacobowitz 3db0444b44 * acinclude.m4: Correct quoting.
* aclocal.m4: Regenerated.

	Suggested by SZOKOVACS Robert <szo@ies.hu>:
	* thread-db.c (thread_db_err_str): Handle TD_VERSION.
	(thread_db_init): Call thread_db_err_str.
	* configure.ac: Check for TD_VERSION.
	* config.in, configure: Regenerated.
2005-09-17 23:14:37 +00:00
gdbadmin c19b479e55 *** empty log message *** 2005-09-17 00:00:05 +00:00
gdbadmin 21b2dee4d1 *** empty log message *** 2005-09-16 00:00:34 +00:00
gdbadmin 646dd48587 *** empty log message *** 2005-09-15 00:00:03 +00:00
gdbadmin f48538d88b *** empty log message *** 2005-09-14 00:00:13 +00:00
Paul Gilliam b2b64cc92a 2005-09-13 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.arch/altivec-regs.exp: Adjust "info reg vrsave" and "info reg
        vscr" tests to match output.
2005-09-13 23:13:50 +00:00
Paul Gilliam 6ac4d15a41 2005-09-13 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.arch/altivec-regs.exp: Adjust "print $vx<i>" tests to match
        output.
2005-09-13 22:07:05 +00:00
gdbadmin c5e908b7dc *** empty log message *** 2005-09-13 00:00:32 +00:00
gdbadmin edbdccc7de *** empty log message *** 2005-09-12 00:00:02 +00:00
Ulrich Weigand fd7979d1fe * config/s390/nm-linux.h (KERNEL_U_SIZE): Remove.
(PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Likewise.
	(s390_stopped_by_watchpoint, s390_insert_watchpoint,
	s390_remove_watchpoint, TARGET_CAN_USE_HARDWARE_WATCHPOINT,
	TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT,
	STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
	target_remove_watchpoint): Likewise.
	* s390-nat.c: Remove include of <sys/user.h>.
	(kernel_u_size): Remove.
	(s390_stopped_by_watchpoint): Make static.
	(s390_insert_watchpoint, s390_remove_watchpoint): Likewise.
	(s390_can_use_hw_breakpoint): New function.
	(s390_region_size_ok_for_hw_watchpoint): Likewise.
	(_initialize_s390_nat): Add watchpoint methods to target.
2005-09-11 21:54:59 +00:00
Bob Rossi 40e55befbf 2005-09-11 Bob Rossi <bob@brasko.net>
* lib/mi-support.exp (mi_gdb_test): Change -re to not be anchored.
	* gdb.mi/mi-syn-frame.exp: Call mi_gdb_test twice instead of once for
	  commands that return an MI output command and an asyncronous MI output
	  command.
	* gdb.mi/mi-console.exp: Ditto.
2005-09-11 20:24:54 +00:00
Bob Rossi 3c7385ece0 2005-09-11 Bob Rossi <bob@brasko.net>
* gdb.mi/mi-var-child.c: Include <string.h>.
2005-09-11 12:50:45 +00:00
gdbadmin 190f2fef35 *** empty log message *** 2005-09-11 00:00:33 +00:00
Daniel Jacobowitz 10d6c8cd3f * Makefile.in (ALLDEPFILES): Update.
(alpha-linux-nat.o, sparc-linux-nat.o): New rules.
	(amd64-linux-nat.o, arm-linux-nat.o, hppa-linux-nat.o)
	(i386-linux-nat.o, ia64-linux-nat.o, linux-nat.o, m32r-linux-nat.o)
	(m68klinux-nat.o, mips-linux-nat.o, ppc-linux-nat.o, s390-nat.o)
	(sparc64-linux-nat.o): Update dependencies.
	* alpha-linux-nat.c, sparc-linux-nat.c: New files.
	* amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Renamed
	from fetch_inferior_registers and made static.
	(amd64_linux_store_inferior_registers): Renamed from
	store_inferior_registers and made static.
	(amd64_linux_child_post_start_inferior): Renamed from
	child_post_startup_inferior and made static.  Call
	super_post_startup_inferior.
	(super_post_startup_inferior): New.
	(_initialize_amd64_linux_nat): Set it.  Call linux_target and
	add_target.
	* arm-linux-nat.c (arm_linux_fetch_inferior_registers): Renamed
	from fetch_inferior_registers and made static.
	(arm_linux_store_inferior_registers): Renamed from
	store_inferior_registers and made static.
	(_initialize_arm_linux_nat): Add a prototype.  Use linux_target and
	add_target.
	* hppa-linux-nat.c (hppa_linux_fetch_inferior_registers): Renamed
	from fetch_inferior_registers and made static.
	(hppa_linux_store_inferior_registers): Renamed from
	store_inferior_registers and made static.
	(_initialize_hppa_linux_nat): New function.
	* i386-linux-nat.c (i386_linux_fetch_inferior_registers): Renamed
	from fetch_inferior_registers and made static.
	(i386_linux_store_inferior_registers): Renamed from
	store_inferior_registers and made static.
	(i386_linux_resume): Renamed from child_resume and made static.
	(i386_linux_child_post_start_inferior): Renamed from
	child_post_startup_inferior and made static.  Call
	super_post_startup_inferior.
	(super_post_startup_inferior): New.
	(_initialize_i386_linux_nat): New function.
	* i386-nat.c: Remove LINUX_CHILD_POST_STARTUP_INFERIOR #ifndef.
	* ia64-linux-nat.c (ia64_linux_xfer_unwind_table): Remove.
	(super_xfer_partial): New.
	(ia64_linux_xfer_partial): New function.  Use it.
	(_initialize_ia64_linux_nat): New function.
	* ia64-tdep.c (getunwind_table): Revert 2005-06-08 change; use
	target_read_partial and document the problem.
	* inf-ptrace.c (inf_ptrace_fetch_register): Use
	CANNOT_FETCH_REGISTER.  Fix some comments.
	(inf_ptrace_store_register): Use CANNOT_STORE_REGISTER.  Fix some
	comments.
	* linux-nat.c: Include "inf-ptrace.h" and "auxv.h".
	(linux_ops, super_xfer_partial): New variables.
	(linux_child_post_startup_inferior): Make static.
	(child_post_startup_inferior): Delete.
	(linux_nat_attach, linux_nat_detach, resume_callback)
	(linux_nat_resume, linux_nat_wait, linux_nat_create_inferior)
	(linux_nat_mourn_inferior): Use linux_ops instead of
	deprecated_child_ops.
	(child_wait): Do not depend on CHILD_WAIT.
	(linux_nat_xfer_memory): Remove, replace by ...
	(linux_nat_xfer_partial): ... this.  Use linux_ops->to_xfer_partial
	instead of linux_proc_xfer_memory and child_xfer_memory.
	(linux_nat_fetch_registers, linux_nat_store_registers)
	(linux_nat_child_post_startup_inferior): New functions.
	(init_linux_nat_ops): Use the new functions.
	(linux_proc_xfer_memory): Remove, replace by ...
	(linux_proc_xfer_partial): ... this.  Make static.
	(linux_xfer_partial, linux_register_u_offset, linux_target): New
	functions.
	(_initialize_linux_nat): Do not modify deprecated_child_ops.
	* linux-nat.h (linux_proc_xfer_memory): Remove prototype.
	(struct mem_attrib, struct target_ops): Remove forward declarations.
	(linux_child_post_startup_inferior): Remove prototype.
	(linux_target): Add prototype.
	* linux-thread-db.c (thread_db_xfer_memory): Remove, replace by ...
	(thread_db_xfer_partial): ... this.
	(init_thread_db_ops): Set to_xfer_partial instead of
	deprecated_xfer_memory.
	* m32r-linux-nat.c (m32r_linux_fetch_inferior_registers): Renamed
	from fetch_inferior_registers and made static.
	(m32r_linux_store_inferior_registers): Renamed from
	store_inferior_registers and made static.
	(_initialize_m32r_linux_nat): New function.
	* m68klinux-nat.c (m68k_linux_fetch_inferior_registers): Renamed
	from fetch_inferior_registers and made static.
	(m68k_linux_store_inferior_registers): Renamed from
	store_inferior_registers and made static.
	(old_fetch_inferior_registers, old_store_inferior_registers): Made
	static.
	(_initialize_m68k_linux_nat): Use linux_target and add_target.
	* mips-linux-nat.c (_initialize_mips_linux_nat): New function.
	* ppc-linux-nat.c (ppc_linux_fetch_inferior_registers): Renamed
	from fetch_inferior_registers and made static.
	(ppc_linux_store_inferior_registers): Renamed from
	store_inferior_registers and made static.
	(_initialize_ppc_linux_nat): New function.
	* s390-nat.c (s390_linux_fetch_inferior_registers): Renamed
	from fetch_inferior_registers and made static.
	(s390_linux_store_inferior_registers): Renamed from
	store_inferior_registers and made static.
	(_initialize_s390_nat): New function.
	* sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
	linux_target and add_target.
	* config/nm-linux.h: Don't include "auxv.h".
	(struct target_waitstatus, child_wait, CHILD_WAIT)
	(CHILD_PID_TO_EXEC_FILE, CHILD_INSERT_FORK_CATCHPOINT)
	(CHILD_INSERT_VFORK_CATCHPOINT, CHILD_INSERT_EXEC_CATCHPOINT)
	(CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH, CHILD_FOLLOW_FORK)
	(DEPRECATED_KILL_INFERIOR, NATIVE_XFER_AUXV): Delete.
	* config/alpha/alpha-linux.mh (NATDEPFILES): Replace infptrace.o
	and inftarg.o with inf-ptrace.o and alpha-linux-nat.o.
	* config/sparc/linux.mh (NATDEPFILES): Replace infptrace.o and
	inftarg.o with sparc-linux-nat.o.
	* config/sparc/linux64.mh (NATDEPFILES): Remove infptrace.o and
	inftarg.o.
	* config/arm/linux.mh (NATDEPFILES): Replace infptrace.o and
	inftarg.o with inf-ptrace.o.
	* config/i386/linux.mh (NATDEPFILES): Likewise.
	* config/i386/linux64.mh (NATDEPFILES): Likewise.
	* config/ia64/linux.mh (NATDEPFILES): Likewise.
	* config/m32r/linux.mh (NATDEPFILES): Likewise.
	* config/m68k/linux.mh (NATDEPFILES): Likewise.
	* config/mips/linux.mh (NATDEPFILES): Likewise.
	* config/pa/linux.mh (NATDEPFILES): Likewise.
	* config/powerpc/linux.mh (NATDEPFILES): Likewise.
	* config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
	* config/s390/s390.mh (NATDEPFILES): Likewise.
	* config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Don't define.
	(LINUX_CHILD_POST_STARTUP_INFERIOR): Don't define.
	* config/i386/nm-linux64.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
	Don't define.
	* config/ia64/nm-linux.h: Don't include "target.h".
	(NATIVE_XFER_UNWIND_TABLE, ia64_linux_xfer_unwind_table): Remove.
	* config/djgpp/fnchange.lst: Add alpha-linux-tdep.c,
	alpha-linux-nat.c, sparc-linux-tdep.c, and sparc-linux-nat.c.
2005-09-10 18:11:14 +00:00
Daniel Jacobowitz a6cd0eb35d * killed.exp: Correct gdb_expect syntax. 2005-09-10 14:17:34 +00:00
gdbadmin 014fdd9977 *** empty log message *** 2005-09-10 00:00:34 +00:00
gdbadmin 457afbbc5b *** empty log message *** 2005-09-09 00:00:04 +00:00
Kevin Buettner 4640dd91b9 Add am33-2 support to mn10300-tdep.c. 2005-09-08 22:48:56 +00:00
gdbadmin 38b490c08e *** empty log message *** 2005-09-08 00:00:04 +00:00
Kevin Buettner cf1f553f85 * mn10300-linux-tdep.c (mn10300_linux_svr4_fetch_link_map_offsets):
Delete.
	(am33_linux_init_osabi): Register svr4_ilp32_fetch_link_map_offsets
	instead.
2005-09-07 00:23:14 +00:00
gdbadmin eb00590564 *** empty log message *** 2005-09-07 00:00:37 +00:00
Kevin Buettner 696cc4a69c * mn10300-linux-tdep.c (solib-svr4.h): Include.
(mn10300_linux_svr4_fetch_link_map_offsets): New function.
	(am33_linux_init_osabi): Register it.
	* Makefile.in (mn10300-linux-tdep.o): Update dependencies.
2005-09-06 23:14:44 +00:00
Kevin Buettner bfc1906fb0 * mn10300-tdep.c (mn10300_analyze_prologue): Delete code disabled
via "#if 0".
2005-09-06 22:13:08 +00:00
Kevin Buettner f2c8bc4327 * mn10300-tdep.c (mn10300_analyze_prologue): Use
safe_frame_unwind_memory() in place of deprecated_read_memory_nobpt().
2005-09-06 22:01:59 +00:00
gdbadmin c0eabf1a03 *** empty log message *** 2005-09-06 00:00:08 +00:00
gdbadmin da9f94ee23 *** empty log message *** 2005-09-05 00:00:35 +00:00
Daniel Jacobowitz a875c996a7 Fix email address in last commit. 2005-09-04 21:21:19 +00:00
Daniel Jacobowitz ee05721234 * inf-child.c (inf_child_follow_fork): Add OPS argument.
* inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
	* inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
	* inftarg.c (child_follow_fork): Likewise.
	* linux-nat.c (child_follow_fork): Likewise.  Use ops instead of
	&deprecated_child_ops.
	* target.c (update_current_target): Do not inherit to_follow_fork.
	(target_follow_fork): New function.
	(debug_to_follow_fork): Remove.
	(setup_target_debug): Don't set to_follow_fork.
	* target.h (struct target_ops): Add struct target_ops * to
	to_follow_fork.
	(child_follow_fork): Add struct target_ops * argument.
	(target_follow_fork): Replace macro with prototype.
2005-09-04 16:18:20 +00:00
gdbadmin 7c04e18903 *** empty log message *** 2005-09-04 00:00:12 +00:00
Kevin Buettner 154b82dc7a Make sure that a reasonable value is always returned by
mn10300_dwarf2_reg_to_regnum().
2005-09-03 01:55:26 +00:00
Kevin Buettner 52f0b832d7 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Use ARRAY_SIZE.
Change internal error to warning.  Add i18n markup to warning
	string.
2005-09-03 01:45:30 +00:00
Kevin Buettner 336c28c5f7 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
(mn10300_gdbarch_init): Register mn10300_dwarf2_reg_to_regnum().
2005-09-03 01:12:21 +00:00
Kevin Buettner 2247615a0e * mn10300-tdep.c (is_my_frame_in_sp, is_my_frame_in_fp)
(is_my_frame_last): Delete these unused functions.
2005-09-03 00:49:06 +00:00
Kevin Buettner 3e6b168916 * mn10300-tdep.c (mn10300_frame_prev_register): Change type of
``bufferp'' from ``void *'' to ``gdb_byte *''.
2005-09-03 00:43:28 +00:00
Kevin Buettner 0187db983e Remove inadvertent tab after mn10300-tdep.o entry. 2005-09-03 00:35:45 +00:00
Kevin Buettner 99fe5f9d5b * mn10300-tdep.c (mn10300_use_struct_convention): Delete parameter
``gcc_p''.  Adjust all callers.
	(mn10300_store_return_value, mn10300_extract_return_value): Add new
	parameter ``gdbarch''.
	(mn10300_return_value): New function.
	(mn10300_gdbarch_init): Delete old-style return value code calls.
	Add call to set_gdbarch_return_value().
2005-09-03 00:12:26 +00:00
gdbadmin dea4bc85c6 *** empty log message *** 2005-09-03 00:00:05 +00:00
Kevin Buettner af6a629e65 * mn10300-tdep.c (regcache.h): Delete duplicate include.
* Makefile.in (mn10300-tdep.o): Update dependencies.
2005-09-02 23:51:51 +00:00
Kevin Buettner 697e3bc900 * mn10300-tdep.c (osabi.h): Include.
(mn10300_gdbarch_init): Invoke gdbarch_init_osabi().
	* Makefile.in (mn10300-tdep.o): Update dependencies.
2005-09-02 23:42:29 +00:00
Kevin Buettner 45090ce3a3 Fix date. 2005-09-02 23:00:00 +00:00
Kevin Buettner 611889b118 * mn10300-linux-tdep.c: New file.
* Makefile.in (mn10300-linux-tdep.o): New Makefile target.
	* config/mn10300/linux.mt (TDEPFILES): Add mn10300-linux-tdep.o and
	corelow.o.
	* mn10300-tdep.h (E_E8_REGNUM, E_E9_REGNUM, E_E10_REGNUM)
	(E_FPCR_REGNUM, E_FS0_REGNUM): New constants.
2005-09-02 22:53:35 +00:00
Mark Kettenis a86c5fc9d8 * infcall.c (call_function_by_hand): Remove code handling
deprecated_push_arguments.  Bail out early if push_dummy_call
isn't available.
* gdbarch.sh (deprecated_push_arguments): Delete.  Adjust a few
comments accordingly.
* gdbarch.h, gdbarch.c: Regenerate.
2005-09-02 19:02:46 +00:00
Mark Kettenis c66a62d36f Fix date of last entry. 2005-09-02 18:52:42 +00:00
gdbadmin de31729c99 *** empty log message *** 2005-09-02 00:00:38 +00:00
Paul Gilliam 826d537610 20050901 Paul Gilliam <pgilliam@us.ibm.com>
* ppc-tdep.h (struct gdbarch_tdep): Better explanation of using
        -1 for nonexistant registers.
        * rs6000-tdep.c (rs6000_register_reggroup_p): Don't assume that
        tdep->ppc_vr0_regnum and tdep->ppc_ev0_regnum are not -1.
2005-09-01 18:09:41 +00:00
Richard Earnshaw 8432045646 * arm-linux-tdep.c (arm_linux_push_arguments): Delete.
(arm_linux_init_abi): Don't register it.
2005-09-01 12:51:23 +00:00
gdbadmin a7842ea757 *** empty log message *** 2005-09-01 00:00:33 +00:00
Mark Kettenis cb2f3a2924 * symfile.c (symbol_file_command, set_initial_language)
(symfile_bfd_open, get_section_index, add_symtab_fns)
(find_sym_fns): Reformat code and comments.  Tweak comments.
2005-08-31 21:07:33 +00:00
Mark Kettenis 0765265284 * m68k-tdep.c (m68k_register_name): Use ARRAY_SIZE. 2005-08-31 20:48:21 +00:00
Jim Wilson abfcdd21a5 Fix gcc-4.0.1 compile error for i386-freebsd4.10 target.
* i386fbsd-tdep.c (i386fbsd_sc_reg_offset): Make it non-static.
2005-08-31 20:02:33 +00:00
gdbadmin c94989c3c6 *** empty log message *** 2005-08-31 00:00:03 +00:00
gdbadmin 8ec6eebb00 *** empty log message *** 2005-08-30 00:00:33 +00:00
Mark Kettenis 591e78ffc0 * environ.c (unset_in_environ): Use strncmp instead of
DEPRECATED_STREQN.
* exec.c (exec_file_attach): Remove DEPRECATED_HPUX_TEXT_END.
* language.c (set_case_command, language_enum): Use strcmp instead
of DEPRECATED_STREQ.
* source.c (select_source_symtab): Sprinkle a few consts.  Use
strcmp instead of DEPRECATED_STREQ.
2005-08-29 12:57:49 +00:00
Mark Kettenis f44569944a * solib-svr4.c (svr4_current_sos, svr4_fetch_objfile_link_map):
Use XZALLOC and xzalloc instead of xmalloc where appropriate.
2005-08-29 09:27:19 +00:00
gdbadmin bc6921fada *** empty log message *** 2005-08-29 00:00:03 +00:00
gdbadmin 740742ebdd *** empty log message *** 2005-08-28 00:00:03 +00:00
Eli Zaretskii ab1adacd8a (Variables, Symbols): Document the "<incomplete type>" message and
its reasons.
2005-08-27 12:51:30 +00:00
Eli Zaretskii a94ab19323 * main.c (print_gdb_help): Don't advertise the (long non-existent)
option --mapped.

	* gdb.texinfo (File Options): Don't document --mapped, it's gone
	since 19-Jan-2004.
	(Files): Likewise.
2005-08-27 12:05:01 +00:00
gdbadmin 99b9cfd66d *** empty log message *** 2005-08-27 00:00:33 +00:00
gdbadmin 4f4aab6428 *** empty log message *** 2005-08-26 00:00:05 +00:00
gdbadmin bd0b04d84e *** empty log message *** 2005-08-25 00:00:31 +00:00
gdbadmin fd25e3cc63 *** empty log message *** 2005-08-24 00:00:33 +00:00
gdbadmin b97dd73cc9 *** empty log message *** 2005-08-23 00:00:04 +00:00
gdbadmin 656d444238 *** empty log message *** 2005-08-22 00:00:33 +00:00
Mark Kettenis 27df76f301 * doublest.c (floatformat_mantissa): Use xsnprintf instead of
sprintf.
2005-08-21 16:53:05 +00:00
Mark Kettenis cfaf379b3a * vaxobsd-tdep.c: New file.
* config/vax/obsd.mt (TDEPFILES): Add vaxobsd-tdep.o.
* Makefile.in (vaxobsd-tdep.o): New dependency.
2005-08-21 15:51:41 +00:00
Mark Kettenis 0dbe1904b3 * ppcobsd-tdep.c: Include "frame.h" and "frame-unwind.h". Don't
include "tramp-frame.h".
(ppcobsd_sigtramp_cache_init): Remove function.
(ppcobsd_sigtramp): Remove variable.
(ppcobsd_page_size, ppcobsd_sigreturn_offset): New variables.
(ppcobsd_sigtramp_p): New function.
(ppcobsd_sigtramp_frame_cache, ppcobsd_sigtramp_frame_this_id)
(ppcobsd_sigtramp_frame_prev_register): New functions.
(ppcobsd_sigtramp_frame_unwind): New variable.
(ppcobsd_sigtramp_frame_sniffer): New function.
(ppcobsd_init_abi): Adjust to register new sigtramp sniffer
instead of the old one.
* Makefile.in (ppcobsd-tdep.o): Update dependencies.
2005-08-21 10:47:48 +00:00
Mark Kettenis 1a4d7a3610 * infcall.c (call_function_by_hand): For
RETURN_VALUE_ABI_RETURNS_ADDRESS and
RETURN_VALUE_ABI_PRESERVES_ADDRESS, use gdbarch_return_value to
get return value.
2005-08-21 09:34:19 +00:00
Mark Kettenis d067a990c8 * valarith.c (value_equal, value_less): Avoid compiler bug on
systems where `long double' values are returned in static storage.
2005-08-21 09:33:11 +00:00
gdbadmin 7be9d1fa79 *** empty log message *** 2005-08-21 00:00:04 +00:00
gdbadmin 9f9bc05bd1 *** empty log message *** 2005-08-20 00:00:08 +00:00
gdbadmin 7530953b42 *** empty log message *** 2005-08-19 00:00:32 +00:00
Mark Kettenis 033a42c27a * stack.c: Reformat. Improve comments. Include "valprint.h".
(args_info, locals_info, backtrace_command, backtrace_command_1)
(backtrace_full_command, frame_info, frame_command, down_command)
(down_silently_base, down_silently_command, up_command)
(up_silently_base, up_silently_command, parse_frame_specification)
(current_frame_command, print_frame_args_vars, catch_info)
(args_plus_locals_info), print_frame_label_vars)
(print_block_frame_labels, print_block_frame_locals)
(func_command): Remove prototypes.
(print_stack_frame, backtrace_command_stub, backtrace_command,
backtrace_full_command, print_frame_args, print_frame_arg_vars,
print_args_stub, func_command): Remove redundant casts.
(addressprint): Remove extern declaration.
(frame_command): Make static.
(struct print_stack_frame_args, struct print_args_args): Rename
`fi' member to `frame'.
(print_stack_frame, print_frame_nameless_args, print_frame_args)
(set_current_sal_from_frame, print_frame_info, print_frame)
(show_stack_frame, print_block_frame_locals)
(print_frame_local_vars, print_frame_label_vars)
(print_frame_arg_vars, select_and_print_frame): Rename `fi'
argument to `frame'.
(func_command): Rename `fp' variable to `frame'.
(get_language): Restructure.
* Makefile.in (stack.o): Update dependencies.
2005-08-18 13:26:41 +00:00
gdbadmin af9130b6b6 *** empty log message *** 2005-08-18 00:00:04 +00:00
Kevin Buettner d64a6579d4 * NEWS (ms1-elf): New target. 2005-08-17 23:02:00 +00:00
Mark Kettenis 1c845060d9 * m68k-tdep.c (m68k_return_value): Properly return contents of
structures passed in memory.
2005-08-17 18:34:17 +00:00
Mark Kettenis 181fc57c8e * infcmd.c (print_return_value): Move CHECK_TYPEDEF up. Deal with
RETURN_VALUE_ABI_PRESERVED_ADDRESS.
2005-08-17 15:08:33 +00:00
Mark Kettenis 61bf9ae086 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Fix the code that
deals with the broken GCC convention.
2005-08-17 07:44:13 +00:00
gdbadmin 26e1de6854 *** empty log message *** 2005-08-17 00:00:05 +00:00
Mark Kettenis 65ada037fc * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Set condition
register appropriately for varargs functions.
2005-08-16 17:12:35 +00:00
gdbadmin 2dea415724 *** empty log message *** 2005-08-16 00:00:10 +00:00
Kevin Buettner 37ebea84fa * MAINTAINERS (ms1): New target ISA entry. List myself as
maintainer.
2005-08-15 22:23:59 +00:00
Kevin Buettner 61def6bdbf Contribute target dependent code for Morpho Technologies ms1 processor. 2005-08-15 21:46:38 +00:00
Mark Kettenis 44878bae0a * Makefile.in (m68kbsd-tdep.o): Ad missing space. 2005-08-15 21:19:20 +00:00
Ulrich Weigand 00ce08ef86 * s390-tdep.c (op1_lgfi, op2_lgfi, op1_agfi, op2_agfi,
op1_afi, op2_afi, op1_algfi, op2_algfi, op1_alfi, op2_alfi,
	op1_slgfi, op2_slgfi, op1_slfi, op2_slfi): New opcode enums.
	(s390_analyze_prologue): Recognize new z9-109 instructions.
2005-08-15 17:36:48 +00:00
gdbadmin b19d4ac8f0 *** empty log message *** 2005-08-15 00:00:03 +00:00
gdbadmin a765d810c8 *** empty log message *** 2005-08-14 00:00:32 +00:00
Mark Kettenis fbdbf38ba7 * solib-som.c (som_current_sos): Cast to 'gdb_byte *' where
appropriate.
2005-08-13 22:37:08 +00:00
Mark Kettenis 4ea4748e62 * tramp-frame.h (struct tramp_frame): Allow for 16 instructions
instead of 8.
* m68kbsd-tdep.c: Include "frame.h", "trad-frame.h" and
"tramp-frame.h".
(m68kobsd_sigtramp_cache_init): New function.
(m68kbsd_aout_init_abi): Prepend m68kobsd_sigtramp unwinder.
2005-08-13 22:31:30 +00:00
Mark Kettenis e4ef629de7 * inf-ptrace.c (inf_ptrace_him) [PT_GET_PROCESS_STATE]: Move
code...
(inf_ptrace_post_startup_inferior): ...here.  New function.
(inf_ptrace_attach) [PT_GET_PROCESS_STATE]: Move code...
(inf_ptrace_post_attach): ...here.
(inf_ptrace_target) [PT_GET_PROCESS_STATE]: Set
to_post_startup_inferior and to_post_attch.
2005-08-13 22:23:35 +00:00
Mark Kettenis 864a1a37a3 * sparc-tdep.c (sparc_breakpoint_from_pc): Constify break_insn. 2005-08-13 22:12:24 +00:00
Mark Kettenis 0c318c4966 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Check for
"__sighndlr".
2005-08-13 22:09:06 +00:00
Mark Kettenis 3182884062 * i386-linux-nat.c (fetch_register, store_register)
(supply_gregset, fill_gregset): Remove redundant casts.
2005-08-13 22:03:46 +00:00
gdbadmin e7bab58a7b *** empty log message *** 2005-08-13 00:00:33 +00:00
Kris Warkentin 42e9a5a09c 2005-08-12 Kris Warkentin <kewarken@qnx.com>
* i386-nto-tdep.c (i386nto_init_abi): Don't set gdbarch skip
      trampoline code hook.
    * nto-procfs.c (procfs_post_attach): Call solib_create_inferior_hook
      instead of  SOLIB_CREATE_INFERIOR_HOOK.
      (procfs_create_inferior): Ditto.
    * config/tm-nto.h: Don't define SKIP_TRAMPOLINE_CODE.
2005-08-12 17:28:57 +00:00
gdbadmin 0c1de4b1b2 *** empty log message *** 2005-08-12 00:00:33 +00:00
Andreas Schwab 0d059fcaa4 PR exp/1978
* valarith.c (value_binop): Fix result type for the shift
	operators.
2005-08-11 13:45:40 +00:00
gdbadmin 795c214561 *** empty log message *** 2005-08-11 00:00:03 +00:00
gdbadmin 875be9db9d *** empty log message *** 2005-08-10 00:00:06 +00:00
Mark Kettenis 47b4f8300a * sparc64obsd-tdep.c: Tweak comments.
(sparc64obsd_sigreturn_offset): Add offset for new OpenBSD 3.8
signal trampoline.
2005-08-09 19:32:59 +00:00
Corinna Vinschen 2f168eed4b * lib/mi-support.exp (mi_gdb_load): Fix typo. 2005-08-09 19:00:16 +00:00
Andrew Cagney 8e70166dc5 2005-08-09 Andrew Cagney <cagney@gnu.org>
* linux-nat.h (linux_proc_xfer_memory): Change type of "myaddr" a
	"gdb_byte" pointer.
	* linux-nat.c (linux_proc_xfer_memory): Update.
	(get_signo): Cast signo to a "gdb_byte" pointer.
	* i386-linux-nat.c (child_resume): Make "buf" a gdb_byte, delete
	redundant casts.
	(child_resume): Cast eflags to a "gdb_byte" pointer.
2005-08-09 16:35:45 +00:00
gdbadmin b9f53c143f *** empty log message *** 2005-08-09 00:00:03 +00:00
Mark Kettenis 059cb7d23e * tramp-frame.h (struct tramp_frame): Allow for 16 instructions
instead of 8.
* m68kbsd-tdep.c: Include "frame.h", "trad-frame.h" and
"tramp-frame.h".
(m68kobsd_sigtramp_cache_init): New function.
(m68kbsd_aout_init_abi): Prepend m68kobsd_sigtramp unwinder.
2005-08-08 20:59:19 +00:00
gdbadmin cd71c7baef *** empty log message *** 2005-08-08 00:00:32 +00:00
gdbadmin 5a8afccc02 *** empty log message *** 2005-08-07 00:00:35 +00:00
gdbadmin 3bba09652a *** empty log message *** 2005-08-06 00:00:04 +00:00
Fred Fish 9c833c8275 Reviewed and approved by Mark Kettenis <mark.kettenis@xs4all.nl>
2005-08-02  Fred Fish  <fnf@specifix.com>
	* defs.h (parse_frame_specification): Remove prototype.
	* stack.c (parse_frame_specification): Add prototype and
	make function static.
	(frame_info): Move common code outside if..then..else.
2005-08-05 21:08:54 +00:00
gdbadmin 34f2aa282e *** empty log message *** 2005-08-05 00:00:35 +00:00
Bob Rossi ecd3fd0f9d 2005-08-02 Bob Rossi <bob@brasko.net>
* gdb.mi/mi-basics.exp: Tell mi_gdb_start to use a PTY for inferior.
       (test_setshow_inferior_tty): Add global mi_inferior_tty_name to scope.
       Change tests to inferior-tty-set/show.
       * gdb.mi/mi-console.exp: Tell mi_gdb_start to use a PTY for inferior.
       (47-exec-next): Use mi_gdb_test to get GDB and Inferior output.
       * gdb.mi/mi-syn-frame.exp: Tell mi_gdb_start to use a PTY for
       inferior.  Use mi_gdb_test to get GDB and Inferior output.
       * lib/mi-support.exp (mi_inferior_spawn_id): Add inferior PTY
       descriptor.
       (mi_inferior_tty_name): Add inferior PTY file name.
       (mi_gdb_start): Add INFERIOR_PTY parameter.
       (mi_gdb_test): Add IPATTERN parameter.
2005-08-04 01:52:31 +00:00
gdbadmin affdd95ed4 *** empty log message *** 2005-08-04 00:00:07 +00:00
gdbadmin a250b8179a *** empty log message *** 2005-08-03 00:00:03 +00:00
Bob Rossi f1ea48cbd9 2005-08-02 Bob Rossi <bob@brasko.net>
* gdb.mi/mi-syn-frame.exp, gdb.mi/mi2-syn-frame.exp: Add MESSAGE
	parameter to mi_gdb_test.
	* lib/mi-support.exp (mi_gdb_test): Make MESSAGE parameter necessary.
2005-08-02 14:21:01 +00:00
Daniel Jacobowitz fc0c53a0cd * value.c (value_contents_writeable): Use value_contents_raw. 2005-08-02 03:13:50 +00:00
Daniel Jacobowitz 2b71414df9 Suggested by Shaun Jackman <sjackman@gmail.com>:
* defs.h (print_transfer_performance): Update prototype.
	* m32r-rom.c (m32r_load, m32r_upload_command): Use gettimeofday
	for print_transfer_performance.
	* remote-m32r-sdi.c (m32r_load): Likewise.
	* symfile.c (generic_load): Likewise.
	(report_transfer_performance): Create a dummy struct timeval.
	(print_transfer_performance): Use a more accurate measure
	of performance.
2005-08-02 03:02:05 +00:00
gdbadmin 4bb64c2874 *** empty log message *** 2005-08-02 00:00:33 +00:00
Fred Fish 53fbdf7dd5 Reviewed/approved by Daniel Jacobowitz <dan@codesourcery.com>
2005-08-01  Fred Fish  <fnf@specifix.com>
	* stack.c (parse_frame_specification_1): Remove use of obsolete
	SETUP_ARBITRARY_FRAME macro.
2005-08-01 18:32:51 +00:00
Fred Fish ca06016a0a Reviewed/approved by Daniel Jacobowitz <drow@false.org>
2005-08-01  Fred Fish  <fnf@specifix.com>
	* gdb.texinfo (SETUP_ARBITRARY_FRAME): Remove obsolete reference.
2005-08-01 18:31:28 +00:00
Daniel Jacobowitz 77e0b926c1 * dwarf2-frame.c (read_signed_leb128): Handle values that do not
fit in 32 bits.
	* dwarf2read.c (read_signed_leb128): Likewise.
2005-08-01 04:06:27 +00:00
Daniel Jacobowitz 3ffbc0a500 From Josef Ezra <jezra@emc.com>:
* tracepoint.c (stringify_collection_list): Correct pointer
	arithmetic.
2005-08-01 03:41:34 +00:00
Daniel Jacobowitz 7ed0fe6656 Suggested by Vladimir Prus <ghost@cs.msu.su>:
* infrun.c (handle_inferior_event): Check for line information in
	undebuggable functions.
2005-08-01 03:32:32 +00:00
gdbadmin 1ef70d03a1 *** empty log message *** 2005-08-01 00:00:03 +00:00
Daniel Jacobowitz 6e650a6732 * gdb.mi/mi-var-child.c (do_children_tests): Initialize
struct_declarations.
	* gdb.mi/mi-var-child.exp: Step over the initialization of
	struct_declarations.
2005-07-31 22:10:53 +00:00
Daniel Jacobowitz 8be260b6f9 * gdb.mi/basics.c, gdb.mi/var-cmd.c: Revert last change.
* gdb.mi/mi-stack.c: New file, based on gdb.mi/basics.c.
	* gdb.mi/mi-var-child.c: New file, based on gdb.mi/var-cmd.c.
	* gdb.mi/mi-stack.exp: Update to use mi-stack.c as a source file.
	* gdb.mi/mi-var-child.exp: Update to use mi-var-child.c as a source
	file.
2005-07-31 21:24:25 +00:00
Daniel Jacobowitz bee0189a82 From Kaveh R. Ghazi <ghazi@caip.rutgers.edu>:
gdb/
	* cli-out.c (cli_field_fmt, cli_message, out_field_fmt): Add
	ATTR_FORMAT or ATTRIBUTE_FPTR_PRINTF.
	* complaints.c (vcomplaint): Likewise.
	* defs.h (xvasprintf, xstrvprintf, verror, vfatal)
	(internal_verror, internal_vwarning, vwarning)
	(deprecated_query_hook, deprecated_warning_hook)
	(deprecated_readline_begin_hook): Likewise.
	* disasm.c (fprintf_disasm): Likewise.
	* exceptions.c (throw_it): Likewise.
	* exceptions.h (throw_verror, throw_vfatal): Likewise.
	* mi/mi-interp.c (mi_interp_query_hook): Likewise.
	* mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
	* tui/tui-hooks.c (tui_query_hook): Likewise.
	* tui/tui-out.c (tui_field_fmt, tui_message, out_field_fmt):
	Likewise.
	* ui-out.c (default_field_fmt, default_message, uo_field_fmt)
	(uo_message): Likewise.
	* ui-out.h (ui_out_field_fmt, ui_out_message, field_fmt_ftype)
	(message_ftype): Likewise.
	* utils.c (vfprintf_maybe_filtered, internal_vproblem)
	(defaulted_query, printchar): Likewise.
gdb/gdbserver/
	* server.h (error, fatal, warning): Add ATTR_FORMAT.
2005-07-31 20:56:26 +00:00
gdbadmin 409a795dc3 *** empty log message *** 2005-07-31 00:00:33 +00:00
gdbadmin 03ca24228e *** empty log message *** 2005-07-30 00:00:07 +00:00
gdbadmin 8655b342bf *** empty log message *** 2005-07-29 00:00:38 +00:00
gdbadmin bec15d1f6a *** empty log message *** 2005-07-28 00:00:39 +00:00
Nick Roberts d8d83e9b52 * gdb.mi/var-cmd.c: Give long_array in _struct_decl 12 elements.
(do_children_tests): Assign values to the extra elements.

* gdb.mi/mi-var-child.exp: Adapt tests for extra elements and use
them for tests for "-var-update --no-values" and
"-var-update --all-values".
Add test for "-var-list-children --simple-values".

* gdb.mi/basics.c (callee4): Add integer array D[3]...

* gdb.mi/mi-stack.exp (test_stack_locals_listing): ...to test
"-stack-list-locals --simple-values"  Improve doc strings and
comments.
2005-07-27 02:21:16 +00:00
Nick Roberts 4e660f0729 *** empty log message *** 2005-07-27 02:18:24 +00:00
gdbadmin 80531647e1 *** empty log message *** 2005-07-27 00:00:07 +00:00
Mark Kettenis 3ed8524757 * i386obsd-tdep.c (i386obsd_sigreturn_offset): New variable.
(i386obsd_sigtramp_p): Deal with an arbitrary number of possible
offsets.
(i386obsd_aout_supply_regset): Avoid bogus cast.
2005-07-26 20:02:55 +00:00
gdbadmin 947815aa1e *** empty log message *** 2005-07-26 00:00:03 +00:00
Mark Kettenis 735f54b499 * inf-ptrace.c [PT_GET_PROCESS_STATE] (inf_ptrace_follow_fork):
New function.
(inf_ptrace_him, inf_ptrace_attach) [PT_GET_PROCESS_STATE]: Set
PTRACE_FORK event flag.
(inf_ptrace_wait) [PT_GET_PROCESS_STATE]: Handle PTRACE_FORK
event.
(inf_ptrace_target) [PT_GET_PROCESS_STATE]: Set to_follow_fork.
2005-07-25 21:11:02 +00:00
Mark Kettenis 4b8a1a2882 * gdb_ptrace.h (PT_TRACE_ME): Define to zero if not already
defined.
* inf-ptrace.c: Tweak comments.
(inf_ptrace_me): Use PT_TRACE_ME instead of hardcoded zero.
(inf_ptrace_mourn_inferior): Call waitpid.
(inf_ptrace_attach): Use pid_t, Remove unnecessary cast.
(inf_ptrace_detach): Use pid_t.  Use ptid_get_pid instead of
PIDGET.
(inf_ptrace_kill): Rename from inf_ptrace_kill_inferior.  Use
pid_t.  Use ptid_get_pid instead of PIDGET.
(inf_ptrace_kill): Call waitpid instead of wait.
(inf_ptrace_resume): Use pid_t.  Use ptid_get_pid instead of
PIDGET.
(inf_ptrace_wait): Use waitpid instead wait.  Use pid_t.  Don't
call target_has_exited or target_thread_alive.  Properly ignore
terminated detached child processes.
(inf_ptrace_has_exited): Remove function.
(inf_ptrace_xfer_partial): Use pid_t.  Use ptid_get_pid instead of
PIDGET.  Use gdb_byte instead of `unsigned char'.
(inf_ptrace_thread_alive): Use ptid_get_pid instead of PIDGET.
(inf_ptrace_pid_to_str): Remove function.
(inf_ptrace_target): Use inf_ptrace_kill instead of
inf_ptrace_kill_inferior.  Use normal_pid_to_str instead of
inf_ptrace_pid_to_str.  Don't set to_has_exited.
(inf_ptrace_fetch_register, inf_ptrace_store_register): Reformat
long lines.
2005-07-25 20:42:29 +00:00
Mark Kettenis c7c14b96ad * inf-ptrace.c: Reorder functions.
(inf_ptrace_open, inf_ptrace_reported_exec_events_per_call)
(inf_ptrace_can_run, inf_ptrace_post_attach): Removed.
(inf_ptrace_target): Don't set to_open,
to_reported_exec_events_per_call, to_can_run, to_post_attach,
to_stratum, to_has_all_memory, to_has_memory, to_has_stack,
to_has_registers, to_has_execution, to_magic.  Reorder remaining
initializations.
2005-07-25 20:19:37 +00:00
Mark Mitchell 7ef34f2cde * configure.ac: On MinGW, do not require a termcap library, and
use win32-termcap.c.
	* configure: Regenerated.
	* win32-termcap.c: New file.
2005-07-25 15:08:41 +00:00
gdbadmin 47f7a80ea0 *** empty log message *** 2005-07-25 00:00:02 +00:00
Mark Mitchell 056d764617 * ser-tcp.c (close): Define as a function-like macro on MinGW. 2005-07-24 23:02:41 +00:00
gdbadmin 565b98c91a *** empty log message *** 2005-07-24 00:00:04 +00:00
gdbadmin 8988f097ff *** empty log message *** 2005-07-23 00:00:04 +00:00
gdbadmin 7e6ac9b631 *** empty log message *** 2005-07-22 00:00:08 +00:00
Eric Christopher e04e8f8ae6 2005-07-21 Eric Christopher <echristo@apple.com>
* MAINTAINERS (Misc): Update affiliation.
2005-07-21 22:30:16 +00:00
Mark Kettenis 5d426ff1d3 * inf-ttrace.c (inf_ttrace_wait): Properly report TTEVT_EXEC
events as TARGET_WAITKIND_EXECD.
(inf_ttrace_detach): Reorder local variables.
2005-07-21 10:36:19 +00:00
gdbadmin 6f6b6d441e *** empty log message *** 2005-07-21 00:00:33 +00:00
Mark Kettenis b2a4db28c2 * inf-ttrace.c (inf_ttrace_vfork_ppid): New variable.
(inf_ttrace_follow_fork): New function.
(inf_ttrace_him, inf_ttrace_attach): Ask for TTEVT_FORK and
TTEVT_VFORK events.  Replace TTEO_NOSTRCHLD option with
TTEO_PROC_INHERIT.
(inf_ttrace_create_inferior, inf_ttrace_attach): Add checks for
inf_ttrace_vfork_ppid.
(inf_ttrace_kill_inferior, inf_ttrace_detach): Detach from waiting
parent if appropriate.
(inf_ttrace_wait): Handle TTEVT_FORK and TTEVT_VFORK.
(inf_ttrace_target): Set to_follow_fork.
2005-07-20 13:25:28 +00:00
Wu Zhou 6c76e4a1c9 * remote.c (remote_pid_to_str): Use xsnprintf instead of snprintf. 2005-07-20 02:56:43 +00:00