Commit Graph

59789 Commits

Author SHA1 Message Date
Nick Clifton 764c62eb01 Update copyright year in --version messages. 2008-11-17 17:44:32 +00:00
Vladimir Prus 66bb093b5f Implement =thread-selected notification.
* mi/mi-common.h (struct mi_interp): New, moved from ...
        * mi/mi-interp.c: ...here.
        * mi/mi-main.c (mi_execute_command): If the thread changed
        as result of command, report that.
2008-11-17 16:43:34 +00:00
Vladimir Prus 8dd4f202ec Implement continue/interrupt of thread groups.
* mi/mi-main.c (proceed_thread_callback): New.
        (mi_cmd_exec_continue): If --thread-group is specified, resume all
        threads in that group.
        (interrupt_thread_callback): New.
        (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt
        all threads in that group.
2008-11-17 16:39:51 +00:00
Vladimir Prus 6418d433f1 Implement '-target-detach pid'.
* infcmd.c (detach_command): Make nonstatic.
        * inferior.h (detach_command): Declare.
        * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI.
        * mi/mi-cmds.h (mi_cmd_target_detach): Declare.
        * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New.
2008-11-17 16:37:35 +00:00
Vladimir Prus 3d043ef6a3 Include group-id in thread-created notification.
* mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include
        group id in the output.
2008-11-17 12:34:19 +00:00
Vladimir Prus 4a92f99bc7 Notification for attach/detach.
* inferior.c: Call the process observers.
        * mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New.
        (mi_interpreter_init): Register the above.
2008-11-17 12:28:05 +00:00
Vladimir Prus 3ee1c036ac Implement -list-thread-groups.
* thread.c (print_thread_info): New parameter pid, to print
        threads of specific process.
        * gdbthread.h (print_thread_info): New parameter pid.
        * mi/mi-cmds.c (mi_cmds): Register -list-thread-groups.
        * mi/mi-cmds.h (mi_cmd_list_thread_groups): New.
        * mi/mi-main.c (mi_cmd_thread_info): Adjust.
        (print_one_process, mi_cmd_list_thread_groups): New.
2008-11-17 12:13:49 +00:00
gdbadmin 1604c175b2 *** empty log message *** 2008-11-17 00:00:33 +00:00
Alan Modra c0ef4cd878 daily update 2008-11-17 00:00:05 +00:00
Joel Brobecker 283de25fac Remove some unused macros related to the old load/unload catchpoints.
* breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME)
        (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK)
        (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used.
2008-11-16 18:05:26 +00:00
Joel Brobecker 808104c836 * gdb.base/help.exp: Remove the "catch load" and "catch unload"
commands from the expected output for "help catch".
2008-11-16 18:03:25 +00:00
Joel Brobecker 533be4dd37 Remove support for catch load and catch unload commands.
* breakpoint.h (enum bptype): Remove bp_catch_load and bp_catch_unload.
        (struct breakpoint): Remove fields dll_pathname and
        triggered_dll_pathname.
        (bpstat_get_triggered_catchpoints, ep_is_shlib_catchpoint): Delete.
        * breakpoint.c (ep_is_catchpoint): Remove handling of
        bp_catch_load and bp_catch_unload.
        (print_it_typical, bpstat_check_location, bpstat_what)
        (print_one_breakpoint_location, print_one_breakpoint_location)
        (user_settable_breakpoint, allocate_bp_location)
        (set_raw_breakpoint_without_location, mention, delete_breakpoint,
        (breakpoint_re_set_one, disable_command, enable_command): Likewise.
        (ep_is_shlib_catchpoint, bpstat_get_triggered_catchpoints)
        (catch_load_command_1, catch_unload_command_1): Delete.
        (_initialize_breakpoint): Remove the "catch load" and "catch unload"
        command creation.
        * infrun.c (handle_inferior_event): Remove the handling of
        load/unload catchpoint events.
2008-11-16 18:01:46 +00:00
Danny Smith 9b91d2fc93 * dlltool.c (identify_search_section): Cast argument, not return
value, of xstrdup to 'char*'.
2008-11-16 06:00:41 +00:00
Alan Modra 23965a5aa6 daily update 2008-11-16 00:00:05 +00:00
gdbadmin 5ea394a1eb *** empty log message *** 2008-11-16 00:00:03 +00:00
Joel Brobecker 59205f5a0e From Jerome Guitton <guitton@adacore.com>
* dwarf2read.c (dwarf2_debug_line_missing_end_sequence_complaint):
        New function.
        (dwarf_decode_lines): Detect null file numbers. Detect the end of
        the line program sequence when no end sequence is emitted.
2008-11-15 18:49:50 +00:00
Joel Brobecker 00b22944a0 * gdb.ada/int_deref.exp: New testcase. 2008-11-15 18:30:38 +00:00
Joel Brobecker 9696763752 * ada-lang.c (ada_evaluate_subexp): Improve handling of integer
type dereferencing.
2008-11-15 18:27:27 +00:00
Charles Wilson d4732f7c88 Added --identify option to dlltool. 2008-11-15 18:15:18 +00:00
Daniel Jacobowitz da8bd9a3c5 * NEWS: Mention sparc64-linux-gnu gdbserver support. 2008-11-15 16:09:51 +00:00
Cary Coutant a45248e086 * reloc.cc (Sized_relobj::do_read_relocs): Use constant invalid_address
instead of -1U.
2008-11-15 01:40:23 +00:00
Alan Modra 1e182d3ce4 daily update 2008-11-15 00:00:05 +00:00
gdbadmin 504ec08afd *** empty log message *** 2008-11-15 00:00:03 +00:00
Daniel Jacobowitz dfb64f85d3 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
* configure.tgt (sparc64-*-linux*): Added gdbserver support.
	* regformats/reg-sparc64.dat: New file.

gdbserver/
2008-11-14  Daniel Gutson  <dgutson@codesourcery.com>

	* Makefile.in (SFILES, clean): Added sparc64 files.
	(reg-sparc64.o, reg-sparc64.c): New.
	* configure.srv (sparc*-*-linux*): New configuration.
	* linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
	syscall arguments for SPARC.
	(regsets_store_inferior_registers): Likewise.
	* linux-sparc-low.c: New file.
2008-11-14 22:06:41 +00:00
Eric B. Weddington 28b027518b /bfd:
2008-11-14  Eric B. Weddington  <eric.weddington@atmel.com>

	PR 7022
	* elf32-avr.c (bfd_elf_avr_final_write_processing):
	Add missing break statements.
2008-11-14 21:37:52 +00:00
Tom Tromey 5966943567 gdb
PR mi/2549:
	* mi/mi-main.c (get_register): Use get_formatted_print_options.

gdb/testsuite

2008-11-14  Nick Roberts  <nickrob@snap.net.nz>

	* gdb.mi/gdb2549.exp: New file.
2008-11-14 18:38:32 +00:00
Bob Wilson af4bed4bf5 * xtensa-modules.c (xtensa_state_id): New enum, replacing STATE macros.
(xtensa_field_id, xtensa_regfile_id, xtensa_operand_id)
	(xtensa_iclass_id, xtensa_opcode_id): New enums.
	Replace hardcoded constants throughout this file with enum values.
2008-11-14 17:37:29 +00:00
DJ Delorie caa846806e merge from gcc 2008-11-14 16:02:56 +00:00
Kai Tietz 6cb442d374 2008-11-14 Kai Tietz <kai.tietz@onevision.com>
* emultempl/pep.em (..._before_parse): initialize
	pei386_runtime_pseudo_reloc by version 2.
	(OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V1): New option.
	(OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V2): New option.
	(make_import_fixup): Use relocation size to read addend.
	* emultempl/pe.em (..._before_parse): initialize
	pei386_runtime_pseudo_reloc by version 1.
	(OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V1): New option.
	(OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V2): New option.
	* pe-dll.c (pe-dll.h): Remove useless include.
	(make_runtime_pseudo_reloc): Change addend to use bfd_vma.
	Handle the two variants of pseudo-relocation.
	(pe_create_import_fixup): Change addend to type bfd_vma.
	Modify for the two pseudo_relocation variants.
	(runtime_pseudp_reloc_v2_init): New static variable.
	* pe-dll.h (pe_create_import_fixup): Change addend argument type
	to bfd_vma.
	* pep-dll.h (pep_create_import_fixup): Likewise.
	* NEWS: Add comment.
2008-11-14 15:13:05 +00:00
Daniel Jacobowitz 7582fb4a6a Revert:
2008-10-24  Daniel Jacobowitz  <dan@codesourcery.com>

	* Makefile.tpl (HOST_EXPORTS): Correct CPPFLAGS typo.
	* Makefile.in: Regenerated.

	2008-10-22  Daniel Jacobowitz  <dan@codesourcery.com>

	* Makefile.def (flags_to_pass): Add CPPFLAGS_FOR_BUILD and CPPFLAGS.
	* Makefile.tpl (BUILD_EXPORTS): Set CPPFLAGS.
	(EXTRA_BUILD_FLAGS): Correct typo.  Pass CPPFLAGS.
	(HOST_EXPORTS): Pass CPPFLAGS.
	(CPPFLAGS_FOR_BUILD, CPPFLAGS, CPPFLAGS_FOR_TARGET): Define.
	(LDFLAGS_FOR_TARGET): Initialize from configure script.
	(EXTRA_TARGET_FLAGS): Set CPPFLAGS.
	* Makefile.in, configure: Regenerated.
	* configure.ac: Set CPPFLAGS_FOR_TARGET, LDFLAGS_FOR_TARGET,
	and CPPFLAGS_FOR_BUILD.
2008-11-14 15:10:50 +00:00
Tristan Gingold f5913efec8 2008-11-14 Tristan Gingold <gingold@adacore.com>
Remove outdated mach-o specific tests.
	* objdump.c (load_debug_section): Remove mach-o specific test.
	(mach_o_uncompressed_dwarf_sections): Removed.
	(mach_o_compressed_dwarf_sections): Removed.
	(generic_uncompressed_dwarf_sections): Removed.
	(generic_compressed_dwarf_sections): Removed.
	(check_mach_o_dwarf): Removed.
	(dump_dwarf): Remove call to check_mach_o_dwarf.
2008-11-14 14:56:51 +00:00
Nick Clifton 2b0bc0884c bfd/
* elf.c (assign_file_positions_for_load_sections): Use header_size
        to avoid moving the load address of file headers.
        (assign_file_positions_for_load_sections): Set header_size for
        segments containing the file header.

        include/elf/
        * internal.h (struct elf_segment_map): Add header_size field.
2008-11-14 14:44:09 +00:00
Nick Clifton 4bc2510145 * read.c (emit_expr): Grow frag before filling it so that
dot_value remains valid.
2008-11-14 13:03:25 +00:00
Tristan Gingold d387240a63 bfd/
2008-11-14  Tristan Gingold  <gingold@adacore.com>

	* configure.com: Handle bfd_default_target_size, BFD_HOST_LONG_LONG,
	BFD_HOST_64BIT_LONG_LONG, BFD_HOSTPTR_T, bfd_file_ptr.
	Generate bfdver.h.
	* vms-hdr.c (_bfd_vms_write_hdr): Use strdup/free instead of alloca.
	* hosts/alphavms.h: Defines macros to bypass i18n.
	* makefile.vms (OBJS): Update file list.
	(DEFS): Remove VMS_DEBUG, const, add DEBUGDIR.
	(CFLAGS): Update flags.
	* bfdio.c (real_fopen): Add code specific to VMS: extract attributes
	from modes.

binutils/
2008-11-14  Tristan Gingold  <gingold@adacore.com>

	* configure.com: Get version from configure.in of bfd.
	* makefile.vms-in (DEBUG_OBJS): Add dwarf.obj.
	(CFLAGS): Update flags.

include/
2008-11-14  Tristan Gingold  <gingold@adacore.com>

	* fopen-vms.h (FOPEN_RB): Use a single string to match the
	standard prototype.
	(FOPEN_WB): Ditto.
	(FOPEN_AB): Ditto.
	(FOPEN_RUB): Ditto.
	(FOPEN_WUB): Ditto.
	(FOPEN_AUB): Ditto.

libiberty/
2008-11-14  Tristan Gingold  <gingold@adacore.com>

	* makefile.vms (OBJS): Update objects list.
	(CFLAGS): Update.
	(libiberty.olb): Remove alloca-conf.h dependency.
	* config.h-vms: Use new macro sets, use builtin alloca.

opcodes/
2008-11-14  Tristan Gingold  <gingold@adacore.com>

	* makefile.vms (OBJS): Update list of objects.
	(DEFS): Update
	(CFLAGS): Update.
2008-11-14 09:57:35 +00:00
Nick Clifton 9b7132d30d PR 7026
* config/tc-arm.c: Ensure that all uses of as_bad have a
        formatting string.
2008-11-14 09:02:38 +00:00
Doug Evans 2580417f09 (set_lang_c): Delete.
(runto_main): If it fails, call fail instead of gdb_suppress_tests.
2008-11-14 06:55:40 +00:00
Alan Modra 43b5d01b26 * Makefile.am (spu_ovl.o_c): Add missing line continuations.
* Makefile.in: Regenerate.
2008-11-14 06:54:40 +00:00
Alan Modra a3aa4338e2 daily update 2008-11-14 00:00:09 +00:00
gdbadmin 359551a8df *** empty log message *** 2008-11-14 00:00:03 +00:00
Joel Brobecker 08c13eba50 * configure.in: Deactivate large-file support on native 32bit
sparc-solaris unless the user explicitly requested it.
        * configure: Regenerate.
2008-11-13 23:09:47 +00:00
Joel Brobecker 06be140c21 * printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined. 2008-11-13 22:26:15 +00:00
Ulrich Weigand 759cc328c6 gdb/ChangeLog:
* auxv.c (fprint_target_auxv): Handle AT_BASE_PLATFORM and
	AT_EXECFN.  Re-sort AT_SECURE.

include/elf/ChangeLog:

	* common.h (AT_BASE_PLATFORM, AT_EXECFN): Define.
2008-11-13 15:07:54 +00:00
Jan Kratochvil 73e113d460 * monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'. 2008-11-13 15:02:15 +00:00
Hans-Peter Nilsson ede76260a7 * nm.c (filter_symbols): Only call memcpy when from != to. 2008-11-13 10:57:00 +00:00
Joel Brobecker c31ad2a1f7 * ia64-tdep.c: Remove commented out #define. 2008-11-13 05:05:07 +00:00
Hans-Peter Nilsson 5726889422 PR ld/7028
* elf.c (assign_file_positions_for_load_sections): Allocate phrds
	with bfd_zalloc2 instead of bfd_alloc2.  For the amount, use
	the possibly-preset header-size, not the computed one.
2008-11-13 03:01:15 +00:00
Joel Brobecker 84290f2fa2 * remote-sim.c (gdbsim_mourn_inferior): Use "target" parameter
instead of the "gdbsim_ops" global.
2008-11-13 01:26:44 +00:00
Alan Modra 2a8a6bf5ce daily update 2008-11-13 00:00:05 +00:00
gdbadmin 8fa5deb69e *** empty log message *** 2008-11-13 00:00:03 +00:00
Joel Sherrill 6878aceba2 2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* aclocal.m4:  Fix underquoting of function names.
2008-11-12 22:05:18 +00:00