binutils-gdb.git
14 years ago * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
Kevin Buettner [Fri, 16 Apr 2010 22:46:27 +0000 (22:46 +0000)]
* m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
instead of an error if no PLT entry is found.  Return a
potentially useful result.
(m32c_m16c_pointer_to_address): Add code to search for function
address when no .plt entry is found.

14 years agoRemove extra breack.
H.J. Lu [Fri, 16 Apr 2010 21:37:08 +0000 (21:37 +0000)]
Remove extra breack.

14 years agoReturn bad_opcode on unknown bits in opcode.
H.J. Lu [Fri, 16 Apr 2010 21:35:24 +0000 (21:35 +0000)]
Return bad_opcode on unknown bits in opcode.

2010-04-16  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (get_valid_dis386): Return bad_opcode on unknown
bits in opcode.

14 years ago2010-04-16 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Fri, 16 Apr 2010 18:22:01 +0000 (18:22 +0000)]
2010-04-16  Stan Shebs  <stan@codesourcery.com>

* tracepoint.c (trace_variable_command): Run a cleanup.

14 years ago * configure: Regenerate.
Pierre Muller [Fri, 16 Apr 2010 16:22:15 +0000 (16:22 +0000)]
* configure: Regenerate.

14 years ago2010-04-16 Andreas Schwab <schwab@redhat.com>
Tristan Gingold [Fri, 16 Apr 2010 14:38:54 +0000 (14:38 +0000)]
2010-04-16  Andreas Schwab  <schwab@redhat.com>

* vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking
strict-aliasing rules.

14 years ago2010-04-16 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 16 Apr 2010 14:23:41 +0000 (14:23 +0000)]
2010-04-16  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo.
(_bfd_vms_get_object_record): Always assume there is a pad byte
for alignment.
* vms-lib.c: Add a few comments.

14 years ago PR gas/11395
Nick Clifton [Fri, 16 Apr 2010 11:20:41 +0000 (11:20 +0000)]
    PR gas/11395
        * config/tc-hppa.c (pa_ip): Do not allow 64-bit add condition
        matcher to accept and unconditional 32-bit add instruction.
        (pa_build_unwind_subspace): Cope with error conditions not
        allowing the start symbol to be set.

        * gas/hppa/basic/add2.s: Add test of simple 32-bit instruction.
        * gas/hppa/basic/basic.exp (do_add2): Add grep for expected
        disassembly.

14 years ago * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
Pierre Muller [Fri, 16 Apr 2010 08:12:59 +0000 (08:12 +0000)]
* p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.

14 years ago Support for Windows OS Thread Information Block.
Pierre Muller [Fri, 16 Apr 2010 07:49:37 +0000 (07:49 +0000)]
Support for Windows OS Thread Information Block.
* NEWS: Document new feature.
* remote.c (PACKET_qGetTIBAddr): New enum element.
(remote_get_tib_address): New function.
(init_remote_ops): Set to_get_tib_address field
to remote_get_tib_address.
(_initialize_remote): Add add_packet_config_cmd
for PACKET_qGetTIBAddr.
* target.c (update_current_target): Set default value for
new to_get_tib_address field.
* target.h (target_ops): New field to_get_tib_address.
(target_get_tib_address): New macro.
* windows-nat.c (thread_info): Add thread_local_base field.
(windows_add_thread): Add tlb argument of type 'void *'.
(fake_create_process): Adapt windows_add_thread call.
(get_windows_debug_event): Idem.
(windows_get_tib_address): New function.
(init_windows_ops): Set to_get_tib_address field
to remote_get_tib_address.
(_initialize_windows_nat): Replace info_w32_cmdlist
initialization by a call to init_w32_command_list.
(info_w32_command, info_w32_cmdlist): Removed from here...
to windows-tdep.c file.
* windows-tdep.h (info_w32_cmdlist): Declare.
(init_w32_command_list): New external function
declaration.
* windows-tdep.c: Add several headers.
(info_w32_cmdlist): to here, made global.
(thread_information_32): New struct.
(thread_information_64): New struct.
(TIB_NAME): New char array.
(MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
(maint_display_all_tib): New static variable.
(windows_get_tlb_type): New function.
(tlb_value_read, tlb_value_write): New functions.
(tlb_value_funcs): New static struct.
(tlb_make_value): New function.
(display_one_tib): New function.
(display_tib): New function.
(show_maint_show_all_tib):New function.
(info_w32_command): Moved from windows-nat.c.
(init_w32_command_list): New function.
(_initialize_windows_tdep): New function.
New "maint set/show show-all-tib" command
New "$_tlb" internal variable.

gdbserver/ChangeLog entry:

* server.c (handle_query): Handle 'qGetTIBAddr' query.
* target.h (target_ops): New get_tib_address field.
* win32-low.h (win32_thread_info): Add thread_local_base field.
* win32-low.c (child_add_thread): Add tlb argument.
Set thread_local_base field to TLB.
(get_child_debug_event): Adapt to child_add_thread change.
(win32_get_tib_address): New function.
(win32_target_ops): Set get_tib_address field to
win32_get_tib_address.
* linux-low.c (linux_target_ops): Set get_tib_address field to NULL.

doc/ChangeLog entry:

gdb.texinfo ($_tlb): Document new automatic convinience variable.
(info w32 thread-information-block): Document new command.
(qGetTIBAddress): Document new gdbserver query.
(maint set/show show-all-tib): Document new command.

14 years ago * tui/tui-regs.c (tui_display_register): Add comment about
Joel Brobecker [Fri, 16 Apr 2010 04:34:31 +0000 (04:34 +0000)]
    * tui/tui-regs.c (tui_display_register): Add comment about
        a couple of casts.
        * tui/tui-stack.c (tui_show_locator_content): Ditto.

14 years ago2010-04-15 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Fri, 16 Apr 2010 01:12:07 +0000 (01:12 +0000)]
2010-04-15  Stan Shebs  <stan@codesourcery.com>

* frame.c: Include tracepoint.h.
(get_current_frame): Allow a trace frame to be an alternate source
of stack frame data.
* tracepoint.c (tfind_1): Don't try to get current stack frame if
it won't succeed.

14 years ago*** empty log message ***
gdbadmin [Fri, 16 Apr 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Fri, 16 Apr 2010 00:00:04 +0000 (00:00 +0000)]
daily update

14 years agos/Pedro Alves/Pedro Alves/
Pedro Alves [Thu, 15 Apr 2010 23:46:11 +0000 (23:46 +0000)]
s/Pedro  Alves/Pedro Alves/

