aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-01-24 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, butKevin Buettner3-1/+12
with remote-mips.o added to gdb_target_obs. * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
2011-01-24 * ada-valprint.c (val_print_packed_array_elements): Pass thePedro Alves2-5/+11
correct struct value to val_print. (ada_val_print_1): Ditto.
2011-01-242011-01-24 Pedro Alves <pedro@codesourcery.com>Pedro Alves14-158/+342
Don't lose embedded_offset in printing routines throughout. gdb/ * valprint.h (val_print_array_elements): Change prototype. * valprint.c (val_print_array_elements): Add `embedded_offset' parameter, and adjust to pass it down to val_print, while passing `valaddr' or `address' unmodified. Take embedded_offset into account when checking repetitions. * c-valprint.c (c_val_print): Pass embedded_offset to val_print_array_elements instead of adjusting `valaddr' and `address'. * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass embedded_offset to val_print_array_elements instead of adjusting `valaddr'. * p-lang.h (pascal_object_print_value_fields): Adjust prototype. * p-valprint.c (pascal_val_print): Pass embedded_offset to val_print_array_elements and pascal_object_print_value_fields instead of adjusting `valaddr'. (pascal_object_print_value_fields): Add `offset' parameter, and adjust to use it. (pascal_object_print_value): Add `offset' parameter, and adjust to use it. (pascal_object_print_static_field): Use value_contents_for_printing/value_embedded_offset, rather than value_contents. * ada-valprint.c (val_print_packed_array_elements): Add `offset' parameter, and adjust to use it. Use value_contents_for_printing/value_embedded_offset, rather than value_contents. (ada_val_print): Rename `valaddr0' parameter to `valaddr'. (ada_val_print_array): Add `offset' parameter, and adjust to use it. (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and `embedded_offset' to `offset'. Don't re-adjust `valaddr'. Instead work with offsets. Use value_contents_for_printing/value_embedded_offset, rather than value_contents. Change `defer_val_int' local type to CORE_ADDR, and use value_from_pointer to extract a target pointer, rather than value_from_longest. (print_variant_part): Add `offset' parameter. Replace `outer_valaddr' parameter by a new `outer_offset' parameter. Don't re-adjust `valaddr'. Instead pass down adjusted offsets. (ada_value_print): Use value_contents_for_printing/value_embedded_offset, rather than value_contents. (print_record): Add `offset' parameter, and adjust to pass it down. (print_field_values): Add `offset' parameter. Replace `outer_valaddr' parameter by a new `outer_offset' parameter. Don't re-adjust `valaddr'. Instead pass down adjusted offsets. Use value_contents_for_printing/value_embedded_offset, rather than value_contents. * d-valprint.c (dynamic_array_type): Use value_contents_for_printing/value_embedded_offset, rather than value_contents. * jv-valprint.c (java_print_value_fields): Add `offset' parameter. Don't re-adjust `valaddr'. Instead pass down adjusted offsets. (java_print_value_fields): Take `offset' into account. Don't re-adjust `valaddr'. Instead pass down adjusted offsets. (java_val_print): Take `embedded_offset' into account. Pass it to java_print_value_fields. * f-valprint.c (f77_print_array_1): Add `embedded_offset' parameter. Don't re-adjust `valaddr' or `address'. Instead pass down adjusted offsets. (f77_print_array): Add `embedded_offset' parameter. Pass it down. (f_val_print): Take `embedded_offset' into account. gdb/testsuite/ * gdb.base/printcmds.c (some_struct): New struct and instance. * gdb.base/printcmds.exp (test_print_repeats_embedded_array): New procedure. <global scope>: Call it.
2011-01-24*** empty log message ***gdbadmin1-1/+1
2011-01-23daily updateAlan Modra1-1/+1
2011-01-23 * ld-scripts/sane1.d, * ld-scripts/sane1.t: New test.Alan Modra4-0/+75
* ld-scripts/expr.exp: Run it.
2011-01-23*** empty log message ***gdbadmin1-1/+1
2011-01-22daily updateAlan Modra1-1/+1
2011-01-22Add AC_PROG_CXX.H.J. Lu5-7/+3834
2011-01-22 H.J. Lu <hongjiu.lu@intel.com> * Makefile.am (CXX): Removed. * configure.in: Add AC_PROG_CXX. * Makefile.in: Regenerated. * configure: Likewise.
2011-01-22bfd/Richard Sandiford4-2/+17
* elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore common sections too. ld/ * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's private data and GP size.
2011-01-22*** empty log message ***gdbadmin1-1/+1
2011-01-21daily updateAlan Modra1-1/+1
2011-01-21move handing of "set interactive-mode" to gdb_has_a_terminalJoel Brobecker5-42/+68
The real purpose of this setting is really to override what the debugger would otherwise guess from checking the stdin settings. So it seems more natural to see this setting being handled inside gdb_has_a_terminal rather than input_is_terminal (which checks for other things, such as whether the input is stdin, for instance). This patch also adjust the command help and the associated section in the GDB Manual to be a little clearer about that. gdb/ChangeLog: * inflow.c: Include "gdbcmd.h". (interactive_mode): New static global, moved here from top.c. (show_interactive_mode): New function, moved here from top.c. use gdb_has_a_terminal instead of input_from_terminal_p to determine the current mode. (gdb_has_a_terminal): Add handling of the "iteractive-mode" setting. (_initialize_inflow): Add the "set/show interactive-mode" commands. Moved here from top.c, after having adjusted slightly the help text. * top.c (interactive_mode, show_interactive_mode): Delete, moved to inflow.c. (input_from_terminal_p): Remove handling of "interactive-mode" setting, moved to infow.c. (init_main): Remove creation of the "set/show interactive-mode" commands, moved to inflow.c. gdb/doc/ChangeLog: * gdb.texinfo (Other Misc Settings): Rework part of the documentation of the "set interactive mode" command.
2011-01-21gdb/testsuite/ChangeLogKen Werner2-1/+6
2011-01-21 Ken Werner <ken.werner@de.ibm.com> * lib/opencl.exp (skip_opencl_tests): Add missing compile_flags argument to the gdb_compile_opencl_hostapp call.
2011-01-21Sync toplevel configure from GCCAndreas Schwab3-106/+163
2011-01-21 Andreas Schwab <schwab@redhat.com> * configure.ac: Use AS_HELP_STRING throughout. * configure: Regenerate. 2011-01-18 Jie Zhang <jie.zhang@analog.com> * configure.ac (bfin-*-*): Remove gdb from noconfigdirs. * configure: Regenerate.
2011-01-21 * ldexp.c (fold_binary): Set result section for arithmetic andAlan Modra3-19/+61
logical operations to NULL when both operands are in same section. * ld.texinfo (Expression Section): Describe this.
2011-01-21 * ppc-opc.c (NON32, NO371): Remove PPC_OPCODE_PPCPS.Alan Modra2-3/+8
2011-01-21*** empty log message ***gdbadmin1-1/+1
2011-01-20daily updateAlan Modra1-1/+1
2011-01-20 PR gas/12384Nick Clifton2-1/+7
* config/tc-h8300.c (constant_fits_width_p): Use correct type for comparison.
2011-01-20*** empty log message ***gdbadmin1-1/+1
2011-01-19daily updateAlan Modra1-1/+1
2011-01-19[NEWS/ia64-hpux] Add entry for native ia64-hpux supportJoel Brobecker2-0/+8
gdb/ChangeLog: * NEWS: Add entry for native ia64-hpux support.
2011-01-192011-01-19 Yao Qi <yao@codesourcery.com>Yao Qi2-9/+14
* lib/dwarf.exp (dwarf2_support): Change supported targets to a positve list.
2011-01-192011-01-19 Yao Qi <yao@codesourcery.com>Yao Qi40-249/+152
* gdb.asm/asm-source.exp: Replace ARM target triplet with a canonical form. Remove "xscale-*-*" * gdb.xml/tdesc-regs.exp: Likewise. * gdb.python/py-section-script.exp: Replace ARM target triplet with canonical form. Match arm*-*-symbianelf*. * gdb.base/dup-sect.exp: Likewise. * lib/dwarf.exp: New. * gdb.dwarf2/callframecfa.exp: Check dwarf2 support by routine dwarf2_support. * gdb.dwarf2/dup-psym.exp: Likewise. * gdb.dwarf2/dw2-ada-ffffffff.exp: Likewise. * gdb.dwarf2/dw2-anonymous-func.exp: Likewise. * gdb.dwarf2/dw2-bad-parameter-type.exp: Likewise. * gdb.dwarf2/dw2-basic.exp: Likewise. * gdb.dwarf2/dw2-compressed.exp: Likewise. * gdb.dwarf2/dw2-const.exp: Likewise. * gdb.dwarf2/dw2-cp-infcall-ref-static.exp: Likewise. * gdb.dwarf2/dw2-cu-size.exp: Likewise. * gdb.dwarf2/dw2-double-set-die-type.exp: Likewise. * gdb.dwarf2/dw2-empty-namespace.exp: Likewise. * gdb.dwarf2/dw2-filename.exp: Likewise. * gdb.dwarf2/dw2-inheritance.exp: Likewise. * gdb.dwarf2/dw2-inline-param.exp: Likewise. * gdb.dwarf2/dw2-intercu.exp: Likewise. * gdb.dwarf2/dw2-intermix.exp: Likewise. * gdb.dwarf2/dw2-modula2-self-type.exp: Likewise. * gdb.dwarf2/dw2-noloc.exp: Likewise. * gdb.dwarf2/dw2-op-call.exp: Likewise. * gdb.dwarf2/dw2-producer.exp: Likewise. * gdb.dwarf2/dw2-ranges.exp: Likewise. * gdb.dwarf2/dw2-ref-missing-frame.exp: Likewise. * gdb.dwarf2/dw2-stack-boundary.exp: Likewise. * gdb.dwarf2/dw2-strp.exp: Likewise. * gdb.dwarf2/dw2-unresolved.exp: Likewise. * gdb.dwarf2/implptr.exp: Likewise. * gdb.dwarf2/mac-fileno.exp: Likewise. * gdb.dwarf2/member-ptr-forwardref.exp: Likewise. * gdb.dwarf2/pieces.exp: Likewise. * gdb.dwarf2/pr11465.exp: Likewise. * gdb.dwarf2/valop.exp: Likewise. * gdb.dwarf2/watch-notconst.exp: Likewise. * gdb.mi/dw2-ref-missing-frame.exp: Likewise.
2011-01-19 * readelf.c (process_object): Free dynamic_section after use.Maciej W. Rozycki2-0/+10
2011-01-19gdbTom Tromey13-23/+322
PR mi/8618: * thread.c (free_thread): Free 'name'. (print_thread_info): Emit thread name. Change CLI output. (thread_name_command): New function. (do_captured_thread_select): Emit newline. (_initialize_thread): Register 'thread name' command. * target.h (struct target_ops) <to_thread_name>: New field. (target_thread_name): New macro. * target.c (update_current_target): Handle to_thread_name. * python/py-infthread.c (thpy_get_name): New function. (thpy_set_name): Likewise. (thread_object_getset): Add "name". * linux-nat.c (linux_nat_thread_name): New function. (linux_nat_add_target): Set to_thread_name. * gdbthread.h (struct thread_info) <name>: New field. gdb/doc * gdb.texinfo (Threads): Document thread name output and `thread name' command. (Threads In Python): Document Thread.name attribute. (GDB/MI Thread Commands): Document thread attributes. gdb/testsuite * gdb.python/py-infthread.exp: Add thread tests.
2011-01-19Don't compress debug sections smaller than 32 bytes.H.J. Lu2-1/+6
2011-01-18 H.J. Lu <hongjiu.lu@intel.com> * write.c (compress_debug): Return if section size is small than 32 byte.
2011-01-19*** empty log message ***gdbadmin1-1/+1
2011-01-18daily updateAlan Modra1-1/+1
2011-01-18Don't undefine elf_backend_static_tls_alignment twice.H.J. Lu2-6/+2
2011-01-18Undo Solaris damages in elf64-x86-64.c.H.J. Lu4-2/+18
bfd/ 2011-01-18 H.J. Lu <hongjiu.lu@intel.com> * elf64-x86-64.c (elf_backend_static_tls_alignment): Undefine after Solaris target. (elf_backend_want_plt_sym): Redefine to 0 after Solaris target. ld/testsuite/ 2011-01-18 H.J. Lu <hongjiu.lu@intel.com> * ld-x86-64/ilp32-4.d: Updated.
2011-01-18Don't compress empty debug sections.H.J. Lu6-0/+39
gas/ 2011-01-18 H.J. Lu <hongjiu.lu@intel.com> PR gas/12409 * write.c (compress_debug): Return if section size is 0. gas/testsuite/ 2011-01-18 H.J. Lu <hongjiu.lu@intel.com> PR gas/12409 * gas/elf/dwarf2-4.d: New. * gas/elf/dwarf2-4.s: Likewise.
2011-01-18Reset dump_sects after processing each archive member.H.J. Lu2-0/+13
2011-01-18 H.J. Lu <hongjiu.lu@intel.com> PR binutils/12408 * readelf.c (process_archive): Free and reset dump_sects after processing each archive member.
2011-01-18Properly sign-extend byte.H.J. Lu7-23/+63
gas/testsuite/ 2011-01-18 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/intel.d: Updated. * gas/i386/opcode-intel.d: Likewise. * gas/i386/opcode-suffix.d: Likewise. * gas/i386/opcode.d: Likewise. opcodes/ 2011-01-18 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (sIbT): New. (b_T_mode): Likewise. (dis386): Replace sIb with sIbT on "pushT". (x86_64_table): Replace sIb with Ib on "aam" and "aad". (OP_sI): Handle b_T_mode. Properly sign-extend byte.
2011-01-18Add tbm flag and TBM instruction pattern.H.J. Lu2-1/+7
2011-01-18 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/ilp32/x86-64-arch-2.d: Add tbm flag and TBM instruction pattern.
2011-01-18fix printing of Ada wide characters on ppc-aixJoel Brobecker2-3/+7
Same problem as before: We were downcasting the character value from int to unsigned char, which caused an overflow. The reason why we did not see this problem before is probably related to the fact that we're using stabs on AIX and thus characters types are defined as a TYPE_CODE_INT (or TYPE_CODE_RANGE?). gdb/ChangeLog: * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast. (ada_val_print_1): Likewise.
2011-01-18[powerpc] breakpoint inserted past function endJoel Brobecker2-2/+14
On powerpc, the prologue scanner reads instruction after instruction, and just skips instructions that do not affect a frame. This means that it does not stop if if finds and unexpected instruction (which could possibly happen with optimization, I presume). To avoid scanning too many instructions, it tries to establish an upper limit. The upper limit is first computed using the debugging (line) info, but if that fails, it falls back on an arbitrary 100 bytes (or 25 instructions). The problem is that, if the function is shorter than those 25 instructions, we run the risk of skipping the entire function and returning a PC that's outside our function. In the event where we can find a symbol for a given PC (and therefore can determine function start and end addresses), but cannot find an upper limit using skip_prologue_using_sal, then we can at least limit make sure that the 25 instructions do not put us beyour our function. If it does, then further reduce the upper-limit to the end of the function. gdb/ChangeLog: * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue upper limit address is not greater than the function end address when the upper limit could not be computed using the debugging info.
2011-01-18opcodes/Jan Kratochvil3-2547/+2687
* i386-init.h: Regenerated. * i386-tbl.h: Regenerated.
2011-01-18 Fix compilation for mingw64.Nick Clifton5-7/+21
* coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate typecast to avoid warning. * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type usage. * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead of long for pointer to avoid warning. (elfNN_ia64_relax_brl): Idem. (elfNN_ia64_install_value): Idem. * vms-alpha.c (_bfd_vms_slurp_etir): Idem.
2011-01-18 * config/tc-arm.c (arm_cpus): Add Faraday ARMv5TE compatibleNick Clifton3-2/+15
cores: fa606te, fa616te, fmp626. Modify the VFP of fa626te. * doc/c-arm.texi (ARM Options): Add -mcpu={fa606te, fa616te, fmp626} options.
2011-01-18 PR gas/12390Nick Clifton44-195/+795
* doc/all.texi: Add NS32K * doc/as.texinfo: Remove target specific details of which characters act as comment initiators and statement separators into individual target specific files. * doc/c-alpha.texi (Alpha-Chars): Document special behaviour of the hash character at the start of a line. * doc/c-arm.texi (ARM-Chars): Likewise. * doc/c-avr.texi (AVR-Chars): Likewise. * doc/c-d10v.texi (D10V-Chars): Likewise. * doc/c-d30v.texi (D30V-Chars): Likewise. * doc/c-mmix.texi (MMIX-Chars): Likewise. * doc/c-s390.texi (s390 characters): Likewise. * doc/c-sh.texi (SH-Chars): Likewise. * doc/c-sh64.texi (SH64-Chars): Likewise. * doc/c-sparc.texi (SPARC-Chars): Likewise. * doc/c-tic6x.texi (TIC6X Syntax): Likewise. * doc/c-xtensa.texi (Xtensa Syntax): Likewise. * doc/c-z80.texi (Z80-Chars): Likewise. * doc/c-z8k.texi (Z8000-Chars): Likewise. * doc/c-pdp11.texi (PDP11-Syntax): Document line separator character. * doc/c-arc.texi (ARC-Chars): Fill in this subsection. * doc/c-bfin.texi (Blackfin Syntax): Document line comment and line separator characters. * doc/c-cr16.texi (CR16 Syntax): Likewise. * doc/c-i386.texi (i386-Chars): Likewise. * doc/c-i860.texi (i860-Chars): Likewise. * doc/c-i960.texi (i960-Chars): Likewise. * doc/c-ip2k.texi (IP2K-Chars): Likewise. * doc/c-lm32.texi (LM32-Chars): likewise. * doc/c-m32c.texi (M32C-Chars): Likewise. * doc/c-m68hc11.texi (M68HC11-syntax): Likewise. * doc/c-m68k.texi (M68K-Chars): Likewise. * doc/c-microblaze.texi (MicroBlaze-Chars): Likewise. * doc/c-msp430.texi (MSP430-Chars): Likewise. * doc/c-mt.texi (MT-Chars): Likewise. * doc/c-ns32k.texi (NS32K-Chars): Likewise. * doc/c-pj.texi (PJ-Chars): Likewise. * doc/c-ppc.texi (PowerPC-Chars): Likewise. * doc/c-rx.texi (RX-Chars): Likewise. * doc/c-score.texi (SCORE-Chars): Likewise. * doc/c-tic54x.texi (TIC54X-Chars): Likewise. * doc/c-v850.texi (V850-Chars): Likewise. * doc/c-vax.texi (VAX-Chars): Likewise. * doc/c-xc16x.texi (xc16x-Chars): Likewise.
2011-01-18*** empty log message ***gdbadmin1-1/+1
2011-01-17daily updateAlan Modra1-1/+1
2011-01-17Add TBM testsuite files missing from last commit.Quentin Neill6-0/+1489
2011-01-17Add support for TBM instructions.Quentin Neill18-7/+131
gas/ 2011-01-17 Quentin Neill <quentin.neill@amd.com> * config/tc-i386.c (cpu_arch): Add CPU_TBM_FLAGS. * doc/c-i386.texi (i386-TBM): New section. opcodes/ 2011-01-17 Quentin Neill <quentin.neill@amd.com> * i386-dis.c (REG_XOP_TBM_01): New. (REG_XOP_TBM_02): New. (reg_table): Add REG_XOP_TBM_01 and REG_XOP_TBM_02 tables. (xop_table): Redirect to REG_XOP_TBM_01 and REG_XOP_TBM_02 entries, and add bextr instruction. * i386-gen.c (cpu_flag_init): Add CPU_TBM_FLAGS, CpuTBM. (cpu_flags): Add CpuTBM. * i386-opc.h (CpuTBM) New. (i386_cpu_flags): Add bit cputbm. * i386-opc.tbl: Add bextr, blcfill, blci, blcic, blcmsk, blcs, blsfill, blsic, t1mskc, and tzmsk. * i386-init.h: Regenerated. * i386-tbl.h: Regenerated gas/testsuite 2011-01-17 Quentin Neill <quentin.neill@amd.com> * gas/i386/tbm.s: New. * gas/i386/tbm.d: New. * gas/i386/tbm-intel.d: New. * gas/i386/x86-64-tbm.s: New. * gas/i386/x86-64-tbm.d: New. * gas/i386/x86-64-tbm-intel.d: New. * gas/i386/arch-10.d: Add tbm flag and TBM instruction pattern. * gas/i386/arch-10.s: Add a TBM instruction. * gas/i386/arch-10-1.l: Add TBM instruction pattern. * gas/i386/arch-10-2.l: Likewise. * gas/i386/arch-10-3.l: Likewise. * gas/i386/arch-10-4.l: Likewise. * gas/i386/x86-64-arch-2.s: Likewise. * gas/i386/x86-64-arch-2.d: Likewise.
2011-01-17 * cli/cli-cmds.c (apropos_command): Free the compiled regex. UseTom Tromey4-6/+60
get_regcomp_error. * utils.c: Include gdb_regex.h. (do_regfree_cleanup): New function. (make_regfree_cleanup): Likewise. (get_regcomp_error): Likewise. * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
2011-01-17bfd/Richard Sandiford6-1/+34
* elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than h->needs_plt when deciding whether to record a possible dynamic reloc. ld/testsuite/ * ld-arm/arm-rel32.s, ld-arm/arm-rel32.d: New testcase. * ld-arm/arm-elf.exp: Run it.
2011-01-17bfd/Richard Sandiford7-15/+43
* elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered dynamic relocs for the removed section. ld/testsuite/ * ld-arm/gc-thumb-lib.s, ld-arm/gc-thumb.s, ld-arm/gc-thumb.d: New test. * ld-arm/arm-elf.exp: Run it.
2011-01-17 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't callTom Tromey2-14/+11
re_compile_fastmap.