Commit Graph

21715 Commits

Author SHA1 Message Date
Daniel Jacobowitz 41f1b6975d * infcall.c (call_function_by_hand): Handle language-specific
pass and return by reference.

	* cp-abi.c (cp_pass_by_reference): New.
	* cp-abi.h (cp_pass_by_reference): Declare.
	(struct cp_abi_ops): Add pass_by_reference.
	* gnu-v3-abi.c (gnuv3_pass_by_reference): New.
	(init_gnuv3_ops): Set pass_by_reference.

	* language.c (language_pass_by_reference): New.
	(default_pass_by_reference): New.
	(unknown_language_defn, auto_language_defn, local_language_defn): Add
	default_pass_by_reference.
	* langauge.h (struct language_defn): Add la_pass_by_reference.
	(language_pass_by_reference, default_pass_by_reference): Declare.
	* ada-lang.c (ada_language_defn): Add default_pass_by_reference.
	* c-lang.c (c_language_defn, asm_language_defn)
	(minimal_language_defn): Likewise.
	(cplus_language_defn): Add cp_pass_by_reference.
	* f-lang.c (f_language_defn): Add default_pass_by_reference.
	* 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

	* gdb.cp/pass-by-ref.cc, gdb.cp/pass-by-ref.exp: New files.
2007-09-23 16:25:06 +00:00
Pedro Alves 3f213f78ed * configure.ac: Do gdb.stabs tests by default on Cygwin and MinGW
targets.
	* configure: Regenerate.
2007-09-23 13:56:56 +00:00
Vladimir Prus 0d381245e3 * breakpoint.h (enum enable_state): Remove the
bp_shlib_disabled enumerator.
	(struct bp_location): New members shlib_disabled,
	global_next, enabled and function_name.
	Rename pending to condition_not_parsed.

	* breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
	(ALL_BP_LOCATIONS_SAFE): Likewise.
	(breakpoint_enabled): Don't check for pending.
	(condition_command): Free and update all locations of
	a breakpoint.
	(insert_bp_location): Adjust.
	(software_breakpoint_inserted_here_p): Don't care
	if breakpoint is enabled, as soon as it's inserted.
	(print_it_typical): Print bpstat's location, not
	bpstat's breakpoint's location.
	(bpstat_stop_status): Iterate over all locations, not
	all breakpoints.
	(print_breakpoint_location): New.
	(print_one_breakpoint): Renamed to
	(print_one_breakpoint_location): ...this. Take
	parameters to describe which location is being
	printed. Modify code to properly print header
	for several locations and individual locations.
	(print_one_breakpoint): Print all locations.
	(breakpoint_has_pc): New.
	(describe_other_breakpoints): Use the above.
	(check_duplicates): Renamed to...
	(check_duplicates_for): .. this.
	(check_duplicates): Use check_duplicates_for.
	(allocate_bp_location): Adjust.
	(set_raw_breakpoint_without_location): New,
	extracted from set_raw_breakpoint.
	(set_breakpoint_location_function): New.
	(set_raw_breakpoint): Use
	set_raw_breakpoint_without_location.
	(make_breakpoint_permanent): Mark all locations
	as inserted.
	(disable_breakpoints_in_shlibs): Iterate over
	locations.
	(disable_breakpoints_in_unloaded_shlib): Likewise.
	(re_enable_breakpoints_in_shlibs): Likewise.
	(mention): Say "pending" when breakpoint has
	zero locations.  If breakpoint has more than one
	location, say so.
	(add_location_to_breakpoint): New.
	(create_breakpoint): Accept symtabs_and_lines, not
	symtab_and_line. Pass extra sals to
	add_location_to_breakpoint.
	(create_breakpoints): Pass symtabs_and_lines to
	create_breakpoints.
	(break_command_1): Make pending breakpoints
	have zero locations.
	(do_captured_breakpoint): Remove wrong allocation.
	(clear_command): Iterate over all locations.
	(unlink_locations_from_global_list): Renamed
	from unlink_location_from_global_list. Remove
	all locations.
	(delete_breakpoint): Remove all locations.
	Iterate over all locations when deciding which
	other location to re-enable.
	(all_locations_are_pending): New.
	(update_breakpoint_locations): Renamed from
	update_breakpoint_location. Try to match old
	and new locations using names of containing
	functions.
	(breakpoint_re_set_one): Adjust.
	(find_location_by_number): New.
	(disable_command): Allow disabling individual location.
	(enable_command): Allow enabling individual location.
	* breakpoint.c: Adjust all uses of breakpoint's
	enable state to for bp_shlib_disabled change.
2007-09-23 07:56:22 +00:00
gdbadmin f58849bd46 *** empty log message *** 2007-09-23 00:00:36 +00:00
Vladimir Prus fe3f5fa8f9 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
(resolve_pending_breakpoint): Remove.
	(re_enable_breakpoints_in_shlibs): Remove.
	(unlink_locations_from_global_list): New.
	(update_breakpoint_locations): New.
	(breakpoint_re_set_one): Don't bail out on pending breakpoints.
	Use parse_condition and update_breakpoint_location to
	reset breakpoint.  Ignore 'symbol not found' error from
	decode_line_1.
	(breakpoint_re_set): Don't emit newline before the
	reason why breakpoint is not reset.
	(do_enable_breakpoint): Don't specially process pending
	breakpoints.
	(free_bp_location): New.
	(break_command_1): For pending breakpoints, initialize
	all fields of a sal with zeroes.
	* breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
	* infcmd.c (post_create_inferior): Don't call
	re_enable_breakpoints_in_shlibs.
	* infrun.c (handle_inferior_event): Likewise.
	* solib-irix.c (irix_solib_create_inferior_hook): Likewise.
	* solib-osf.c (osf_solib_create_inferior_hook): Likewise.
	* win32-nat.c (get_win32_debug_event): Likewise.
2007-09-22 19:33:32 +00:00
Vladimir Prus 018d34a46b * breakpoint.c (create_breakpoint): Split from
create_breakpoints, implementing most of its logic.
	Take just a single sal, single address string and
	single condition.  Do not take parsed condition at
	all.
	(create_breakpoints): Just call create_breakpoint
	for each sal.
	(find_condition_and_thread): New.
	(break_command_1): Use find_condition_and_thread.
	Do not keep parsed conditions.
	(do_captured_breakpoint): Don't convert
	condition string to struct expression.
2007-09-22 19:10:05 +00:00
Vladimir Prus 511a6cd4e1 gdb/
* breakpoint.h (struct breakpoint): Move the cond
	field to...
	(struct bp_location): Here.
	* breakpoint.c (condition_command, bpstat_stop_status)
	(print_one_breakpoint, allocate_bp_location)
	(solib_load_unload_1, create_fork_vfork_event_catchpoint)
	(create_exec_event_catchpoint, create_breakpoints)
	(break_command_1, watch_command_1, handle_gnu_v3_exceptions)
	(create_ada_exception_breakpoint, set_breakpoint_sal)
	(delete_breakpoint, breakpoint_re_set_one): Adjust.
	* tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
2007-09-22 19:06:59 +00:00
Vladimir Prus 4f8d1dc6a5 Associate bp_stat with bp_location, not breakpoint.
* breakpoint.h (breakpoint_at): Change type
	to bp_location*.
	* breakpoint.c (bpstat_alloc): Take bp_location,
	not breakpoint.
	(bpstat_find_breakpoint): Look at bpstat's location's
	owner, not at bpstat->breakpoint_at.
	(bpstat_find_step_resume_breakpoint): Likewise.
	(bpstat_num): Likewise.
	(print_it_typical): Likewise.
	(print_bp_stop_message): Likewise.
	(watchpoint_check): Likewise.
	(bpstat_what): Likewise.
	(bpstat_get_triggered_catchpoints): Likewise.
	(breakpoint_auto_delete): Likewise.
	(delete_breakpoint): Likewise.
	(bpstat_stop_status): Pass location, not breakpoint,
	to bpstat_alloc.  Look at bpstat's location's
	owner, not at bpstat->breakpoint_at.
