aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2007-12-04From Craig Silverstein: Support irregular output files.Ian Lance Taylor2-20/+87
2007-12-04 * coffread.c (decode_type): Use builtin_type_int32 insteadUlrich Weigand20-1401/+146
of FT_INTEGER fundamental type for array range index type. (decode_base_type): Use builtin types of current_gdbarch instead of fundamental types. * dwarf2read.c (struct dwarf2_cu): Remove ftypes member. (read_file_scope): Do not initialize ftypes member. (dwarf_base_type, dwarf2_fundamental_types): Remove functions. (read_array_type): Use builtin_type_int32 instead of FT_INTEGER fundamental type for array range index type. (read_tag_string_type): Likewise for string range index type. Also, do not overwrite FT_CHAR type with new string type. (read_base_type): If DW_AT_name is missing, create unnamed type with given properties instead of looking for a fundamental type. Create new types as TYPE_TARGET_TYPE for DW_ATE_address and DW_ATE_complex_float types. (read_subrange_type): Create new type to represent missing DW_AT_type instead of looking for a fundamental type. (die_type): Use builtin type to represent "void" instead of looking for a fundamental type. * stabsread.c (define_symbol): Use builtin types to represent 'r' and 'i' floating-point and integer constants. * gdbtypes.c (lookup_fundamental_type): Remove. * gdbtypes.h (lookup_fundamental_type): Remove prototype. (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR, FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER, FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG, FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG, FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT, FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING, FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE, FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros. * objfiles.c (struct objfile): Remove fundamental_types member. * symfile.c (reread_symbols): Do not clear fundamental_types. * language.h (struct language_defn): Remove la_fund_type member. (create_fundamental_type): Remove. * language.c (unk_lang_create_fundamental_type): Remove. (unknown_language_defn, auto_language_defn, local_language_defn): Adapt initializer. * ada-lang.c (ada_create_fundamental_type): Remove. (ada_language_defn): Adapt initializer. * c-lang.h (c_create_fundamental_type): Remove prototype. * c-lang.c (c_create_fundamental_type): Remove. (c_language_defn, cplus_language_defn, asm_language_defn, minimal_language_defn): Adapt initializer. * f-lang.c (f_create_fundamental_type): Remove. (f_language_defn): Adapt initializer. * jv-lang.c (java_create_fundamental_type): Remove. (java_language_defn): Adapt initializer. * m2-lang.c (m2_create_fundamental_type): Remove. (m2_language_defn): Adapt initializer. * objc-lang.c (objc_create_fundamental_type): Remove. (objc_language_defn): Adapt initializer. * p-lang.h (pascal_create_fundamental_type): Remove prototype. * p-lang.c (pascal_create_fundamental_type): Remove. (pascal_language_defn): Adapt initializer. * scm-lang.c (scm_language_defn): Adapt initializer.
2007-12-04Print symbol table statistics with --stats.Ian Lance Taylor3-0/+19
2007-12-04daily updateAlan Modra1-1/+1
2007-12-042007-11-26 Thiago Jung Bauermann <bauerman@br.ibm.com>Ben Elliston2-21/+32
* Makefile.in (decimal32.o): Prepend $(srcdir) to dependencies and substitute $< for the source file in compilation command. (decimal64.o): Likewise. (decimal128.o): Likewise. (bid2dpd_dpd2bid.o): Likewise. (host-ieee32.o): Likewise. (host-ieee64.o): Likewise. (host-ieee128.o): Likewise.
2007-12-04 * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Create DT_PLTGOTBob Wilson2-3/+8
entry for all dynamic objects.
2007-12-04* features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.Maciej W. Rozycki7-74/+83
* features/mips64-cpu.xml: Likewise. * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly. * features/mips64-fpu.xml: Likewise. * features/mips-linux.c: Regenerate. * features/mips64-linux.c: Regenerate.
2007-12-04* target.h (target_find_new_threads): Fix definition.Maciej W. Rozycki2-1/+5
2007-12-04 * elf32-spu.c (spu_elf_size_stubs): Correct section alignment.Alan Modra2-2/+6
2007-12-04From Craig Silverstein: Use gold_fatal in options.h, beef up value checks.Ian Lance Taylor1-14/+16
2007-12-04*** empty log message ***gdbadmin1-1/+1
2007-12-03 * readelf.c (is_32bit_abs_reloc, is_32bit_pcrel_reloc): Add SPU.Alan Modra2-0/+8
2007-12-03 * config/tc-ppc.c (ppc_tc): Allow a space between toc symbolAlan Modra2-0/+6
name and bracket.
2007-12-03daily updateAlan Modra1-1/+1
2007-12-03 * win32-low.c (attaching): New global.Pedro Alves2-11/+63
(win32_create_inferior): Clear the `attaching' global. (win32_attach): Set the `attaching' global. (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when attaching. Only set a breakpoint at the entry point if not attaching.
2007-12-03 * server.c (main): Don't report dll events on the initialPedro Alves2-4/+10
connection on attaches.
2007-12-03 * server.c (main): Relax numerical bases supported for the pid ofPedro Alves2-1/+6
the --attach command line argument.
2007-12-03 * win32-low.c (win32_attach): Call OpenProcess beforePedro Alves2-17/+25
DebugActiveProcess, not after. Add last error output to error call.
2007-12-03 * win32-low.c (win32_get_thread_context)Pedro Alves3-4/+51
(win32_set_thread_context): New functions. (thread_rec): Use win32_get_thread_context. (continue_one_thread, win32_resume): Use win32_set_thread_context. * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context' field.
2007-12-03 * win32-low.c (soft_interrupt_requested, faked_breakpoint): NewPedro Alves2-20/+97
global variables. (child_add_thread): Minor cleanup. (child_continue): Resume artificially suspended threads before calling ContinueDebugEvent. (suspend_one_thread): New. (fake_breakpoint_event): New. (get_child_debug_event): Change return type to int. Check here if gdb sent an interrupt request. If a soft interrupt was requested, fake a breakpoint event. Return 0 if there is no event to handle, and 1 otherwise. (win32_wait): Don't check here if gdb sent an interrupt request. Ensure there is a valid event to handle. (win32_request_interrupt): Add soft interruption method as last resort.
2007-12-03 * win32-low.h (win32_thread_info): Add descriptions to thePedro Alves3-9/+41
structure members. Replace `suspend_count' counter by a `suspended' flag. * win32-low.c (thread_rec): Update condition of when to get the context from the inferior. Rely on ContextFlags being set if it has already been retrieved. Only suspend the inferior thread if we haven't already. Warn if that fails. (continue_one_thread): s/suspend_count/suspended/. Only call ResumeThread once. Warn if that fails.
2007-12-03*** empty log message ***gdbadmin1-1/+1
2007-12-02 * win32-low.c (win32_wait): Don't read from the inferior when itPedro Alves2-3/+5
has already exited.
2007-12-02 * Makefile.in (win32_low_h): New variable.Pedro Alves2-1/+12
(win32-low.o): Add dependency on $(win32_low_h). (win32-arm-low.o, win32-i386-low.o): New rules.
2007-12-02daily updateAlan Modra1-1/+1
2007-12-022007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller3-3/+9
* win32-nat.c (win32_resume): Set the trace bit in the thread identified by inferior_ptid.
2007-12-02*win32-nat.c (open_process_used): New static variable.Christopher Faylor3-32/+49
(win32_init_thread_list): Remove call to CloseHandle for thread. (win32_delete_thread): Ditto. (fake_create_process): Set open_process_used if OpenProcess call is successful. (get_win32_debug_event): Do not close process handle. (do_initial_win32_stuff): Set open_process_used to zero. (win32_mourn_inferior): Call CloseHandle for current_process_handle if open_process_used is set. (win32_kill_inferior): Do not close process and main_thread handles.
2007-12-02*** empty log message ***gdbadmin1-1/+1
2007-12-01daily updateAlan Modra1-1/+1
2007-12-01More -fPIC options.Ian Lance Taylor2-6/+6
2007-12-01Add missing space.Ian Lance Taylor2-2/+2
2007-12-01Compile shared library code with -fPIC. Also, alphabetize.Ian Lance Taylor4-9/+9
2007-12-01Add casts to avoid warnings.Ian Lance Taylor1-2/+3
2007-12-01Compress all debug sections.Ian Lance Taylor15-417/+386
2007-12-01 * hostio.c: Correct copyright year.Daniel Jacobowitz2-1/+5
2007-12-01*** empty log message ***gdbadmin1-1/+1
2007-11-30gas/Bob Wilson4-3/+18
* config/tc-xtensa.h (md_allow_eh_opt): Define. gas/testsuite/ * gas/elf/elf.exp: Disable ehopt test for Xtensa.
2007-11-30daily updateAlan Modra1-1/+1
2007-11-30From Cary Coutant: Avoid compilation warnings if no zlib.h.Ian Lance Taylor1-4/+12
2007-11-30 * remote.c (remote_cmdlist): New variable.Daniel Jacobowitz19-7/+1828
(PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite) (PACKET_vFile_close, PACKET_vFile_unlink): New constants. (remote_buffer_add_string, remote_buffer_add_bytes) (remote_buffer_add_int, remote_hostio_parse_result) (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite) (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink) (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup) (remote_hostio_close_cleanup, remote_file_put, remote_file_get) (remote_file_delete, remote_put_command, remote_get_command) (remote_delete_command, remote_command): New functions. (_initialize_remote): Register new packets and commands. * Makefile.in (gdb_fileio_h): New variable. (remote.o): Update. (SUBDIR_MI_OBS): Add mi-cmd-target.o. (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c. (mi-cmd-target.o): New rule. * mi/mi-cmd-target.c: New file. * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get, and target-file-put. * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put) (mi_cmd_target_file_delete): Declare. * remote.h (remote_file_put, remote_file_get, remote_file_delete): Declare. * NEWS: Describe new file transfer support. * gdb.texinfo (Debugging Programs with Multiple Processes): Correct formatting. (Remote Debugging): Add File Transfer section. (Remote Configuration): Document Host I/O packets. (GDB/MI): Add GDB/MI File Transfer Commands section. (Remote Protocol): Add Host I/O Packets section. (Packets): Add vFile. * Makefile.in (OBS): Add hostio.o. (hostio.o): New rule. * server.h (handle_vFile): Declare. * hostio.c: New file. * server.c (handle_v_requests): Take packet_len and new_packet_len for binary packets. Call handle_vFile. (main): Update call to handle_v_requests. * gdb.server/file-transfer.exp, gdb.server/transfer.txt, gdb.mi/mi-file-transfer.exp: New.
2007-11-30 * infrun.c (handle_inferior_event): Don'tVladimir Prus2-17/+11
ignore beakpoints if trap_expected is set.
2007-11-30 Make insert_breakpoints return void.Vladimir Prus4-7/+22
* breakpoint.h (insert_breakpoints): Change return type to void. * breakpoint.c (insert_breakpoints): Change return type to void. Rename local return_val variable to error. * infrun.c (keep_going): Instead of checking return value from insert_breakpoints, catch exception.
2007-11-30bfd/Richard Sandiford2-1/+7
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use the ELF header to choose between 32-bit and 64-bit relocation structures.
2007-11-30From Craig Silverstein: Add support for compressing .debug_str section.Ian Lance Taylor20-207/+1429
2007-11-30*** empty log message ***gdbadmin1-1/+1
2007-11-29daily updateAlan Modra1-1/+1
2007-11-29Clean up setting address and section offset.Ian Lance Taylor13-190/+378
2007-11-292007-11-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>Paolo Bonzini2-12/+25
* config-ml.in: Robustify against white space in absolute file names.
2007-11-29 bfd/Mark Shinwell23-38/+972
* archures.c (bfd_mach_mips_loongson_2e): New. (bfd_mach_mips_loongson_2f): New. * bfd-in2.h (bfd_mach_mips_loongson_2e): New. (bfd_mach_mips_loongson_2f): New. * cpu-mips.c: Add I_loongson_2e and I_loongson_2f to anonymous enum. (arch_info_struct): Add Loongson-2E and Loongson-2F entries. * elfxx-mips.c (_bfd_elf_mips_mach): Handle Loongson-2E and Loongson-2F flags. (mips_set_isa_flags): Likewise. (mips_mach_extensions): Add Loongson-2E and Loongson-2F entries. binutils/ * readelf.c (get_machine_flags): Handle Loongson-2E and -2F flags. gas/ * config/tc-mips.c (mips_cpu_info_table): Add loongson2e and loongson2f entries. * doc/c-mips.texi: Document -march=loongson{2e,2f} options. gas/testsuite/ * gas/mips/mips.exp: Add loongson-2e and -2f tests. * gas/mips/loongson-2e.d: New. * gas/mips/loongson-2e.s: New. * gas/mips/loongson-2f.d: New. * gas/mips/loongson-2f.s: New. include/elf/ * mips.h (E_MIPS_MACH_LS2E): New. (E_MIPS_MACH_LS2F): New. include/opcode/ * mips.h (INSN_LOONGSON_2E): New. (INSN_LOONGSON_2F): New. (CPU_LOONGSON_2E): New. (CPU_LOONGSON_2F): New. (OPCODE_IS_MEMBER): Update for Loongson-2E and -2F flags. opcodes/ * mips-dis.c (mips_arch_choices): Add Loongson-2E and -2F entries. * mips-opc.c (IL2E): New. (IL2F): New. (mips_builtin_opcodes): Add Loongson-2E and -2F instructions. Allow movz and movn for Loongson-2E and -2F. Add movnz entry. Move coprocessor encodings to the end of the table. Allow certain MIPS V .ps instructions on the Loongson-2E and -2F.
2007-11-29 include/opcode/Mark Shinwell4-162/+209
* mips.h (INSN_ISA*): Redefine certain values as an enumeration. Update comments. (mips_isa_table): New. (ISA_MIPS*): Redefine to match enumeration. (OPCODE_IS_MEMBER): Modify to correctly test new INSN_ISA* values. opcodes/ * mips-opc.c (I3_32, I3_33, I4_32, I4_33, I5_33): New. (mips_builtin_opcodes): Use these new I* values.