aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-04-20 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 toPierre Muller2-6/+13
be consistent with other sources of this directory. (init_registers_amd64): Correct name of source file of this function in the comment.
2010-04-20 * dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): TreatJakub Jelinek2-2/+11
DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name.
2010-04-20Updated French translation.Nick Clifton2-2282/+2813
2010-04-20 * readelf.c: Add _() macros to constant strings that areNick Clifton2-102/+108
translatable.
2010-04-20gas: bfin: replace index() with strchr()Mike Frysinger2-1/+5
2010-04-20(generic_readchar): Tweak previous checkin, close error_fd if EOF.Doug Evans1-1/+8
2010-04-20 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.Doug Evans3-3/+20
* ser-pipe.c (pipe_open): Fix file descriptor leaks. (pipe_close): Ditto.
2010-04-20 * gdb.base/help.exp (help source): Update expected output.Doug Evans2-1/+7
2010-04-20 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.Pierre Muller2-0/+5
2010-04-20 * configure.srv (x86_64-*-mingw*): New configuration for WindowsPierre Muller2-0/+11
64-bit executables.
2010-04-20 * win32-i386-low.c: Add 64-bit support.Pierre Muller2-1/+100
(CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting. (init_registers_amd64): Declare. (mappings): Add 64-bit version of array. (init_windows_x86): New function. (the_low_target): Change init_arch field to init_windows_x86.
2010-04-20 * win32-low.c: Adapt to support also 64-bit architecture.Pierre Muller2-15/+27
(child_xfer_memory): Use uintptr_t type for local variable `addr'. (get_image_name): Use SIZE_T type for local variable `done'. (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'. (toolhelp_get_dll_name): Idem. (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'. Use uintptr_t typecast to avoid warning. (handle_unload_dll): Use uintptr_t typecast to avoid warning. (handle_exception): Use phex_nz to avoid warning. (win32_wait): Remove unused local variable `process'.
2010-04-20daily updateAlan Modra1-1/+1
2010-04-20*** empty log message ***gdbadmin1-1/+1
2010-04-19 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handlePierre Muller2-1/+7
type to void function.
2010-04-192010-04-19 Stan Shebs <stan@codesourcery.com>Stan Shebs3-3/+13
Vladimir Prus <vladimir@codesourcery.com> * tracepoint.c (tfind_1): Add missing newline, report exit from tfind mode as such. * target.c (update_current_target): Make default to_trace_find return -1.
2010-04-19gdb: objc-lang: check symbol name before accessing memoryMike Frysinger2-8/+15
The current ObjC logic will check both the symbol name and the target address space when trying to locate an appropriate selector. The problem is that first the target address space is checked before the symbol name. This may lead to a lot of unnecessary host<->target transactions when dealing with a non-OjbC target that does use function descriptors to describe functions as every symbol will have its FD read just to have the result thrown away with non-matching symbol names. It also may lead to problems when a non-FD symbol is found that points near the end of the address space as the target will throw up a memory_error(). One such example are symbols that are not functions, smaller than a FD, and are the last valid location. Obviously treating it as a larger data struct can cause memory overflows. So to speed things up and not screw over such targets, check the symbol name (which we already have locally) first before attempting to read the function's descriptor. This fixes breakpoints with Blackfin Linux FDPIC ELFs, and seems to cause no native regressions on my x86_64/Linux system. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-04-19sim: mn10300: convert to new sockser status codeMike Frysinger2-14/+26
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-04-19sim: add --model-info helper optionMike Frysinger2-1/+35
There is an architecture-info flag for listing possible arch values, but there is on equivalent for listing possible model values. So add the equivalent for models. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-04-19 * ada-lang.c (print_recreate_exception)Pedro Alves2-1/+7
<ex_catch_exception_unhandled>: It's "catch exception unhandled", not "catch unhandled".
2010-04-19 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' byPierre Muller2-1/+6
`amd64-avx.o'.
2010-04-19 * archive64.c (bfd_elf64_archive_slurp_armap): Remove unusedNick Clifton3-23/+16
arhdrpos variable. * elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused attribute to warned variable. Remove unused val, type and type2 variables.
2010-04-19gdb/testsuite/Jan Kratochvil2-11/+11
* gdb.base/solib-display.exp: Replace gdb_exit, gdb_start, gdb_reinitialize_dir and gdb_load by clean_restart. Remove trailing gdb_exit and return. (executable): New variable. (binfile): Use it.
2010-04-19Fix format of previous-previous entry.Pedro Alves1-1/+1
2010-04-19 PR breakpoints/8554.Pedro Alves9-49/+400
Implement `save-breakpoints'. gdb/ * breakpoint.c (save_cmdlist): New. (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close to save_cmdlist. (print_recreate_catch_fork): New. (catch_fork_breakpoint_ops): Install it. (print_recreate_catch_vfork): New. (catch_vfork_breakpoint_ops): Install it. (print_recreate_catch_syscall): New. (catch_syscall_breakpoint_ops): Install it. (print_recreate_catch_exec): New. (catch_exec_breakpoint_ops): Install it. (print_recreate_exception_catchpoint): New. (gnu_v3_exception_catchpoint_ops): Install it. (save_breakpoints): New, based on tracepoint_save_command, but handle all breakpoint types. (save_breakpoints_command): New. (tracepoint_save_command): Rename to... (save_tracepoints_command): ... this, and reimplement using save_breakpoints. (save_command): New. (_initialize_breakpoints): Install the "save" command prefix. Install the "save breakpoints" command. Make "save-tracepoints" a deprecated alias for "save tracepoints". * breakpoint.h (struct breakpoint_ops): New field `print_recreate'. * ada-lang.c (print_recreate_exception): New. (print_recreate_catch_exception): New. (catch_exception_breakpoint_ops): Install it. (print_recreate_catch_exception_unhandled): New. (catch_exception_unhandled_breakpoint_ops): Install it. (print_recreate_catch_assert): New. (catch_assert_breakpoint_ops): Install it. * NEWS: Mention the new `save breakpoints' command. Mention the new `save tracepoints' alias and that `save-tracepoints' is now deprecated. gdb/doc/ * gdb.texinfo (Save Breakpoints): New node. (save-tracepoints): Rename to ... (save tracepoints): ... this. Mention that `save-tracepoints' is a deprecated alias to `save tracepoints'. gdb/testsuite/ * gdb.trace/save-trace.exp: Adjust.
2010-04-19*** empty log message ***gdbadmin1-1/+1
2010-04-19daily updateAlan Modra1-1/+1
2010-04-18 PR tui/9217Pedro Alves6-335/+151
* tui/tui-out.c: Include cli-out.h. (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) (tui_begin, tui_end, tui_field_int, tui_field_skip) (tui_field_string, tui_field_fmt, tui_spaces, tui_text) (tui_message, tui_wrap_hint, tui_flush): Delete forward declarations. (struct ui_out_data): Rename to... (struct tui_ui_out_data): ... this. Remove `stream' and `suppress_output' fields, and inherit cli_ui_out_data. (tui_out_data): New typedef. (tui_ui_out_impl): Don't initialize fields staticaly. (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) (tui_begin, tui_end): Delete. (tui_field_int): Adjust to delegate most work to the base type. (tui_field_skip): Delete. (tui_field_string, tui_field_fmt): Adjust comment. Adjust to delegate most work to the base type. (tui_spaces): Delete. (tui_text): Adjust to delegate most work to the base type. (tui_message): Delete. (tui_wrap_hint): Delete. (tui_flush): Delete. (out_field_fmt): Delete. (field_separator): Delete. (tui_out_new): Adjust to initialize the base type. (_initialize_tui_out): Initialize tui_ui_out_impl. * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed cli_ui_out_data. (cli_out_data): Adjust. (cli_ui_out_impl): Make extern. (cli_table_header, cli_field_int, cli_field_skip): Use uo_field_string instead of cli_field_string. (cli_redirect): Adjust to use cli_out_data. (cli_out_data_ctor): New. (cli_out_new): Use it. * cli-out.h (struct ui_file): Remove forward declaration. (struct cli_ui_out_data): New, moved from cli-out.c, and renamed. (cli_ui_out_impl): Declare. (cli_out_data_ctor): Declare. * ui-out.c (struct ui_out) <data>: Change type to void pointer. (uo_field_string): No longer static. (ui_out_data): Change return type to void pointer. (ui_out_new): Change `data' parameter type to void pointer. * ui-out.h (struct ui_out_data): Don't forward declare. (ui_out_data): Change return type to void pointer. (ui_out_new): Change `data' parameter type to void pointer. (uo_field_string): Declare.
2010-04-18*** empty log message ***gdbadmin1-1/+1
2010-04-18daily updateAlan Modra1-1/+1
2010-04-17 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,Pedro Alves2-1/+7
instead of always false.
2010-04-17 * configure.ac: Use `ws2_32' library for srv_mingw.Pierre Muller5-4/+11
* configure: Regenerate. * gdbreplay.c: Include winsock2.h instead of winsock.h. * remote-utils.c: Likewise.
2010-04-17gdb/H.J. Lu5-1/+328
2010-04-17 H.J. Lu <hongjiu.lu@intel.com> PR corefiles/11511 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support orig_rax. gdb/testsuite/ 2010-04-17 H.J. Lu <hongjiu.lu@intel.com> PR corefiles/11511 * gdb.arch/system-gcore.exp: New. * gdb.arch/gcore.c: Likewise.
2010-04-17 * breakpoint.c (watchpoints_triggered): UsePedro Alves2-51/+36
is_hardware_watchpoint. (watchpoints_triggered): Ditto. (bpstat_check_location): Use is_watchpoint and is_hardware_watchpoint. (bpstat_check_watchpoint): Use is_watchpoint and is_hardware_watchpoint. (bpstat_stop_status): Fix comment. (user_settable_breakpoint): Use is_watchpoint. (hw_watchpoint_used_count): Use is_hardware_watchpoint. (disable_watchpoints_before_interactive_call_start): Use is_watchpoint. (enable_watchpoints_after_interactive_call_stop): Use is_watchpoint. (clear_command): Use is_watchpoint. (do_enable_breakpoint): Use is_watchpoint.
2010-04-17Define xmltarget_amd64_linux_no_xml only for amd64.H.J. Lu2-0/+8
2010-04-17 H.J. Lu <hongjiu.lu@intel.com> * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only if __x86_64__ is defined.
2010-04-17*** empty log message ***gdbadmin1-1/+1
2010-04-17daily updateAlan Modra1-1/+1
2010-04-16gdb: fdpic/frv: fix shared library loadingMike Frysinger2-10/+33
The recent change to reload_shared_libraries() broke FDPIC shared libraries as the solib-frv.c code was implicitly relying on the initial order of calls (first solib_addr() and then solib_create_inferior_hook()). It was maintaining internal state via enable_break{1,2}_done to handle this. While I could tweak these values a bit more, the original code wasn't terribly bullet proof -- if during the initial debug you attempted to view shared libraries, the enable2_break() code would whine about the ldso internal debug addresses being unfetchable (and would actually attempt to read address 0x8 on the target). So I've dropped this implicit dependency on order (i.e. enable_break1_done) and updated the ldso poking code (i.e. enable_break2) to silently return when the internal debug address is still set to 0. It will remain this way until the ldso gets a chance to initialize at which point the code will act the same as before. While I have no way of testing the FRV, the Blackfin FDPIC code is using this same base in a 100% copy & paste method since we implemented FDPIC the same way as the FRV guys (I'll address this in the future). This fix was required in order to handle shared libraries with Blackfin FDPIC properly, and I see no reason why it wouldn't also work for FRV (since the uClibc ldso FDPIC code is the same too and that's really what this is poking). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-04-16 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warningKevin Buettner2-7/+54
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.
2010-04-16Remove extra breack.H.J. Lu1-1/+0
2010-04-16Return bad_opcode on unknown bits in opcode.H.J. Lu2-5/+22
2010-04-16 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (get_valid_dis386): Return bad_opcode on unknown bits in opcode.
2010-04-162010-04-16 Stan Shebs <stan@codesourcery.com>Stan Shebs2-0/+5
* tracepoint.c (trace_variable_command): Run a cleanup.
2010-04-16 * configure: Regenerate.Pierre Muller2-0/+12
2010-04-162010-04-16 Andreas Schwab <schwab@redhat.com>Tristan Gingold2-1/+10
* vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking strict-aliasing rules.
2010-04-162010-04-16 Tristan Gingold <gingold@adacore.com>Tristan Gingold3-13/+15
* 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.
2010-04-16 PR gas/11395Nick Clifton5-2/+32
* 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.
2010-04-16 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.Pierre Muller2-3/+5
2010-04-16 Support for Windows OS Thread Information Block.Pierre Muller16-27/+699
* 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.
2010-04-16 * tui/tui-regs.c (tui_display_register): Add comment aboutJoel Brobecker3-0/+21
a couple of casts. * tui/tui-stack.c (tui_show_locator_content): Ditto.
2010-04-162010-04-15 Stan Shebs <stan@codesourcery.com>Stan Shebs3-10/+31
* 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.