aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-08-02Display null bytes in DWARF debug infoH.J. Lu11-4/+69
binutils/ PR binutils/14420 * dwarf.c (process_abbrev_section): Add attribute terminator. Warn missing section terminator. (get_FORM_name): Special check for 0 value. (get_AT_name): Likewise. (process_debug_info): Display zero abbrev number. Check attribute terminator. binutils/testsuite/ PR binutils/14420 * binutils-all/i386/compressed-1a.d: Updated. * binutils-all/objdump.W: Likewise. * binutils-all/readelf.wa: Likewise. * binutils-all/x86-64/compressed-1a.d: Likewise. gas/testsuite/ PR binutils/14420 * gas/elf/dwarf2-1.d: Updated. * gas/elf/dwarf2-2.d: Likwise. * gas/i386/dw2-compress-1.d: Likwise.
2012-08-02gdb/Yao Qi34-174/+255
* dwarf2loc.c (entry_values_debug): Add 'unsigned'. (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * dwarf2loc.h: Update the declaration of 'entry_values_debug'. * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'. (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'. (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * frame.c (frame_debug): Add 'unsigned'. (_intialize_frame): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * frame.h: Update the declaration of 'frame_debug'. * gdbtypes.c (overload_debug): Add 'unsigned'. (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * inferior.h: Update declaration of 'debug_infrun'. * infrun.c (debug_infrun): Add 'unsigned'. (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * jit.c (jit_debug): Add 'unsigned'. (_initialize_jit): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * linux-nat.c (debug_linux_nat): Add 'unsigned'. (_initialize_linux_nat): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * linux-thread-db.c (libthread_db_debug): Add 'unsigned'. (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * machoread.c (mach_o_debug_level): Add 'unsigned'. (_initialize_machoread): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'. * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'. (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd intead of add_setshow_zinteger_cmd. * mips-tdep.c (mips_debug): Add 'unsigned'. (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * monitor.c (monitor_debug): Add 'unsigned'. (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * observer.c (observer_debug): Add 'unsigned'. (_initialize_observer): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * parse.c (expressiondebug): Add 'unsigned'. (_initialize_parse): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * record.c (record_debug): Add 'unsigned'. (_initialize_record): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * record.h: Update the declaration of 'record_debug'. * stap-probe.c (stap_expression_debug): Add 'unsigned'. (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * serial.c (global_serial_debug_p): Add 'unsigned'. (_initialize_serial): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'. (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * solib-frv.c (solib_frv_debug): Add 'unsigned'. (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * target.c (targetdebug): Add 'unsigned'. (initialize_targets): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * valops.c (overload_debug): Add 'unsigned'. * varobj.c (varobjdebug): Add 'unsigned'. (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'. (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * arch-utils.h: Remove the declaration of 'gdbarch_debug'. * gdbarch.sh (gdbarch_debug): Add 'unsigned'. (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd instead of add_setshow_zinteger_cmd. * gdbarch.c, gdbarch.h: Re-generated.
2012-08-02gdb/Yao Qi5-46/+13
* nto-tdep.c: Don't include cli/cli-decode.h and cli/cli-cmds.h. (_initialize_nto_tdep): Remove. * nto-tdep.h (struct nto_target_ops) <internal_debugging>: Remove field. Remove macro nto_internal_debugging. gdb/doc/ * gdb.texinfo (Native): Remove node Neutrino.
2012-08-02gdb/testsuite:Yao Qi2-0/+60
* boards/local-remote-host.exp: New.
2012-08-02 * configure.in: Formatting.Jan-Benedict Glaw3-22/+27
* configure: Regenerate.
2012-08-02*** empty log message ***gdbadmin1-1/+1
2012-08-02daily updateAlan Modra1-1/+1
2012-08-012012-08-01 Catherine Moore <clm@codesourcery.com>Sandra Loosemore3-0/+9
Sandra Loosemore <sandra@codesourcery.com> gas/ * config/mips/tc-mips.c (mips_cpu_info): Add the 34kn. * doc/c-mips.texi (MIPS Opts): Document it.
2012-08-01 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.Richard Henderson2-2/+7
(mep-*-*) [gdb_target_obs]: Likewise.
2012-08-01Move testsuite entry to testsuite/ChangeLogH.J. Lu2-4/+4
2012-08-01Reformat ChangeLog filesH.J. Lu2-17/+18
2012-08-01 * wrapper.c (libiberty.h): Include.Kevin Buettner2-6/+14
(sim_store_register, sim_fetch_register): On success, return length, instead of -1.
2012-08-01gas/ChangeLog:James Lemke8-15/+46
2012-08-01 James Lemke <jwlemke@codesourcery.com> * gas/dwarf2dbg.c (out_set_addr): Allow for non-constant value of DWARF2_LINE_MIN_INSN_LENGTH * gas/config/tc-ppc.c (ppc_dwarf2_line_min_insn_length): Declare and initialize. (md_apply_fix): Branch addr can be a multiple of 2 or 4. * gas/config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Now a variable reference. gas/testsuite/ChangeLog: 2012-08-01 James Lemke <jwlemke@codesourcery.com> * gas/cfi/cfi-ppc-1.d: Allow for code alignment of 2 or 4. ld/ChangeLog: 2012-08-01 James Lemke <jwlemke@codesourcery.com> * ld/testsuite/ld-gc/pr13683.d: XFAIL for powerpc*-*-eabivle.
2012-08-01 * gdb.base/catch-load.exp: Fix argument to gdb_load_shlibs.Ulrich Weigand5-2/+17
* gdb.base/ctxobj.exp: Call gdb_load_shlibs. * gdb.base/print-file-var.exp: Likewise. * gdb.server/solib-list.exp: Skip on remote targets.
2012-08-01gdbserver/ChangeLog:Ulrich Weigand4-15/+58
* linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish between unsupported TYPE and unimplementable ADDR/LEN combination. (arm_insert_point): Act on new return value. testsuite/ChangeLog: * gdb.base/watchpoint.exp (test_wide_location_1): Expect software watchpoints on ARM. When expecting software watchpoints, tolerate (remote) targets that report unsupported hardware watchpoint only at continue time. (test_wide_location_2): Likewise.
2012-08-01gdb/testsuite/Jan Kratochvil2-1/+6
* gdb.base/valgrind-infcall.exp: Relax the UNSUPPORTED check for more valgrind versions.
2012-08-01sim: bfin: set bfrom alias field to correct sizeMike Frysinger2-10/+17
When the sim is built w/out the bfroms, we end up passing a length of 0 when mapping the rom region which the core sim code rejects. So add an alias field equal to the length to avoid that error. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-08-01sim: bfin: update return value in bfin_reg_{fetch,store}Mike Frysinger2-4/+10
The latest gdb sim-remote.c really wants a return value from the fetch/store register functions, so update the Blackfin sim to avoid the warnings/errors. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-08-01Correct ChangeLog.Maciej W. Rozycki2-5/+10
2012-08-01 * dwarf2.c (struct dwarf2_debug): Add close_on_cleanup.Alan Modra2-3/+15
(_bfd_dwarf2_slurp_debug_info): Set close_on_cleanup if we open gnu_debuglink bfd. (_bfd_dwarf2_cleanup_debug_info): Act on close_on_cleanup.
2012-08-01Properly handle by_noneH.J. Lu2-4/+1
2012-08-01Don't call compare_section in case of by_noneH.J. Lu8-55/+70
PR ld/14156 * ldlang.c (wild_sort): Don't call compare_section in case of by_none. * scripttempl/elf.sc: Add SORT_NONE to .init and .fini sections. * scripttempl/elf32msp430.sc: Likewise. * scripttempl/elf32msp430_3.sc: Likewise. * scripttempl/elfd10v.sc: Likewise. * scripttempl/elfd30v.sc: Likewise. * scripttempl/elfxtensa.sc: Likewise.
2012-08-01 * h8300-dis.c: Fix printf arg warnings.Alan Modra11-446/+461
* i960-dis.c: Likewise. * mips-dis.c: Likewise. * pdp11-dis.c: Likewise. * sh-dis.c: Likewise. * v850-dis.c: Likewise. * configure.in: Formatting. * configure: Regenerate. * rl78-decode.c: Regenerate. * po/POTFILES.in: Regenerate.
2012-08-01*** empty log message ***gdbadmin1-1/+1
2012-08-01daily updateAlan Modra1-1/+1
2012-07-31 include/opcode/Maciej W. Rozycki15-120/+686
* mips.h: Document microMIPS DSP ASE usage. (MICROMIPSOP_MASK_DSPACC, MICROMIPSOP_SH_DSPACC): Update for microMIPS DSP ASE support. (MICROMIPSOP_MASK_DSPSFT, MICROMIPSOP_SH_DSPSFT): Likewise. (MICROMIPSOP_MASK_SA3, MICROMIPSOP_SH_SA3): Likewise. (MICROMIPSOP_MASK_SA4, MICROMIPSOP_SH_SA4): Likewise. (MICROMIPSOP_MASK_IMM8, MICROMIPSOP_SH_IMM8): Likewise. (MICROMIPSOP_MASK_IMM10, MICROMIPSOP_SH_IMM10): Likewise. (MICROMIPSOP_MASK_WRDSP, MICROMIPSOP_SH_WRDSP): Likewise. (MICROMIPSOP_MASK_BP, MICROMIPSOP_SH_BP): Likewise. gas/ * config/tc-mips.c (macro_build) <'2'>: Handle microMIPS. (macro) <M_BALIGN>: Update error handling. (validate_micromips_insn) <'2', '3', '4', '5', '6'>: New cases. <'7', '8', '0', '@', '^'>: Likewise. (mips_ip) <'2', '3', '4', '5', '6', '7', '8'>: Handle microMIPS. <'9'>: Fix formatting. <'0', '@'>: Handle microMIPS. <'^'>: New case. gas/testsuite/ * gas/mips/micromips@mips32-dsp.d: New. * gas/mips/micromips@mips32-dspr2.d: New. * gas/mips/mips32-dsp.d: Remove -mips32r2. * gas/mips/mips32-dspr2.d: Likewise. * gas/mips/mips.exp: (mips_create_arch): Use -mips64r2 for micromips. Use run_dump_test_arches to run dsp tests. opcodes/ * micromips-opc.c (WR_a, RD_a, MOD_a): New macros. (DSP_VOLA): Likewise. (D32, D33): Likewise. (micromips_opcodes): Add DSP ASE instructions. * micromips-dis.c (print_insn_micromips) <'2', '3'>: New cases. <'4', '5', '6', '7', '8', '0', '^', '@'>: Likewise.
2012-07-31Update gas/d30v/bittest.lH.J. Lu2-0/+5
* gas/d30v/bittest.l: Updated.
2012-07-31Append "#pass" to gas/i386/rdseed-intel.dH.J. Lu2-0/+5
* gas/i386/rdseed-intel.d: Append "#pass".
2012-07-31Update PR ld/14156 testsH.J. Lu5-3/+12
* ld-elf/fini0.s: Indent global directive. * ld-elf/foo0.s: Likewise. * ld-elf/init0.s: Likewise. * ld-elf/pr14156c.t: Keep text section.
2012-07-31* ppc-linux-tdep.c (ppc_linux_init_abi): RegisterAndreas Schwab2-37/+44
linux_get_siginfo_type.
2012-07-312012-07-31 Pedro Alves <palves@redhat.com>Pedro Alves2-5/+9
* server.c (process_point_options): Only skip tokens if we find one that is unrecognized. Don't treat 'X' specially while skipping unrecognized tokens.
2012-07-31libiberty/md5: fix strict alias warningsMike Frysinger2-4/+13
Current libiberty md5 code triggers these warnings with gcc-4.7.1 for me: libiberty/md5.c: In function ‘md5_finish_ctx’: libiberty/md5.c:117:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] libiberty/md5.c:118:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] The change below fixes things for me. The optimized output (-O2) is the same before/after my change on x86_64-linux. I imagine it'll be the same for most targets. It seems simpler than using a union on the md5_ctx buffer since these are the only two locations in the code where this occurs.
2012-07-31The current error message for bad imm4 operands wasn't really helpful,Jan Beulich2-1/+6
and was pointing at the wrong operand in Intel mode. Since non-constant operands are being taken care of by other means anyway, adjust it to simply state that the constant doesn't fit. 2012-07-31 Jan Beulich <jbeulich@suse.com> * config/tc-i386.c (match_template): Adjust error message for 'bad_imm4' case.
2012-07-31Since the word to byte register conversion isn't active for x86-64Jan Beulich2-13/+15
anyway, there's also no need to issue a separate, inconsistent diagnostic in some of the cases - non-matching operands will be complained about anyway. 2012-07-31 Jan Beulich <jbeulich@suse.com> * config/tc-i386.c (check_byte_reg): Check for I/O port register earlier, and just once. Drop diagnostic that got issued only for some registers.
2012-07-31At the point where check_VecOperands()/VEX_check_operands() get run,Jan Beulich2-8/+15
all other instruction attributes already matched, so any mismatch here will tell the user more precisely what is wrong than using an eventual (and very likely to occur) more generic error encountered on a subsequent iteration through the template matching loop. 2012-07-31 Jan Beulich <jbeulich@suse.com> * config/tc-i386.c (match_template): New local variable 'specific_error'. Set it from i.error after failed check_VecOperands or VEX_check_operands. Use it if set in preference to i.error when actually issuing disagnostic.
2012-07-31VMOVNTDQA was both misplaced and improperly tagged as being an AVXJan Beulich3-2/+8
instruction (instead of AVX2). 2012-07-31 Jan Beulich <jbeulich@suse.com> * i386-opc.tbl (vmovntdqa): Move up into 256-bit integer AVX2 instruction group. Mark as requiring AVX2. * i386-tbl.h: Re-generate.
2012-07-31gdb/testsuite/Jan Kratochvil2-1/+8
* gdb.base/valgrind-db-attach.exp: Do not run in remote mode.
2012-07-31gdb/Jan Kratochvil5-7/+203
* infcall.c (call_function_by_hand): Move BP_ADDR comment to AT_ENTRY_POINT. (call_function_by_hand) <ON_STACK>: Call write_memory with gdbarch_breakpoint_from_pc, if possible. (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved here. gdb/testsuite/ * gdb.base/valgrind-infcall.c: New file. * gdb.base/valgrind-infcall.exp: New file.
2012-07-31gdb/Yao Qi2-6/+10
* tracepoint.c: Add 'static' for some variables.
2012-07-31gdb/Yao Qi4-1/+12
* go32-nat.c: Declare _initialize_go32_nat. * ser-go32.c: Declare _initialize_ser_dos. * top.c (do_chdir_cleanup): Add 'static'.
2012-07-31daily updateAlan Modra1-1/+1
2012-07-31*** empty log message ***gdbadmin1-1/+1
2012-07-302012-07-05 Sean Keys <skeys@ipdatasys.com>Sean Keys1-0/+7
* xgate-dis.c: Removed an IF statement that will always be false due to overlapping operand masks. * xgate-opc.c: Corrected 'com' opcode entry and fixed spacing.
2012-07-302012-07-05 Sean Keys <skeys@ipdatasys.com>Sean Keys1-0/+5
* opcode/xgate.h: Changed the format string for mode XGATE_OP_DYA_MON.
2012-07-302012-07-27 Sean Keys <skeys@ipdatasys.com>Sean Keys1-0/+6
* gas/xgate/xgate.exp: Added hi/lo test. * gas/xgate/hilo.d: New test file * gas/xgate/hilo.s: Net test source file.
2012-07-30Added missing gas/ChangeLog entries for previous XGATE commits.Sean Keys1-0/+14
2012-07-30 * linespec.c (linespec_lex_number): A number followedKeith Seitz3-2/+10
by quotes is a valid number, too. * gdb.linespec/ls-errs.exp: Check some quote-enclosed linespecs.
2012-07-30 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.Tom Tromey2-4/+4
2012-07-30Update gas/i386/inval-equ-2.lH.J. Lu2-0/+6
* gas/i386/inval-equ-2.l: Updated.
2012-07-30 * gdb.dwarf2/fission-reread.S: Use .data instead of .bss.Doug Evans3-2/+5
* gdb.dwarf2/pr13961.S: Ditto.