aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-04-15Upgrade header files to use GPLv3Nick Clifton181-1208/+1537
2010-04-15 * config.bfd (vax*-*-*vms*): Delete.Alan Modra2-4/+4
2010-04-152010-04-14 Doug Kwan <dougkwan@google.com>Doug Kwan3-1/+20
* 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.
2010-04-15*** empty log message ***gdbadmin1-1/+1
2010-04-15daily updateAlan Modra1-1/+1
2010-04-14 Avoid rereading shared libraries that haven't changed.Pedro Alves2-14/+146
* 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.
2010-04-14fix typo in previous entryDoug Evans1-1/+1
2010-04-14 * source.c (open): Strip DOS drive letter if present beforeDoug Evans2-0/+9
concatenating string to search path.
2010-04-14 * filenames.h (HAS_DRIVE_SPEC, STRIP_DRIVE_SPEC): New macros.Doug Evans2-2/+16
2010-04-14 * objfiles.h (gdb_bfd_close_or_warn): Declare.Pedro Alves6-15/+33
* 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.
2010-04-14 Group errors for many missing shared libraries.Pedro Alves4-54/+114
* 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.
2010-04-142010-04-14 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon11-34/+63
* 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.
2010-04-142010-04-14 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon9-47/+180
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.
2010-04-142010-04-14 Tristan Gingold <gingold@adacore.com>Tristan Gingold3-2/+7
* configure.ac (alpha*-*-*vms*): Remove ld from noconfigdirs. * configure: Regenerate.
2010-04-142010-04-14 Tristan Gingold <gingold@adacore.com>Tristan Gingold7-1/+187
* 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.
2010-04-142010-04-14 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-15/+35
* 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.
2010-04-142010-04-14 Tristan Gingold <gingold@adacore.com>Tristan Gingold13-8408/+9304
* 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.
2010-04-14 * bfd/elflink.c (_bfd_elf_merge_symbol): Tighten up the test for earlyMatthew Gretton-Dann2-5/+12
exit due to merging the same weak symbol to test that the symbols are actually weak.
2010-04-14sim: constify sim_write source buffer (part 2)Mike Frysinger30-18/+74
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>
2010-04-14Correct PR number for PR corefiles/11481.H.J. Lu1-1/+1
2010-04-14Mention PR corefiles/11467.H.J. Lu1-0/+1
2010-04-14daily updateAlan Modra1-1/+1
2010-04-14*** empty log message ***gdbadmin1-1/+1
2010-04-13* i386-linux-tdep.c (i386_linux_regset_sections): Remove extendedMark Kettenis2-1/+27
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.
2010-04-13sim: dv-sockser: pass up connected stateMike Frysinger3-3/+11
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>
2010-04-13sim: drop PARAMSMike Frysinger3-62/+67
The PARAMS macro is no longer useful, so drop it from the sim includes. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-04-132010-04-13 Doug Kwan <dougkwan@google.com>Doug Kwan2-11/+12
* arm.cc (Arm_input_section::set_final_data_size): Compute accurate final data size instead of using current data size.
2010-04-13sim: constify sim_write source bufferMike Frysinger5-3/+12
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>
2010-04-13 * remote.c (remote_get_noisy_reply): Don't error out on emptyPedro Alves2-23/+55
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.
2010-04-13 PR binutils/11419Nick Clifton2-1/+6
* dwarf.c (process_debug_info): Initialise the signature array.
2010-04-13 Suppress unused value warning during compilation.Pierre Muller3-4/+11
* tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend calls to void. * tui/tui-stack.c (tui_show_locator_content): Likewise.
2010-04-13 * elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP locationAlan Modra2-1/+6
when optimizing high got_tlsgd/ld insns.
2010-04-132010-04-12 Stan Shebs <stan@codesourcery.com>Stan Shebs2-1/+12
* tracepoint.c (tfile_xfer_partial): Check read result.
2010-04-13*** empty log message ***gdbadmin1-1/+1
2010-04-13daily updateAlan Modra1-1/+1
2010-04-12sim: add more hacking notesMike Frysinger2-0/+249
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>
2010-04-12Remove gdb/gdbserver/ line.Pedro Alves1-1/+0
2010-04-12 gdb/gdbserver/Pedro Alves6-7/+36
* 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.
2010-04-12sim: add helper macros for branch profilingMike Frysinger2-0/+21
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>
2010-04-12sim: add missing values to array initializersMike Frysinger12-60/+74
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>
2010-04-12gdb: constify remote files_infoMike Frysinger3-2/+7
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>
2010-04-12sim: constify dup_arg_pMike Frysinger2-3/+8
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>
2010-04-122010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>Richard Earnshaw3-15/+168
* 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.
2010-04-12 * server.h (buffer_xml_printf): Remove redundant `;'.Pedro Alves2-1/+5
2010-04-12 * regcache.c (set_register_cache): Invalidate regcaches beforePedro Alves3-0/+21
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.
2010-04-12Avoid unused variable warning on Linux/x86-64.H.J. Lu2-1/+6
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.
2010-04-122010-04-12 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-1/+5
* gdb.python/py-breakpoint.c: Make result global.
2010-04-12daily updateAlan Modra1-1/+1
2010-04-12*** empty log message ***gdbadmin1-1/+1
2010-04-11Remove the unused variable in amd64-tdep.c.H.J. Lu2-2/+6
2010-04-11 H.J. Lu <hongjiu.lu@intel.com> * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused tdep. (amd64_collect_xstateregset): Likewise.