14 years agoFix date format in one entry. Fix whitespace throughout while there.
Pedro Alves [Thu, 15 Apr 2010 23:43:40 +0000 (23:43 +0000)]
Fix date format in one entry.  Fix whitespace throughout while there.

14 years agoRemove src/gdb/ from entry.
Pedro Alves [Thu, 15 Apr 2010 22:36:44 +0000 (22:36 +0000)]
Remove src/gdb/ from entry.

14 years ago * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
Pedro Alves [Thu, 15 Apr 2010 20:19:24 +0000 (20:19 +0000)]
* ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
flags.
* solib-spu.c (spu_solib_loaded): Always pass 0 for flags.

14 years ago * NEWS: Add entry for python program space support.
Doug Evans [Thu, 15 Apr 2010 19:54:13 +0000 (19:54 +0000)]
* NEWS: Add entry for python program space support.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
(SUBDIR_PYTHON_SRCS): Add py-progspace.c.
(py-progspace.o): New rule.
* python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
function.
(find_pretty_printer_from_progspace): New function.
(find_pretty_printer_from_gdb): New function.
(find_pretty_printer): Rewrite.
* python/py-progspace.c: New file.
* python/python-internal.h (program_space): Add forward decl.
(pspace_to_pspace_object, pspy_get_printers): Declare.
(gdbpy_initialize_pspace): Declare.
* python/python.c: #include "progspace.h".
(gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
(_initialize_python): Call gdbpy_initialize_pspace.
(GdbMethods): Add current_progspace, progspaces.

doc/
* gdb.texinfo (Python API): Add progspaces section.
(Selecting Pretty-Printers): Progspace pretty-printers are
searched too.
(Progspaces In Python): New section.

testsuite/
* gdb.python/py-progspace.c: New file.
* gdb.python/py-progspace.exp: New file.

14 years ago Add -s option to source command.
Doug Evans [Thu, 15 Apr 2010 17:45:57 +0000 (17:45 +0000)]
Add -s option to source command.
* NEWS: Document new option.
* cli/cli-cmds.c (find_and_open_script): Add function comment.
Delete from_tty and cleanupp args.  Split filep arg into file and
full_pathp.  New arg search_path.
(source_script_from_stream): New function.
(source_script_with_search): New function.
(source_script): Rewrite.
(source_command): Parse "-s" option.
(init_cli_cmds): Add "-s" docs to source command help, and reformat.
* python/python.c (source_python_script): Make file arg a const char *.
Don't call fclose, leave for caller.
* python/python.h (source_python_script): Update.

testsuite/
* gdb.base/source-test.gdb: New file.
* gdb.base/source.exp: Add tests for "source -s".

doc/
* gdb.texinfo (Command Files): Add docs for new "source -s" option.

14 years ago * ld/testsuite/ld-arm/attr-merge-2.attr: Update for changes in attribute output.
Matthew Gretton-Dann [Thu, 15 Apr 2010 10:56:39 +0000 (10:56 +0000)]
* ld/testsuite/ld-arm/attr-merge-2.attr: Update for changes in attribute output.
* ld/testsuite/ld-arm/attr-merge-3.attr: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-1.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-1r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-2.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-2r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-3.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-3r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-4.d: Likeiwse.
* ld/testsuite/ld-arm/attr-merge-vfp-4r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-5.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-5r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-00-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-00.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-02-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-02.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-04-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-04.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-20-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-20.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-22-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-22.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-24-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-40-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-40.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-42-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-44-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-44.d: Likewise.
* ld/testsuite/ld-arm/attr-merge.attr: Likewise.
* binutils/readelf.c (arm_attr_tag_FP_arch): Rename from arm_attr_tag_VFP_arch.
(arm_attr_tag_ABI_align8_needed): Remove.
(arm_attr_tag_ABI_align8_preserved): Remove.
(arm_attr_tag_ABI_HardFP_use): Update text strings.
(arm_attr_public_tags): Add strings for ABI v2.08 attribute tags.
(display_arm_attribute): Add decoding of ABI v2.08 attributes.
* include/elf/arm.h (Tag_FP_arch, Tag_ABI_align_needed, Tag_ABI_align_preserved,
Tag_FP_HP_extension): Add new ABI attribute tags.
* gas/config/tc-arm.c (arm_convert_symbolic_attribute): Add support for
new tag names in v2.08 of ARM ABI.
* gas/doc/c-arm.texi: Document new tag names in ABI.
* gas/testsuite/gas/arm/attr-mcpu.d: Update for new attribute tag names.
* gas/testsuite/gas/arm/attr-mfpu-arm1020e.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-arm1020t.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-arm1136jf-s.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-arm1136jfs.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-neon-fp16.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-neon.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-softvfp+vfp.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp10-r0.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp10.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp3.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp9.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv2.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv3-d16.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv3.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv4-d16.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv4.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpxd.d: Likewise.
* gas/testsuite/gas/arm/attr-names.d: Add test to make sure all attribute names
are recognised.
* gas/testsuite/gas/arm/attr-names.s: Likewise.

14 years agoUpgrade header files to use GPLv3
Nick Clifton [Thu, 15 Apr 2010 10:26:09 +0000 (10:26 +0000)]
Upgrade header files to use GPLv3

14 years ago * config.bfd (vax*-*-*vms*): Delete.
Alan Modra [Thu, 15 Apr 2010 02:54:02 +0000 (02:54 +0000)]
* config.bfd (vax*-*-*vms*): Delete.

14 years ago2010-04-14 Doug Kwan <dougkwan@google.com>
Doug Kwan [Thu, 15 Apr 2010 00:42:15 +0000 (00:42 +0000)]
2010-04-14  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_output_section::fix_exidx_coverage): Mark object
for local symbol recounting if we remove a section due to ICF.
* gold.cc (queue_middle_gc_tasks): Create a dummy blocker if
there are no regular objects in input.

14 years ago*** empty log message ***
gdbadmin [Thu, 15 Apr 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Thu, 15 Apr 2010 00:00:04 +0000 (00:00 +0000)]
daily update

14 years ago Avoid rereading shared libraries that haven't changed.
Pedro Alves [Wed, 14 Apr 2010 23:20:27 +0000 (23:20 +0000)]
Avoid rereading shared libraries that haven't changed.

* solib.c (free_so_symbols): New function, from ...
(free_so): ... here.  Call it.
(solib_read_symbols): Don't warn here if symbols have already been
loaded.
(solib_add): Warn here instead, if a pattern was specified.
(reload_shared_libraries_1): New.
(reload_shared_libraries): Rewrite to not fetch the library list.