2007-09-22 17:49:41 +00:00
Jim Blandy 3262338673 * macrotab.h (new_macro_table): Document that removing information
from an obstack/bcache-managed macro table leaks memory.
* macrotab.c (macro_free, macro_bcache_free): Instead of asserting
that data is never freed in obstack/bcache-managed macro tables,
just leak the storage.
(macro_undef): If we're undefining a macro at exactly the same
source location that we defined it, simply remove the definition
altogether.
2007-09-22 01:09:19 +00:00
gdbadmin 5aa6af59af *** empty log message *** 2007-09-22 00:00:33 +00:00
Daniel Jacobowitz a75cf6c00c * gdb.base/sepdebug.exp (test_different_dir): Append to pf_prefix. 2007-09-21 22:42:52 +00:00
Joel Brobecker c295b2e505 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
* coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
        Adjust the struct sym_fns object accordingly by setting
        the new field to NULL.
        * xcoffread.c (aix_process_linenos): Make static.
        (xcoff_sym_fns): Set new field to aix_process_linenos.
        * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
        by call to new the new sym_fns sym_read_linetable function.
        * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
        * config/rs6000/tm-rs6000.h: Delete.
2007-09-21 18:01:26 +00:00
Maciej W. Rozycki ab2e1992cf * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
rules do not treat composite types specially.
2007-09-21 15:54:58 +00:00
gdbadmin aca99d3e4e *** empty log message *** 2007-09-21 00:00:03 +00:00
Maciej W. Rozycki 97ab0fdd9d * mips-tdep.c (mips32_in_function_epilogue_p): New function.
(mips16_in_function_epilogue_p): Likewise.
(mips_in_function_epilogue_p): Likewise.
(mips_gdbarch_init): Register mips_in_function_epilogue_p().
2007-09-20 15:34:19 +00:00
gdbadmin ea3c290040 *** empty log message *** 2007-09-20 00:00:02 +00:00
Joel Brobecker 01fe12f6fb * configure.ac: Add check for "etext".
* configure, config.in: Regenerate.
        * maint.c (TEXTEND): Only define if either _etext or etext
        are available.
        Disable the profiling functionality if TEXTEND is not defined.
2007-09-19 22:00:34 +00:00
Daniel Jacobowitz aa6c981f95 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
address register.  Correct the call to frame_id_build.
	(mips_stub_frame_sniffer): Use the stub unwinder when the PC
	is invalid.
2007-09-19 14:45:39 +00:00
Daniel Jacobowitz fd462a6189 * linux-low.c (O_LARGEFILE): Define.
(linux_read_memory): Use /proc/PID/mem.
	* configure.ac: Use AC_GNU_SOURCE.  Check for pread64.
	* configure, config.in: Regenerated.
