summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * win32-low.c (attaching): New global.Pedro Alves2007-12-032-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.
* * server.c (main): Don't report dll events on the initialPedro Alves2007-12-032-4/+10
| | | | connection on attaches.
* * server.c (main): Relax numerical bases supported for the pid ofPedro Alves2007-12-032-1/+6
| | | | the --attach command line argument.
* * win32-low.c (win32_attach): Call OpenProcess beforePedro Alves2007-12-032-17/+25
| | | | | DebugActiveProcess, not after. Add last error output to error call.
* * win32-low.c (win32_get_thread_context)Pedro Alves2007-12-033-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.
* * win32-low.c (soft_interrupt_requested, faked_breakpoint): NewPedro Alves2007-12-032-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.
* * win32-low.h (win32_thread_info): Add descriptions to thePedro Alves2007-12-033-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.
* *** empty log message ***gdbadmin2007-12-031-1/+1
|
* * win32-low.c (win32_wait): Don't read from the inferior when itPedro Alves2007-12-022-3/+5
| | | | has already exited.
* * Makefile.in (win32_low_h): New variable.Pedro Alves2007-12-022-1/+12
| | | | | (win32-low.o): Add dependency on $(win32_low_h). (win32-arm-low.o, win32-i386-low.o): New rules.
* daily updateAlan Modra2007-12-021-1/+1
|
* 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2007-12-022-2/+8
| | | | | * win32-nat.c (win32_resume): Set the trace bit in the thread identified by inferior_ptid.
* *win32-nat.c (open_process_used): New static variable.Christopher Faylor2007-12-022-16/+31
| | | | | | | | | | | (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.
* *** empty log message ***gdbadmin2007-12-021-1/+1
|
* daily updateAlan Modra2007-12-011-1/+1
|
* * hostio.c: Correct copyright year.Daniel Jacobowitz2007-12-012-1/+5
|
* *** empty log message ***gdbadmin2007-12-011-1/+1
|
* daily updatesid-snapshot-20071201Alan Modra2007-11-301-1/+1
|
* * remote.c (remote_cmdlist): New variable.Daniel Jacobowitz2007-11-3019-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.
* * infrun.c (handle_inferior_event): Don'tVladimir Prus2007-11-302-17/+11
| | | | ignore beakpoints if trap_expected is set.
* Make insert_breakpoints return void.Vladimir Prus2007-11-304-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.
* bfd/Richard Sandiford2007-11-302-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.
* *** empty log message ***gdbadmin2007-11-301-1/+1
|
* daily updateAlan Modra2007-11-291-1/+1
|
* 2007-11-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>cgen-snapshot-20071201Paolo Bonzini2007-11-292-12/+25
| | | | | * config-ml.in: Robustify against white space in absolute file names.
* bfd/Mark Shinwell2007-11-2912-37/+355
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* include/opcode/Mark Shinwell2007-11-294-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.
* PR ld/5398Nick Clifton2007-11-292-4/+16
| | | | | * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Do not complain if there is no glue bfd, just return.
* Stop infrun from tracking breakpoint insertion status.Vladimir Prus2007-11-294-49/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The checks of breakpoints_inserted before calling remove_breakpoints are removed, as remove_breakpoint won't touch uninserted breakpoints. In a number of places, we're interested if a breakpoint is inserted at particular PC, and we now use breakpoint_inserted_here_p. In a few places, insert_breakpoints can be called unconditionally, since it won't try to insert already inserted breakpoint. * breakpoint.h (regular_breakpoint_inserted_here_p): New declaration. * breakpoint.c (regular_breakpoint_inserted_here_p): New. (breakpoint_inserted_here_p): Use regular_breakpoint_inserted_here_p. * infrun.c (breakpoints_inserted): Remove. (resume): Don't check for breakpoints_inserted before remove_hw_watchpoints. Use breakpoint_inserted_here_p. (proceed, init_wait_for_inferior): Don't set breakpoints_inserted. (handle_inferior_event): Don't use breakpoints_inserted. Use breakpoints_meant_to_be_inserted and breakpoints_inserted_here_p. (insert_step_resume_breakpoint_at_sal, keep_going): Use breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted. (normal_stop): Don't check for breakpoints_inserted. Don't set breakpoints_inserted. (keep_going): Don't check for breakpoints_inserted. (insert_step_resume_breakpoint_at_sal): Don't insert breakpoints
* *** empty log message ***gdbadmin2007-11-291-1/+1
|
* daily updateAlan Modra2007-11-281-1/+1
|
* * breakpoint.c (watch_command_1): When the watchpoint isn't localJim Blandy2007-11-282-1/+7
| | | | | to any frame, initialize watchpoint_frame using null_frame_id, not a memset.
* * internal.h (ELF_IS_SECTION_IN_SEGMENT): Adjust to cope withNathan Sidwell2007-11-282-3/+9
| | | | segments at the end of memory.
* * elf-m10300.c (mn10300_elf_relax_section): Extend previous fix to cover ↵Nick Clifton2007-11-282-2/+7
| | | | | | | | | forward jumps. * ld-mn10300/i135409-5.s: New test case. Check for relaxation to a 16-bit backward jump instruction. * ld-mn10300/i135409-5.t: Linker script for the new test. * ld-mn10300/i135409-5.d: Expected disassembly of new test. * ld-mn10300/mn10300.exp: Run the new test.
* * infrun.c (resume): Set right thread even ifVladimir Prus2007-11-282-1/+7
| | | | stepping over breakpoint using software single step.
* *** empty log message ***gdbadmin2007-11-281-1/+1
|
* (print_varobj): Revert change from 2007-08-31.Nick Roberts2007-11-271-8/+12
| | | | (mi_print_value_p): Guard against type = NULL.
* *** empty log message ***Nick Roberts2007-11-271-0/+5
|
* daily updateAlan Modra2007-11-271-1/+1
|
* * dfp.c (decimal_from_string): Remove superfluous newline fromThiago Jung Bauermann2007-11-274-4/+13
| | | | | | | | error string. (decimal_to_string): Likewise. * printcmd.c (printf_command): Change string buffer to use MAX_DECIMAL_STRING constant. * value.c (value_from_decfloat): Likewise.
* * Makefile.in (ALL_TARGET_OBS): Remove object files that requireUlrich Weigand2007-11-275-154/+664
| | | | | | | | | | | 64-bit CORE_ADDR and BFD support, move them to ... (ALL_64_TARGET_OBS): ... this new variable. * configure.ac: Check for --enable-64-bit-bfd option. Only add 64-bit targets with --enable-targets=all if BFD supports 64-bit. * configure: Regenerate. * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim all elf32-i386 executables, only cygwin core files.
* 2007-11-27 Andreas Krebbel <krebbel1@de.ibm.com>Andreas Krebbel2007-11-271-6/+6
| | | | | | * s390-opc.txt ("tcet", "tcdt", "tcxt", "tget", "tgdt", "tgxt"): Removed. ("tdcet", "tdcdt", "tdcxt", "tdget", "tdgdt", "tdgxt"): Added.
* 2007-11-27 Andreas Krebbel <krebbel1@de.ibm.com>Andreas Krebbel2007-11-271-0/+6
| | | | | | | | | | | | | * s390-opc.txt ("tcet", "tcdt", "tcxt", "tget", "tgdt", "tgxt"): Removed. ("tdcet", "tdcdt", "tdcxt", "tdget", "tdgdt", "tdgxt"): Added. 2007-11-27 Andreas Krebbel <krebbel1@de.ibm.com> * gas/s390/zarch-z9-ec.d: ("tcet", "tcdt", "tcxt", "tget", "tgdt", "tgxt"): Removed. ("tdcet", "tdcdt", "tdcxt", "tdget", "tdgdt", "tdgxt"): Added. * gas/s390/zarch-z9-ec.s: Likewise.
* *** empty log message ***gdbadmin2007-11-271-1/+1
|
* daily updateAlan Modra2007-11-261-1/+1
|
* *** empty log message ***gdbadmin2007-11-261-1/+1
|
* daily updateAlan Modra2007-11-251-1/+1
|
* gdb/Jan Kratochvil2007-11-255-102/+225
| | | | | | | | | | * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing code with its variables OBJFILE, CU_HEADER and OBFD into ... (dwarf2_ranges_read): ... a new function. (read_partial_die): Implemented the parsing of `DW_AT_ranges'. gdb/testsuite/ * gdb.dwarf2/dw2-ranges.S, gdb.dwarf2/dw2-ranges.exp: New files.
* *** empty log message ***gdbadmin2007-11-251-1/+1
|
* daily updateAlan Modra2007-11-241-1/+1
|