14 years agofix typo in previous entry
Doug Evans [Wed, 14 Apr 2010 21:27:01 +0000 (21:27 +0000)]
fix typo in previous entry

14 years ago * source.c (open): Strip DOS drive letter if present before
Doug Evans [Wed, 14 Apr 2010 21:22:29 +0000 (21:22 +0000)]
* source.c (open): Strip DOS drive letter if present before
concatenating string to search path.

14 years ago * filenames.h (HAS_DRIVE_SPEC, STRIP_DRIVE_SPEC): New macros.
Doug Evans [Wed, 14 Apr 2010 21:18:27 +0000 (21:18 +0000)]
* filenames.h (HAS_DRIVE_SPEC, STRIP_DRIVE_SPEC): New macros.

14 years ago * objfiles.h (gdb_bfd_close_or_warn): Declare.
Pedro Alves [Wed, 14 Apr 2010 17:26:11 +0000 (17:26 +0000)]
* objfiles.h (gdb_bfd_close_or_warn): Declare.
* objfiles.c (gdb_bfd_close_or_warn): New.
* corelow.c: Include objfiles.h
(core_close): Use gdb_bfd_close_or_warn.
* elfread.c (build_id_verify): Ditto.
* exec.c (exec_close, exec_close_1): Ditto.

14 years ago Group errors for many missing shared libraries.
Pedro Alves [Wed, 14 Apr 2010 13:49:53 +0000 (13:49 +0000)]
Group errors for many missing shared libraries.

* solist.h (struct so_list): Remove from_tty.
* solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
(solib_map_sections): Take so_list argument.  Return 0 if we
failed to open a BFD.  Add target sections here.
(symbol_add_stub): Delete.
(solib_read_symbols): Inline symbol_add_stub.  Use current flags,
not from_tty copied from the so_list.  Don't warn a second time
for a missing library.
(update_solib_list): Don't save from_tty.  Use TRY_CATCH.  Do not
add to the section table here.  Print out a single warning for all
missing libraries.
* bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
flags.

14 years ago2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Wed, 14 Apr 2010 13:18:55 +0000 (13:18 +0000)]
2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>

* python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
error/warning messages.  Capitalize and use complete sentences.
(blpy_block_syms_iternext): Likewise.
* python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
* python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
(frame_info_to_frame_object, frapy_read_var)
(gdbpy_frame_stop_reason_string): Likewise.
* python/py-lazy-string.c (stpy_convert_to_value)
(gdbpy_create_lazy_string_object): Likewise.
* python/py-objfile.c (objfpy_set_printers): Likewise.
* python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
* python/python.c (parameter_to_python): Likewise.
* python/py-type.c (typy_range, typy_target): Likewise.
* python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
(valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.

14 years ago2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Wed, 14 Apr 2010 12:02:46 +0000 (12:02 +0000)]
2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>

PR python/11381

* python/py-prettyprint.c (pretty_print_one_value): Test for
Py_None.
(print_string_repr): Test for Py_None.  Set flags accordingly.
Return value depending on return type.
(print_children): Take a value indicating whether data was printed
before this function was called.  Alter output accordingly.
(apply_val_pretty_printer): Capture return value from
print_string_repr and pass to print_children.

2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.python/py-prettyprint.py (NoStringContainerPrinter): New printer.
* gdb.python/py-prettyprint.c: Add justchildren struct, typedefs.
* gdb.python/py-prettyprint.exp: New test for to_string returning None.
* gdb.python/py-mi.exp: New test for to_string returning None.

2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.texinfo (Pretty Printing): Document behaviour when to_string
returns None.

14 years ago2010-04-14 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 14 Apr 2010 09:28:48 +0000 (09:28 +0000)]
2010-04-14  Tristan Gingold  <gingold@adacore.com>

* configure.ac (alpha*-*-*vms*): Remove ld from noconfigdirs.
* configure: Regenerate.

14 years ago2010-04-14 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 14 Apr 2010 09:27:27 +0000 (09:27 +0000)]
2010-04-14  Tristan Gingold  <gingold@adacore.com>

* emulparams/alphavms.sh: New file.
* emultempl/vms.em: New file.
* scripttempl/alphavms.sc: New file.
* configure.tgt (alpha*-*-*vms*): Added.
* Makefile.am (ALL_EMULATIONS): Add ealphavms.o
(ealphavms.c): New target.
* Makefile.in: Regenerate.

14 years ago2010-04-14 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 14 Apr 2010 09:25:34 +0000 (09:25 +0000)]
2010-04-14  Tristan Gingold  <gingold@adacore.com>

* config/tc-alpha.c: Includes vms/egps.h on EVAX.
(s_alpha_comm): Used new EGPS macros from egps.h
(RGPS__V_NO_SHIFT, EGPS__V_MASK): New local macros.
(s_alpha_section_word): Add comments.  Use new EGPS macros.
Adjust for modified bfd_vms_set_section_flags function.

14 years ago2010-04-14 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 14 Apr 2010 09:24:59 +0000 (09:24 +0000)]
2010-04-14  Tristan Gingold  <gingold@adacore.com>