2007-09-19 14:41:50 +00:00
gdbadmin 039cfc074b *** empty log message *** 2007-09-19 00:00:02 +00:00
Joel Brobecker 393129712f * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
the linetable past the function end.
2007-09-18 23:46:04 +00:00
Jim Wilson 558dc30aec Update my email address. 2007-09-18 21:13:03 +00:00
Jim Wilson 2e2973de8b Update email address. 2007-09-18 21:10:41 +00:00
Jerome Guitton 60e2c248bc * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
(inf_ttrace_delete_dying_threads_callback): New function.
        (inf_ttrace_resume): After resuming the execution, iterate over
        the dying threads to delete them for the thread list.
        (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
        mark the corresponding thread as dying instead of removing it
        from the thread list.
        (inf_ttrace_thread_alive): return 0 for dying threads.
2007-09-18 12:42:22 +00:00
gdbadmin 87dcefc059 *** empty log message *** 2007-09-18 00:00:37 +00:00
Joel Brobecker f4c1edd8e5 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
that return_frame is not null.
2007-09-17 19:44:20 +00:00
Joel Brobecker 8d4e36bad1 * solib-svr4.c: Add include of "auxv.h".
(enable_break): Use the AT_BASE auxiliary entry if available.
        * Makefile.in (solib-svr4.o): Update dependencies.
2007-09-17 19:32:53 +00:00
Joel Brobecker f9ed52beed * NEWS: Create a new section for the next release branch.
Rename the section of the current branch, now that it has
        been cut.
2007-09-17 19:30:05 +00:00
Daniel Jacobowitz 18ecae3831 * schedlock.c (NUM): Change to 1.
(main): Use args[0] for the main thread.
	* schedlock.exp: Only expect two threads.  Only issue one pass or fail
	regardless of the number of threads.
2007-09-17 15:38:05 +00:00
Jerome Guitton eff4f95e29 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
* Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
2007-09-17 14:53:05 +00:00
gdbadmin b6dcfa7d9e *** empty log message *** 2007-09-17 00:00:02 +00:00
Vladimir Prus 084344da42 * mi/mi-cmds.c (mi_cmds): Register -list-features.
* mi/mi-cmds.h (mi_cmd_list_features): New.
	* mi/mi-main.c (mi_cmd_list_features): New.
2007-09-16 14:59:31 +00:00
gdbadmin ea9eba9bfa *** empty log message *** 2007-09-16 00:00:32 +00:00
Eli Zaretskii 7e27a47a1e gdb.texinfo (Separate Debug Files): More accurate wording regarding
build ID and a reference to the ld manual rather than the Fedora wiki.
2007-09-15 09:49:36 +00:00
Eli Zaretskii 821609525d * gdb.texinfo (Output): Spell out which features of C's printf are
not supported by GDB's printf.
2007-09-15 08:54:26 +00:00
gdbadmin 2fc5992fbb *** empty log message *** 2007-09-15 00:00:33 +00:00
Maciej W. Rozycki 4a543daf06 * gdb.mi/mi-watch.exp (test_watchpoint_all): Pass the watchpoint
type down.
(test_watchpoint_triggering): XFAIL the sw watchpoint scope
test.
* gdb.mi/mi2-watch.exp (test_watchpoint_all): Pass the
watchpoint type down.
(test_watchpoint_triggering): XFAIL the sw watchpoint scope
test.
2007-09-14 17:37:55 +00:00
Maciej W. Rozycki 5509918fe4 [mti-fix-scope]
* gdb.mi/mi-watch.exp (test_watchpoint_all): New function.
Move all the tests here and run them twice, once using software
watchpoints and once using hardware watchpoints.
* gdb.mi/mi2-watch.exp (test_watchpoint_all): Likewise.
2007-09-14 17:21:29 +00:00
gdbadmin 8e8b1f6967 *** empty log message *** 2007-09-14 00:00:33 +00:00
gdbadmin 17b6b921e4 *** empty log message *** 2007-09-13 00:00:32 +00:00
Daniel Jacobowitz 40b5398770 * gdb.base/solib-weak.exp (do_test): Adjust the file names for each
test.
2007-09-12 15:12:53 +00:00
gdbadmin aa31c83b93 *** empty log message *** 2007-09-12 00:00:03 +00:00
gdbadmin 50c7215d2f Record GDB 6.7 branch creation. Bump version number to 6.7.50-20070911-cvs. 2007-09-11 21:28:45 +00:00
gdbadmin d1cb150d60 *** empty log message *** 2007-09-11 00:00:02 +00:00
Daniel Jacobowitz 4d8453a549 * thread.c (free_thread): Do not delete the step resume breakpoint
right away.
2007-09-10 21:27:23 +00:00
Daniel Jacobowitz 4eb0ad19f3 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
* corelow.c (core_read_description): New.
	(init_core_ops): Set to_read_description.
	* gdbarch.sh: Add gdbarch_core_read_description.
	* mips-linux-tdep.c (mips_linux_core_read_description): New.
	(mips_linux_init_abi): Call set_gdbarch_core_read_description.
	* mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
	(mips_register_g_packet_guesses): Use them.
	(_initialize_mips_tdep): Initialize them.
	* mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
	* gdbarch.h, gdbarch.c: Regenerated.
2007-09-10 21:14:11 +00:00
Ulrich Weigand 6a6b96b9c2 * infrun.c (stepping_past_breakpoint): New global variable.
(stepping_past_breakpoint_ptid): Likewise.
	(prepare_to_proceed): Add STEP parameter.  Do not check for Ctrl-C.
	Only switch threads if we need to single-step over a breakpoint hit
	in the previously selected thread.  If stepping, remember previous
	thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID].  Call
	switch_to_thread instead of copying its contents.
	(proceed): Pass STEP to prepare_to_proceed.  Always set ONEPROC if
	prepare_to_proceed returns true.
	(init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
	(context_switch): Call switch_to_thread.
	(handle_inferior_event): Switch back to previous thread if requested
	in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
	* gdbthread.h (switch_to_thread): Add prototype.
	* thread.c (switch_to_thread): Make global.
2007-09-10 18:49:26 +00:00
gdbadmin b7d8ff2e0f *** empty log message *** 2007-09-10 00:00:32 +00:00
Mark Kettenis 8b3fc8d898 * lib/gdb.exp (build_id_debug_filename_get): Improve check for
build-id.
2007-09-09 22:25:31 +00:00
Mark Kettenis 695e2681dd * lib/gdb.exp (gdb_compile): OpenBSD doesn't need -dl, and doesn't
know about $ORIGIN.  Calculate output dir from $dest instead of
using ${objdir}/{$subdir}.
2007-09-09 22:19:15 +00:00
Mark Kettenis 58d69f2966 * gdb.base/gcore-buffer-overflow.exp: Check whether gdb supports
gcore, before continuing with the test.
2007-09-09 21:31:00 +00:00
gdbadmin d09372cec9 *** empty log message *** 2007-09-09 00:00:03 +00:00
gdbadmin 3b98f92378 *** empty log message *** 2007-09-08 00:00:35 +00:00
Pierre Muller b20a3440c9 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
* p-valprint.c: Fix 7 ARI reported problems.
	 (pascal_val_print): Fix one operator at end of line issue.
	 Use paddress function to remove use of
	 deprecated_print_address_numeric function (2 times).
	 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
	 (pascal_value_print): Fix 3 operator at end of line issues.
2007-09-07 12:34:55 +00:00
Daniel Jacobowitz faa95490e5 PR gdb/2103
* arm-tdep.c (arm_in_call_stub): Delete.
	(arm_skip_stub): Handle from_arm and from_thumb stubs.
2007-09-07 12:13:45 +00:00
gdbadmin 488851e57f *** empty log message *** 2007-09-07 00:00:04 +00:00
Daniel Jacobowitz 3e34759906 * gdb.mi/mi2-watch.exp: Set can-use-hw-watchpoints to 0 if required.
* gdb.mi/mi-watch.exp: Likewise.
2007-09-06 23:25:41 +00:00
Daniel Jacobowitz f0027ce269 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
types.
2007-09-06 20:21:16 +00:00
Daniel Jacobowitz b5d84f6ee2 Remove files missed from last commit. 2007-09-06 20:20:27 +00:00
gdbadmin a8231e4eda *** empty log message *** 2007-09-06 00:00:06 +00:00
Daniel Jacobowitz ea37ba0926 * NEWS: Update description of string changes. Mention print/s.
* c-valprint.c (textual_element_type): New.
	(c_val_print): Use it.  Do not skip address printing for pointers
	with a string format.
	(c_value_print): Doc update.
	* dwarf2read.c (read_array_type): Use make_vector_type.
	* gdbtypes.c (make_vector_type): New.
	(init_vector_type): Use it.
	(gdbtypes_post_init): Initialize builtin_true_unsigned_char.
	(_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
	* gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
	(TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
	(make_vector_type): New.
	* printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
	Call the language print routine for string format.
	(print_scalar_formatted): Call val_print for string format.  Handle
	unsigned original types for char format.
	(validate_format): Do not reject string format.
	* stabsread.c (read_type): Use make_vector_type.
	* xml-tdesc.c (tdesc_start_vector): Use init_vector_type.

	* gdb.texinfo (Output Formats): Update 'c' description.  Describe 's'.
	(Examining Memory): Update mentions of the 's' format.
	(Automatic Display): Likewise.

	* gdb.arch/i386-sse.exp: Do not expect character constants.
	* gdb.base/charsign.c, gdb.base/charsign.exp: Delete.
	* gdb.base/display.exp: Allow print/s.
	* gdb.base/printcmds.exp, gdb.base/setvar.exp: Revert signed
	and unsigned char array changes.
2007-09-05 00:51:49 +00:00
Michael Snyder fcd776e547 2007-09-04 Michael Snyder <msnyder@access-company.com>
* expprint.c (print_subexp_standard): Check strchr for null.
	* Makefile.in (expprint.o): Depend on gdb_assert.h.
2007-09-05 00:14:02 +00:00
Michael Snyder 7d63ec12b1 2007-09-04 Michael Snyder <msnyder@access-company.com>
* gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
2007-09-05 00:07:07 +00:00
Michael Snyder 8fb822e099 2007-09-04 Michael Snyder <msnyder@access-company.com>
* stabsread.c (patch_block_status): Guard against null.
	* Makefile.in (stabsread.o): Depend on gdb_assert.h.
2007-09-05 00:01:41 +00:00
gdbadmin 6e4e6e6058 *** empty log message *** 2007-09-05 00:00:02 +00:00
Daniel Jacobowitz 69f223edd7 * linux-low.c (linux_wait_for_event): Do not pass signals while
single-stepping.
2007-09-04 21:30:23 +00:00
Daniel Jacobowitz 2025a643ef * printcmd.c (printf_command): Handle ptr_arg. Correct typo
in internal error message.

	* gdb.base/display.exp: Add tests for printf %p.
2007-09-04 14:18:47 +00:00
Pedro Alves 1d751abe59 Revert accidentally committed hunk... Sorry. 2007-09-04 01:38:07 +00:00
Pedro Alves de1b3c3d02 * infcmd.c (post_create_inferior): Update comment.
(run_command_1): Always call post_create_inferior with 0 as
	from_tty.

	* i386-cygwin-tdep.h: New.
	* i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
	(win32_xfer_shared_library): Make it extern.

	* win32-nat.c: Include gdb_obstack.h and xml-support.h and
	i386-cygwin-tdep.h.
	(win32_so_ops): Delete.
	(get_relocated_section_addrs): Delete.
	(solib_symbols_add): Delete.
	(register_loaded_dll): Delete.
	(win32_make_so): New.
	(handle_load_dll): Use win32_make_so.
	(win32_free_so): Free the passed in so.
	(win32_relocate_section_addresses): Delete.
	(win32_solib_create_inferior_hook): Delete.
	(handle_unload_dll): Don't add PE offset here.  Free so with
	win32_free_so instead of free_so.
	(win32_special_symbol_handling): Delete.
	(get_win32_debug_event): Remove unneeded calls.  Set state to
	TARGET_WAITKIND_LOADED on a dll unload.
	(do_initial_win32_stuff): Clear cygwin_load_start and
	cygwin_load_end.
	(map_code_section_args): Delete.
	(dll_code_sections_add): Delete.
	(core_section_load_dll_symbols): Delete.
	(win32_xfer_shared_libraries): New.
	(win32_current_sos): Delete.
	(win32_xfer_partial): New.
	(open_symbol_file_object): Delete.
	(in_dynsym_resolve_code): Delete.
	(init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
	of win32_ops.  Remove win32_so_ops settings.  Don't set
	current_target_so_ops here.

	* Makefile.in (i386_cygwin_tdep_h): New variable.
	(i386-cygwin-tdep.o): Update dependencies.
	(win32-nat.o): Update dependencies.
2007-09-04 01:12:18 +00:00
gdbadmin 8afa4c23b1 *** empty log message *** 2007-09-04 00:00:04 +00:00
Pedro Alves de58486143 * gdbarch.sh (core_xfer_shared_libraries): New.
* corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.

	* gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.

	* xml-support.c (gdb_xml_parse): Debug output tweaks.
	(xml_escape_text): New.
	* xml-support.h (xml_escape_text): Declare.

	* config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
	* config/i386/cygwin.mt (TDEPFILES): ... here.

	* win32-nat.c: (fetch_elf_core_registers): Delete.
	(win32_elf_core_fn): Delete.
	(_initialize_core_win32): Delete.

	* i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
	"xml-support.h" and "gdbcore.h".
	(i386_win32_gregset_reg_offset): New.
	(I386_WIN32_SIZEOF_GREGSET): New.
	(i386_win32_regset_from_core_section): New.
	(win32_xfer_shared_library): New.
	(struct cpms_data): New.
	(core_process_module_section): New.
	(win32_core_xfer_shared_libraries): New.
	(i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
	gregset_num_regs, sizeof_gregset members of tdep.  Register
	regset_from_core_section and core_xfer_shared_libraries callbacks.

	* Makefile.in (i386-cygwin-tdep.o): Update dependencies.
	* gdbarch.h, gdbarch.c: Regenerate.
2007-09-03 23:06:35 +00:00
Pedro Alves 7160c4c357 * corelow.c (core_xfer_partial): Pass writebuf to
deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
2007-09-03 22:31:45 +00:00
Pedro Alves 6dc134122f * arm-tdep.h (arm_skip_stub): Declare.
* arm-wince-tdep.c: Don't include "solib-svr4.h".  Include
	"gdbcore.h".
	(arm_pe_skip_trampoline_code): New function.
	(arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
	gdbarch_skip_trampoline_code callback.
	* Makefile.in (arm-wince-tdep.o): Update dependencies.
2007-09-03 22:24:24 +00:00
Pedro Alves aec18585f0 * win32-low.c (create_process): New.
(win32_create_inferior): Use create_process instead of
	CreateProcess.  If create_process failed retry appending an ".exe"
	suffix.  Store the GetLastError result immediatelly after
	create_process calls and use it on the call to error.
2007-09-03 22:17:27 +00:00
Pedro Alves 26669a2768 * gdb.base/unload.c (dlopen, dlsym): Use the TEXT macro to convert
the dll name to unicode.
2007-09-03 22:12:13 +00:00
Pedro Alves 34d86dddf2 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting. 2007-09-03 22:04:02 +00:00
Daniel Jacobowitz ca8385e5ed * MAINTAINERS: Move Fred Fish to Past Maintainers. 2007-09-03 21:12:47 +00:00
Daniel Jacobowitz 5c39566fee * configure.ac: Add --with-expat.
* configure: Regenerated.
2007-09-03 20:47:37 +00:00
Andreas Schwab 6a30b0a545 * configure.ac: Accept --with-system-readline.
(READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
	* configure: Regenerate.
	* Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
	substituted values.
	(CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
2007-09-03 19:00:16 +00:00
Daniel Jacobowitz edff0c0a1d * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters. 2007-09-03 17:51:10 +00:00
Daniel Jacobowitz 3277c0e07c Add missed changelog entry. 2007-09-03 17:11:28 +00:00
Jan Kratochvil c8f021f824 * gdb.base/default.exp (show version): Update the version text.
* gdb.gdb/selftest.exp (xgdb is at prompt): Likewise.
2007-09-03 14:58:47 +00:00
gdbadmin 25485add49 *** empty log message *** 2007-09-03 00:00:34 +00:00
Jan Kratochvil 0b93d57c33 * top.c (print_gdb_version): Fixed a string end-of-line compiler error. 2007-09-02 21:13:56 +00:00
Daniel Jacobowitz b8533aeca8 * top.c (print_gdb_version): Update for GPL version 3.
* gdb.texinfo: Update the FSF's Back-Cover Text.
2007-09-02 20:02:12 +00:00
Jan Kratochvil f5db87141a * NEWS: Mention the build-id .debug files verification. 2007-09-02 19:56:05 +00:00
Jan Kratochvil 83f83d7f7f * gdb.texinfo (Separate Debug Files): Cosmetic quoting removal.
Fixed the ``build ID'' name.  New binaries build instructions for the
	build ID inclusion.  Explain how the commands are specific to the build
	ID vs. debug link.
2007-09-02 19:55:32 +00:00
Jan Kratochvil d99148ef73 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow. 2007-09-02 14:04:31 +00:00
Jan Kratochvil 4cf31eea6a * gdb.base/gcore-buffer-overflow.c, gdb.base/gcore-buffer-overflow.exp:
New files.
2007-09-02 14:03:58 +00:00
gdbadmin 84a63fd9d9 *** empty log message *** 2007-09-02 00:00:34 +00:00
Eli Zaretskii c7e83d54a2 * gdb.texinfo (Separate Debug Files): Fix last change. Add
indexing for ``build ID'' support.
2007-09-01 10:28:25 +00:00
Jan Kratochvil 77069918ac * Makefile.in (symfile.o): Update dependencies.
* symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
	DEBUGFILE variable.  FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
	(struct build_id): New structure.
	(build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
	(find_separate_debug_file): New variable BUILD_ID.
	Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
2007-09-01 08:18:15 +00:00
Jan Kratochvil d3750b24f6 * gdb.texinfo (Separate Debug Files): Included a BUILD ID description.
Enlisted BUILD ID to the debug file searching example.
	Included a BUILD ID `.note.gnu.build-id' section description.
	Updated/added the debug files splitting instructions for OBJCOPY.
2007-09-01 08:17:13 +00:00
Jan Kratochvil 4935890f4d * lib/gdb.exp (build_id_debug_filename_get): New function.
* gdb.base/sepdebug.exp: Reflect the changes in the heading comment.
	Remove the generate DEBUG file for the future testcase runs.
	New testcase for the NT_GNU_BUILD_ID retrieval.
	Move the final testing step to ...
	(test_different_dir): ... a new function.
	New parameter XFAIL to XFAIL all the tests performed.
	New parameter TEST_DIFFERENT_DIR parametrizing the directory.
	New parameter TYPE to PF_PREFIX all the tests performed.
2007-09-01 08:16:16 +00:00
gdbadmin 7f3e0549a5 *** empty log message *** 2007-09-01 00:00:34 +00:00
Vladimir Prus 202ddcaa09 * varobj.c (struct varobj): Fix comment
for the type member not to lie when it can be
	NULL.
2007-08-31 19:01:17 +00:00
Vladimir Prus 02142340a0 Implement -var-info-path-expression.
* mi/mi-cmds.h (mi_cmd_var_info_path_expression):
	Declare.
	* mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
	* mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
	* varobj.c (struct varobj): New field 'path_expr'.
	(c_path_expr_of_child, cplus_path_expr_of_child)
	(java_path_expr_of_child): New.
	(struct language_specific): New field path_expr_of_child.
	(varobj_create): Initialize the path_expr field.
	(varobj_get_path_expr): New.
	(new_variable): Initialize the path_expr field.
	(free_variable): Free the path_expr field.
	(adjust_value_for_children_access): New parameter
	WAS_TYPE.
	(c_number_of_children): Adjust.
	(c_describe_child): New parameter CFULL_EXPRESSION.
	Compute full expression.
	(c_value_of_child, c_type_of_child): Adjust.
	(cplus_number_of_children): Adjust.
	(cplus_describe_child): New parameter CFULL_EXPRESSION.
	Compute full expression.
	(cplus_name_of_child, cplus_value_of_child)
	(cplus_type_of_child): Adjust.
	* varobj.h (varobj_get_path_expr): Declare.
2007-08-31 18:52:05 +00:00
Vladimir Prus bccc275a13 * mi/mi-cmd-var.c (print_varobj): If a varobj
type is NULL, don't try to print it.
2007-08-31 18:41:50 +00:00
gdbadmin 3c3a995521 *** empty log message *** 2007-08-31 00:00:02 +00:00
Alan Modra f2db237aa1 * ppc-linux-nat.c (right_fill_reg): Delete.
(supply_gregset): Use ppc_supply_gregset.
	(supply_fpregset): Use ppc_supply_fpregset.
	(fill_gregset): Use ppc_collect_gregset.
	(fill_fpregset): Use ppc_collect_fpregset.
	* ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
	(right_supply_register, ppc_linux_supply_gregset): Delete.
	(ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
	(ppc_linux_supply_fpregset): Delete.
	(ppc_linux_collect_gregset): New function.
	(ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
	(ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
	ppc_linux_supply_gregset, and ppc_collect_gregset.
	(ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
	(ppc_linux_gregset, ppc_linux_fpregset): New functions.
	(ppc_linux_regset_from_core_section): Update.
	* ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
	(ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
	(struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
	* ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
	(ppcobsd_collect_gregset): Likewise.
	(_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
	* ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
	* ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
	* rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
	(rs6000_aix64_reg_offsets): Likewise.
	(rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
	ppc_floating_point_unit_p.
	(rs6000_aix_collect_regset): Similarly.
	* rs6000-tdep.c (ppc_supply_reg): Add regsize param.  Adjust offset
	when regsize is larger than regcache register size.
	(ppc_collect_reg): Similarly zero pad when regsize is larger than
	regcache register size.
	(ppc_greg_offset): New function, split out from..
	(ppc_supply_gregset): ..here.  Separate code handling all regs from
	single reg case.  Correct xer offset.
	(ppc_fpreg_offset): New function, split out from..
	(ppc_supply_fpregset): ..here.  Separate code handling all regs from
	single reg case.
	(ppc_collect_gregset, ppc_collect_fpregset): Likewise.
	(ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
	a fp unit, instead return if no fp.
2007-08-30 13:13:59 +00:00
gdbadmin f9ebb3aac6 *** empty log message *** 2007-08-30 00:00:04 +00:00
Jim Blandy fe5aea2e5f * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
this code has not been compiled for two years.
2007-08-29 22:07:47 +00:00
Michael Snyder 13ce713376 2007-08-29 Michael Snyder <msnyder@access-company.com>
* event-top.c (gdb_readline2): Return after EOF.
2007-08-29 22:04:15 +00:00
Joel Brobecker fd4a0f2fbb * symtab.c: Remove a function that has been commented out 3 years ago. 2007-08-29 18:34:47 +00:00
Carlos O'Donell d037d08851 2007-08-29 Randolph Chung <tausq@debian.org>
* hppa-tdep.c (hppa32_cannot_fetch_register)
	(hppa64_cannot_fetch_register): New functions.
	(hppa_gdbarch_init): Set cannot_fetch_register appropriately.
	* hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
2007-08-29 04:11:06 +00:00
gdbadmin 4f34c12fd3 *** empty log message *** 2007-08-29 00:00:03 +00:00
Michael Snyder 57cdecd25d 2007-08-28 Michael Snyder <msnyder@access-company.com>
* mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
	check for null before calling check_typedef.
2007-08-28 20:34:18 +00:00
Michael Snyder 19d378fc13 2007-08-28 Michael Snyder <msnyder@access-company.com>
* NEWS: Mention Coverity bug fixes.
2007-08-28 19:57:11 +00:00
gdbadmin dd3287c727 *** empty log message *** 2007-08-28 00:00:03 +00:00
Ulrich Weigand 36acd84edc ChangeLog gdb/:
* spu-tdep.c (spu_pointer_to_address): New function.
	(spu_integer_to_address): Likewise.
	(spu_gdbarch_init): Add spu_pointer_to_address and
	spu_integer_to_address to gdbarch.


ChangeLog gdb/testsuite/:

	* gdb.cp/cp-relocate.exp (add-symbol-file): Change addresses
	to fit into SPU Local Store memory.
2007-08-27 14:31:46 +00:00
gdbadmin bf3bea14c8 *** empty log message *** 2007-08-27 00:00:03 +00:00
Pedro Alves 8ad7c2b9e6 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10. 2007-08-26 13:42:40 +00:00
gdbadmin 75cc4c457d *** empty log message *** 2007-08-26 00:00:03 +00:00
gdbadmin 043b877a95 *** empty log message *** 2007-08-25 00:00:33 +00:00
gdbadmin 9ab9ef6893 *** empty log message *** 2007-08-24 00:00:03 +00:00
Joel Brobecker a896d12139 * gdb.base/default.exp: Adjust the expected output of "info
warranty" after the switch to GPLv3.
2007-08-23 20:36:15 +00:00
Joel Brobecker 4de6a07ed0 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
that contains the GDB license.
        * copying.awk: Adjust to the GPLv3 wording.
        * copying.c: Regenerate.
2007-08-23 20:33:48 +00:00
Joel Brobecker 01d4100f86 Spelling fix. 2007-08-23 20:21:52 +00:00
Joel Brobecker 07aed0ebe2 * copying.awk: Protoization, and I18n markup. 2007-08-23 20:19:32 +00:00
Joel Brobecker 7b4336022e * lib/gdb.exp (default_gdb_init): Increase expect buffer size
to 30000 (from 20000).
2007-08-23 20:10:04 +00:00
Joel Brobecker 50efebf80c * config/djgpp/djconfig.sh: Switch license to GPLv3.
* copyright.sh: Likewise.
        * gdb-events.sh: Likewise.
        * gdb_gcore.sh: Likewise.
        * gdb_mbuild.sh: Likewise.
        * gdbarch.sh: Likewise.
        * observer.sh: Likewise.
        * features/feature_to_c.sh: Likewise.
        * regformats/regdat.sh: Likewise.
2007-08-23 18:19:51 +00:00
Joel Brobecker e22f8b7c8c Switch the license of all .exp files to GPLv3.
Switch the license of all .f and .f90 files to GPLv3.
        Switch the license of all .s and .S files to GPLv3.
2007-08-23 18:14:19 +00:00
Joel Brobecker a9762ec78a Switch the license of all .c files to GPLv3.
Switch the license of all .h files to GPLv3.
        Switch the license of all .cc files to GPLv3.
2007-08-23 18:08:50 +00:00
Joel Brobecker 5a0e3bd0ac * configure.ac: Switch license to GPLv3. 2007-08-23 17:58:44 +00:00
Joel Brobecker cc00619d4d Switch the licensing to GPLv3 for all .ads and .adb files. 2007-08-23 17:49:23 +00:00
gdbadmin 843c0a254b *** empty log message *** 2007-08-23 00:00:06 +00:00
Daniel Jacobowitz 609ca2b957 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
determine the file's FPU type.
2007-08-22 15:16:56 +00:00
Daniel Jacobowitz 8d26208a1e gdb/testsuite/
* gdb.base/callfuncs.exp (do_function_calls): Use t_double_int
	and t_int_double.
	* gdb.base/callfuncs.c (t_double_int, t_int_double): New.

	gdb/
	* mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
	(mips_n32n64_push_dummy_call): Always increment float_argreg along
	with argreg.  Use mips_n32n64_fp_arg_chunk_p.
2007-08-22 15:13:04 +00:00
Daniel Jacobowitz 65728c2698 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
Fix formatting.
	(elf_locate_base): Look for DT_MIPS_RLD_MAP first.  Expand comments.
	(elf_lookup_lib_symbol): Fix formatting.
2007-08-22 14:22:02 +00:00
Michael Snyder 6b2d86bda4 2007-08-21 Michael Snyder <msnyder@access-company.com>
* dbxread.c (read_dbx_symtab): Guard null deref.
	Break up long line.
2007-08-22 01:57:05 +00:00
Michael Snyder a2ca50ae64 2007-08-21 Michael Snyder <msnyder@access-company.com>
* valops.c (find_overload_match): Guard against NULL.
2007-08-22 01:53:19 +00:00
Daniel Jacobowitz 54e116dd35 * MAINTAINERS (Patch Champions): Remove self. 2007-08-22 01:21:45 +00:00
gdbadmin 2096b6d6b8 *** empty log message *** 2007-08-22 00:00:02 +00:00
Jim Blandy 3fb6a9822a * gdb.texinfo (Top): Dedicate manual to the memory of Fred Fish.
(title page): Include the dedication in the printed manual, as a
separate page after the copyright notice.
2007-08-21 15:09:59 +00:00
Daniel Jacobowitz f429d7d03d 2007-08-21 Chris Smith <chris.smith@st.com>
* cli/cli-script.c (read_command_lines): Call dont_repeat for each
	line.
2007-08-21 13:35:00 +00:00
gdbadmin faa925f5d0 *** empty log message *** 2007-08-21 00:00:02 +00:00
Jim Blandy d3bdde981b * gdb.texinfo (The F Reply Packet): Avoid confusing texi2html:
don't break a @var across a line.
2007-08-20 19:31:11 +00:00
gdbadmin d03c968bfe *** empty log message *** 2007-08-20 00:00:03 +00:00
gdbadmin edd7c692e6 *** empty log message *** 2007-08-19 00:00:34 +00:00
Michael Snyder 31e9f6b6be 2007-08-18 Michael Snyder <msnyder@svkmacdonelllnx>
* stabsread.c (dbx_lookup_type): Memory leak.
2007-08-18 20:22:27 +00:00
Michael Snyder 32107cd542 2007-08-18 Michael Snyder <msnyder@access-company.com>
* event-loop.c (delete_async_signal_handler): Move pointer null
	test to before pointer dereference.
2007-08-18 20:05:48 +00:00
Michael Snyder 44db85f8e2 2007-08-18 Michael Snyder <msnyder@svkmacdonelllnx>
* ui-out.c (append_header_to_list): Possible cut and paste error.
2007-08-18 19:45:48 +00:00
Michael Snyder a287cea675 2007-08-18 Michael Snyder <msnyder@svkmacdonelllnx>
* MAINTAINERS: white space tweak.
2007-08-18 19:39:45 +00:00
Joel Brobecker 4fcb9948bf * gdb.base/step-line.c: Switch license to GPL version 3, and
update copyright year.
        * gdb.base/step-line.inp: Likewise.
2007-08-18 02:13:15 +00:00
Joel Brobecker b9c34f673c * gdb.base/gdb1555.exp: Make expected output immune to formatting
changes inside gdb1555.c.
        * gdb.base/pending.exp: Likewise.
2007-08-18 01:21:42 +00:00
Michael Snyder f91162e199 2007-08-17 Michael Snyder <msnyder@access-company.com>
* stack.c (print_frame): Memory leak.
2007-08-18 00:21:03 +00:00
Michael Snyder 1e8189fbb5 2007-08-17 Michael Snyder <msnyder@access-company.com>
* completer.c (filename_completer): Avoid memory leak.
	Remove unnecessary nested block.
2007-08-18 00:17:08 +00:00
gdbadmin 67f5fb248e *** empty log message *** 2007-08-18 00:00:33 +00:00
Michael Snyder 348038cd50 2007-08-17 Michael Snyder <msnyder@access-company.com>
* c-exp.y (parse_number): Memory leak.
2007-08-17 23:27:42 +00:00
Michael Snyder 1f20ed9160 2007-08-17 Michael Snyder <msnyder@access-company.com>
* completer.c (location_completer): Must free 'fn_list', except
	in the one case where it is returned (as 'list').
2007-08-17 23:24:18 +00:00
Michael Snyder 74dddad306 2007-08-17 Michael Snyder <msnyder@access-company.com>
* varobj.c (value_of_root): Memory leak.
2007-08-17 23:17:30 +00:00
Michael Snyder 0bd9908d01 2007-08-17 Michael Snyder <msnyder@access-company.com>
* gdbtypes.h (virtual_base_list): Remove export decl.
	* gdbtypes.c (virtual_base_list): Make static.  Not called outside.
	(virtual_base_index): Memory leak.
	(virtual_base_index_skip_primaries): Ditto.
2007-08-17 23:12:47 +00:00
Maxim Grigoriev bdb4c075a2 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
* xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
	(C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
	(C0_CONST, C0_INEXP, C0_NOSTK): New macros.
	(xtensa_read_register): New function.
	(xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
	(xtensa_insn_kind): New types.
	(xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
	(xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
	(xtensa_verify_config, xtensa_pseudo_register_read)
	(xtensa_pseudo_register_write, xtensa_extract_return_value)
	(xtensa_store_return_value)
	(xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
	(windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
	(xtensa_frame_this_id, xtensa_frame_prev_register)
	(xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
	(call0_frame_cache, call0_frame_get_reg_at_entry)
	(call0_classify_opcode, call0_track_op)
	(call0_analyze_prologue, call0_frame_cache): New functions.
2007-08-17 21:53:29 +00:00
Vladimir Prus 198757a8b1 * breakpoint.c (bpstat_free): New.
(bpstat_clear): Use bpstat_free.
	(delete_breakpoint): Document why we cannot
	remove bpstats from stop_bpstat.
	* breakpoint.h (bpstat_free): Declare.
2007-08-17 17:06:04 +00:00
gdbadmin db6d03e8ff *** empty log message *** 2007-08-17 00:00:33 +00:00
Michael Snyder dc66ab8ae2 event-loop.c (gdb_wait_for_event): Move statement into if block. 2007-08-16 14:51:22 +00:00
gdbadmin b3641d5f5e *** empty log message *** 2007-08-16 00:00:04 +00:00
Joel Brobecker 40c8aaa9fe * ada-lang.c (resolve_subexp): Correct arity of binary operators. 2007-08-15 18:43:15 +00:00
Joel Brobecker ee90b9ab36 * ada-lang.c (possible_user_operator_p): Alternative fix to last
checkin guarding against NULL.
2007-08-15 18:36:37 +00:00
Michael Snyder e5908723e5 2007-08-14 Michael Snyder <msnyder@access-company.com>
* tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
	tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
	tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
	go at beginning of new line.
2007-08-15 00:19:44 +00:00
gdbadmin 3b93fc3def *** empty log message *** 2007-08-15 00:00:02 +00:00
Michael Snyder 08ef48c5ac 2007-08-14 Michael Snyder <msnyder@access-company.com>
* tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
	tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
	tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
	tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
	tui-winsource.h, tui.c, tui.h: Function declarations and
	definitions, wrap long lines.
2007-08-14 23:50:39 +00:00
Michael Snyder ef5eab5a0f 2007-08-14 Michael Snyder <msnyder@access-company.com>
* tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
	tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
	Reformat block comments to GNU standard.
2007-08-14 21:39:22 +00:00
Michael Snyder 1cc6d956c1 2007-08-14 Michael Snyder <msnyder@access-company.com>
* tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
	tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
	tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
	tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
	tui.c, tui.h: Comment reformatting to coding standard (capitals,
	spaces after periods, etc).
2007-08-14 21:20:09 +00:00
Michael Snyder 5b6fe301a1 2007-08-14 Michael Snyder <msnyder@access-company.com>
* tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
	tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
	tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
	tui-winsource.h: Whitespace changes, fix pointer declarations
	to be consistant.
2007-08-14 20:23:29 +00:00
Joel Brobecker 64a1bf1957 * ada-lang.c (field_alignment): Guard against NULL. 2007-08-14 20:16:18 +00:00
Joel Brobecker e933291e4c * MAINTAINERS (Global Maintainers): Add self. 2007-08-14 20:10:47 +00:00
Michael Snyder 068acb6c00 2007-08-14 Michael Snyder <msnyder@access-company.com>
* mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
2007-08-14 19:51:37 +00:00
Michael Snyder 6d307763fb 2007-08-14 Michael Snyder <msnyder@access-company.com>
* ada-lang.c (possible_user_operator_p): Guard against NULL.
2007-08-14 18:32:45 +00:00
Michael Snyder 348144bad4 2007-08-14 Michael Snyder <msnyder@access-company.com>
* varobj.c (cplus_describe_child): Guard against null.
	Use "NULL" instead of "0" to initialize pointers.
2007-08-14 18:26:46 +00:00
Daniel Jacobowitz b8926edcac * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
to match any gdbarch with matching OSABI.  Set default ABI and FPU
	after running the OSABI handler.
2007-08-14 15:47:00 +00:00
Daniel Jacobowitz cdd6623c94 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
* config/i386/linux.mt (TDEPFILES): ...to here.
2007-08-14 12:51:59 +00:00
Vladimir Prus 1267554726 Fix changelog formatting 2007-08-14 11:18:56 +00:00
Vladimir Prus cb85195420 gdb/
* breakpoint.c (disable_breakpoints_in_shlibs): Remove
	the 'silent' parameter and code to implement that.
	* breakpoint.h (disable_breakpoints_in_shlibs): Adjust
	prototype.
	* win32-nat.c: Adjust.
	* solib.c: Adjust.
2007-08-14 11:09:45 +00:00
Vladimir Prus e14a792bcf gdb/
* breakpoint.c (update_breakpoints_after_exec): Don't
        set address to zero.
2007-08-14 08:11:45 +00:00
Michael Snyder ac3eeb4911 2007-08-13 Michael Snyder <msnyder@access-company.com>
* valops.c: Whitespace clean-up.
2007-08-14 00:31:40 +00:00
gdbadmin 9763fb7a94 *** empty log message *** 2007-08-14 00:00:34 +00:00
Michael Snyder 81b7c67a8b 2007-08-13 Michael Snyder <msnyder@access-company.com>
* tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
2007-08-13 23:06:34 +00:00
Michael Snyder f5b73fbba3 2007-08-13 Michael Snyder <msnyder@access-company.com>
* event-top.c (command_line_handler): Memory leak.
2007-08-13 23:02:08 +00:00
Michael Snyder b538c23453 2007-08-13 Michael Snyder <msnyder@access-company.com>
* mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
	No need to make copy.
2007-08-13 22:57:39 +00:00
Michael Snyder be8ca11b9e 2007-08-13 Michael Snyder <msnyder@access-company.com>
* source.c (find_source_lines): Require symtab 's'.
2007-08-13 22:25:14 +00:00
Daniel Jacobowitz 2cc176786d * config/default.exp: New file. 2007-08-13 14:35:59 +00:00
gdbadmin 4a349aac20 *** empty log message *** 2007-08-13 00:00:04 +00:00
gdbadmin 2eff3c4ee5 *** empty log message *** 2007-08-12 00:00:02 +00:00
Michael Snyder 489f05169b 2007-08-11 Michael Snyder <msnyder@access-company.com>
* completer.c: Spelling fix in comments.
2007-08-11 20:08:37 +00:00
Michael Snyder 687d6395d7 2007-08-10 Michael Snyder <msnyder@access-company.com>
* gdbtypes.c: Coding standard cleanup.
2007-08-11 00:28:30 +00:00
Michael Snyder 7ba8144421 2007-08-10 Michael Snyder <msnyder@access-company.com>
* gdbtypes.c: Comment/whitespace cleanup.
2007-08-11 00:22:21 +00:00
gdbadmin 8c37cbb658 *** empty log message *** 2007-08-11 00:00:33 +00:00
Michael Snyder 6aef78af04 2007-08-10 Michael Snyder <msnyder@access-company.com>
* stabsread.c (read_huge_number): Attempt to compute value before
	values that it depends on.
2007-08-10 22:08:22 +00:00
Michael Snyder 46be51c450 2007-08-10 Michael Snyder <msnyder@access-company.com>
* linespec.c (decode_dollar): Dead code, ptr can't be non-null.
	(decode_objc): Use "NULL" instead of 0.
	(find_method): Ditto.
	(decode_all_digits): Ditto.
	(decode_dollar): Ditto.
2007-08-10 22:01:27 +00:00
Michael Snyder 412bbd6c82 2007-08-10 Michael Snyder <msnyder@access-company.com>
* mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
2007-08-10 21:52:38 +00:00
Michael Snyder 76bd6e0b6e 2007-08-10 Michael Snyder <msnyder@access-company.com>
* mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
2007-08-10 21:44:23 +00:00
Michael Snyder 518f9d3cd4 2007-08-10 Michael Snyder <msnyder@access-company.com>
* solib-svr4.c (enable_break): Don't free tmp_pathname until
	after closing bfd.
2007-08-10 20:42:45 +00:00
Michael Snyder 9c3f90bd3a 2007-08-10 Michael Snyder <msnyder@access-company.com>
* completer.c: Comment/whitespace cleanup.
2007-08-10 20:35:09 +00:00
Joel Brobecker adee02064a * Makefile.in (i386nbsd-nat.o): Add missing dependency. 2007-08-10 17:52:09 +00:00
Maxim Grigoriev 9f8e69991e 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
* remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
	allocated file descriptors.
2007-08-10 17:49:48 +00:00
Joel Brobecker 271a27b8c3 * Makefile.in: Minor cleanup throughout; add some missing variables,
add some missing rules, remove some rules that are no longer needed,
        and fix the dependencies in several rules.
2007-08-10 17:26:45 +00:00
gdbadmin 724ed4c5f2 *** empty log message *** 2007-08-10 00:00:33 +00:00
Ludovic Courtès d4310edb35 Re-instated Guile/Scheme support. 2007-08-09 23:01:17 +00:00
Ludovic Courtès 57da77961a Add Emacs local variables for UTF-8. 2007-08-09 22:44:38 +00:00
Ludovic Courtès 93c06293e4 Added myself to `MAINTAINERS'. 2007-08-09 21:52:04 +00:00
Michael Snyder 0997b53539 2007-08-09 Michael Snyder <msnyder@access-company.com>
* solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
2007-08-09 18:37:08 +00:00
Joel Brobecker 4fec86cf74 * solib-som.c (som_relocate_section_addresses): Stop saving
the $CODE$ section in the so_list structure.
2007-08-09 16:45:32 +00:00
gdbadmin bd6075bf49 *** empty log message *** 2007-08-09 00:00:34 +00:00
Maxim Grigoriev 7b8715682a 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
* xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
	(xtensa_register_group_t): Add entries for coprocessors.
	* xtensa-tdep.c (xtensa_init_reggroups): New register groups.
	(xtensa_add_reggroups): Likewise.
	(xtensa_register_reggroup_p): Likewise.
	(xtensa_coprocessor_register_group): New function.
	(xtensa_cp): New.
2007-08-08 23:22:18 +00:00
Jan Kratochvil 652aaa2406 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
* serial.c (serial_open): Fix the OPEN parameter macro expansion.
2007-08-08 22:12:35 +00:00
Michael Snyder 6217bf3e40 2007-08-08 Michael Snyder <msnyder@access-company.com>
* target.c (target_read_string): Guard against null.
2007-08-08 22:02:43 +00:00
Michael Snyder 6225abfaac 2007-08-08 Michael Snyder <msnyder@access-company.com>
* varobj.c (value_of_root): Move alloc after return to avoid leak.
2007-08-08 21:46:37 +00:00
Michael Snyder 3e40160c04 2007-08-08 Michael Snyder <msnyder@access-company.com>
* tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
2007-08-08 18:39:50 +00:00
Michael Snyder 91d2803c32 2007-08-08 Michael Snyder <msnyder@access-company.com>
* top.c (command_line_input): Memory leak.
2007-08-08 18:34:28 +00:00
Michael Snyder ea5bf0a1f9 2007-08-08 Michael Snyder <msnyder@access-company.com>
* solib-svr4.c (open_symbol_file_object): Memory leak.
	(svr4_current_sos): Ditto.
	(enable_break): Ditto.
2007-08-08 18:08:52 +00:00
Michael Snyder 34e2dfde9c 2007-08-08 Michael Snyder <msnyder@access-company.com>
* cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
2007-08-08 18:05:37 +00:00
Michael Snyder decbce07bc 2007-08-08 Michael Snyder <msnyder@access-company.com>
* dwarf2read.c (add_partial_symbol): Memory leak.
2007-08-08 18:01:35 +00:00
gdbadmin b3f7d23b20 *** empty log message *** 2007-08-08 00:00:04 +00:00
gdbadmin 6a6ddbfd03 *** empty log message *** 2007-08-07 00:00:03 +00:00
Michael Snyder 4cdfadb1f8 2007-08-06 Michael Snyder <msnyder@access-company.com>
* ada-lang.c (desc_bounds): Comparison of function address to NULL.
2007-08-06 20:07:44 +00:00
gdbadmin d0913de2b8 *** empty log message *** 2007-08-06 00:00:33 +00:00
Jim Blandy b1ddacc73c * macroexp.c (init_buffer): Remove testing code that overrides the
caller's length guess.
(gather_arguments): Use a larger initial size, now that the vector
growth code has been exercised.
2007-08-05 21:41:09 +00:00
Pedro Alves 5d9643bae4 * solib-target.c (solib_target_relocate_section_addresses): Add
orig_delta to addr_high.
2007-08-05 09:57:06 +00:00
Michael Snyder 1ed489bd7c 2007-08-04 Michael Snyder <msnyder@access-company.com>
* remote-fileio.c (remote_fileio_func_write): Memory leak.
2007-08-05 01:04:31 +00:00
Michael Snyder c1f5197edc 2007-08-04 Michael Snyder <msnyder@access-company.com>
* breakpoint.c (print_one_breakpoint): Off by one error.
2007-08-05 00:43:34 +00:00
Michael Snyder 27e06d3ef0 2007-08-04 Michael Snyder <msnyder@access-company.com>
* tracepoint.c (add_register): Off by one error.
	(stringify_collection_list): Free malloc buffer.
2007-08-05 00:36:53 +00:00
gdbadmin 0e3b351fa5 *** empty log message *** 2007-08-05 00:00:02 +00:00
Michael Snyder 474d0d0c7a 2007-08-03 Michael Snyder <msnyder@access-company.com>
* mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
	stop memory leak, straighten out cleanups.
2007-08-04 03:00:40 +00:00
Michael Snyder 03b4bca2d7 2007-08-03 Michael Snyder <msnyder@access-company.com>
* jv-lang.c (java_link_class_type): Guard against NULL.
2007-08-04 02:50:16 +00:00
gdbadmin 17e1855042 *** empty log message *** 2007-08-04 00:00:32 +00:00
gdbadmin f620fdcf3b *** empty log message *** 2007-08-03 00:00:03 +00:00
Michael Snyder f9780d5b23 2007-08-02 Michael Snyder <msnyder@access-company.com>
* gdbtypes.c (create_set_type): Test should only be done within
	the preceeding if block.  Otherwise, variable is uninitialized.
2007-08-02 21:08:12 +00:00
Michael Snyder 423c0af83c 2007-08-02 Michael Snyder <msnyder@access-company.com>
* gdbtypes.c (check_typedef): Guard NULL.
2007-08-02 21:01:37 +00:00
gdbadmin d74ffa39b6 *** empty log message *** 2007-08-02 00:00:03 +00:00
Michael Snyder f88c79e6bb 2007-08-01 Michael Snyder <msnyder@access-company.com>
* remote-utils.c (putpkt_binary): Memory leak, free buf2.
2007-08-01 20:34:36 +00:00
Michael Snyder 3cebf8d882 2007-08-01 Michael Snyder <msnyder@access-company.com>
* cli/cli-decode.c (lookup_cmd): Check for null earlier, to
	avoid dereference in lookup_cmd_1.
2007-08-01 20:26:31 +00:00
Michael Snyder c0645fb52f 2007-08-01 Michael Snyder <msnyder@access-company.com>
* tui/tui-data.c (tui_alloc_content): Move assign out of if,
	clean up long lines.
	(tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
	(tui_alloc_win_info): Ditto.
	(tui_add_content_elements): Ditto.
	* tui/tui-file.c (tui_file_magic): Ditto.
2007-08-01 20:15:36 +00:00
gdbadmin a0ac008e3e *** empty log message *** 2007-08-01 00:00:33 +00:00
Michael Snyder 967af18d0d 2007-07-31 Michael Snyder <msnyder@access-company.com>
* breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
	True and false paths are mutually exclusive.
2007-07-31 23:08:22 +00:00
Michael Snyder 40742ab60a 2007-07-31 Michael Snyder <msnyder@access-company.com>
* event-top.c (command_line_handler): Add pedantic return.
2007-07-31 22:01:03 +00:00
Michael Snyder 7c6e0d4812 2007-07-31 Michael Snyder <msnyder@access-company.com>
* f-valprint.c (info_common_command): Bail out to prevent null
	pointer deref.  Break up a long line.
2007-07-31 21:56:00 +00:00
Michael Snyder c7b1adc9a0 2007-07-31 Michael Snyder <msnyder@access-company.com>
* exec.c (xfer_memory): Remove redundant condition from 'if'.
2007-07-31 21:49:21 +00:00
Michael Snyder 73780b3c0a 2007-07-31 Michael Snyder <msnyder@access-company.com>
* symfile.c (reread_separate_symbols): Free xmalloced memory.
2007-07-31 21:42:19 +00:00
Michael Snyder abe34c358d 2007-07-31 Michael Snyder <msnyder@access-company.com>
* printcmd.c (build_address_symbolic): Remove dead code and dead
	variable.
2007-07-31 21:36:13 +00:00
Daniel Jacobowitz e48883f791 * linespec.c (minsym_found): Advance to the next line if possible.
* gdb.base/prologue.c, gdb.base/prologue.exp: New.
	* lib/gdb.exp (gdb_breakpoint): Handle "temporary".
2007-07-31 19:58:40 +00:00
Pedro Alves 6b3d9b8313 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
typedef.
	(win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
	(load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL.  Get
	CloseToolhelp32Snapshot.
	(toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
	CloseToolhelp32Snapshot.
2007-07-31 13:58:19 +00:00
Pedro Alves 5720483760 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
* config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
	solib-svr4.o, and add solib-target.o
2007-07-31 13:50:11 +00:00
gdbadmin 615c7d515b *** empty log message *** 2007-07-31 00:00:32 +00:00
Maciej W. Rozycki 1ab80e5ba1 * gdb.base/dump.exp: Force the correct endianness for binary
formats not carrying this information.
2007-07-30 12:24:22 +00:00
gdbadmin 4f17aed340 *** empty log message *** 2007-07-30 00:00:04 +00:00
gdbadmin b112852a8f *** empty log message *** 2007-07-29 00:00:33 +00:00
Michael Snyder fed8b01e54 2007-07-27 Michael Snyder <msnyder@access-company.com>
* tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
2007-07-28 01:16:39 +00:00
gdbadmin 2babdb4046 *** empty log message *** 2007-07-28 00:00:02 +00:00
Michael Snyder c588c53caf 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
* server.c (main): Check for inferior exit before main loop.
2007-07-27 18:44:40 +00:00