summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gdb/Jan Kratochvil2012-05-182-1/+14
| | | | | * auto-load.c (show_auto_load_safe_path): Accept any combination of DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
* * archive.c (_bfd_generic_read_ar_hdr_mag): Fix last change so asRoland McGrath2012-05-182-159/+169
| | | | not to clobber the ar_fmag field stored in ARED->arch_header.
* PR exp/13907:Tom Tromey2012-05-1825-80/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * valprint.h (struct value_print_options) <symbol_print>: New field. * valprint.c (user_print_options): Add default for symbol_print. (show_symbol_print): New function. (generic_val_print): Respect symbol_print. (_initialize_valprint): Add "print symbol" setting. * f-valprint.c (f_val_print): Respect symbol_print. * c-valprint.c (c_val_print): Respect symbol_print. * NEWS: Update. * printcmd.c (print_address_symbolic): Return int. Ignore some zero-size symbols. (print_address_demangle): Return int. * defs.h: (print_address_symbolic): Return int. * value.h (print_address_demangle): Return int. doc * gdb.texinfo (Print Settings): Document 'set print symbol'. testsuite * gdb.mi/mi-var-cmd.exp: Update. * gdb.objc/basicclass.exp (do_objc_tests): Update. * gdb.cp/virtbase.exp: Update. * gdb.cp/classes.exp (test_static_members): Update. * gdb.cp/casts.exp: Update. * gdb.base/pointers.exp: Update. * gdb.base/funcargs.exp (pointer_args): Update. (structs_by_reference): Update. * gdb.base/find.exp: Update. * gdb.base/call-strs.exp: Send "set print symbol off". * gdb.base/call-ar-st.exp: Update. * gdb.ada/fun_addr.exp: Update. * gdb.base/printcmds.exp (test_print_symbol): New proc. Call it. (test_print_repeats_10, test_print_strings) (test_print_char_arrays): Update.
* * valprint.c (val_print_string): Don't print leading space.Tom Tromey2012-05-1811-18/+83
| | | | | | | | | | | | | | * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally print space before string or vtbl. * m2-valprint.c (print_unpacked_pointer): Optionally print space before string. * jv-valprint.c (java_value_print): Print space before string. * go-valprint.c (print_go_string): Print space before string. * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print space before string. * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print space before string or vtbl. * auxv.c (fprint_target_auxv): Print space after address.
* * printcmd.c (print_address_demangle): Remove special case for 0.Tom Tromey2012-05-188-14/+25
| | | | | | | | | testsuite * gdb.mi/mi2-var-display.exp: Update. * gdb.mi/mi-var-display.exp: Update. * gdb.mi/mi-var-child.exp: Update. * gdb.cp/expand-psymtabs-cxx.exp: Update. * gdb.cp/cp-relocate.exp (get_func_address): Update.
* * printcmd.c (print_address_demangle): Add 'opts' argument.Tom Tromey2012-05-1812-37/+51
| | | | | | | | | | | | | | | | * p-valprint.c (pascal_val_print): Update. * jv-valprint.c (java_val_print): Update. * value.h: Update. * valprint.c (generic_val_print): Update. (print_function_pointer_address): Add 'options' argument. Remove 'addressprint' argument. Update. * m2-valprint.c (print_unpacked_pointer): Update. * gnu-v3-abi.c (print_one_vtable): Update. (gnuv3_print_method_ptr): Update. * f-valprint.c (f_val_print): Update. * cp-valprint.c (cp_print_value_fields): Update. * valprint.h (print_function_pointer_address): Update. * c-valprint.c (c_val_print): Update.
* 2012-05-18 Pedro Alves <palves@redhat.com>Pedro Alves2012-05-182-1/+4
| | | | * mach-o.h: Don't include sysdep.h.
* * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtabTom Tromey2012-05-185-40/+91
| | | | | | | | | | directly corresponding to the found psymtab. * dwarf2read.c (recursively_find_pc_sect_symtab): New function. (dw2_find_pc_sect_symtab): Use it. * block.h (blockvector_contains_pc): Declare. * block.c (find_block_in_blockvector): New function. (blockvector_for_pc_sect): Use it. (blockvector_contains_pc): New function.
* * mips-tdep.h (mips_write_pc): New prototype.Maciej W. Rozycki2012-05-184-2/+17
| | | | | | * mips-tdep.c (mips_write_pc): Make external, add description. * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc, add description.
* * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead ofMaciej W. Rozycki2012-05-182-6/+13
| | | | | | | mips_regnum->pc. (mips_unwind_pc, mips_write_pc): Likewise. (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and gdbarch_read_pc.
* PR 14072Nick Clifton2012-05-183-2/+11
| | | | | | * bfd-in.h: Check for PACKAGE or PACKAGE_VERSION before complaining about config.h not having been included. * bfd-in2.h: Regenerate.
* * ld-tic6x/mvk-reloc-local-r.d: Adjust for signed addend.Alan Modra2012-05-183-2/+7
| | | | * ld-tic6x/unwind-6.d: Typo fix.
* * config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintfAlan Modra2012-05-182-1/+9
| | | | return value.
* * config/tc-ppc.c: Don't capitalise error and warning messages.Alan Modra2012-05-182-24/+37
| | | | (md_parse_option): Add checks for -a32 -mvle.
* * config/obj-evax.c: Include as.h first.Alan Modra2012-05-182-2/+7
|
* * ia64-opc.c: Remove #include "ansidecl.h".Alan Modra2012-05-183-4/+8
| | | | * z8kgen.c: Include sysdep.h first.
* * ld-elf/init-mixed.c: Include config.h first.Alan Modra2012-05-182-2/+5
|
* * arc-dis.c: Include sysdep.h first, remove some redundant includes.Alan Modra2012-05-1816-631/+650
| | | | | | | | | | | | | | | | | * bfin-dis.c: Likewise. * i860-dis.c: Likewise. * ia64-dis.c: Likewise. * ia64-gen.c: Likewise. * m68hc11-dis.c: Likewise. * mmix-dis.c: Likewise. * msp430-dis.c: Likewise. * or32-dis.c: Likewise. * rl78-dis.c: Likewise. * rx-dis.c: Likewise. * tic4x-dis.c: Likewise. * tilegx-opc.c: Likewise. * tilepro-opc.c: Likewise. * rx-decode.c: Regenerate.
* * ppc-opc.c (powerpc_macros): Add entries for e_extlwi to e_clrlslwi.Alan Modra2012-05-182-0/+16
|
* * ppc-opc.c (extract_sprg): Use ALLOW8_SPRG to include VLE.Alan Modra2012-05-182-4/+7
|
* * info-macros.exp: Pass "debug" to prepare_for_testing.Doug Evans2012-05-182-3/+6
|
* daily updateAlan Modra2012-05-181-1/+1
|
* *** empty log message ***gdbadmin2012-05-181-1/+1
|
* bfd/Andreas Schwab2012-05-1712-18884/+712
| | | | | | | | | | | | | | | | * aclocal.m4: Regenerate. * Makefile.in: Regenerate. binutils/ * aclocal.m4: Regenerate. * configure: Regenerate. * config.in: Regenerate. * Makefile.in: Regenerate. gas/ * aclocal.m4: Regenerate. * configure: Regenerate. * Makefile.in: Regenerate.
* * Makefile.in (clean): Remove Fission .dwo and .dwp files.Doug Evans2012-05-1734-1/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gdb.ada/Makefile.in (clean): Ditto. * gdb.arch/Makefile.in (clean): Ditto. * gdb.asm/Makefile.in (clean): Ditto. * gdb.base/Makefile.in (clean): Ditto. * gdb.cell/Makefile.in (clean): Ditto. * gdb.cp/Makefile.in (clean): Ditto. * gdb.disasm/Makefile.in (clean): Ditto. * gdb.dwarf2/Makefile.in (clean): Ditto. * gdb.fortran/Makefile.in (clean): Ditto. * gdb.go/Makefile.in (clean): Ditto. * gdb.hp/Makefile.in (clean): Ditto. * gdb.hp/gdb.aCC/Makefile.in (clean): Ditto. * gdb.hp/gdb.base-hp/Makefile.in (clean): Ditto. * gdb.hp/gdb.compat/Makefile.in (clean): Ditto. * gdb.hp/gdb.defects/Makefile.in (clean): Ditto. * gdb.hp/gdb.objdbg/Makefile.in (clean): Ditto. * gdb.java/Makefile.in (clean): Ditto. * gdb.linespec/Makefile.in (clean): Ditto. * gdb.mi/Makefile.in (clean): Ditto. * gdb.modula2/Makefile.in (clean): Ditto. * gdb.multi/Makefile.in (clean): Ditto. * gdb.objc/Makefile.in (clean): Ditto. * gdb.opencl/Makefile.in (clean): Ditto. * gdb.opt/Makefile.in (clean): Ditto. * gdb.pascal/Makefile.in (clean): Ditto. * gdb.python/Makefile.in (clean): Ditto. * gdb.reverse/Makefile.in (clean): Ditto. * gdb.server/Makefile.in (clean): Ditto. * gdb.stabs/Makefile.in (clean): Ditto. * gdb.threads/Makefile.in (clean): Ditto. * gdb.trace/Makefile.in (clean): Ditto. * gdb.xml/Makefile.in (clean): Ditto.
* procfs.c: Remove unused functions and make many functions staticJoel Brobecker2012-05-172-273/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gdb/ChangeLog: * procfs.c (procfs_find_new_threads, procfs_pid_to_str, proc_warn, proc_error, proc_get_status, proc_flags, proc_why, proc_what, proc_nsysarg, proc_sysargs, proc_set_run_on_last_close, proc_unset_run_on_last_close, proc_unset_inherit_on_fork, proc_set_async, proc_unset_async, proc_stop_process, proc_wait_for_stop, proc_run_process, proc_set_traced_signals, proc_set_traced_faults, proc_set_traced_sysentry, proc_set_traced_sysexit, proc_set_held_signals, proc_get_held_signals, proc_get_traced_signals, proc_get_traced_faults, proc_get_traced_sysentry, proc_get_traced_sysexit, proc_clear_current_fault, proc_set_current_signal, proc_clear_current_signal, proc_get_gregs, proc_get_fpregs, proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid, proc_get_nthreads, proc_get_nthreads, proc_get_nthreads, proc_get_current_thread, proc_get_current_thread, proc_get_current_thread, proc_update_threads, proc_update_threads, proc_update_threads, proc_update_threads, proc_iterate_over_threads, procfs_find_new_threads, procfs_pid_to_str): Make static. Remove advance declaration. (proc_cursig): Make static. Conditionalized defintion on PROCFS_DONT_PIOCSSIG_CURSIG being defined. (proc_syscall, proc_set_kill_on_last_close, proc_unset_kill_on_last_close, proc_set_inherit_on_fork, proc_get_pending_signals, proc_get_signal_actions, proc_trace_signal, proc_ignore_signal): Delete.
* Expect addend as signedH.J. Lu2012-05-1754-1740/+1800
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | binutils/testsuite/ * binutils-all/hppa/objdump.exp: Expect addend as signed. gas/testsuite/ * gas/all/weakref1.d: Expect addend as signed. * gas/arm/pic_vxworks.d: Likewise. * gas/arm/wince.d: Likewise. * gas/h8300/h8300.exp: Likewise. * gas/i386/sub.d: Likewise. * gas/mips/ecoff@ld.d: Likewise. * gas/mips/ecoff@sd.d: Likewise. * gas/mips/l_d-n32.d: Likewise. * gas/mips/l_d-n64.d: Likewise. * gas/mips/l_d.d: Likewise. * gas/mips/ld-n32.d: Likewise. * gas/mips/ld-n64.d: Likewise. * gas/mips/ld.d: Likewise. * gas/mips/mips1@l_d.d: Likewise. * gas/mips/mips1@ld-forward.d: Likewise. * gas/mips/mips1@ld.d: Likewise. * gas/mips/mips1@s_d.d: Likewise. * gas/mips/s_d-n32.d: Likewise. * gas/mips/s_d-n64.d: Likewise. * gas/mips/s_d.d: Likewise. * gas/mips/sd-n32.d: Likewise. * gas/mips/sd-n64.d: Likewise. * gas/mips/sd.d: Likewise. * gas/mmix/bz-c.d: Likewise. * gas/mmix/geta-c.d: Likewise. * gas/mmix/jump-c.d: Likewise. * gas/mmix/pushj-c.d: Likewise. * gas/mmix/pushj-cs.d: Likewise. * gas/mmix/reloc16-n.d: Likewise. * gas/mmix/reloc16-r.d: Likewise. * gas/mmix/reloc16.d: Likewise. * gas/mmix/reloc8-r.d: Likewise. * gas/mmix/reloc8.d: Likewise. * gas/mmix/relocxrn.d: Likewise. * gas/sh/sh64/case-1.d: Likewise. * gas/sh/sh64/mix-1.d: Likewise. * gas/sh/sh64/pt32-1.d: Likewise. * gas/sh/sh64/pt64-1.d: Likewise. * gas/sh/sh64/pt64-32-2.d: Likewise. * gas/sh/sh64/rel32-2.d: Likewise. * gas/sh/sh64/rel32-4.d: Likewise. * gas/sh/sh64/rel64-2.d: Likewise. * gas/sh/sh64/rel64-4.d: Likewise. * gas/tic6x/data-reloc.d: Likewise. * gas/tic6x/pcr-relocs.d: Likewise. * gas/xstormy16/allinsn.d: Likewise. * gas/xstormy16/reloc-1.d: Likewise. * gas/xstormy16/reloc-2.d: Likewise. ld/testsuite/ * ld-arm/emit-relocs1-vxworks.d: Expect addend as signed. * ld-spu/pic.d: Likewise.
* PR 14072Nick Clifton2012-05-17101-945/+19478
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Add check that sysdep.h has been included before any system header files. * configure: Regenerate. * config.in: Regenerate. * sysdep.h: Generate an error if included before config.h. * alpha-opc.c: Include sysdep.h before any other header file. * alpha-dis.c: Likewise. * avr-dis.c: Likewise. * cgen-opc.c: Likewise. * cr16-dis.c: Likewise. * cris-dis.c: Likewise. * crx-dis.c: Likewise. * d10v-dis.c: Likewise. * d10v-opc.c: Likewise. * d30v-dis.c: Likewise. * d30v-opc.c: Likewise. * h8500-dis.c: Likewise. * i370-dis.c: Likewise. * i370-opc.c: Likewise. * m10200-dis.c: Likewise. * m10300-dis.c: Likewise. * micromips-opc.c: Likewise. * mips-opc.c: Likewise. * mips61-opc.c: Likewise. * moxie-dis.c: Likewise. * or32-opc.c: Likewise. * pj-dis.c: Likewise. * ppc-dis.c: Likewise. * ppc-opc.c: Likewise. * s390-dis.c: Likewise. * sh-dis.c: Likewise. * sh64-dis.c: Likewise. * sparc-dis.c: Likewise. * sparc-opc.c: Likewise. * spu-dis.c: Likewise. * tic30-dis.c: Likewise. * tic54x-dis.c: Likewise. * tic80-dis.c: Likewise. * tic80-opc.c: Likewise. * tilegx-dis.c: Likewise. * tilepro-dis.c: Likewise. * v850-dis.c: Likewise. * v850-opc.c: Likewise. * vax-dis.c: Likewise. * w65-dis.c: Likewise. * xgate-dis.c: Likewise. * xtensa-dis.c: Likewise. * rl78-decode.opc: Likewise. * rl78-decode.c: Regenerate. * rx-decode.opc: Likewise. * rx-decode.c: Regenerate. * configure.in: Add check that sysdep.h has been included before any system header files. * configure: Regenerate. * config.in: Regenerate. * sysdep.h: Generate an error if included before config.h. * configure.in: Add check that sysdep.h has been included before any system header files. * configure: Regenerate. * config.in: Regenerate. * aclocal.m4: Regenerate. * bfd-in.h: Generate an error if included before config.h. * sysdep.h: Likewise. * bfd-in2.h: Regenerate. * compress.c: Remove #include "config.h". * plugin.c: Likewise. * elf32-m68hc1x.c: Include sysdep.h before alloca-conf.h. * elf64-hppa.c: Likewise. * som.c: Likewise. * xsymc.c: Likewise. * configure.in: Add check that sysdep.h has been included before any system header files. * configure: Regenerate. * config.in: Regenerate. * configure.in: Add check that sysdep.h has been included before any system header files. * configure: Regenerate. * config.in: Regenerate. * aclocal.m4: Regenerate. * Makefile.am: Use wrappers around C files generated by flex. * Makefile.in: Regenerate. * doc/Makefile.in: Regenerate. * itbl-lex-wrapper.c: New file. * config/bfin-lex-wrapper.c: New file. * cgen.c: Include as.h before setjmp.h. * config/tc-dlx.c: Include as.h before any other header. * config/tc-h8300.c: Likewise. * config/tc-lm32.c: Likewise. * config/tc-mep.c: Likewise. * config/tc-microblaze.c: Likewise. * config/tc-mmix.c: Likewise. * config/tc-msp430.c: Likewise. * config/tc-or32.c: Likewise. * config/tc-tic4x.c: Likewise. * config/tc-tic54x.c: Likewise. * config/tc-xtensa.c: Likewise. * configure.in: Add check that sysdep.h has been included before any system header files. * configure: Regenerate. * config.in: Regenerate. * unwind-ia64.h: Include config.h.
* * lib/ld-lib.exp (run_dump_test): For options "warning" andHans-Peter Nilsson2012-05-172-1/+17
| | | | "error", append to earlier option values without adding a space.
* typo fixesAlan Modra2012-05-171-7/+7
|
* binutils/Alan Modra2012-05-1711-16/+37
| | | | | | | | | | | | | | | | * dwarf.c (process_debug_info): Display abbrev offset in hex. (display_debug_abbrev): Show offset of abbrev. binutils/testsuite/ * binutils-all/objdump.W: Update. * binutils-all/readelf.wa: Update. * binutils-all/i386/compressed-1a.d: Update. * binutils-all/x86-64/compressed-1a.d: Update. gas/testsuite/ * gas/elf/dwarf2-1.d: Update. * gas/elf/dwarf2-2.d: Update. * gas/i386/dw2-compress-1.d: Update.
* * dwarf.c (display_debug_ranges): Don't report more than one useAlan Modra2012-05-172-3/+14
| | | | of the same range set as an overlap.
* * gas/ppc/vle.d: Pass -a32 to assembler.Alan Modra2012-05-179-32/+43
| | | | | | | | | | * gas/ppc/vle-reloc.d: Likewise. * gas/ppc/vle-simple-1.d: Likewise, also match wider addresses. * gas/ppc/vle-simple-2.d: Likewise. * gas/ppc/vle-simple-3.d: Likewise. * gas/ppc/vle-simple-4.d: Likewise. * gas/ppc/vle-simple-5.d: Likewise. * gas/ppc/vle-simple-6.d: Likewise.
* * elf.c (ignore_section_sym): Correct comment. Don't returnAlan Modra2012-05-172-15/+23
| | | | | | true for absolute section. (elf_map_symbols): Move stray comment. Adjust for above change. Don't discard global section symbols.
* * ld-m68k/tls-ld-1.d: Update.Alan Modra2012-05-172-3/+7
|
* bfd/Alan Modra2012-05-178-21/+24
| | | | | | | | | | | | * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make _DYNAMIC, _GLOBAL_OFFSET_TABLE_ or _PROCEDURE_LINKAGE_TABLE_ absolute. * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Don't make _DYNAMIC absolute. ld/testsuite/ * ld-powerpc/tlsso.r: Update for dynamic sym changes. * ld-powerpc/tlsso32.d: Likewise. * ld-powerpc/tlsso32.r: Likewise. * ld-powerpc/tlstocso.r: Likewise.
* bfd/Alan Modra2012-05-175-23/+31
| | | | | | | | * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call, has_vle_insns, is_ppc_vle): Move to.. * elf32-ppc.h: ..here, making is_ppc_vle a macro. opcodes/ * ppc_dis.c: Don't include elf/ppc.h.
* *** empty log message ***gdbadmin2012-05-171-1/+1
|
* daily updateAlan Modra2012-05-171-1/+1
|
* 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior2012-05-164-3/+13
| | | | | | | | | * coffread.c (cs_section_address): Passing proper argument for `bfd_get_section_vma'. * dwarf2read.c (dwarf2_locate_sections): Likewise, for `bfd_get_section_flags'. * remote.c (remote_trace_set_readonly_regions): Likewise, for `bfd_get_section_vma'.
* PR macros/13205:Tom Tromey2012-05-169-18/+160
| | | | | | | | | | | | | | | | | | | | | * macrotab.h: (macro_define_special): Declare. (enum macro_special_kind): New. (struct macro_definition) <argc, replacement>: Update comments. * macrotab.c (new_macro_definition): Unconditionally set 'argc'. (macro_define_object_internal): New function. (macro_define_object): Use it. (macro_define_special): New function. (fixup_definition): New function. (macro_lookup_definition, foreach_macro_in_scope) (foreach_macro): Use fixup_definition. * macroexp.h (macro_stringify): Declare. * macroexp.c (free_buffer_return_text): New function. (stringify): Constify "arg". (macro_stringify): New function. * dwarf2read.c (macro_start_file): Call macro_define_special. testsuite * gdb.base/macscp1.c (macscp_expr): Add comment. * gdb.base/macscp.exp: Test __FILE__ and __LINE__.
* * ld-arm/gc-hidden-1.d: Fix disassembly pattern.Hans-Peter Nilsson2012-05-162-2/+6
|
* Fix one of my ChangeLog entries.Joel Brobecker2012-05-161-3/+3
| | | | I copy/pasted the wrong text... This fixes it.
* * bfd-in.h (bfd_get_section_name, bfd_get_section_vma,Nick Clifton2012-05-1614-34/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | bfd_get_section_lma, bfd_get_section_alignment, bfd_get_section_flags, bfd_get_section_userdata): Rewrite macros in order to use the `bfd' argument. * bfd-in2.h: Regenerate. * elf-vxworks.c (elf_vxworks_finish_dynamic_entry): Pass proper `bfd' as the first argument for `bfd_get_section_alignment'. * elf32-arm.c (create_ifunc_sections): Likewise, for `bfd_set_section_alignment'. * elf32-m32r.c (m32r_elf_relocate_section): Likewise, for `bfd_get_section_name'. * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. (ppc_elf_relocate_section): Likewise. * elf64-mmix.c (mmix_final_link_relocate): Likewise, for `bfd_get_section_vma'. * elf64-ppc.c (create_linkage_sections): Likewise, for `bfd_set_section_alignment'. * emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd' as the first argument for `bfd_get_section_name'. * config/tc-alpha.c (maybe_set_gp): Pass proper `bfd' as the first argument for `bfd_get_section_vma'.
* PR gas/14082Nick Clifton2012-05-162-1/+7
| | | | | * app.c (do_scrub_chars): Prevent possible out of bounds access to lex[] array.
* PR 13503Nick Clifton2012-05-169-18/+41
| | | | | | | | | | | | | | | | * reloc.c: Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO. * bfd-in2.h: Regenerate. * libbfd.h: Regenrate. * elf32-avr.c (elf_avr_howto_table): Rename R_AVR_8_HHI8 to R_AVR_8_HLO8. (avr_reloc_map): Ditto. * config/tc-avr.c (avr_cons_fix_new): Rename R_AVR_8_HHI8 to R_AVR_8_HLO8. (exp_mod_data) Ditto. And replace "hhi8" with "hlo8". (md_apply_fix): Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO. * avr.h (RELOC_NUMBERS): Rename R_AVR_8_HHI8 to R_AVR_8_HLO8.
* gdb/Maciej W. Rozycki2012-05-1661-191/+426
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * breakpoint.h (bp_location): Add related_address member. * inferior.h (get_return_value): Take a pointer to struct value instead of struct type for the function requested. * value.h (using_struct_return): Likewise. * gdbarch.sh (return_value): Take a pointer to struct value instead of struct type for the function requested. * breakpoint.c (set_breakpoint_location_function): Initialize related_address for bp_gnu_ifunc_resolver breakpoints. * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the requested function's address to gdbarch_return_value. * eval.c (evaluate_subexp_standard): Pass the requested function's address to using_struct_return. * infcall.c (call_function_by_hand): Pass the requested function's address to using_struct_return and gdbarch_return_value. * infcmd.c (get_return_value): Take a pointer to struct value instead of struct type for the function requested. (print_return_value): Update accordingly. (finish_command_continuation): Likewise. * stack.c (return_command): Pass the requested function's address to using_struct_return and gdbarch_return_value. * value.c (using_struct_return): Take a pointer to struct value instead of struct type for the function requested. Pass the requested function's address to gdbarch_return_value. * python/py-finishbreakpoint.c (finish_breakpoint_object): New function_value member, replacing function_type. (bpfinishpy_dealloc): Update accordingly. (bpfinishpy_pre_stop_hook): Likewise. (bpfinishpy_init): Likewise. Record the requested function's address. * mips-tdep.c (mips_fval_reg): New enum. (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap words put in GP registers. (mips_o64_push_dummy_call): Update a comment. (mips_o32_return_value): Take a pointer to struct value instead of struct type for the function requested and use it to check if using the MIPS16 calling convention. Return the designated general purpose registers for floating-point values returned in MIPS16 mode. (mips_o64_return_value): Likewise. * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype. (ppc_sysv_abi_broken_return_value): Likewise. (ppc64_sysv_abi_return_value): Likewise. * alpha-tdep.c (alpha_return_value): Take a pointer to struct value instead of struct type for the function requested. * amd64-tdep.c (amd64_return_value): Likewise. * amd64-windows-tdep.c (amd64_windows_return_value): Likewise. * arm-tdep.c (arm_return_value): Likewise. * avr-tdep.c (avr_return_value): Likewise. * bfin-tdep.c (bfin_return_value): Likewise. * cris-tdep.c (cris_return_value): Likewise. * frv-tdep.c (frv_return_value): Likewise. * h8300-tdep.c (h8300_return_value): Likewise. (h8300h_return_value): Likewise. * hppa-tdep.c (hppa32_return_value): Likewise. (hppa64_return_value): Likewise. * i386-tdep.c (i386_return_value): Likewise. * ia64-tdep.c (ia64_return_value): Likewise. * iq2000-tdep.c (iq2000_return_value): Likewise. * lm32-tdep.c (lm32_return_value): Likewise. * m32c-tdep.c (m32c_return_value): Likewise. * m32r-tdep.c (m32r_return_value): Likewise. * m68hc11-tdep.c (m68hc11_return_value): Likewise. * m68k-tdep.c (m68k_return_value): Likewise. (m68k_svr4_return_value): Likewise. * m88k-tdep.c (m88k_return_value): Likewise. * mep-tdep.c (mep_return_value): Likewise. * microblaze-tdep.c (microblaze_return_value): Likewise. * mn10300-tdep.c (mn10300_return_value): Likewise. * moxie-tdep.c (moxie_return_value): Likewise. * mt-tdep.c (mt_return_value): Likewise. * ppc-linux-tdep.c (ppc_linux_return_value): Likewise. * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise. (ppc_sysv_abi_broken_return_value): Likewise. (ppc64_sysv_abi_return_value): Likewise. * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise. * rl78-tdep.c (rl78_return_value): Likewise. * rs6000-aix-tdep.c (rs6000_return_value): Likewise. * rx-tdep.c (rx_return_value): Likewise. * s390-tdep.c (s390_return_value): Likewise. * score-tdep.c (score_return_value): Likewise. * sh-tdep.c (sh_return_value_nofpu): Likewise. (sh_return_value_fpu): Likewise. * sh64-tdep.c (sh64_return_value): Likewise. * sparc-tdep.c (sparc32_return_value): Likewise. * sparc64-tdep.c (sparc64_return_value): Likewise. * spu-tdep.c (spu_return_value): Likewise. * tic6x-tdep.c (tic6x_return_value): Likewise. * v850-tdep.c (v850_return_value): Likewise. * vax-tdep.c (vax_return_value): Likewise. * xstormy16-tdep.c (xstormy16_return_value): Likewise. * xtensa-tdep.c (xtensa_return_value): Likewise. * gdbarch.c: Regenerate. * gdbarch.h: Regenerate. gdb/testsuite/ * gdb.base/return-nodebug.exp: Also test float and double types.
* PR binutils/13558Nick Clifton2012-05-1632-50/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bfd/aout-cris.c: Include sysdep.h before bfd.h. * bfd/aout-ns32k.c: Likewise. * bfd/aout-sparcle.c: Likewise. * bfd/aout0.c: Likewise. * bfd/bfd-in2.h: Likewise. * bfd/coff-stgo32.c: Likewise. * bfd/cpu-lm32.c: Likewise. * bfd/cpu-microblaze.c: Likewise. * bfd/cpu-score.c: Likewise. * bfd/cpu-tilegx.c: Likewise. * bfd/cpu-tilepro.c: Likewise. * bfd/elf32-lm32.c: Likewise. * bfd/elf32-microblaze.c: Likewise. * bfd/elf32-score7.c: Likewise. * bfd/elf32-tilepro.c: Likewise. * bfd/elfxx-tilegx.c: Likewise. * bfd/mach-o.h: Likewise. * bfd/nlm32-ppc.c: Likewise. * bfd/ns32knetbsd.c: Likewise. * bfd/pef.h: Likewise. * bfd/plugin.c: Likewise. * bfd/stab-syms.c: Likewise. * bfd/sunos.c: Likewise. * bfd/syms.c: Likewise. * bfd/xsym.h: Likewise. * Makefile.am (CFILES): Add syslex_wrap.c. (sysinfo): Depend upon syslex_wrap.o. (syslex_wrap.o): New rule. (syslex.o): Delete rule. * syslex_wrap.c: New file. * Makefile.in: Regenerate.
* * elflink.c: Rename flaginfo to flinfo throughout, except..Alan Modra2012-05-162-309/+307
| | | | | (bfd_elf_lookup_section_flags): ..here, rename finfo to flaginfo. Formatting, style. Simplify flag match.
* * dwarf2.c: Formatting.Alan Modra2012-05-162-73/+127
| | | | | | | | | | | (arange_add): Pass in unit rather than bfd. Update callers. Ignore empty ranges. Don't ask for cleared memory. (parse_comp_unit): Only set unit->base_address if processing DW_TAG_compile_unit. (find_debug_info): Optimise section lookup. (place_sections): Use bfd_alloc for stash->adjusted_sections. (find_line): Match previously parsed comp unit addresses as we do for newly parsed comp units.
OpenPOWER on IntegriCloud