aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-11-122008-11-12 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-0/+7
* bfd.c (bfd_get_sign_extend_vma): Return 0 for mach-o.
2008-11-12 * config/tc-cris.c (cris_number_to_imm): Except forHans-Peter Nilsson2-28/+22
BFD_RELOC_NONE, always set contents. Where previously this was skipped, set contents to 0.
2008-11-12 PR gas/7025Hans-Peter Nilsson2-0/+10
* input-scrub.c (input_scrub_include_sb): Make the position after the input have defined contents, a 0 character.
2008-11-12 * gas/cris/rd-bcnst2-pic.d, gas/cris/rd-bcnst2.d,Hans-Peter Nilsson4-0/+41
gas/cris/rd-bcnst2.s: New tests.
2008-11-12 * config/tc-cris.c (cris_relax_frag): Add missing case forHans-Peter Nilsson2-0/+4
ENCODE_RELAX (STATE_COND_BRANCH_PIC, STATE_DWORD).
2008-11-12 PR gas/7020Hans-Peter Nilsson1-0/+1
* read.c (read_a_source_file): Rearrange evaluation order when looking for '=' to avoid conditional on undefined contents of input_line_pointer[1].
2008-11-12 * read.c (read_a_source_file): Rearrange evaluation order whenHans-Peter Nilsson2-4/+10
looking for '=' to avoid conditional on undefined contents of input_line_pointer[1].
2008-11-12 * infcall.c (call_function_by_hand): Handle inferior exit.Doug Evans5-0/+142
* gdb.base/callexit.exp: New file. * gdb.base/callexit.c: New file.
2008-11-12*** empty log message ***gdbadmin1-1/+1
2008-11-11daily updateAlan Modra1-1/+1
2008-11-112008-11-10 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill3-4/+9
* erc32.c, exec.c: Fix warnings.
2008-11-11 * remote-sim.c (gdbsim_create_inferior, gdbsim_mourn_inferior): AddThiago Jung Bauermann2-3/+9
missing struct target_ops argument.
2008-11-112008-11-11 Joel Sherrill <joel.sherrilL@oarcorp.com>Joel Sherrill2-0/+5
* MAINTAINERS: Add myself for write after approval privileges.
2008-11-11 * elf.c (assign_file_positions_for_non_load_sections): ConsolidateAlan Modra2-40/+31
PT_GNU_RELRO handling.
2008-11-11 * lib/gdb.exp (GDBFLAGS): Move -nx ...Doug Evans7-32/+51
(INTERNAL_GDBFLAGS): ... to here. Move -nw to here as well. (default_gdb_version): Add $INTERNAL_GDBFLAGS to gdb invocations. (default_gdb_start,default_gdb_exit): Ditto. * lib/mi-support.exp (default_mi_gdb_start): Ditto. (mi_uncatched_gdb_exit): Add $INTERNAL_GDBFLAGS to log message. * gdb.base/corefile.exp: Add $INTERNAL_GDBFLAGS to gdb invocations. * gdb.base/dbx.exp (dbx_gdb_start): Ditto. * gdb.base/args.exp (GDBFLAGS): Don't overwrite, append. * gdb.base/remotetimeout.exp (GDBFLAGS): Ditto.
2008-11-11*** empty log message ***gdbadmin1-1/+1
2008-11-10daily updateAlan Modra1-1/+1
2008-11-10 PR 7012Alan Modra2-32/+44
* dwarf2.c (find_line): Don't keep stale pointers into realloc'd memory. Return on errors. Fix memory leak. (_bfd_dwarf2_cleanup_debug_info): Free dwarf_str_buffer.
2008-11-10 PR 7011Andreas Schwab2-65/+72
* elf.c (assign_file_positions_for_non_load_sections): Handle PT_GNU_RELRO specially.
2008-11-10 * gdbtypes.c (copy_type_recursive): Clear new fields.Tom Tromey2-0/+5
2008-11-10 * cli/cli-cmds.c (source_script): Clean up full_pathname. RunTom Tromey2-1/+10
cleanups on early return.
2008-11-10 * objdump.c (disassemble_bytes): Don't skip leading zeros whenAlan Modra2-13/+18
end of section calculation overflows.
2008-11-10*** empty log message ***gdbadmin1-1/+1
2008-11-09daily updateAlan Modra1-1/+1
2008-11-09 Kill pthread_ops_hackVladimir Prus28-180/+309
* target.h (struct target_ops): Make to_attach, to_detach, to_create_inferior and to_mourn_inferior accept a pointer to struct target_ops. (target_attach, target_create_inferior, target_create_inferior): Convert from macros to function. Find the right target to invoke a method of. (find_default_attach, find_default_create_inferior): New parameter ops. * corefile.c (core_file_command): Pass target to to_detach. * corelow.c (core_detach): Add 'ops' parameter. * fork-child.c (fork_inferior): Return the pid. Allow init_trace_fun to be NULL. * inf-ptrace (ptrace_ops_hack): Remove. (inf_ptrace_him): Remove, moving all logic into.... (inf_ptrace_create_inferior): ... here. Push the target passed as parameter. (inf_ptrace_mourn_inferior, inf_ptrace_attach, inf_ptrace_detach): Push/pop target passed as parameter, no ptrace_ops_hack. (inf_ptrace_target): Don't remember result. * inferior.h (fork_inferior): Adjust prototype. * linux-nat.c (linux_nat_create_inferior, linux_nat_attach) (linux_nat_detach, linux_nat_mourn_inferior): New parameter ops. Pass it to linux_ops target. * linux-thread-db.c (thread_db_detach, thread_db_mourn_inferior): New parameter ops. Pass it to the target beneath. * remote.c (remote_mourn, extended_remote_mourn, remote_detach) (extended_remote_create_inferior): New parameter ops. Pass it further. * target.c (debug_to_attach, debug_to_detach) (debug_to_mourn_inferior): New parameter ops. (target_create_inferior): New. (update_current_target): Do not inherit to_attach, to_detach, to_create_inferiour, to_mourn_inferior. Do not default to_detach and to_mourn_inferior. (target_detach): Find the right target to use. (target_mourn_inferior): New. (find_default_attach, find_default_create_inferior): New parameter ops. Pass the found target when calling its method. (init_dummy_target): Provide fallback definition of to_detach. (target_attach): New. (debug_to_attach, debug_to_detach, debug_to_create_inferior) (debug_to_mourn_inferiour): New parameter ops. * aix-thread.c: Adjust. * bsd-uthread.c: Adjust. * gnu-nat.c: Adjust. * go32-nat.c: Adjust. * hpux-thread.c: Adjust. * inf-ttrace.c: Ajust. * monitor.c: Adjust. * nto-procfs.c: Adjust. * procfs.c: Adjust. * remote-m32r-sdi.c: Adjust. * remote-mips.c: Adjust. * remote-sim.c: Adjust. * rs6000-nat.c: Adjust. * sol-thread.c: Adjust. * win32-nat.c: Adjust. * dec-thread.c: Adjust.
2008-11-09 * thread.c (print_thread_info): Eliminate now useless checksVladimir Prus2-12/+12
for exited threads.
2008-11-09*** empty log message ***gdbadmin1-1/+1
2008-11-08daily updateAlan Modra1-1/+1
2008-11-08(coff_symtab_read): Fix a typo in a comment.Eli Zaretskii1-1/+1
2008-11-08*** empty log message ***gdbadmin1-1/+1
2008-11-07daily updateAlan Modra1-1/+1
2008-11-07fix typo in dateDoug Evans1-1/+1
2008-11-07 * MAINTAINERS: Take over from Anil Paranjpe as H8300 maintainer.Nick Clifton2-1/+5
2008-11-07*** empty log message ***gdbadmin1-1/+1
2008-11-06daily updateAlan Modra1-1/+1
2008-11-06 * config/tc-mips.c (COP_INSN): Change logic to always return falseAdam Nemet7-4/+39
for FP instructions. testsuite/ * gas/mips/mips1-fp.s, testsuite/gas/mips/mips1-fp.d, testsuite/gas/mips/mips1-fp.l: New tests. * gas/mips/mips.exp: Run them.
2008-11-062008-11-06 Chao-ying Fu <fu@mips.com>Chao-ying Fu4-0/+31
* gas/mips/mips32-sync.d, gas/mip/mips32-sync.s: New tests. * gas/mips/mips.exp: Run them.
2008-11-062008-11-06 Chao-ying Fu <fu@mips.com>Chao-ying Fu3-4/+13
* mips-opc.c (synciobdma, syncs, syncw, syncws): Move these before sync. (sync): New instruction with 5-bit sync type. * mips-dis.c (print_insn_args: Add case '1' to print 5-bit values.
2008-11-062008-11-06 Chao-ying Fu <fu@mips.com>Chao-ying Fu2-1/+10
* config/tc-mips.c (validate_mips_insn): Add case '1'. (mips_ip): Add case '1' to process sync type.
2008-11-062008-11-06 Chao-ying Fu <fu@mips.com>Chao-ying Fu2-1/+6
* mips.h: Doucument '1' for 5-bit sync type.
2008-11-06 * i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_breakPedro Alves2-0/+9
to 0.
2008-11-06Add m32c-*-rtems* and m32r-*-rtems* configuration targets.Nick Clifton6-5/+19
2008-11-06 * configure, config.in: Rebuild.Tom Tromey5-4/+37
* configure.in: Check for fileno. * bfdio.c (close_on_exec): New function. (real_fopen): Use it. (FD_CLOEXEC): New define.
2008-11-06Remove extra blank line.Tristan Gingold1-1/+0
2008-11-062008-11-06 Tristan Gingold <gingold@adacore.com>Tristan Gingold4-122/+486
* mach-o.h (BFD_MACH_O_NO_SECT): Add; reorders the macros. (BFD_MACH_O_SYM_NTYPE, BFD_MACH_O_SYM_NSECT, BFD_MACH_O_SYM_NDESC): New macros. (bfd_mach_o_i386_thread_flavour): Define according to the latest definition from system header. (bfd_mach_o_load_command_type): Add BFD_MACH_O_LC_RPATH, BFD_MACH_O_LC_CODE_SIGNATURE. (BFD_MACH_O_SECTION_TYPE_MASK, BFD_MACH_O_SECTION_ATTRIBUTES_MASK, BFD_MACH_O_SECTION_ATTRIBUTES_SYS, BFD_MACH_O_SECTION_ATTRIBUTES_USR, BFD_MACH_O_S_ATTR_LOC_RELOC, BFD_MACH_O_S_ATTR_EXT_RELOC, BFD_MACH_O_S_ATTR_SOME_INSTRUCTIONS, BFD_MACH_O_S_ATTR_DEBUG, BFD_MACH_O_S_ATTR_PURE_INSTRUCTIONS): Add. (bfd_mach_o_segment_command): Add room for a nul terminator in segname field. (BFD_MACH_O_PROT_READ, BFD_MACH_O_PROT_WRITE, BFD_MACH_O_PROT_EXECUTE): Add. (INDIRECT_SYMBOL_LOCAL): Renames to BFD_MACH_O_INDIRECT_SYMBOL_LOCAL. (INDIRECT_SYMBOL_ABS): Renames to BFD_MACH_O_INDIRECT_SYMBOL_ABS. (bfd_mach_o_uuid_command): Add the structure. (bfd_mach_o_load_command): Add uuid field. (bfd_get_mach_o_data): New macro. * mach-o.c (bfd_mach_o_bfd_print_private_bfd_data): New function which replaces the macro. (SECTION_TYPE, SECTION_ATTRIBUTES, SECTION_ATTRIBUTES_USR, S_ATTR_PURE_INSTRUCTIONS, SECTION_ATTRIBUTES_SYS, S_ATTR_SOME_INSTRUCTIONS, S_ATTR_EXT_RELOC, S_ATTR_LOC_RELOC): Renamed and moved to mach-o.h. (N_STAB, N_TYPE, N_EXT, N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_SECT, N_INDR): Removed as they duplicated macros in mach-o.h. (bfd_mach_o_print_symbol): Print much more details. (bfd_mach_o_make_bfd_section): Add prot argument, use canonical dwarf name for dwarf sections. Precisely set section flags. (bfd_mach_o_scan_read_section_32): Add prot argument. (bfd_mach_o_scan_read_section_64): Ditto. (bfd_mach_o_scan_read_section): Ditto. (bfd_mach_o_scan_read_symtab_symbol): Set section for debugging stabs, set BSF_GLOBAL and LOCAL flags correctly. Fix section for N_SECT symbols. (bfd_mach_o_i386_flavour_string): Reindent and adjust for new names. (bfd_mach_o_scan_read_symtab): Set HAS_SYMS flags on bfd if there are symbols. (bfd_mach_o_scan_read_uuid): New function. (bfd_mach_o_scan_read_segment): Add a trailing nul. Segments flags are now simply HAS_CONTENTS. Pass protection to bfd_mach_o_scan_read_section. (bfd_mach_o_scan_read_command): Decode UUID command. (bfd_mach_o_flatten_sections): Add comments. Fix flavour names. (bfd_mach_o_scan): Set flags according to file type. (mach_o_fat_archentry): Remove abfd field. (bfd_mach_o_archive_p): Remove initialization of abfd field. (bfd_mach_o_openr_next_archived_file): Find previous archive by position and not by bfd (as former bfds may have been freed). Give architecture name to archived file. * mach-o-target.c (TARGET_NAME): Use generic archive for non fat targets.
2008-11-06 * avr-dis.c: Replace uses of sprintf without a format string withNick Clifton2-5/+10
calls to strcpy.
2008-11-06 * options.cc (General_options::parse_dynamic_list): New function.Craig Silverstein11-18/+277
* options.h (General_options): New flags dynamic_list, dynamic_list_data, dynamic_list_cpp_new, and dynamic_list_cpp_typeinfo. New variable dynamic_list_. (General_options::in_dynamic_list): New function. * script.cc (Lex::Mode): New enum DYNAMIC_LIST. (Lex::can_start_name): Add support for DYNAMIC_LIST mode. (Lex::can_continue_name): Likewise. (yylex): Likewise. (read_script_file): New parameter script_options. (read_dynamic_list): New function. (Script_options::define_dynamic_list): New function. (dynamic_list_keyword_parsecodes): New variable. (dynamic_list_keywords): New variable. * script.h (Script_options::define_dynamic_list): New function prototype. (read_dynamic_list): New function prototype. * symtab.cc (strprefix): New macro. (Symbol::should_add_dynsym_entry): Support dynamic_list, dynamic_list_data, dynamic_list_cpp_new, and dynamic_list_cpp_typeinfo. * yyscript.y (PARSING_DYNAMIC_LIST): New token. (dynamic_list_expr): New rule. (dynamic_list_nodes): Likewise. (dynamic_list_node): Likewise. * testsuite/Makefile.am (dynamic_list): New test. * testsuite/Makefile.in: Regenerated. * testsuite/dynamic_list.t: New file. * testsuite/dynamic_list.sh: New file.
2008-11-06 * testsuite/tls_test_c.c: Add prototype for t11 and t11_last.Craig Silverstein3-3/+15
* testsuite/tls_test_c.c (t11): Add explicit "void" to prototype. (t11_last): Likewise. * testsuite/ver_test_6.c (main): Likewise.
2008-11-06*** empty log message ***gdbadmin1-1/+1
2008-11-05daily updateAlan Modra1-1/+1