aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-07-29[include/opcode]DJ Delorie12-840/+917
* rx.h (RX_Operand_Type): Add TwoReg. (RX_Opcode_ID): Remove ediv and ediv2. [opcodes] * rx-decode.opc (SRR): New. (rx_decode_opcode): Use it for movbi and movbir. Decode NOP2 (mov r0,r0) and NOP3 (max r0,r0) special cases. * rx-decode.c: Regenerate. [sim/rx] * rx.c (decode_cache_base): New. (id_names): Remove ediv and edivu. (optype_names): Add TwoReg. (maybe_get_mem_page): New. (rx_get_byte): Call it. (get_op): Add TwoReg support. (put_op): Likewise. (PD, PS, PS2, GD, GS, GS2, DSZ, SSZ, S2SZ, US1, US2, OM): "opcode" is a pointer now. (DO_RETURN): New. We use longjmp to return an exception result. (decode_opcode): Make opcode a pointer to the decode cache. Save decoded opcode information and re-use. Call DO_RETURN instead of return throughout. Remove ediv and edivu. * mem.c (ptdc): New. Adds decode cache. (rx_mem_ptr): Support it. (rx_mem_decode_cache): New. * mem.h (enum mem_ptr_action): add MPA_DECODE_CACHE. (rx_mem_decode_cache): Declare. * gdb-if.c (sim_resume): Add decode_opcode's setjmp logic here... * main.c (main): ...and here. Use a fast loop if neither trace nor disassemble is given. * cpu.h (RX_MAKE_STEPPED, RX_MAKE_HIT_BREAK, RX_MAKE_EXITED, RX_MAKE_STOPPED, RX_EXITED, RX_STOPPED): Adjust so that 0 is not a valid code for anything.
2010-07-29* rx-tdep.c (rx_analyze_prologue): Don't require branches to haveDJ Delorie2-1/+5
conditions.
2010-07-29 * PROBLEMS: Remove mention of all problems.Pedro Alves2-100/+6
2010-07-29 * lib/gdb.exp (gdb_init): Set LC_ALL and LANG to C in thePedro Alves2-0/+10
environment.
2010-07-29 * config/tc-ppc.c (ppc_fix_adjustable): Add got reloc types usedAlan Modra2-0/+7
in large toc code.
2010-07-29 * elf64-ppc.c (ppc64_elf_edit_toc): Always adjust local syms inAlan Modra2-30/+31
.toc section, even when none are used in relocs.
2010-07-29*** empty log message ***gdbadmin1-1/+1
2010-07-29daily updateAlan Modra1-1/+1
2010-07-282010-07-28 Pedro Alves <pedro@codesourcery.com>Pedro Alves5-2/+15
PR build/11848 * configure.ac: Check for wresize. * configure, config.in: Regenerate. * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call with HAVE_WRESIZE.
2010-07-28Sort *alphabetically* this timeDJ Delorie1-1/+1
2010-07-28[sim/rx]DJ Delorie14-749/+2365
* README.txt: New. * config.h (CYCLE_ACCURATE, CYCLE_STATS): New. * configure.in (--enable-cycle-accurate, --enable-cycle-stats): New. Default to enabled. * configure: Regenerate. * cpu.h (regs_type): Add cycle tracking info. (reset_pipeline_stats): Declare. (halt_pipeline_stats): Declare. (pipeline_stats): Declare. * main.c (done): Call pipeline_stats(). * mem.h (rx_mem_ptr): Moved to here ... * mem.c (mem_ptr): ... from here. Rename throughout. (mem_put_byte): Move LEDs to Port A. Add Port B to control cycle statistics. Move UART to SCI4. (mem_put_hi): Add TPU 1-2. TPU 1 and 2 count CPU cycles. * reg.c (init_regs): Set Rt reg to -1 (no reg). * rx.c: Add cycle counting and statistics throughout. (rx_get_byte): Optimize for speed. (decode_opcode): Likewise. (reset_pipeline_stats): New. (halt_pipeline_stats): New. (pipeline_stats): New. * trace.c (sim_disasm_one): Print cycle count. [include/opcode] * rx.h (RX_Opcode_ID): Add nop2 and nop3 for statistics.
2010-07-28* MAINTAINERS: Add self as RX maintainer. Sort list.DJ Delorie2-1/+6
2010-07-28Add 0F to VEX opcode enums.H.J. Lu2-2259/+2263
2010-07-28 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c: Add 0F to VEX opcode enums.
2010-07-28gold: running tests in parallel.Ralf Wildenhues4-205/+781
gold/: * configure.ac (AM_INIT_AUTOMAKE): Use parallel-tests option. * Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate.
2010-07-28gdbTom Tromey5-23/+110
PR python/11060: * python/py-type.c (typy_legacy_template_argument): New function, extracted from typy_template_argument. (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a value when needed. gdb/testsuite PR python/11060: * gdb.python/py-type.c (Temargs): New template. (temvar): New variable. * gdb.python/py-type.exp (test_template): New proc.
2010-07-282010-07-28 Oleg Nesterov <oleg@redhat.com>Tom Tromey2-1/+6
* remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2010-07-28 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.Tom Tromey2-8/+12
2010-07-282010-07-28 Daniel Jacobowitz <dan@codesourcery.com>Pedro Alves6-20/+69
gdb/ * dwarf2read.c (read_subroutine_type): Improve THIS detection, handling DW_AT_object_pointer, and workaround GCC PR 43053. gdb/testsuite/ * gdb.cp/member-ptr.exp, gdb.cp/printmethod.exp, gdb.dwarf2/member-ptr-forwardref.exp: Adjust.
2010-07-28 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.Tom Tromey2-1/+5
2010-07-28Add missing gettext markup.Joel Brobecker3-2/+7
gdb/ChangeLog: * remote.c (remote_download_tracepoint): Add missing gettext markup. * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2010-07-28[PATCH] breakpoint_re_set fails while connecting to gdbserver.Joel Brobecker2-1/+6
This is a problem that I noticed on GNU/Linux, when using both GDB and GDBserver to debug an Ada program. To reproduce, use any Ada program, built with debug info ("gnatmake -g ..."). Then start the program with gdbserver: % gdbserver :4444 simple_main And then insert a breakpoint using the name of an Ada function, followed by connecting to the target server: (gdb) b simple.test_simple Breakpoint 1 at 0x401f28: file simple.adb, line 16. (gdb) tar rem :4444 Remote debugging using :4444 Reading symbols from /lib64/ld-linux-x86-64.so.2... Reading symbols from /usr/lib/debug/lib/ld-2.11.1.so...done. done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 !! -> Error in re-setting breakpoint 1: Can't find member of namespace, class, !! -> struct, or union named "simple.test_simple" !! -> Hint: try 'simple.test_simple<TAB> or 'simple.test_simple<ESC-?> !! -> (Note leading single quote.) 0x00007f4db3cf2af0 in _start () from /lib64/ld-linux-x86-64.so.2 Created trace state variable $trace_timestamp for target's variable 1. The problem is related to the fact that GDB found debug symbols for ld.so in /usr/lib/debug. For debugger configured with a prefix that is different from /usr, one way to force the problem to reproduce is to use: (gdb) set debug-file-directory /usr/lib/debug (assuming that debug info has been installed at that location). The problem is that the wrong language is used to parse the breakpoint location because it gets changed from under us as a side effect of some of the code that we do in prepration for re-parsing. In particular, breakpoint_re_set_one reads: set_language (b->language); input_radix = b->input_radix; s = b->addr_string; save_current_space_and_thread (); switch_to_program_space_and_thread (b->pspace); marker_spec = b->type == bp_static_tracepoint && is_marker_spec (s); [if (marker_spec) decode_tracepoint_spec (...) else decode_line_1] What happens in our case is that debugging information gets found for ld.so. As a result, the current_frame language is C whereas it would have been unknown if we did not have debugging info. And save_current_space_and_thread() implicitly causes the current frame to be selected, which changes the language automatically if the new language is not uknown and the the language mode is auto. The fix, until all parsing routines (including decode_line_1) get upgraded to take a language, is to select the breakpoint language as late as possible. In this case, we don't need to do that until we actually try to parse the breakpoint addr_string. gdb/ChangeLog: * breakpoint.c (breakpoint_re_set_one): Move call to set_language down, just before the block that parse the breakpoint addr_string.
2010-07-28gdbTom Tromey14-40/+532
PR c++/9946: * symfile.c (reread_symbols): Clear template_symbols. * symtab.h (struct symbol) <is_cplus_template_function>: New field. (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro. (struct template_symbol): New. * symtab.c (lookup_symbol_aux_local): Use cp_lookup_symbol_imports_or_template. * objfiles.h (struct objfile) <template_symbols>: New field. * objfiles.c (relocate_one_symbol): New function. (objfile_relocate1): Use it. Relocate isolated symbols. * gdbtypes.h (struct cplus_struct_type) <n_template_arguments, template_arguments>: New fields. (TYPE_N_TEMPLATE_ARGUMENTS): New macro. (TYPE_TEMPLATE_ARGUMENTS): Likewise. (TYPE_TEMPLATE_ARGUMENT): Likewise. (lookup_typename): Update. * gdbtypes.c (lookup_typename): Constify "block" argument. * dwarf2read.c: Include vec.h. (symbolp): New typedef. (read_func_scope): Read template arguments. Allocate a template_symbol when needed. (read_structure_type): Read template arguments. (new_symbol_full): New function, from new_symbol. Handle DW_TAG_template_type_param and DW_TAG_template_value_param. (new_symbol): Rewrite as wrapper. * cp-support.h (cp_lookup_symbol_imports_or_template): Declare. * cp-namespace.c: Include language.h. (search_symbol_list): New function. (cp_lookup_symbol_imports_or_template): Likewise. gdb/testsuite PR c++/9946: * gdb.cp/temargs.exp: New file. * gdb.cp/temargs.cc: New file.
2010-07-28Correct date.H.J. Lu1-1/+1
2010-07-28Xfail dw2-compress-2 and x86-64-dw2-compress-2.H.J. Lu2-0/+7
2010-07-27 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/i386.exp: Xfail dw2-compress-2 and x86-64-dw2-compress-2.
2010-07-282010-07-28 Balazs Kezes <rlblaster@gmail.com>Pedro Alves2-0/+11
* tui/tui-win.c (make_visible_with_new_height): Resize and move the command window to the new size and position.
2010-07-28tabs vs spacesPedro Alves1-3/+3
2010-07-28 * tui/tui-win.c (tui_resize_all): Update the locator's origin'sPedro Alves2-0/+6
coordinates.
2010-07-282010-07-28 Balazs Kezes <rlblaster@gmail.com>Pedro Alves3-1/+8
* tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all after a detecting a resize. * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to call.
2010-07-28 * configure.ac: Check for resize_term.Pedro Alves4-2/+10
* configure, config.in: Regenerate.
2010-07-28 PR gas/11841Alan Modra2-1/+6
* symbols.c (symbol_clone): Correct typo in previous patch.
2010-07-28 PR gas/11841Alan Modra2-2/+7
* symbols.c (symbol_clone): Clear BSF_SECTION_SYM flag.
2010-07-28 * ldexp.c (exp_print_tree): Print function-like binary nodes asAlan Modra2-11/+35
functions rather than in-fix operators. Use fputs and fputc where appropriate.
2010-07-28 * config/tc-ppc.c (md_assemble): Don't attempt to print NUL inAlan Modra2-1/+9
syntax error message.
2010-07-28misordered names in Write After Approval listJoel Brobecker2-2/+6
This patch moves a couple of write-after-approval names up to keep the list in alphabetical order. 2010-07-27 Joel Brobecker <brobecker@adacore.com> * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2010-07-28Minor (space) reformatting.Joel Brobecker1-1/+1
2010-07-28* rx-decode.opc (store_flags): Remove, replace with F_* macros.DJ Delorie3-931/+887
(rx_decode_opcode): Likewise. * rx-decode.c: Regenerate.
2010-07-28*** empty log message ***gdbadmin1-1/+1
2010-07-28daily updateAlan Modra1-1/+1
2010-07-27gdb/testsuite/Jan Kratochvil2-1/+5
* gdb.base/help.exp (help disassemble): Update the content.
2010-07-27 * dwarf2read.c (read_string): Rename to ...Pedro Alves2-11/+18
(read_direct_string): ... this. (skip_one_die, read_attribute_value, dwarf_decode_line_header) (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2010-07-27gdb/Jan Kratochvil2-9/+24
* linux-nat.c (linux_nat_lp_status_is_event): New function. (count_events_callback, select_event_lwp_callback) (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2010-07-27 * elfxx-mips.h: Include "elf/mips.h".Maciej W. Rozycki5-6/+23
(gprel16_reloc_p): New static inline function. * elfxx-mips.c (_bfd_mips_elf_check_relocs) [R_MIPS16_GOT16, R_MIPS_GOT16, R_MIPS_GOT_HI16, R_MIPS_GOT_LO16]: Use got16_reloc_p. (_bfd_mips_elf_relocate_section)[bfd_reloc_overflow]: Use gprel16_reloc_p. * elf32-mips.c (mips_info_to_howto_rel): Likewise. * elfn32-mips.c (mips_info_to_howto_rel): Likewise.
2010-07-27Fix up last ChangeLog entry in gas/ and bfd/.Maciej W. Rozycki2-15/+15
2010-07-27 * elf64-mips.c (mips_elf64_howto_table_rela)Maciej W. Rozycki3-20/+35
[R_MIPS_TLS_DTPMOD64]: Clear partial_inplace. [R_MIPS_TLS_DTPREL64, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise. [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise. [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL64]: Likewise. [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise. * elfn32-mips.c (elf_mips_howto_table_rela) [R_MIPS_TLS_DTPMOD32]: Likewise. [R_MIPS_TLS_DTPREL32, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise. [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise. [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL32]: Likewise. [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise.
2010-07-27 * config/tc-mips.c (mips16_macro_build): Pass "args" byMaciej W. Rozycki2-11/+17
reference rather than value. (macro_build): Update accordingly.
2010-07-27 * config/tc-mips.c (mips_ip): Use symbol_temp_new_now to createMaciej W. Rozycki2-3/+6
a fake label.
2010-07-27gdb/Jan Kratochvil7-7/+499
* ia64-linux-nat.c (ia64_linux_status_is_event): New function. (_initialize_ia64_linux_nat): Install it. * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event) (linux_nat_set_status_is_event): New. (stop_wait_callback, count_events_callback, select_event_lwp_callback) cancel_breakpoints_callback, linux_nat_filter_event) (linux_nat_wait_1): Use linux_nat_status_is_event. * linux-nat.h (linux_nat_set_status_is_event): New prototype. gdb/testsuite/ * gdb.threads/ia64-sigill.exp: New file. * gdb.threads/ia64-sigill.c: New file.
2010-07-27 * NEWS: Mention labels, .gdb_index.Tom Tromey2-0/+13
2010-07-27* cli/cli-cmds.c (disassemble_command): Add support of disassembleCheng Renquan5-11/+61
"start,+length" form of arguments.
2010-07-27gdb/Jan Kratochvil3-2/+13
* top.c (input_from_terminal_p): Return 0 on BATCH_FLAG. * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG. (fputs_maybe_filtered): Do not do filtering also on ! INPUT_FROM_TERMINAL_P.