3 * aix-thread.c (pdc_read_regs): Minor reformatting.
7 * thread.c (print_thread_info): Don't insist
8 on having current thread if there are no
13 * infcmd.c (attach_command_post_wait)
14 (attach_command_continuation): New.
15 (attach_command): Support background async execution, and async
16 execution in synchronous mode.
20 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
21 * symmisc.c (dump_symtab_1): Likewise.
22 * wrapper.c (gdb_value_struct_elt): Likewise.
26 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
30 * linux-nat.c (linux_nat_filter_event): New, refactored from
32 (linux_nat_wait): Call linux_nat_filter_event.
36 * top.c (execute_command): Fix uninitialized variable error.
40 * Makefile.in (amd64nbsd-nat.o): New dependency.
41 * amd64nbsd-nat.c: Include "nbsd-nat.h".
42 (_initialize_amd64nbsd_nat): Update target vector to use
43 nbsd_pid_to_exec_file.
44 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
48 Remove ignoring leading exec events code.
49 * fork-child.c (startup_inferior): Do not set
50 inferior_ignoring_leading_exec_events.
51 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
52 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
53 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
54 (handle_inferior_event): Remove code for ignoring leading exec
56 * target.c (update_current_target): Do not inherit, or default,
57 to_reported_exec_events_per_exec_call.
58 (debug_to_reported_exec_events_per_exec_call): Remove.
59 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
60 * target.h (target_reported_exec_events_per_exec_call): Remove.
61 (struct target): Remove the to_reported_exec_events_per_exec_call
66 Implement -thread-info.
67 * gdbthread.h (print_thread_info): Declare.
69 * thread.c (print_thread_info): New, extracted
70 from info_threads_command and adjusted to
72 (info_threads_command): Use print_thread_info.
73 * Makefile.in: Update dependencies.
75 * mi/mi-cmds.c (mi_cmds): Specify a handler
77 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
78 * mi/mi-main.c (mi_cmd_thread_info): New.
79 (mi_cmd_list_features): Include 'thread-info'.
83 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
84 to decide whether to match instruction patterns using "sw" and "sd".
88 * infcmd.c (jump_command): Postpone disabling stdin until after
93 * inflow.c (gdb_getpgrp): New.
94 (gdb_has_a_terminal): Use get_getpgrp.
95 (terminal_ours_1): If attach_flag is set, don't refetch
96 inferior_process_group.
100 * features/library-list.dtd: Allow "section" elements as children
101 of "library". Add "section" element and describe its attributes.
103 * solib-target.c (struct lm_info): Add section_bases member.
104 (library_list_start_segment): Error out if seen a section element.
105 (library_list_start_section): New.
106 (library_list_end_library): New.
107 (solib_target_free_library_list): Free section_bases.
108 (section_attributes): New.
109 (library_children): Make "segment" optional. Add "section" child.
110 (library_list_children): Register library_list_end_library.
111 (solib_target_relocate_section_addresses): Handle section bases.
113 * NEWS: Mention new qXfer:libraries:read section offsets support.
117 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
118 (make_exec_error_cleanup): Remove declarations.
119 * utils.c (exec_error_cleanup_chain): Remove.
120 (do_exec_error_cleanups, discard_exec_error_cleanups)
121 (make_exec_error_cleanup): Remove.
122 * event-loop.c (start_event_loop): Adjust call to
124 * event-top.c (async_enable_stdin): Remove the paramater dummy.
125 (async_disable_stdin): Don't register async_enable_stdin via
127 * inf-loop.c (inferior_event_handler): Don't
128 call do_exec_error_cleanups. Call async_enable_stdin instead.
129 * event-loop.c (start_event_loop): Adjust call to
131 * tui/tui-interp.c (tui_command_loop): Adjust call to
137 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
138 * breakpoint.c (bpstat_do_actions): In async mode,
139 don't jump to top expecting stop_bpstat to be already
141 * event-loop.c (start_event_loop): Call async_enable_stdin
143 * event-top.c (async_enable_stdin): Do nothing if sync_execution
145 (command_handler): Do not setup continuation here.
146 (command_line_handler_continuation): Move to...
147 * top.c (command_line_handler_continuation): ... here.
148 (execute_command): In async mode, register continuation.
149 Don't check frame's language in running in async mode.
150 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
151 * inf-loop.c (complete_execution): Inline into...
152 (inferior_event_handler): ... here. Clear target_executing before
153 doing any cleanups. Don't try to show prompt if the target was
155 * infcmd.c (signal_command): Add support for async mode.
156 (finish_command): Only add continuation if the target was
157 successfully resumed.
158 * remote.c (init_async_opts): Register to_get_thread_local_address
160 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
162 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
167 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
168 * exec.c (exec_bfd_mtime): Define.
169 (exec_close): Clear it.
170 (exec_file_attach): Set it.
171 * gdbcore.h (exec_bfd_mtime): Declare.
172 * source.c (find_source_lines): Do not use bfd_get_mtime.
176 * top.c (simplified_command_loop): Remove.
180 Remove unused remote.c hooks.
181 * remote.c (deprecated_target_resume_hook)
182 (deprecated_target_wait_loop_hook): Remove.
183 (remote_resume): Do not call deprecated_target_resume_hook.
184 (remote_wait): Do not call deprecated_target_wait_loop_hook.
185 (remote_async_wait): Likewise.
189 Implement MI notification for new threads.
190 * doc/observer.texi (new_thread): Document.
191 * observer.sh: Forward declare struct thread_info.
192 * thread.c (add_thread): Notify observer.
194 * interps.h (interp_init_ftype): New parameter
196 (interp_set): Likewise.
197 (top_level_interpreter_data): Declare.
198 * interps.c (interp_set): New parameter top_level.
199 Pass it to interpreter's init function. Remember
200 top level interpreter.
201 (interpreter_exec_cmd): Adjust.
202 (top_level_interpreter_data): New.
203 * main.c (captured_main): Pass 1 for top_level
204 parameter of interp_set.
205 * cli/cli-interp.c (cli_interpreter_init): New
207 * tui/tui-interp.c (tui_init): New parameter top_level.
209 * mi/mi-interp.c (mi_new_thread): New.
210 (mi_interpreter_init): If top level, register
211 observer for new threads.
213 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
217 * top.c (execute_command): Disable break and stop
218 commands in async mode.
224 * inf-loop.c (inferior_event_handler): Don't include remote.h.
225 Call target_stop in the INF_QUIT_REQ case.
226 * Makefile.in (inf-loop.o): Update.
230 * inf-loop.c (inferior_event_handler): Don't include remote.h.
231 Call target_stop in the INF_QUIT_REQ case.
232 * Makefile.in (inf-loop.o): Update.
236 * top.c (execute_command): Enable break, info and interrupt
237 commands in async mode.
242 * breakpoint.h (breakpoint_restore_shadows): New
244 * breakpoint.c (breakpoint_restore_shadows): New.
245 (read_memory_nobpt): Delete.
246 * gdbcore.h (read_memory_nobpt): Delete declaration.
247 * target.c (memory_xfer_partial): Call
248 breakpoint_restore_shadows.
249 (restore_show_memory_breakpoints)
250 (make_show_memory_beakpoints_cleanup): New.
251 (show_memory_breakpoints): New.
252 * target.h (make_show_memory_beakpoints_cleanup): Declare.
253 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
254 Make sure we see memory breakpoints when checking if
255 breakpoint is still there.
256 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
257 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
258 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
259 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
263 * thread.c (add_thread): Use printf_unfiltered to print.
267 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
268 that is true only on x86-solaris and x86_64-solaris.
269 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
270 with proc_get_LDT_entry.
274 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
275 * config.in, configure: Regenerate.
276 * fork-child.c (fork_inferior): Call create_tty_session.
277 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
278 (create_tty_session): New function.
279 * terminal.h: Declare create_tty_session.
284 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
285 * mipsread.c: Include elf/internal.h.
286 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
291 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
292 to get at the current architecture and at the target specific vector.
293 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
294 remove define of I387_ST0_REGNUM.
296 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
298 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
299 get at the current architecture
300 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
303 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
304 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
306 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
307 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
308 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
310 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
311 at the target specific vector.
313 (i386_get_longjmp_target): Use get_frame_arch to get at the current
314 architecture. Use gdbarch_tdep to get at the target specific vector.
316 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
317 update caller. Use gdbarch_tdep to get at the target specific vector.
319 (i386_register_to_value: Use get_frame_arch to get at the current
322 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
325 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
326 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
327 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
328 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
330 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
333 (i387_convert_register_p, i387_register_to_value,
334 i387_value_to_register): Update call for i386_fp_regnum_p.
336 * i387-tdep.h: Remove comment.
337 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
338 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
339 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
340 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
341 I387_MXCSR_REGNUM): Add target specific vector as parameter.
345 * Makefile.in (fork-child.o): Update.
346 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
347 argument. Gather all gdbserver features together.
348 * fork-child.c (exec_wrapper): New variable.
349 (fork_inferior): Use it.
350 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
351 (unset_exec_wrapper_command, _initialize_fork_child): New.
355 * source.c (directory_command): Modify the determination of
356 condition of terminal "from_tty".
360 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
364 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
365 of the data passing to strtoulst function.
366 (info_spu_signal_command): Likewise.
370 * mi/mi-interp.c (mi_command_loop): Remove
375 * remote.c (extended_remote_attach_1): Make local variable pid an int
380 * solib-svr4.c (svr4_same_1): New function, originally extracted
381 from svr4_same and expanded to handle the sparc64 case.
382 (svr4_same): Move up and reimplement using svr4_same_1.
383 (enable_break): Use svr4_same_1 to do shared library name comparisons.
387 * MAINTAINERS: Move self to Paper trail.
391 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
392 * event-loop.c (call_async_signal_handler): New.
393 * event-loop.h (call_async_signal_handler)
394 (gdb_call_async_signal_handler): Declare.
395 (mark_async_signal_handler): Add comments.
396 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
397 * mingw-hdep.c (sigint_event, sigint_handler): New.
398 (gdb_select): Use them. Wait for the readline signal handler
400 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
401 * posix-hdep.c (gdb_call_async_signal_handler): New function.
402 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
404 (remote_fileio_ctrl_c_signal_handler): Use
405 gdb_call_async_signal_handler.
406 (initialize_remote_fileio): Initialize sigint_fileio_token.
407 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
408 not initialize tokens here.
409 (handle_remote_sigint_twice): Likewise. Reinstall
410 handle_remote_sigint.
411 (async_remote_interrupt_twice): Just call interrupt_query.
412 (cleanup_sigint_signal_handler): Do not delete tokens.
413 (remote_interrupt, remote_interrupt_twice): Use
414 gdb_call_async_signal_handler.
415 (interrupt_query): Reinstall the default signal handler.
416 (_initialize_remote): Initialize tokens here.
420 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
421 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
422 Change the type of the lr register to code_ptr.
423 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
424 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
425 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
426 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
427 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
428 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
429 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
433 * MAINTAINERS: Update my email address.
438 * configure.ac: Set tcl configdir to win under mingw.
439 * configure: Regenerate.
443 * breakpoint.c (fetch_watchpoint_value): New function.
444 (update_watchpoint): Set and clear val_valid. Use
445 fetch_watchpoint_value. Handle unreadable values on the
446 value chain. Correct check for user-requested array watchpoints.
447 (breakpoint_init_inferior): Clear val_valid.
448 (watchpoint_value_print): New function.
449 (print_it_typical): Use it. Do not free or clear old_val. Print
450 watchpoints even if old_val == NULL.
451 (watchpoint_check): Use fetch_watchpoint_value. Check for values
452 becoming readable or unreadable.
453 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
454 (do_enable_watchpoint): Likewise.
455 * breakpoint.h (struct breakpoint): Update comment for val. Add
457 * NEWS: Mention watchpoints on inaccessible memory.
461 * Makefile.in (i386-nat.o): Update.
462 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
463 i386_use_watchpoints.
464 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
465 i386_use_watchpoints.
466 * i386-nat.c (i386_stopped_data_address): Take two arguments.
467 (i386_stopped_by_watchpoint): Update call.
468 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
469 * config/i386/nm-i386.h: Conditionalize definitions on
470 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
471 (i386_use_watchpoints): Declare.
472 (i386_stopped_data_address): Update.
473 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
474 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
478 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
479 * version.in: Bump version to 6.8.50.20080229-cvs.
483 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
488 * infcmd.c (notice_args_read): Print result of get_inferior_args.
492 * infcmd.c (kill_if_already_running): Make static. Use
493 target_require_runnable.
494 * target.c (target_require_runnable): New.
495 * target.h (target_require_runnable): Declare.
499 * frame.c (reinit_frame_cache): Only annotate if frames were
504 * regformats/reg-ppc.dat: Rename "ps" to "msr".
505 * regformats/reg-ppc64.dat: Likewise.
509 * features/Makefile (%.dat): Emit xmltarget statement.
511 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
512 Generate code to set gdbserver_xmltarget in init_registers_${name}.
514 * regformats/arm-with-iwmmxt.dat: Regenerate.
515 * regformats/mips64-linux.dat: Regenerate.
516 * regformats/mips-linux.dat: Regenerate.
517 * regformats/rs6000/powerpc-32.dat: Regenerate.
518 * regformats/rs6000/powerpc-64.dat: Regenerate.
519 * regformats/rs6000/powerpc-e500.dat: Regenerate.
521 * regformats/reg-arm.dat: Add xmlarch statement.
522 * regformats/reg-i386.dat: Likewise.
523 * regformats/reg-i386-linux.dat: Likewise.
524 * regformats/reg-x86-64-linux.dat: Likewise.
525 * regformats/reg-spu.dat: Likewise.
529 * remote.c (remote_wait, remote_async_wait): Stop if we receive
534 * utils.c (debug_timestamp): New.
535 (vfprintf_unfiltered): Print timestamps if requested.
536 (show_debug_timestamp): New.
537 (initialize_utils): Register "set debug timestamp".
538 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
542 * breakpoint.c (skip_prologue_sal): New function.
543 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
544 computed from a line number.
548 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
549 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
550 Set PC register type to "code_ptr".
551 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
552 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
553 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
554 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
555 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
556 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
557 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
562 * regformats/regdat.sh: Rename init_registers function in
563 generated file to init_registers_${name}.
565 * regformats/reg-crisv32.dat: Set "name" to crisv32.
566 * regformats/reg-ppc64.dat: Set "name" to ppc64.
567 * regformats/reg-s390x.dat: Set "name" to s390x.
571 * regcache.c (registers_changed): Call reinit_frame_cache.
575 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
576 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
577 and svr4_fetch_objfile_link_map.
578 * Makefile.in (sh-linux-tdep.o): Update.
582 * amd64-tdep.c (amd64_classify): Add support for decimal float
584 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
585 use the struct return convention.
589 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
590 to old format. Discard breakpoint address if shared library is
592 (breakpoint_1): Adjust formatting of table header accordingly.
596 * remote.c (remote_get_threadlist): If the response
597 is empty, don't try to parse it.
601 Unbreak 'target async'.
602 * serial.c (serial_async): Set the
603 handler function before enabling async
608 * solib-svr4.c (enable_break): Convert r_brk to a code address.
612 * remote.c (extended_remote_attach_1): Set attach_flag.
613 (extended_remote_create_inferior_1): Clear attach_flag.
617 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
619 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
620 * solib-svr4.c (solib_svr4_r_brk): New.
621 (open_symbol_file_object, svr4_current_sos): Always check the
623 (svr4_fetch_objfile_link_map): Do not set debug_base.
624 (enable_break): Use r_brk if it is set.
625 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
626 (svr4_lp64_fetch_link_map_offsets): Likewise.
627 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
632 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
633 trad_frame_saved_reg.
634 (trad-frame.h): New include.
636 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
637 instead of frame_obstack_zalloc.
638 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
640 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
644 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
645 from disassemble_info instead of gdbarch_byte_order.
647 * mips-tdep.c (gdb_print_insn_mips): Likewise.
648 * arm-tdep.c (gdb_print_insn_arm): Likewise.
652 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
653 gdbarch as parameter.
655 * gdbarch.{c,h}: Regenerate.
657 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
659 * mem-break.c (default_memory_insert_breakpoint)
660 (default_memory_remove_breakpoint): Likewise.
661 * target.h (default_memory_remove_breakpoint)
662 (default_memory_insert_breakpoint): Likewise.
664 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
665 parameter. Replace current_gdbarch by gdbarch.
666 * m32r-tdep.c (m32r_memory_insert_breakpoint)
667 (m32r_memory_remove_breakpoint): Likewise.
671 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
675 * NEWS: Add entry describing Add support improvements.
679 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
684 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
685 register_offset_hack anymore.
687 * regcache.{c,h} (register_offset_hack): Remove.
691 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
693 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
694 current_gdbarch by gdbarch.
695 (hppa64_hpux_find_global_pointer): Likewise.
696 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
697 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
700 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
702 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
704 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
707 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
708 replace current_gdbarch by gdbarch.
709 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
713 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
714 and replace current_gdbarch by gdbarch.
716 (store_register): Update call for exec_one_dummy_insn.
717 (fetch_register, store_register): Update call of regmap.
719 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
720 parameter and replace current_gdbarch by gdbarch.
722 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
723 the current architecture. Update call for getregs_supplies and
725 (ppcnbsd_fetch_inferior_registers): Likewise.
727 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
728 replace current_gdbarch by gdbarch.
729 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
730 get_regcache_arch to get at the current architecture. Update call for
735 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
740 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
744 * NEWS: Mention pending breakpints in MI.
748 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
752 Add script to build and test GDB using enable-targets=all.
754 * gdb_buildall.sh: New file.
758 * NEWS (New native configurations): Xtensa GNU/Linux.
759 (New targets): Xtensa GNU/Linux.
760 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
762 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
763 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
764 * configure.tgt (xtensa*-*-linux*): New entry.
765 * xtensa-config.c (xtensa_tdep): New variable.
766 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
767 (rmap): Change format based on new macro XTREG.
768 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
769 * xtensa-linux-nat.c: New.
770 * xtensa-linux-tdep.c: New.
771 * xtensa-xtregs.c: New.
772 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
773 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
774 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
775 (xtensa_register_t): New field coprocessor.
776 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
777 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
778 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
779 Update to handle privileged registers.
780 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
781 (xtensa_push_dummy_call): Set windowstart register correctly.
782 (call0_analyze_prologue): Initialize xtensa_default_isa.
783 (xtensa_derive_tdep): New.
784 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
785 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
786 Call xtensa_derive_tdep().
787 * config/xtensa/linux.mh: New.
788 * regformats/reg-xtensa.dat: New.
792 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
793 (filenames.h): New include.
794 * Makefile.in (corelow.o): Add dependency for filenames.h.
798 * source.c (find_and_open_source): Always rewrite absolute filenames.
802 * breakpoint.c: #include "hashtab.h".
803 (ambiguous_names_p): New fn.
804 (update_breakpoint_locations): When restoring bp enable status, don't
805 compare function names if any functions have same name.
806 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
810 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
811 instead of just a VEC*. Update use of SV.
812 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
816 * NEWS: Put all new commands since gdb-6.7 together.
820 * ada-lang.c: #include "vec.h".
821 (struct string_vector, new_string_vector, string_vector_append):
823 (char_ptr): New typedef.
824 (DEF_VEC_P (char_ptr)): New VEC type.
825 (symbol_completion_add): Update profile to take the new VEC type
826 instead of the old string_vector structure. Update code accordingly.
827 (ada_make_symbol_completion_list): Use the new VEC type instead of
828 the old string_vector structure, and update the code accordingly.
829 * Makefile.in (ada-lang.o): Add dependency on vec.h.
833 * p-exp.y: Set current_type in missing places.
834 (leftdiv_is_integer): New static variable.
835 Typecast right operand of BINOP_DIV to long_double if both operands
840 * remote-mips.c (set_breakpoint): Rename to...
841 (mips_set_breakpoint): ... this.
842 (clear_breakpoint): Rename to...
843 (mips_clear_breakpoint): ... this.
844 (common_breakpoint): Rename to...
845 (mips_common_breakpoint): ... this.
846 (check_lsi_error): Rename to...
847 (mips_check_lsi_error): ... this.
851 * language.h (struct language_defn): Add new field
852 la_make_symbol_completion_list.
853 * symtab.c (default_make_symbol_completion_list): Renames
854 make_symbol_completion_list.
855 (make_symbol_completion_list): New function.
856 * symtab.h (default_make_symbol_completion_list): Add declaration.
857 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
858 (auto_language, local_language): Likewise.
859 * objc-lang.c (objc_language_defn): Likewise.
860 * scm-lang.c (scm_language_defn): Likewise.
861 * m2-lang.c (m2_language_defn): Likewise.
862 * f-lang.c (f_language_defn): Likewise.
863 * jv-lang.c (java_language_defn): Likewise.
864 * p-lang.c (pascal_language_defn): Likewise.
865 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
866 (minimal_language_defn): Likewise.
867 * ada-lang.c (struct string_vector): New structure.
868 (new_string_vector, string_vector_append, ada_unqualified_name)
869 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
870 (ada_make_symbol_completion_list): New functions.
871 (ada_language_defn): Set la_make_symbol_completion_list.
872 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
873 this function is static.
877 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
878 to account for call site optimizations.
882 * tracepoint.c (read_actions): Handle end-of-text indicator
883 in action list properly. (Committed by Jim Blandy)
887 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
888 pseudoregister, not an internal error.
889 Reported by: Andrzej Zaborowski
893 * varobj.c (c_value_of_variable): Use xstrdup.
897 Update stored rendition of varobj value when format changes.
898 * varobj.c (varobj_set_display_format): Recomputed
900 (c_value_of_variable): Return print_value.
904 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
905 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
906 * valops.c (value_one): New function.
907 * value.h (value_one): Declare.
909 Fix argument promotion for binary arithmetic ops for C.
910 * valarith.c (unop_result_type): New fn.
911 (binop_result_type): New fn.
912 (value_binop): Move result type computation to binop_result_type.
913 (value_pos, value_neg, value_complement): Move result type
914 computation to unop_result_type.
917 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
918 Return basetype, fieldno if found. All callers updated.
919 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
921 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
922 * symfile.h (fill_in_vptr_fieldno): Delete.
926 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
928 * typeprint.c (*): Whitespace cleanup.
934 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
935 don't fit into registerson the stack the way GCC does.
939 * symtab.c (symbol_set_names): Do not add an entry in the demangling
940 hash table for Ada symbols. Just store the linkage name as is,
941 and leave the demangled_name as NULL.
945 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
947 (new_symbol): Likewise.
951 * breakpoint.c (break_command_1): Return void.
952 (break_command_really): Return void. Rethrow
953 exceptions instead of returning.
954 (gdb_breakpoint): Remove the error_message parameter.
955 Return void. Rename to set_breakpoint.
956 * gdb.h (gdb_breakpoint): Rename and move to...
957 * breakpoint.h (set_breakpoint): ...here.
958 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
959 event hooks even if exception is thrown. Adjust to
960 gdb_breakpoint interface changes.
965 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
966 float in both first and second word in the doubleword, to support
971 Properly rethrow exception. This fixes errors
972 about non-existent functions for -break-insert.
973 * breakpoint.c (break_command_really): Use throw_exception
974 for rethrowing. If rethrowing, don't print the exception.
978 * NEWS: Mention Decimal Floating Point support.
982 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
983 value type to builtin_type_void_func_ptr.
987 * s390-tdep.c (is_float_singleton, is_float_like,
988 alignment_of, s390_return_value): Make checks for
989 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
994 * infcmd.c (default_print_registers_info): Also print hex
995 raw contents for TYPE_CODE_DECFLOAT registers.
996 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
997 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
998 (rs6000_register_name): Add support for DFP pseudo-registers.
999 (rs6000_pseudo_register_type): Likewise.
1000 rs6000_pseudo_register_reggroup_p): Likewise.
1001 (ppc_pseudo_register_read): New function.
1002 (ppc_pseudo_register_write): Likewise.
1003 (rs6000_pseudo_register_read): Likewise.
1004 (rs6000_pseudo_register_write): Likewise.
1005 (e500_pseudo_register_read): Move checks to
1006 rs6000_pseudo_register_read.
1007 (e500_pseudo_register_write): Move checks to
1008 rs6000_pseudo_register_write.
1009 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
1010 rs6000_pseudo_register_read and rs6000_pseudo_register_write
1011 in gdbarch if SPE or DFP is available. Adjust gdbarch's
1012 num_pseudo_regs to account for DFP pseudo regs.
1016 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
1017 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
1018 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
1019 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
1020 e500_pseudo_register_read, e500_pseudo_register_write): Use
1021 IS_SPE_PSEUDOREG macro.
1022 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
1023 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
1024 Remove initialization of tdep->ppc_ev31_regnum.
1028 * printcmd.c (print_formatted): Handle references as for unformatted
1033 * eval.c (evaluate_subexp_standard): Add handling of user
1034 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
1038 * eval.c (evaluate_subexp_standard): Support
1039 BINOP_INTDIV opcode.
1043 * valarith.c (value_binop): Add floating-point BINOP_MIN and
1045 For BINOP_EXP, use length and signedness of left operand only for
1046 result, as for shifts.
1047 For integral operands to BINOP_EXP, use new integer_pow and
1048 uinteger_pow functions so as to get full range of results.
1049 (integer_pow): New function.
1050 (uinteger_pow): New function.
1054 Use vector for varobj_list_children interface.
1055 * gdb/varobj.c (varobj_list_children): Return vector
1057 * gdb/varobj.h (varobj_list_children): Adjust
1059 (varobj_p): Declare. Declare vector thereof.
1060 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
1061 for varobj_list_children change.
1062 * Makefile.in (varobj_h): Update dependencies.
1066 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
1067 TYPE_CODE_DECFLOAT arguments.
1068 (ppc64_sysv_abi_push_dummy_call) Likewise.
1069 (get_decimal_float_return_value): New function.
1070 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
1071 values by calling get_decimal_float_return_value.
1072 (ppc64_sysv_abi_return_value): Likewise.
1076 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
1077 for preprocessor macro information. Formatting changes.
1081 * remote.c (struct remote_state): Add cached_wait_status.
1082 (remote_exec_file): New variable.
1083 (PACKET_vAttach, PACKET_vRun): New constants.
1084 (extended_remote_restart): Do not query for status.
1085 (struct start_remote_args): New.
1086 (remote_start_remote): Take it as a second argument. Check
1087 whether the target is running. Issue an error for non-running
1088 non-extended targets. Cache the wait status. Set inferior_ptid
1090 (remote_open_1): Prompt to disconnect non-running targets. Make
1091 sure the target is marked running. Do not set inferior_ptid here.
1092 Update call to remote_start_remote. Do not call remote_check_symbols
1093 if the target is not running.
1094 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
1095 argument. Handle a non-running target.
1096 (remote_detach): Use it.
1097 (extended_remote_detach): New.
1098 (remote_disconnect): Fix typo. Use remoute_mourn_1.
1099 (extended_remote_attach_1, extended_remote_attach)
1100 (extended_async_remote_attach): New.
1101 (remote_vcont_resume): Remove unused variable.
1102 (remote_wait, remote_async_wait): Use any cached wait status.
1103 (putpkt_binary, getpkt): Clear any cached wait status.
1104 (extended_remoute_mourn_1): New.
1105 (extended_remote_mourn): Use it.
1106 (extended_async_remote_mourn, extended_remote_run): New.
1107 (extended_remote_create_inferior_1): New.
1108 (extended_remote_create_inferior): Use it.
1109 (extended_remote_async_create_inferior): Likewise.
1110 (remote_xfer_partial): Skip for non-executing targets.
1111 (init_extended_remote_ops): Set to_detach and to_attach.
1112 (init_extended_async_remote_ops): Likewise. Use
1113 extended_async_remote_mourn.
1114 (_initialize_remote): Register vAttach, vRun, and
1115 set remote exec-file.
1116 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
1120 * Makefile.in (symfile.o): Update.
1121 * NEWS: Mention exec tracing support.
1122 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
1124 * infcmd.c (kill_if_already_running, detach_command)
1125 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
1126 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
1127 (follow_exec): Do not check may_follow_exec. Do not mourn and push
1128 targets. Apply the sysroot path to the loaded executable. Use
1129 no_shared_libraries.
1130 * linux-nat.c (linux_child_follow_fork): Print fork following
1131 messages if verbose.
1132 (kill_wait_callback): Kill again before waiting a second time.
1133 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
1134 no_shared_libraries.
1138 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
1142 * nto-tdep.h: Remove #include "defs.h".
1143 * nto-tdep.c: Add #include "defs.h".
1144 * Makefile.in (nto_tdep_h): Update dependencies.
1145 (nto-tdep.o): Likewise.
1149 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
1151 (proceed, start_remote): Update call to wait_for_inferior.
1152 * inferior.h (wait_for_inferior): Update declaration.
1153 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
1154 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
1155 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
1156 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
1160 * varobj (adjust_value_for_child_access): Added checking for
1161 returned value from gdb_value_ind.
1162 (c_describe_child): Likewise.
1163 (cplus_describe_child): Fixed a typo.
1167 * MAINTAINERS: Update my info.
1171 Use multiple locations for hardware watchpoints.
1172 This eliminates the need to traverse value chain, doing
1173 various checks, in three different places.
1175 * breakpoint.h (struct bp_location): New fields
1176 lengths and watchpoint_type.
1177 (struct breakpoint): Remove the val_chain field.
1178 * breakpoint.c (is_hardware_watchpoint): New.
1179 (free_valchain): Remove.
1180 (update_watchpoint): New.
1181 (insert_bp_location): For hardware watchpoint, just
1183 (insert_breakpoints): Call update_watchpoint_locations
1184 on all watchpoints. If we have failed to insert
1185 any location of a hardware watchpoint, remove all inserted
1187 (remove_breakpoint): For hardware watchpoints, directly
1189 (watchpoints_triggered): Iterate over locations.
1190 (bpstat_stop_status): Use only first location of
1191 a resource watchpoint.
1192 (delete_breakpoint): Don't call free_valchain.
1193 (print_one_breakpoint): Don't print all
1194 locations for watchpoints.
1195 (breakpoint_re_set_one): Use update_watchpoint for
1200 Don't reset watchpoint block on solib load.
1202 * breakpoint.c (insert_bp_location): For watchpoints,
1203 recompute condition.
1204 (breakpoint_re_set_one): Instead of recomputing value
1205 and condition for watchpoints, just reset value and
1206 let insert_breakpoints/insert_bp_location recompute it.
1207 Don't do anything about disabled watchpoint.
1211 * valarith.c (value_binop): Handle unsigned integer
1216 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
1217 instruction pattern that appears frequently in position
1218 independent code. Fix bug in code which looks for "fmov" and
1219 backtracks if no "fmov" is found.
1223 * dbxread.c (read_dbx_symtab): Fix indentation.
1224 Reformat comments to 80 columns.
1225 Move local var def closer to only use.
1229 * fork-child.c (SHELL_FILE): Remove #ifndef.
1230 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
1234 * i386-tdep.c (i386_skip_noop): New function.
1235 (i386_analyze_prologue): Call i386_skip_noop function.
1239 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
1240 * win32-nat.c (win32_xfer_partial): Ditto.
1241 * target.c (default_xfer_partial): Minor whitespace adjustment.
1245 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
1246 strip bit 1 even if pc doesn't point to thumb code.
1250 * remote.c (remote_wait): Handle SIGINT between packets.
1251 (remote_async_wait): Likewise.
1256 * thread.c (add_thread_silent): Renamed
1258 (print_thread_events): New variable definition.
1259 (show_print_thread_events): New function.
1260 (_initialize_thread): Add "set print thread-events" and
1261 "show print thread-events" commands.
1262 (add_thread): Announce new thread.
1263 * gdbthread.h (add_thread_silent): Declare.
1264 (print_thread_events): New variable declaration.
1265 * inf-ttrace.c (inf_ttrace_wait): Don't
1266 inform about new thread, as add_thread is always
1267 called too, and will take care of that.
1268 * infrun.c (handle_inferior_event): Likewise.
1269 * procfs.c (procfs_wait): Likewise.
1270 * remote.c (remote_currthread): Likewise.
1271 * sol-thread.c (sol_thread_wait): Likewise.
1272 * win32-nat.c (get_win32_debug_event): Likewise.
1273 * linux-thread-db.c (attach_thread): Likewise.
1274 Remove the verbose parameter.
1275 (check_event): Make detach_thread be verbose
1276 only if print_thread_events is set.
1277 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
1278 about new thread. This is called only from
1279 linux-thread-db.c:attach_thread, which will take care.
1280 Remove the verbose parameter.
1281 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
1285 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
1289 * breakpoint.c (break_command_really): New parameter
1291 (break_command_1): Pass 0 as
1292 ignore_count to break_command_really.
1293 (gdb_breakpoint): Pass ignore_count to
1294 break_command_really.
1298 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
1299 sigcontext struct via pointer.
1300 (struct sigframe comment): Update to show new field `psc'.
1304 * infrun.c (handle_inferior_event): If
1305 we failed to remove breakpoints, error,
1306 don't try to increment PC by hand.
1310 Add NetBSD/hppa target and host support.
1312 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
1313 (hppabsd_gregset): Move to ...
1314 (hppabsd_regset_from_core_section): Rename
1315 hppaobsd_regset_from_core_section and move to ...
1316 (hppabsd_find_global_pointer): Update comment.
1317 (hppabsd_init_abi): Make global. Do not register
1318 hppabsd_regset_from_core_section.
1319 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
1321 (_initialize_hppabsd_tdep): Move to ...
1322 * hppaobsd-tdep.c: ... here. New file.
1323 * hppnbsd-tdep.c: New file.
1324 * hppnbsd-nat.c: New file.
1325 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
1326 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1327 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
1328 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
1329 * configure.host (hppa*-*-netbsd*): New entry.
1330 * configure.tgt (hppa*-*-netbsd*): New entry.
1331 (hppa*-*-openbsd*): Update.
1332 * NEWS (New native configuration): Mention NetBSD/hppa.
1333 (New targets): Mention NetBSD/hppa.
1337 * gdbarch.sh (function_list): Add new property bits_big_endian to
1339 * gdbarch.{c,h}: Regenerate.
1341 * value.c (struct value): Replace BITS_BIG_ENDIAN by
1342 gdbarch_bits_big_endian (comment).
1343 (unpack_field_as_long, modify_field): Likewise.
1344 * value.h: Likewise (comment).
1345 * valops.c (value_slice): Likewise.
1346 * valarith.c (value_subscript, value_bit_index): Likewise.
1347 * gdbtypes.h (field): Likewise (comment).
1348 * eval.c (evaluate_subexp_standard): Likewise.
1349 * dwarf2read.c (dwarf2_add_field): Likewise.
1350 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
1351 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
1353 * defs.h (BITS_BIG_ENDIAN): Remove.
1357 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
1359 * m2-exp.y (yylex): Likewise.
1360 * objc-exp.y (yylex): Likewise.
1362 * defs.h (DEPRECATED_STREQN): Remove.
1366 * MAINTAINERS: Update my email address.
1370 * README: Mention gdbserver/README.
1374 * valarith.c (value_binop): Handle BINOP_INTDIV
1375 for unsigned and signed integers.
1379 * s390-tdep.c (s390_gdbarch_init): Set default long double
1380 type to 128-bit IEEE quad.
1384 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
1388 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
1390 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
1391 * value.c: All callers changed.
1395 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
1396 DEPRECATED_STREQ by its expression.
1397 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
1398 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
1399 (scan_xcoff_symtab): Likewise.
1400 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
1401 * f-lang.c (find_common_for_function): Likewise.
1402 * objc-exp.y (parse_number): Likewise.
1404 * defs.h (DEPRECATED_STREQ): Remove.
1408 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
1409 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
1410 get_frame_arch to get at the current_architecture. Update AM33_MODE
1412 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
1413 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1415 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
1419 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
1421 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
1423 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
1424 current_gdbarch by gdbarch. Update caller.
1426 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
1427 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
1428 the current architecture. Update calls of
1429 amd64_native_gregset_supplies_p.
1430 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
1431 (amd64bsd_store_inferior_registers): Likewise.
1435 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
1436 Replace current_gdbarch by gdbarch. Update caller.
1440 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
1441 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
1442 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
1443 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
1444 (stabsect_build_psymtabs): Fix indentation.
1448 * corelow.c (core_xfer_partial): Comment, cut/paste error.
1452 * win32-nat.c (win32_create_inferior): Restore code calling
1453 CloseHandle on ProcessInformation structure.
1457 * configure.ac: Check for void * as 3 argument of ptrace.
1458 * configure: regenerate.
1462 * alpha-tdep.c (alpha_heuristic_proc_start)
1463 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
1464 current_gdbarch by gdbarch.
1466 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
1467 current architecture by frame_info. Update alpha_heuristic_proc_start
1470 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
1471 get_frame_arch to get at the current architecture by frame_info. Update
1472 alpha_sigtramp_register_address call.
1474 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
1475 current_gdbarch by gdbarch. Update caller.
1476 (convert_to_extended, convert_from_extended): Add endianess parameter
1477 for comparison. Update caller.
1478 (arm_extract_return_value, arm_store_return_value): Use
1479 get_regcache_arch to get at the current architecture.
1481 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
1482 current_gdbarch by gdbarch. Update caller.
1483 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
1484 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
1486 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
1487 gdbarch as parameter. Update caller.
1488 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
1489 current_gdbarch by gdbarch. Update caller.
1491 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
1492 update caller. Replace current_gdbarch by gdbarch.
1494 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
1495 the current architecture. Replace current_gdbarch by gdbarch.
1496 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1497 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
1498 expression. Add gdbarch as parameter and replace current_gdbarch with
1500 (M6811_TDEP): Remove.
1501 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
1503 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
1504 current_gdbarch by gdbarch. Update caller.
1506 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
1508 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
1511 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
1512 caller. Relace current_gdbarch by gdbarch.
1513 (altivec_register_p, spe_register_p): Likewise.
1514 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
1516 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
1517 altivec_register_p and spe_register_p.
1519 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
1520 caller. Replace current_gdbarch by gdbarch.
1521 (score_analyze_prologue): use get_frame_arch to get at the current
1524 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
1525 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
1526 current_gdbarch by gdbarch. Update caller.
1527 (sparc_frame_cache): Use get_frame_arch to get at the current
1529 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
1530 sparc_analyze_prologue.
1532 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
1537 * exec.c: #include "arch-utils.h"
1538 (print_section_info): Use gdbarch_from_bfd to get at the
1539 current architecture. Replace current_gdbarch. Fix indention. Replace
1540 deprecated_print_address_numeric by paddress.
1541 * Makefile.in (exec.o) Add dependency to arch-utils.h.
1543 * valprint.c (val_print_string): Replace
1544 deprecated_print_address_numeric.
1545 * tracepoint.c (trace_mention, scope_info): Likewise.
1546 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
1547 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
1548 (maintenance_check_symtabs): Likewise.
1549 * symfile.c (list_overlays_command): Likewise.
1550 * stack.c (frame_info, print_block_frame_labels): Likewise.
1551 * printcmd.c (print_address, print_address_demangle)
1552 (address_info): Likewise.
1553 * corefile.c (memory_error): Likewise.
1554 * infcmd.c (jump_command): Likewise.
1555 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
1556 (mention, delete_breakpoint): Likewise.
1557 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
1558 * dwarf2read.c (dump_die): Likewise.
1559 * ada-valprint.c (ada_val_print_1): Likewise.
1560 * f-valprint.c (f_val_print): Likewise.
1561 * linux-fork.c (info_forks_command): Likewise.
1562 * m32r-com.c (m32r_load_section, m32r_load)
1563 (m32r_upload_command): Likewise.
1565 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
1569 * gdbarch.sh (skip_prologue): Add gdbarch
1571 * gdbarch.{c,h}: Regenerate.
1573 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
1574 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1575 * avr-tdep.c (avr_skip_prologue): Likewise.
1576 * cris-tdep.c (cris_skip_prologue): Likewise.
1577 * frv-tdep.c (frv_skip_prologue): Likewise.
1578 * h8300-tdep.c (h8300_skip_prologue): Likewise.
1579 * hppa-tdep.c (hppa_skip_prologue): Likewise.
1580 * i386-tdep.c (i386_skip_prologue): Likewise.
1581 * ia64-tdep.c (ia64_skip_prologue): Likewise.
1582 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
1583 * m32r-tdep.c (m32r_skip_prologue): Likewise.
1584 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
1585 * m68k-tdep.c (m68k_skip_prologue): Likewise.
1586 * m88k-tdep.c (m88k_skip_prologue): Likewise.
1587 * mep-tdep.c (mep_skip_prologue): Likewise.
1588 * mips-tdep.c (mips_skip_prologue): Likewise.
1589 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1590 * mt-tdep.c (mt_skip_prologue): Likewise.
1591 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
1592 * score-tdep.c (score_skip_prologue): Likewise.
1593 * sh64-tdep.c (sh64_skip_prologue): Likewise.
1594 * sh-tdep.c (sh_skip_prologue): Likewise.
1595 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
1596 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
1597 * spu-tdep.c (spu_skip_prologue): Likewise.
1598 * v850-tdep.c (v850_skip_prologue): Likewise.
1599 * vax-tdep.c (vax_skip_prologue): Likewise.
1600 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1601 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
1603 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
1604 current_gdbarch by gdbarch.
1605 * m32c-tdep.c (m32c_skip_prologue): Likewise.
1606 * s390-tdep.c (s390_skip_prologue): Likewise.
1610 * defs.h (struct continuation_arg): Fix typo in comment.
1611 * target.c (target_translate_tls_address): Fix comment spelling error.
1615 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
1616 (DOUBLEST_SCAN_FORMAT): Likewise.
1617 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
1618 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
1619 * c-exp.y (parse_number): Likewise.
1620 * jv-exp.y (parse_number): Likewise.
1621 * objc-exp.y (parse_number): Likewise.
1622 * p-exp.y (parse_number): Likewise.
1626 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
1627 (check_typedef): Likewise.
1631 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
1632 seen_double_big_d, treat the new H, D, and DD modifiers as length
1637 * dwarf2read.c (read_enumeration_type): Add comment.
1641 * config.in: Regenerate.
1645 * ada-lang.c (ada_convert_actual): Renames convert_actual.
1647 (ada_convert_actuals): Delete.
1648 * ada-lang.h (ada_convert_actual): Add declaration.
1649 (ada_convert_actuals): Remove declaration.
1650 * infcall.c: #include "ada-lang.h".
1651 (value_arg_coerce): Add new parameter sp. Update function
1652 documetnation. Add handling of Ada function call parameters.
1653 * Makefile.in (infcall.o): Update dependencies.
1657 * ada-lang.c (ensure_lval): Fix value lval kind.
1658 (convert_actual): Add handling for arguments passed by reference.
1662 * dbxread.c (read_dbx_symtab): Fix indentation.
1666 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
1667 (valarith.o): Depend on dfp.h.
1668 (valops.o): Likewise.
1669 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
1670 (set_decnumber_context): New function.
1671 (decimal_check_errors): Likewise.
1672 (decimal_from_number): Likewise.
1673 (decimal_to_number): Likewise.
1674 (decimal_from_string): Use set_decnumber_context and
1675 decimal_check_errors.
1676 (decimal_from_integral): New function.
1677 (decimal_from_floating): Likewise.
1678 (decimal_to_double): Likewise.
1679 (promote_decimal): Likewise.
1680 (decimal_binop): Likewise.
1681 (decimal_is_zero): Likewise.
1682 (decimal_compare): Likewise.
1683 (decimal_convert): Likewise.
1684 * dfp.h (decimal_from_integral): New prototype.
1685 (decimal_from_floating): Likewise.
1686 (decimal_to_double): Likewise.
1687 (decimal_binop): Likewise.
1688 (decimal_is_zero): Likewise.
1689 (decimal_compare): Likewise.
1690 (decimal_convert): Likewise.
1691 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
1692 call to value_from_decfloat.
1693 * valarith.c: Include dfp.h.
1694 (value_args_as_decimal): New function.
1695 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
1696 (value_logical_not): Likewise.
1697 (value_equal): Likewise.
1698 (value_less): Likewise.
1699 (value_pos): Likewise.
1700 (value_neg): Formatting fix.
1701 * valops.c: Include dfp.h.
1702 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
1703 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
1704 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
1705 (value_from_decfloat): Remove expect_type argument.
1706 * value.h (value_from_decfloat): Update prototype.
1710 Ignore change in name of dynamic linker during
1711 execution on Solaris. This also unbreaks pending breakpoints.
1713 * solist.h (struct target_so_ops): New field same.
1714 * solib-svr4.c (svr4_same): New.
1715 (_initialize_svr4_solib): Register svr4_same.
1716 * solib.c (update_solib_list): Use ops->same, if available.
1720 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
1721 when using MS-DOS paths.
1725 * NEWS: Mention --pid and --core command line behaviour changes.
1729 * main.c (captured_main): Remove 'count' varible and the
1730 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
1731 --pid options were issued simultaneously. If an explicit pid
1732 option was passed, don't fallback to core file. Detect extra
1733 arguments better in the presence of explicit pid or core
1738 * ada-lang.c (ada_which_variant_applies): Correctly compute
1739 the value of the discriminant when the variant record is packed.
1743 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
1744 that are used to differentiate homonyms.
1748 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
1749 when the type is an anonymous pointer type.
1750 (ada_check_typedef): Avoid a seg fault when the type is null.
1751 * ada-typeprint.c (print_array_type): Add support for pointer
1756 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
1760 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
1761 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
1765 * ada-exp.y (chop_separator): New function.
1766 (write_selectors): Rewrite to re-use chop_separator.
1767 (ada_nget_field_index, get_symbol_field_type): New functions.
1768 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
1773 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
1774 of SYMBOL_VALUE when working with function symbols.
1778 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
1779 expressions. These expressions do not need to be rewriten.
1783 * dwarf2read.c (read_enumeration_type): Flag type as stub if
1784 the given die is a declaration.
1788 * ada-lang.c (ada_array_bound_from_type): Make non-static.
1789 Handle properly the case when the index type is an enumerated type.
1790 Do not return the subtype of the bounds type, just return the
1791 bounds type directly - this is not needed and is more consistent
1792 with what we do for arrays when no XA parallel type exists.
1796 * ada-lang.c (static_unwrap_type): Add forward declaration.
1797 (template_to_static_fixed_type): Fields of dynamic types sometimes
1798 also need to be unwrapped. Take this into account.
1799 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
1800 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
1801 * ada-typeprint.c (ada_print_type): Get the typename from
1802 the original type, not the base type.
1806 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
1807 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1808 Update calls to ada_to_fixed_type.
1809 (ada_template_to_fixed_record_type_1): Ditto, but without looking
1811 (ada_to_fixed_type): Add check_tag parameter; do not look for
1812 tag if null. When looking for a tag, use a fixed record type.
1813 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
1814 * ada-valprint.c (printable_val_type, ada_value_print): Update
1815 calls to ada_to_fixed_type.
1819 * doublest.c (convert_floatformat_to_doublest): Call
1820 floatformat_to_doublest instead of floatformat_to_double and use
1822 (convert_doublest_to_floatformat): Call floatformat_from_doublest
1823 instead of floatformat_from_double and use DOUBLEST variables.
1827 * MAINTAINERS (Write After Approval): Add self.
1831 * symfile.c (set_initial_language): Make non-static.
1832 * symfile.h (set_initial_language): Add declaration.
1833 * language.c: #include "symfile.h".
1834 (set_language): Call set_initial_language if the frame language
1835 could not be determined.
1839 * eval.c (evaluate_subexp_for_address): Provide frame address to
1840 locate_var_value only if it will be needed.
1844 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
1848 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
1849 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
1850 This is needed to make sure that any other treatment applied
1851 to the resulting value does not fail for spurious reason,
1852 such as trying to take the address of this value.
1856 * ada-lang.c (ada_value_equal): Dereference reference types when
1861 Updated copyright notices for most files.
1865 * win32-nat.c (psapi_module_handle): Remove static.
1866 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
1867 return first module found if base_address is zero. Don't initialize
1868 psapi function pointers here. Convert to cygwin paths when
1870 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
1871 executable name. Use get_module_name when that fails or when
1873 (_initialize_psapi): New function. Initialize psapi stuff before it is
1874 needed or issue a warning if it is not found. Move psapi_module_handle
1879 * ada-lang.c (ada_remove_trailing_digits): New function.
1880 (ada_remove_po_subprogram_suffix): New function.
1881 (ada_decode): Improve. Move the description of the algorithm
1882 directly inside the code, instead of in the function global
1887 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
1888 and always print the dereferenced value.
1892 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
1893 of the case where the first argument is a reference.
1894 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
1898 Implement support for Ada interface types.
1900 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
1901 (ada_is_ignored_field): Ignore fields that are a dispatch table
1906 * top.c (print_gdb_version): Update copyright year.
1910 * ChangeLog-2007: New ChangeLog rotation.
1911 * ChangeLog: Reset for 2008.
1912 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
1915 For older changes see ChangeLog-2007.
1921 version-control: never