* Makefile.am (BFD32_BACKENDS): Remove vms-gsd.lo, vms-hdr.lo,
vms-tir.lo, vms.lo and add vms-alpha.lo
(BFD32_BACKENDS_CFILES): Remove vms-gsd.c, vms-hdr.c,
vms-tir.c, vms.c and add vms-alpha.c
* Makefile.in: Regenerate.
* configure.in (TDEFINES): Adjust file list for vms_alpha_vec.
Remove vms_vax_vec.
* configure: Regenerate.
* targets.c (vms_vax_vec): Remove the declaration.
(_bfd_target_vector): Remove vms_vax_vec.
* vms-alpha.c: New file.
* vms-gsd.c: Removed, rewritten in vms-alpha.c
* vms-hdr.c: Ditto.
* vms-tir.c: Ditto.
* vms.c: Ditto.
* vms-misc.c: Fix indentation and comments.  Replace most of
#if VMS_DEBUG/vms_debug with vms_debug2.
(_bfd_vms_hash_newfunc): Moved to vms-alpha.c
(hash_string): Ditto.
(_bfd_vms_length_hash_symbol): Ditto.
(maybe_adjust_record_pointer_for_object): Ditto.
(_bfd_vms_get_object_record): Ditto.
(vms_get_remaining_object_record): Ditto.
(_bfd_vms_push): Ditto.
(_bfd_vms_pop): Ditto.
(_bfd_vms_get_header_values): Removed.
(_bfd_vms_get_first_record): Removed.
(vms_get_remaining_image_record): Removed.
(new_symbol): Removed.
(_bfd_vms_enter_symbol): Removed.
(_bfd_vms_save_sized_string): Use memcpy instead of strncpy.
(_bfd_vms_output_begin): Remove rechead parameter.  Replace bfd
parameter with struct vms_rec_wr.
(_bfd_vms_output_push): Removed and replaced by ...
(_bfd_vms_output_begin_subrec): ... new function.
(_bfd_vms_output_alignment): Replace bfd parameter with
struct vms_rec_wr, and adjust.
(_bfd_vms_output_check): Ditto
(_bfd_vms_output_byte): Ditto.
(_bfd_vms_output_short): Ditto.
(_bfd_vms_output_long): Ditto.
(_bfd_vms_output_quad): Ditto.
(_bfd_vms_output_counted): Ditto.
(_bfd_vms_output_dump): Ditto.
(_bfd_vms_output_fill): Ditto.
(_bfd_vms_output_pop): Removed and replaced by ...
(_bfd_vms_output_end_subrec): ... new function.
(_bfd_vms_output_flush): Removed.
(_bfd_vms_output_align): New function.
(_bfd_vms_output_end): Add recwr parameter.  Adjust for this new
parameter.
(vms_convert_to_var): New function imported from vms.c
(vms_convert_to_var_1): Ditto.
(vms_convert_to_var_unix_filename): Ditto.
(vms_get_module_name): Ditto.
(get_vms_time_string): Ditto.
(vms_time_to_time_t): Ditto.
(vms_rawtime_to_time_t): Ditto.
* vms.h: All macros for the VMS file format are now in include/vms.
Prototypes for vms.c, vms-gsd.c, vms-misc.c, vms-hdr.c, vms-tir.c
have been removed.
(struct vms_symbol_struct, struct stack_struct): Moved to vms-alpha.c
(struct fileinfo, struct srecinfo, struct lineinfo): Ditto.
(struct funcinfo, struct vms_private_data_struct): Ditto.
(struct vms_section_data_struct): Ditto.
(struct vms_rec_rd, stryct vms_rec_wr): New declarations.
(vms_get_module_name, get_vms_time_string): New declarations.
(vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
(_bfd_vms_output_begin_subrec, _bfd_vms_output_end_subrec): Ditto.
(_bfd_vms_save_sized_string, _bfd_vms_save_counted_string): Adjusted.
(_bfd_vms_output_begin, _bfd_vms_output_alignment): Ditto.
(_bfd_vms_output_end,_bfd_vms_output_check): Ditto.
(_bfd_vms_output_byte, _bfd_vms_output_short): Ditto.
(_bfd_vms_output_long, _bfd_vms_output_quad): Ditto.
(_bfd_vms_output_counted, _bfd_vms_output_dump): Ditto.
(_bfd_vms_output_fill): Ditto.
(bfd_vms_set_section_flags): Ditto.

14 years ago * bfd/elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early
Matthew Gretton-Dann [Wed, 14 Apr 2010 08:29:33 +0000 (08:29 +0000)]
* bfd/elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early
exit due to merging the same weak symbol to test that the symbols are
actually weak.

14 years agosim: constify sim_write source buffer (part 2)
Mike Frysinger [Wed, 14 Apr 2010 07:38:06 +0000 (07:38 +0000)]
sim: constify sim_write source buffer (part 2)

As pointed out by Sandra Loosemore, a bunch of targets define sim_write
themselves instead of using the common/ code.  So constify them too.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoCorrect PR number for PR corefiles/11481.
H.J. Lu [Wed, 14 Apr 2010 00:40:13 +0000 (00:40 +0000)]
Correct PR number for PR corefiles/11481.

14 years agoMention PR corefiles/11467.
H.J. Lu [Wed, 14 Apr 2010 00:38:03 +0000 (00:38 +0000)]
Mention PR corefiles/11467.

14 years agodaily update
Alan Modra [Wed, 14 Apr 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Wed, 14 Apr 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago* i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
Mark Kettenis [Tue, 13 Apr 2010 21:07:16 +0000 (21:07 +0000)]
* i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
register note sections.
(i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
New variables.
(i386_linux_init_abi): Install list of supported register note
sections that matches the target description.

14 years agosim: dv-sockser: pass up connected state
Mike Frysinger [Tue, 13 Apr 2010 20:58:54 +0000 (20:58 +0000)]
sim: dv-sockser: pass up connected state

A few ports rely on internal dv-sockser state in order to detect whether
a connection has been made (look for 'extern sockser_addr').  Rather than
continuing that tradition, extend the existing status function to return
the socket connection status.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agosim: drop PARAMS
Mike Frysinger [Tue, 13 Apr 2010 20:39:44 +0000 (20:39 +0000)]
sim: drop PARAMS

The PARAMS macro is no longer useful, so drop it from the sim includes.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years ago2010-04-13 Doug Kwan <dougkwan@google.com>
Doug Kwan [Tue, 13 Apr 2010 20:37:55 +0000 (20:37 +0000)]
2010-04-13  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_input_section::set_final_data_size): Compute
accurate final data size instead of using current data size.

14 years agosim: constify sim_write source buffer
Mike Frysinger [Tue, 13 Apr 2010 20:28:20 +0000 (20:28 +0000)]
sim: constify sim_write source buffer

Most the sim write functions declare their source buffer const because
they only ever read from it.  The global sim_write() function does not
follow this convention though which causes some warnings when trying to
pass it const strings or buffers.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years ago * remote.c (remote_get_noisy_reply): Don't error out on empty
Pedro Alves [Tue, 13 Apr 2010 16:08:28 +0000 (16:08 +0000)]
* remote.c (remote_get_noisy_reply): Don't error out on empty
replies.
(remote_start_remote): Update and merge tracepoints and trace
state variables as long as the target supports tracepoints.
(remote_trace_init): Fix prototype.
(remote_download_trace_state_variable): Validate reply.
(remote_trace_set_readonly_regions): Fix prototype.
(remote_trace_start): Fix prototype.  Check for empty reply.
(remote_get_trace_status): Small cleanup.
(remote_trace_stop): Fix prototype.  Check for empty reply.
(remote_trace_find): Check for empty reply.
(remote_save_trace_data): Validate reply.
(remote_set_disconnected_tracing): Check for empty reply, and
validate reply.
(remote_set_circular_trace_buffer): Ditto.

14 years ago PR binutils/11419
Nick Clifton [Tue, 13 Apr 2010 12:20:55 +0000 (12:20 +0000)]
    PR binutils/11419
        * dwarf.c (process_debug_info): Initialise the signature array.

14 years ago Suppress unused value warning during compilation.
Pierre Muller [Tue, 13 Apr 2010 12:11:10 +0000 (12:11 +0000)]
Suppress unused value warning during compilation.
* tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
calls to void.
* tui/tui-stack.c (tui_show_locator_content): Likewise.

14 years ago * elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location
Alan Modra [Tue, 13 Apr 2010 04:05:29 +0000 (04:05 +0000)]
* elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location
when optimizing high got_tlsgd/ld insns.

14 years ago2010-04-12 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Tue, 13 Apr 2010 03:53:50 +0000 (03:53 +0000)]
2010-04-12  Stan Shebs  <stan@codesourcery.com>

* tracepoint.c (tfile_xfer_partial): Check read result.

14 years ago*** empty log message ***
gdbadmin [Tue, 13 Apr 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Tue, 13 Apr 2010 00:00:04 +0000 (00:00 +0000)]
daily update

14 years agosim: add more hacking notes
Mike Frysinger [Mon, 12 Apr 2010 21:44:46 +0000 (21:44 +0000)]
sim: add more hacking notes

I found the documentation lacking in many places, so I tried filling in a
lot of holes that I personally fell into.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoRemove gdb/gdbserver/ line.
Pedro Alves [Mon, 12 Apr 2010 17:46:05 +0000 (17:46 +0000)]
Remove gdb/gdbserver/ line.

14 years ago gdb/gdbserver/
Pedro Alves [Mon, 12 Apr 2010 17:39:42 +0000 (17:39 +0000)]
gdb/gdbserver/
* linux-low.c (linux_mourn): Also remove the process.
* server.c (handle_target_event): Don't remove the process here.
* nto-low.c (nto_mourn): New.
(nto_target_ops): Install it.
* spu-low.c (spu_mourn): New.
(spu_target_ops): Install it.
* win32-low.c (win32_mourn): New.
(win32_target_ops): Install it.

14 years agosim: add helper macros for branch profiling
Mike Frysinger [Mon, 12 Apr 2010 16:57:24 +0000 (16:57 +0000)]
sim: add helper macros for branch profiling

The profile code has a lot of helper macros already, but none yet for the
branch profiling code.  So add ones for the basic functions -- taken and
untaken branches.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agosim: add missing values to array initializers
Mike Frysinger [Mon, 12 Apr 2010 16:53:33 +0000 (16:53 +0000)]
sim: add missing values to array initializers

The sim code has a lot of static initializer for options and devices, but
since they aren't using newer struct style, they have to specify a value
for every option otherwise gcc spits a lot of warnings about "missing
initializer".  So add NULL/0 stubs for pointers/values.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agogdb: constify remote files_info
Mike Frysinger [Mon, 12 Apr 2010 16:04:43 +0000 (16:04 +0000)]
gdb: constify remote files_info

The sim and m32r remote targets declare a local "file" variable and only
assign const strings to it before passing it to a printf() func.  So add
const markings to avoid gcc warnings like:
gdb/remote-sim.c: In function 'gdbsim_files_info':
gdb/remote-sim.c:789: warning: initialization discards qualifiers
from pointer target type

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agosim: constify dup_arg_p
Mike Frysinger [Mon, 12 Apr 2010 16:00:44 +0000 (16:00 +0000)]
sim: constify dup_arg_p

The dup_arg_p function is only given const strings, and it maintains a
local table of those const strings.  So constify the whole thing to fix
the GCC warnings:

common/sim-options.c: In function 'sim_parse_args':
common/sim-options.c:559: warning: passing argument 1 of 'dup_arg_p'
discards qualifiers from pointer target type
common/sim-options.c: In function 'print_help':
common/sim-options.c:675: warning: passing argument 1 of 'dup_arg_p'
discards qualifiers from pointer target type

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years ago2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
Richard Earnshaw [Mon, 12 Apr 2010 13:52:43 +0000 (13:52 +0000)]
2010-04-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>

* arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
* arm-linux-nat.c (arm_linux_vfp_register_count): New
variable.
(fetch_vfp_registers): New function to fetch VFP registers.
(store_vfp_registers): New function to store VFP registers.
(arm_linux_fetch_inferior_registers): Add support for VFP
registers.
(arm_linux_store_inferior_registers): Likewise.
(arm_linux_read_description): Likewise.
(_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
until we need it.

14 years ago * server.h (buffer_xml_printf): Remove redundant `;'.
Pedro Alves [Mon, 12 Apr 2010 13:51:22 +0000 (13:51 +0000)]
* server.h (buffer_xml_printf): Remove redundant `;'.

14 years ago * regcache.c (set_register_cache): Invalidate regcaches before
Pedro Alves [Mon, 12 Apr 2010 13:25:51 +0000 (13:25 +0000)]
* regcache.c (set_register_cache): Invalidate regcaches before
changing the register cache layout.
(regcache_invalidate_one): Allow a NULL regcache.
* linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
regcaches before changing the register cache layout or the target
regsets.

14 years agoAvoid unused variable warning on Linux/x86-64.
H.J. Lu [Mon, 12 Apr 2010 13:18:13 +0000 (13:18 +0000)]
Avoid unused variable warning on Linux/x86-64.

2010-04-12  H.J. Lu  <hongjiu.lu@intel.com>

* linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
variable warning on Linux/x86-64.

14 years ago2010-04-12 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Mon, 12 Apr 2010 09:49:35 +0000 (09:49 +0000)]
2010-04-12  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.python/py-breakpoint.c: Make result global.

14 years agodaily update
Alan Modra [Mon, 12 Apr 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Mon, 12 Apr 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agoRemove the unused variable in amd64-tdep.c.
H.J. Lu [Sun, 11 Apr 2010 20:20:31 +0000 (20:20 +0000)]
Remove the unused variable in amd64-tdep.c.

2010-04-11  H.J. Lu  <hongjiu.lu@intel.com>

* amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
tdep.
(amd64_collect_xstateregset): Likewise.

14 years ago GDBserver disconnected tracing support.
Pedro Alves [Sun, 11 Apr 2010 16:33:56 +0000 (16:33 +0000)]
GDBserver disconnected tracing support.

* linux-low.c (linux_remove_process): Delete.
(add_lwp): Don't set last_resume_kind here.
(linux_kill): Use `mourn'.
(linux_detach): Use `thread_db_detach', and `mourn'.
(linux_mourn): New.
(linux_attach_lwp_1): Adjust comment.
(linux_attach): last_resume_kind moved the thread_info; adjust.
(status_pending_p_callback): Adjust.
(linux_wait_for_event_1): Adjust.
(count_events_callback, select_singlestep_lwp_callback)
(select_event_lwp_callback, cancel_breakpoints_callback)
(db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
(proceed_one_lwp): Adjust.
(linux_async): Add debug output.
(linux_thread_stopped): New.
(linux_pause_all): New.
(linux_target_ops): Install linux_mourn, linux_thread_stopped and
linux_pause_all.
* linux-low.h (struct lwp_info): Delete last_resume_kind field.
(thread_db_free): Delete declaration.
(thread_db_detach, thread_db_mourn): Declare.
* thread-db.c (thread_db_init): Use thread_db_mourn.
(thread_db_free): Delete, split in two.
(disable_thread_event_reporting): New.
(thread_db_detach): New.
(thread_db_mourn): New.

* server.h (struct thread_info) <last_resume_kind>: New field.
<attached>: Add comment.
<gdb_detached>: New field.
(handler_func): Change return type to int.
(handle_serial_event, handle_target_event): Ditto.
(gdb_connected): Declare.
(tracing): Delete.
(disconnected_tracing): Declare.
(stop_tracing): Declare.

* server.c (handle_query) <qSupported>: Report support for
disconnected tracing.
(queue_stop_reply_callback): Account for running threads.
(gdb_wants_thread_stopped): New.
(gdb_wants_all_threads_stopped): New.
(gdb_reattached_process): New.
(handle_status): Clear the `gdb_detached' flag of all processes.
In all-stop, stop all threads.
(main): Be sure to leave tfind mode.  Handle disconnected tracing.
(process_serial_event): If the remote connection breaks, or if an
exit was forced with "monitor exit", force an event loop exit.
Handle disconnected tracing on detach.
(handle_serial_event): Adjust.
(handle_target_event): If GDB isn't connected, forward events back
to the inferior, unless the last process exited, in which case,
exit gdbserver.  Adjust interface.

* remote-utils.c (remote_open): Don't block in accept.  Instead
register an event loop source on the listen socket file
descriptor.  Refactor bits into ...
(listen_desc): ... this new global.
(gdb_connected): ... this new function.
(enable_async_notification): ... this new function.
(handle_accept_event): ... this new function.
(remote_close): Clear remote_desc.

* inferiors.c (add_thread): Set the new thread's last_resume_kind.

* target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
New fields.
(mourn_inferior): Define.
(target_process_qsupported): Avoid the dangling else problem.
(thread_stopped): Define.
(pause_all): Define.
(target_waitstatus_to_string): Declare.
* target.c (target_waitstatus_to_string): New.

* tracepoint.c (tracing): Make extern.
(disconnected_tracing): New.
(stop_tracing): Make extern.  Handle tracing stops due to GDB
disconnecting.
(cmd_qtdisconnected): New.
(cmd_qtstatus): Report disconnected tracing status in trace reply.
(handle_tracepoint_general_set): Handle QTDisconnected.

* event-loop.c (event_handler_func): Change return type to int.
(process_event): Bail out if the event handler wants the event
loop to stop.
(handle_file_event): Ditto.
(start_event_loop): Bail out if the event handler wants the event
loop to stop.

* nto-low.c (nto_target_ops): Adjust.
* spu-low.c (spu_wait): Don't remove the process here.
(spu_target_ops): Adjust.
* win32-low.c (win32_wait): Don't remove the process here.
(win32_target_ops): Adjust.

14 years ago * regcache.c (realloc_register_cache): Invalidate inferior's
Pedro Alves [Sun, 11 Apr 2010 01:47:48 +0000 (01:47 +0000)]
* regcache.c (realloc_register_cache): Invalidate inferior's
regcache before recreating it.

14 years agodaily update
Alan Modra [Sun, 11 Apr 2010 00:00:04 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Sun, 11 Apr 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

14 years agoUndefine HAVE_PRPSINFO32_T/HAVE_PRSTATUS32_T before define.
H.J. Lu [Sat, 10 Apr 2010 22:52:37 +0000 (22:52 +0000)]
Undefine HAVE_PRPSINFO32_T/HAVE_PRSTATUS32_T before define.

2010-04-10  H.J. Lu  <hongjiu.lu@intel.com>

* hosts/x86-64linux.h (HAVE_PRPSINFO32_T): Undefine before
define.
(HAVE_PRSTATUS32_T): Likewise.

14 years agoSupport 32bit core note sections on Linux/x86-64.
H.J. Lu [Sat, 10 Apr 2010 22:21:31 +0000 (22:21 +0000)]
Support 32bit core note sections on Linux/x86-64.

2010-04-10  H.J. Lu  <hongjiu.lu@intel.com>

PR corefiles/11467
* configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h
for x86_64-*-linux*.
* config.in: Regenerated.
* configure: Likewise.

* elf.c: Include CORE_HEADER if it is defined.

2010-04-10  H.J. Lu  <hongjiu.lu@intel.com>
    Jan Kratochvil  <jan.kratochvil@redhat.com>

* hosts/x86-64linux.h: New.

14 years agosim: also constify sim_fpu_print_func
Mike Frysinger [Sat, 10 Apr 2010 21:25:06 +0000 (21:25 +0000)]
sim: also constify sim_fpu_print_func

14 years agosim: constify sim_fpu_print_status
Mike Frysinger [Sat, 10 Apr 2010 20:29:54 +0000 (20:29 +0000)]
sim: constify sim_fpu_print_status

I've committed the following patch as obvious.  The local "prefix"
variable is only assigned const strings, and only passed to printf()
functions, so add "const" to avoid gcc warnings:
common/sim-fpu.c: In function 'sim_fpu_print_status':
common/sim-fpu.c:2508: warning: initialization discards qualifiers
from pointer target type
common/sim-fpu.c:2566: warning: assignment discards qualifiers
from pointer target type

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years ago PR gas/11486
Alan Modra [Sat, 10 Apr 2010 14:12:56 +0000 (14:12 +0000)]
PR gas/11486
* config/tc-ppc.c (ppc_elf_cons): Clear frag contents.

14 years agosim: drop duplicate break statements in sim-fpu
Mike Frysinger [Sat, 10 Apr 2010 08:26:45 +0000 (08:26 +0000)]
sim: drop duplicate break statements in sim-fpu

14 years agosim: constify save_data()
Mike Frysinger [Sat, 10 Apr 2010 08:00:58 +0000 (08:00 +0000)]
sim: constify save_data()

The local save_data() function takes a pointer to a buffer and only uses it as
the source to the memcpy() function.  Since it is given const strings, GCC
likes to spit out warnings:
common/sim-trace.c: In function 'trace_prefix':
common/sim-trace.c:697: warning: passing argument 5 of 'save_data' discards
qualifiers from pointer target type

So I've committed this as obvious.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agosim: add const markings to env string
Mike Frysinger [Sat, 10 Apr 2010 07:35:35 +0000 (07:35 +0000)]
sim: add const markings to env string

The sim-options code assigns a const string to "char *" in decoding the
current environment settings, and only uses it to pass to a printf.  GCC
outputs the warnings:
common/sim-options.c: In function 'standard_option_handler':
common/sim-options.c:271: warning: assignment discards qualifiers from pointer
target type
common/sim-options.c:272: warning: assignment discards qualifiers from pointer
target type
common/sim-options.c:273: warning: assignment discards qualifiers from pointer
target type

So I've committed this as "obvious".

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years ago*** empty log message ***
gdbadmin [Sat, 10 Apr 2010 00:00:07 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Sat, 10 Apr 2010 00:00:06 +0000 (00:00 +0000)]
daily update

14 years agoAdd back missing change log.
Doug Kwan [Fri, 9 Apr 2010 23:51:37 +0000 (23:51 +0000)]
Add back missing change log.

2010-04-09  Doug Kwan  <dougkwan@google.com>

* layout.cc (Layout::choose_output_section): Handle script section
types.
(Layout::make_output_section_for_script): Add section type parameter.
Handle script section types.
* layout.h (Layout::make_output_section_for_script): Add section
type parameter.
* output.cc (Output_section::Output_section): Initialize data member
is_noload_.
(Output_section::do_reset_address_and_file_offset): Do not set address
to 0 if section is a NOLOAD section.
* output.h (Output_section::is_noload): New method.
(Output_section::set_is_noload): Ditto.
(Output_section::is_noload_): New data member.
* script-c.h (Script_section_type): New enum type.
(struct Parser_output_section_header): Add new file section_type.
* script-sections.cc (Sections_element::output_section_name): Add
parameter for returning script section type.
(Output_section_definition::output_section_name): Ditto.
(Output_section_definition::section_type)P; New method.
(Output_section_definiton::script_section_type_name): Ditto.
(Output_section_definition::script_section_type_): New data member.
(Output_section_definition::Output_section_definition): Initialize
data member Output_section_definition::script_section_type_.
(Output_section_definition::create_sections): Pass script section type
to Layout::make_output_section_for_script.
(Output_section_definition::output_section_name): Return script
section type to caller.
(Output_section_definition::set_section_address): Do not advance
dot value and load address if section type is NOLOAD.  Set address
of NOLOAD sections regardless of section flags.
(Output_section_definition::print): Print section type if it is
not SCRIPT_SECTION_TYPE_NONE.
(Output_section_definition::section_type): New method.
(Output_section_definition::script_section_type_name): Ditto.
(Script_sections::output_section_name): Add new parameter
PSECTION_TYPE for returning script section type.  Pass it to
section elements.  Handle discard sections.
(Sort_output_sections::operator()): Handle NOLOAD sections.
* script-sections.h (Script_sections::Section_type): New enum type.
    (Script_sections::output_section_name): Add a new parameter for
returning script section type.
* script.cc (script_keyword_parsecodes): Add keywords COPY, DSECT,
INFO and NOLOAD.
* yyscript.y (union): Add new field SECTION_TYPE.
(COPY, DSECT, INFO, NOLOAD): New tokens.
(opt_address_and_section_type): Change type to output_section_header.
(section_type): New non-terminal
(section_header): Handle section type.
  (opt_address_and_section_type): Return section type value.

14 years agogdb/testsuite/
Jan Kratochvil [Fri, 9 Apr 2010 20:50:46 +0000 (20:50 +0000)]
gdb/testsuite/
Fix non-GNU make compatibility.
* Makefile.in ($(TEST_TARGETS)): Conditionalize it by @GMAKE_TRUE@.

14 years ago2010-04-09 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Fri, 9 Apr 2010 20:46:40 +0000 (20:46 +0000)]
2010-04-09  Stan Shebs  <stan@codesourcery.com>

* tracepoint.c (trace_status_mi): Report frames created.

* gdb.texinfo (gdb/mi Tracepoint Commands) <-trace-status>:
Describe the `frames-created' field, tweak grammar.

14 years ago2010-04-09 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Fri, 9 Apr 2010 19:34:57 +0000 (19:34 +0000)]
2010-04-09  Stan Shebs  <stan@codesourcery.com>

* tracepoint.c (trace_dump_command): Include default-collect
expressions.

14 years agoAdd prototype to gold tests.
H.J. Lu [Fri, 9 Apr 2010 18:05:43 +0000 (18:05 +0000)]
Add prototype to gold tests.

2010-04-09  H.J. Lu  <hongjiu.lu@intel.com>

* testsuite/plugin_common_test_1.c (foo): Add prototype.
* testsuite/plugin_common_test_2.c (foo): Likewise.

14 years ago2010-04-09 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 9 Apr 2010 17:32:58 +0000 (17:32 +0000)]
2010-04-09  Doug Kwan  <dougkwan@google.com>

* layout.cc (Layout::choose_output_section): Handle script section
types.
(Layout::make_output_section_for_script): Add section type parameter.
Handle script section types.
* layout.h (Layout::make_output_section_for_script): Add section
type parameter.
* output.cc (Output_section::Output_section): Initialize data member
is_noload_.
(Output_section::do_reset_address_and_file_offset): Do not set address
to 0 if section is a NOLOAD section.
* output.h (Output_section::is_noload): New method.
(Output_section::set_is_noload): Ditto.
(Output_section::is_noload_): New data member.
* script-c.h (Script_section_type): New enum type.
(struct Parser_output_section_header): Add new file section_type.
* script-sections.cc (Sections_element::output_section_name): Add
parameter for returning script section type.
(Output_section_definition::output_section_name): Ditto.
(Output_section_definition::section_type)P; New method.
(Output_section_definiton::script_section_type_name): Ditto.
(Output_section_definition::script_section_type_): New data member.
(Output_section_definition::Output_section_definition): Initialize
data member Output_section_definition::script_section_type_.
(Output_section_definition::create_sections): Pass script section type
to Layout::make_output_section_for_script.
(Output_section_definition::output_section_name): Return script
section type to caller.
(Output_section_definition::set_section_address): Do not advance
dot value and load address if section type is NOLOAD.  Set address
of NOLOAD sections regardless of section flags.
(Output_section_definition::print): Print section type if it is
not SCRIPT_SECTION_TYPE_NONE.
(Output_section_definition::section_type): New method.
(Output_section_definition::script_section_type_name): Ditto.
(Script_sections::output_section_name): Add new parameter
PSECTION_TYPE for returning script section type.  Pass it to
section elements.  Handle discard sections.
(Sort_output_sections::operator()): Handle NOLOAD sections.
* script-sections.h (Script_sections::Section_type): New enum type.
    (Script_sections::output_section_name): Add a new parameter for
returning script section type.
* script.cc (script_keyword_parsecodes): Add keywords COPY, DSECT,
INFO and NOLOAD.
* yyscript.y (union): Add new field SECTION_TYPE.
(COPY, DSECT, INFO, NOLOAD): New tokens.
(opt_address_and_section_type): Change type to output_section_header.
(section_type): New non-terminal
(section_header): Handle section type.
  (opt_address_and_section_type): Return section type value.

14 years ago * symtab.c (find_function_start_sal): Never return SAL pointing
Ulrich Weigand [Fri, 9 Apr 2010 15:31:41 +0000 (15:31 +0000)]
* symtab.c (find_function_start_sal): Never return SAL pointing
before function start address, even if line info is missing.

14 years ago * NEWS: Mention tracepoints support.
Pedro Alves [Fri, 9 Apr 2010 15:26:54 +0000 (15:26 +0000)]
* NEWS: Mention tracepoints support.

14 years ago gdb/
Pedro Alves [Fri, 9 Apr 2010 15:22:09 +0000 (15:22 +0000)]
gdb/
* tracepoint.c (trace_status_mi): Report disconnected tracing and
circular trace buffer statuses.

gdb/doc/
* gdb.texinfo (gdb/mi Tracepoint Commands) <-trace-status>:
Describe the `circular' and `disconnected' fields.

14 years agogdb/
Jan Kratochvil [Fri, 9 Apr 2010 15:15:05 +0000 (15:15 +0000)]
gdb/
* config/djgpp/fnchange.lst: Fix typo in translations for
symbol-without-target_section.exp and symbol-without-target_section.c.

14 years agoMention unavailable and invisible registers.
H.J. Lu [Fri, 9 Apr 2010 15:12:31 +0000 (15:12 +0000)]
Mention unavailable and invisible registers.

2010-04-09  H.J. Lu  <hongjiu.lu@intel.com>

* gdb.texinfo (maint print registers): Mention unavailable and
invisible registers.

14 years ago * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
Pedro Alves [Fri, 9 Apr 2010 14:40:48 +0000 (14:40 +0000)]
* tracepoint.c (cmd_qtstatus): Report trace buffer circularity.

14 years agobfd/ChangeLog
Nick Clifton [Fri, 9 Apr 2010 14:40:18 +0000 (14:40 +0000)]
bfd/ChangeLog
2010-04-09  Nick Clifton  <nickc@redhat.com>

        * aoutx.h (aout_link_input_bfd): Remove unused variable sym_count.
        * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Remove unused
        variables htab and hdr_info and mark info parameter as unused.
        * elf.c (prep_headers): Remove unused variable i_phdrp.
        (_bfd_elf_write_object_contents): Remove unused variable i_ehdrp.
        * elf32-i386.c (elf_i386_relocate_section): Mark variabled warned
        as unused.
        * peXXigen.c (pe_print_reloc): Remove unused variable datasize.
        * verilog.c (verilog_write_section): Remove unused variable
        address.

binutils/ChangeLog
2010-04-09  Nick Clifton  <nickc@redhat.com>

        * dwarf.c (process_debug_info): Remove unused variable
        cu_abbrev_offset_ptr.
        (display_debug_lines_decoded): Remove unused variable prev_line.
        * elfedit.c (process_archive): Remove unused variable
        file_name_size.
        * ieee.c (ieee_start_compilation_unit): Remove unused variable
        nindx.
        (ieee_set_type): Remove unused variables info, targetindx and
        baseindx.
        * objdump.c (disassmble_byte): Remove unused variable done_dot.
        * rddbg.c (read_section_stabs_debugging_info): Remove unused
        variable other.
        * readelf.c (dump_section_as_strings): Remove unused variable
        addr.
        (process_archive): Remove unused variable file_name_size.
        * stabs.c (parse_stab_string): Mark desc parameter as unused.
        Remove unused variable lineno.
        (parse_stab_struct_type): Remove unused variable orig.
        (stab_demangle_type): Remove unused variables constp, volatilep
        and hold.

gas/ChangeLog
2010-04-09  Nick Clifton  <nickc@redhat.com>

        * as.c (create_obj_attrs_section): Remove unused variable addr.
        * listing.c (listing_listing): Remove unused variable message.
        * read.c: Remove unnecessary register type qualifiers.
        (s_mri): Only define/use old_flag variable if MRI_MODE_CHANGE is
        defined.

ld/ChangeLog
2010-04-09  Nick Clifton  <nickc@redhat.com>

        * ldlang.c (wild_sort): Remove unused variable section_name.

opcodes/ChangeLog
2010-04-09  Nick Clifton  <nickc@redhat.com>

        * i386-dis.c (print_insn): Remove unused variable op.
        (OP_sI): Remove unused variable mask.

14 years ago * breakpoint.c (condition_command): Pass condition expression to
Pedro Alves [Fri, 9 Apr 2010 13:56:08 +0000 (13:56 +0000)]
* breakpoint.c (condition_command): Pass condition expression to
set_breakpoint_condition stripped from breakpoint number.

14 years ago2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Fri, 9 Apr 2010 09:41:43 +0000 (09:41 +0000)]
2010-04-09  Phil Muldoon  <pmuldoon@redhat.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>
        Tom Tromey  <tromey@redhat.com>

* breakpoint.c (condition_command): Simplify.  Move condition
setting code to ...
(set_breakpoint_condition): ... here.  New function.
* breakpoint.h  (set_breakpoint_condition): Declare.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
(SUBDIR_PYTHON_SRCS): Likewise.
(py-breakpoint.o): New rule.
* python/py-breakpoint.c: New file.
* python/python-internal.h (gdbpy_breakpoints)
(gdbpy_initialize_breakpoints): Declare.
(GDB_PY_SET_HANDLE_EXCEPTION) Define.

2010-04-09  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.python/py-breakpoint.exp: New File.
* gdb.python/py-breakpoint.C: Ditto.

2010-04-09  Phil Muldoon  <pmuldoon@redhat.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>
        Tom Tromey  <tromey@redhat.com>

* gdb.texinfo (Breakpoints In Python): New Node.