X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=4935a2cf64e98a2f19101630f9982cfb5a3a4c7c;hb=75af7f6801beb09d1c2726a1c80b92ef92ee2fce;hp=2976b944bdfb7c75e2b0b68701810166b0850515;hpb=d7faa9e713540e28182dcc3d08cfd6ff7c6dd4b6;p=binutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2976b944bdf..4935a2cf64e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,491 @@ +2001-07-10 Jim Blandy + + Clean up the D10V port so that GDB and the target program no + longer disagree on how big pointers are. + * findvar.c (value_from_register): Remove special case code for D10V. + * printcmd.c (print_frame_args): Same. + * valops.c (value_at, value_fetch_lazy): Same. + * values.c (unpack_long): Same. + * gdbarch.sh: Changes to effect the following: + * gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR, + gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr, + set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR, + gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr, + set_gdbarch_d10v_make_iaddr, D10V_DADDR_P, + gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p, + set_gdbarch_d10v_daddr_p, D10V_IADDR_P, + gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p, + set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW, + gdbarch_d10v_convert_daddr_to_raw_ftype, + gdbarch_d10v_convert_daddr_to_raw, + set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW, + gdbarch_d10v_convert_iaddr_to_raw_ftype, + gdbarch_d10v_convert_iaddr_to_raw, + set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations. + * gdbarch.c: Delete the corresponding definitions. + (struct gdbarch): Delete members d10v_make_daddr, + d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p, + d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw. + (startup_gdbarch): Remove initializers for the above. + (verify_gdbarch, gdbarch_dump): Don't verify or dump them any + more. + * d10v-tdep.c (d10v_register_virtual_type): Rather that + claiming the stack pointer and PC are 32 bits long (which they + aren't), say that the stack pointer is an int16_t, and the + program counter is a function pointer. This allows the rest + of GDB to make the appropriate conversions between the code + pointer format and real addresses. + (d10v_register_convertible, d10v_register_convert_to_virtual, + d10v_register_convert_to_raw): Delete function; no registers + are convertible now, so we use + generic_register_convertible_not instead. + (d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch + methods. + (d10v_push_arguments, d10v_extract_return_value): Remove special + cases for code and data pointers. + (d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and + the target agree on how large pointers are. Say that addresses + are 32 bits long. Register the address_to_pointer and + pointer_to_address conversion functions. Since no registers are + convertible now, register generic_register_convertible_not as the + gdbarch_register_convertible method instead of + d10v_register_convertible. Remove registrations for + d10v_register_convert_to_virtual, + d10v_register_convert_to_raw, gdbarch_d10v_make_daddr, + gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p, + gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and + gdbarch_d10v_convert_iaddr_to_raw. + + * printcmd.c (print_scalar_formatted): If we are printing an + address, remember that TARGET_ADDR_BIT is not always equal to + TARGET_PTR_BIT. + + * valops.c (value_cast): When casting a pointer to an integer, + don't convert it to an address. + +2001-07-10 Andrew Cagney + + * remote-utils.h (struct serial): Declare as opaque. Remove + include of "serial.h". + * Makefile.in (remote_utils_h): Update. + + * monitor.h (struct serial): Declare as opaque. Remove include of + "serial.h". + (struct monitor_ops): Replace serial_t with `struct serial *'. + * monitor.c (monitor_desc): Ditto. + +2001-07-10 Daniel Jacobowitz + + * mips-linux-tdep.c: New file. + * mips-linux-nat.c: New file. + * config/mips/linux.mh: New file. + * config/mips/linux.mt: New file. + * config/mips/xm-linux.h: New file. + * config/mips/nm-linux.h: New file. + * config/mips/tm-linux.h: New file. + * configure.host: Recognize mips*-*-linux*. + * configure.tgt: Likewise. + * NEWS: Mention mips*-*-linux* port. + +2001-07-09 Andrew Cagney + + * serial.h (struct serial): Rename `struct _serial_t'. + * serial.c (XMALLOC): Define. + (serial_open): Update. Use XMALLOC. + (serial_fdopen): Ditto. + +2001-07-07 Andrew Cagney + + * gdbtypes.h (builtin_type_void_data_ptr): Rename + builtin_type_ptr. + * gdbtypes.c (builtin_type_void_data_ptr): Update. + (build_gdbtypes): Update. + (_initialize_gdbtypes): Update. + * values.c (value_as_pointer): Update. + * utils.c (host_pointer_to_address): Update. + (address_to_host_pointer): Update. + +2001-07-08 Andrew Cagney + + * remote-udi.c (udi_wait): Make type, instead of name, of first + parameter a ptid_t. + +2001-07-07 Andrew Cagney + + * ser-mac.c: Make obsolete. + * Makefile.in (ser-mac.o): Ditto. + +2001-07-08 Eli Zaretskii + + * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo) + (read_memory_region, get_descriptor, display_descriptor) + (go32_sldt, go32_sgdt, go32_sidt): New functions. + (top-level): Include ctype.h, utsname.h, dos.h, and go32.h. Ifdef + away `disable' from dos.h, since breakpoint.h defines an enum + member of the same name, and GCC 2.7.2 barfs. + (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt, + dos-gdt, and dos-idt, all of them in the "info" class + +2001-07-07 Kevin Buettner + + * procfs.c (create_procinfo): Allocate space for saved_entryset + and saved_exitset. + (destroy_one_procinfo): Free space allocated to saved_entryset + and saved_exitset. + +2001-07-07 Andrew Cagney + + * TODO (5.1): Update. + +2001-07-07 Andrew Cagney + + * symtab.c (main_name): New function. + (set_main_name): New function. + * symtab.h: Declare. + * TODO: Update + + From 2000-03-05 Anthony Green : + * dbxread.c (process_one_symbol): Handle the N_MAIN stab by + setting main_name. + * blockframe.c (inside_main_func): Use main_name instead of + "main". + * symtab.c (find_main_psymtab): Ditto. + * source.c (select_source_symtab): Ditto. + * nlmread.c (nlm_symfile_read): Ditto. + * rs6000-tdep.c (skip_prologue): Ditto. + +2001-07-07 Andrew Cagney + + * TODO: Convert most items into PRs. + +2001-07-07 Mark Kettenis + + * lin-lwp.c (status_to_str): New function. + (lin_lwp_wait): Use it to print debug messages where appropriate. + +2001-07-06 Michael Chastain + + * i387-tdep.c (print_i387_value): Fix pointer glitch. + +2001-07-07 Mark Kettenis + + * lin-lwp.c (count_events_callback): Fix formatting. Turn check + commented with "paranoia" into gdb_assert. + (select_event_lwp_callback): Likewise. + (cancel_breakpoints_callback): Bail out early if LP is the event + LWP. Add comment about backup up breakpoints. Fix formatting and + debug message. + (select_event_lwp): Make solely repsonsible for switching event + LWP. Fix formatting and remove bogus "ERROR" debug message. + Don't backup breakpoints from here. + (lin_lwp_wait): Don't touch LP->status, let select_event_lwp + handle that. Only call select_event_lwp if we're not waiting for + a specific LWP, i.e. when PID == -1. Backup breakpoints from here. + +2001-07-06 Michael Snyder + + * procfs.c (procfs_resume): Silence noisy warning. + +2001-06-12 Michael Snyder + + * lin-lwp.c: Prevent thread starvation by using a monte carlo + method to choose which of several event threads to handle next. + + (stop_wait_callback): Defer pushback of breakpoint events until + later; add SIGTRAP events to the queue of unhandled events. + Keep calling waitpid until SIGSTOP retrieved. If more than one + non-SIGSTOP event is retrieved, push them back onto the process + queue using kill. + (count_events_callback, select_singlestep_lwp_callback, + select_event_lwp_callback, cancel_breakpoints_callback, + select_event_lwp): New functions. Implement monte carlo method + for selecting which of several SIGTRAP threads to handle next. + Push back the breakpoint event for all threads other than the + selected one. + (lin_lwp_wait): Call select_event_lwp to decide which of several + sigtrapped lwps to handle next. + (resume_callback): Disable code that attempts to handle + step_resume breakpoints. Let core gdb handle this. + +2001-07-06 Jim Blandy + + * gdbtypes.h (builtin_type_void_func_ptr): New builtin type. + * gdbtypes.c (builtin_type_void_func_ptr): Define the variable. + (build_gdbtypes): Initialize it. + (_initialize_gdbtypes): Swap it. + +2001-07-04 Daniel Jacobowitz + + * mips-tdep.c (mips32_op): Correct offset. + (itype_op): Likewise. + (itype_rs): Fix formatting. + (itype_immediate): Fix formatting. + (jtype_op): Correct offset. + (jtype_target): Fix formatting. + (rtype_op): Correct offset. + (rtype_rs): Fix formatting. + (rtype_rt): Likewise. + (rtype_rd): Likewise. + (rtype_shamt): Likewise. + (rtype_funct): Likewise. + + (mips32_next_pc): Fix formatting and comments. Recognize + coprocessor 1 branches. Check the correct field for BLT family + branches. Use itype_rt instead of itype_rs for the second register + of a BNE or BNEL branch. Move (unreachable) default case. + +2001-07-04 Andrew Cagney + + * ui-out.h (struct ui_out_impl): Add field is_mi_like_p. + (ui_out_is_mi_like_p): Declare. + * ui-out.c (ui_out_is_mi_like_p): Define. + (default_ui_out_impl): Initialize is_mi_like_p to zero. + * cli-out.c (cli_ui_out_impl): Ditto. + * breakpoint.c (print_it_typical): Use ui_out_is_mi_like_p. + (watchpoint_check, print_one_breakpoint, mention): Ditto. + * infrun.c (print_stop_reason, normal_stop): Ditto. + +2001-07-05 Daniel Jacobowitz + + * mips-tdep.c (mips_software_single_step): New function. + * config/mips/tm-mips.h: Add prototype for + mips_software_single_step. + +2001-07-05 Daniel Jacobowitz + + * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead + of greg_t. + (fill_gregset): Likewise. + +2001-07-05 Andrew Cagney + + * objfiles.c (open_mapped_file): Use lbasename instead of + basename. + +2001-07-05 Jim Blandy + + * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs, + show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp, + d10v_write_sp, d10v_write_fp, d10v_read_fp, + d10v_push_return_address): Call the functions d10v_make_daddr, + d10v_make_iaddr, d10v_convert_iaddr_to_raw, and + d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR, + D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and + D10V_CONVERT_DADDR_TO_RAW. + + * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix. + +2001-07-05 Mark Kettenis + + * config/i386/xm-go32.h (HOST_I386): Removed. + * config/i386/xm-linux.h (HOST_I386): Removed. + +2001-07-04 Mark Kettenis + + * i387-tdep.c (print_i387_value): Add extra space after final full + stop in comment. + +2001-07-04 Andrew Cagney + + * TODO (5.1): Update. Doco changes committed. + +2001-06-29 Andrew Cagney + + * config/arm/tm-arm.h: Include "floatformat.h". + +2001-06-29 Andrew Cagney + + * i387-tdep.c: Include "gdb_assert.h". + (print_i387_value): Use extract_floating to extract the FP value + from a zero padded local buffer. + +2001-06-28 Andrew Cagney + + * TODO: Delete all thread items. The thread code was overhauled. + +2001-07-04 Elena Zannoni + + * memattr.c (create_mem_region): Move n to next memory region, + to avoid infinite loop. + + * memattr.h: Add copyright statement. + * memattr.c: Ditto. + +2001-07-04 Jim Blandy + + * dwarf2read.c (struct partial_die_info): New member: has_pc_info. + (read_partial_die): Delete fourth argument; we return this info in + the struct partial_die_info object itself now. + (dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the + has_pc_info field of the partial die struct, rather than passing a + variable by reference to read_partial_die. + + * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous + code in loop condition. + +2001-07-03 Michael Snyder + + * thread_db (find_new_threads_callback, thread_db_thread_alive, + attach_thread): Update comments. + +2001-06-29 Ken Whaley + + * thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition + to TD_THR_UNKNOWN when looking for defunct zombie threads. + (thread_db_thread_alive): Ditto. + (find_new_threads_callback): Ditto. + +2001-07-02 Daniel Jacobowitz + + * MAINTAINERS: Add myself to the write-after-approval list. + +2001-07-02 Daniel Jacobowitz + + * solib-svr4.c: Include "elf/mips.h". + (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional. + +2001-07-02 Jim Blandy + + * dwarf2read.c (read_comp_unit, sibling_die, dump_die, + dump_die_list, store_in_ref_table, follow_die_ref): Make these + static; they're private functions. + +2001-07-01 Mark Elbrecht + + * coffread.c (coff_symfile_read): Parse DWARF2 info if present. + +2001-06-28 Elena Zannoni + + * TODO: Add import of readline 4.2 as a gdb 5.2 task. + +2001-06-29 Andrew Cagney + + * config/djgpp/fnchange.lst: Sort. + +2001-06-28 Andrew Cagney + + * config/djgpp/fnchange.lst: Rename mi0-var-block.exp, + mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp. + +2001-06-29 Andreas Jaeger + + * MAINTAINERS: Add myself to the write-after-approval list. + +2001-06-28 Andrew Cagney + + * remote-array.c (SWAP_TARGET_AND_HOST): Delete macro. + (get_hex_word): Don't use HOST_BYTE_ORDER. + (array_fetch_registers): Add variable ``reg''. Use + store_unsigned_integer to byte-swap the register. Delete unused + local ``regs''. + +2001-06-28 Andrew Cagney + + * MAINTAINERS: Add Per Bothner to Java maintainers. + +2001-06-28 Andrew Cagney + + * rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default. + * rdi-share/hostchan.h (__unix): Hack, provide a default value. + * rdi-share/host.h (__unix): Hack, define when __NetBSD__. + * TODO: Update. + * MAINTAINERS: Update. arm-elf builds. + +2001-06-28 Jim Blandy + + * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix. + + * d10v-tdep.c (d10v_frame_chain_valid, d10v_use_struct_convention, + d10v_breakpoint_from_pc, d10v_register_byte, + d10v_register_raw_size, d10v_register_virtual_size, + d10v_register_virtual_type, d10v_register_convertible, + d10v_register_convert_to_virtual, d10v_register_convert_to_raw, + d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p, + d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw, + d10v_store_struct_return, d10v_store_return_value, + d10v_extract_struct_value_address, d10v_frame_saved_pc, + d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue, + d10v_frame_chain, d10v_frame_init_saved_regs, + d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc, + d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp, + d10v_push_return_address, d10v_push_arguments, + d10v_extract_return_value): Make these functions static. + +2001-06-28 Andrew Cagney + + From Fernando Nasser: + * infrun.c (handle_inferior_event): Handle "nexti" inside function + prologues. + +2001-06-28 Michael Snyder + + * infrun.c (handle_inferior_event): Replace prev_pc test in all + calls to bpstat_stop_status (removed in 1999-09-24). This test + helps distinguish stepping over a breakpoint trap from stepping + thru a jump to the instruction after a breakpoint trap. + (handle_inferior_event): Don't bother writing the PC if + DECR_PC_AFTER_BREAK is zero (optimization). + * breakpoint.c (bpstat_stop_status): Add comment explaining the + purpose and usage of the "not_a_breakpoint" argument in computing + the breakpoint address. + +2001-06-28 Andrew Cagney + + From 2000-12-03 Stephane Carrez : + * monitor.c (setmem_resp_delim_pattern): New regexp pattern. + (setreg_resp_delim_pattern): Likewise. + (setmem_resp_delim_fastmap): New buffer. + (setreg_resp_delim_fastmap): Likewise. + (monitor_open): Initialize above regexp if they are defined. + (monitor_write_memory): Use regexp to check the result of write. + (monitor_store_register): Likewise to check result of register set. + +2001-06-28 Andrew Cagney + + From 2000-06-14 John Marshall : + * coff-solib.c: Include symfile.h and objfiles.h to make + OBJF_SHARED visible. + +2001-06-28 Andrew Cagney + + * configure.in (--enable-gdbmi): Enable by default. + * configure: Regenerate. + * TODO: Update. + * NEWS: Update + +2001-06-28 Joel Brobecker + + * solib-osf.c (osf_in_dynsym_resolve_code): Add a comment + explaining the consequences of always returning zero. No code + change. + +2001-06-28 Andrew Cagney + + From 2001-06-08 Daniel Jacobowitz : + * defs.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_65 + to TARGET_SIGNAL_REALTIME_127. + * target.c (struct signals): Add SIG63 to SIG127. + (target_signal_from_host): Handle up to 127 signals. + (do_target_signal_to_host): Likewise. + +2001-06-27 Andrew Cagney + + * remote-sds.c (sds_start_remote): Change type of ``c'' to int + from possibly unsigned char. + +2001-06-27 Andrew Cagney + + * ser-ocd.c: Delete file. + * Makefile.in (ALLDEPFILES): Remove ser-ocd.c + (ser-ocd.o): Delete target. + * TODO: Update. + * NEWS: Update. + +2001-06-27 Andrew Cagney + + * MAINTAINERS (Write After Approval): Sort. + (Past Maintainers): Daniel Berlin stepped down as C++ maintainer. + 2001-06-26 Andrew Cagney * breakpoint.c (breakpoint_1): Always output the breakpoint