3 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
4 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
6 * mips-linux-nat.c: Include "gregset.h".
7 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
8 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
9 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
10 fill_fpregset): Move to mips-linux-nat.c.
12 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
16 * regcache.c (deprecated_read_register_gen): Remove, inline ...
17 (read_register): ... here.
18 (deprecated_write_register_gen): Remove, inline ...
19 (write_register): ... here.
20 * regcache.h (deprecated_read_register_gen): Remove prototype.
21 (deprecated_write_register_gen): Likewise.
23 * remote-sim.c (gdbsim_store_register): Replace call to
24 deprecated_read_register_gen with regcache_cooked_read.
25 * target.c (debug_print_register): Replace calls to
26 deprecated_read_register_gen and read_register with
31 * hpux-thread.c (hpux_thread_store_registers): Use
32 regcache_raw_collect, not regcache_raw_read.
33 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
34 not regcache_raw_write.
38 * gdbarch.sh: Remove deprecated_register_byte.
39 * gdbarch.c, gdbarch.h: Regenerate.
40 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
41 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
43 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
44 * regcache.c (regcache_valid_p): Allow to query cooked registers in
45 read-only register caches. Make REGCACHE parameter const.
46 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
48 * mi/mi-main.c (old_regs): Remove.
49 (mi_setup_architecture_data, _initialize_mi_main): Remove.
50 (register_changed_p): Reimplement to compare two register caches.
51 (mi_cmd_data_list_changed_registers): Update caller.
52 * mi/mi-main.h (mi_setup_architecture_data): Remove.
53 * mi/mi-interp.c (mi_interpreter_init): Do not call
54 mi_setup_architecture_data.
58 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
59 inline definition at the places the macros are used.
60 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
64 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
66 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
67 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
68 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
69 (rs6000_aix_regset_from_core_section): New function.
70 (rs6000_aix_init_osabi): Register it.
71 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
72 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
73 * rs6000-nat.c (CoreRegs): Do not define type.
74 (fetch_core_registers, rs6000_core_fns): Remove.
75 (_initialize_core_rs6000): Do not register it. Rename to ...
76 (_initialize_rs6000_nat): ... this.
77 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
81 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
82 (dwarf2_read_address): Sign extend return address as required by
87 * solib-frv.c (lm_base): Bail out if the main executable has
92 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
93 of FPCR register in fpregset.
97 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
98 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
102 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
103 * rs6000-nat.c (rs6000_wait): New function.
104 (_initialize_core_rs6000): Install it as to_wait target method.
105 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
109 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
110 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
111 * rs6000-nat.c (super_create_inferior): New variable.
112 (rs6000_create_inferior): Make static. Adapt argument list. Call
113 original version of create_inferior via super_create_inferior.
114 (_initialize_core_rs6000): Install to_create_inferior target method.
118 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
119 (aix_thread_xfer_partial): ... this.
120 (init_aix_thread_ops): Install to_xfer_partial instead
121 of deprecated_xfer_memory target method.
123 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
124 and inftarg.o, add inf-ptrace.o.
125 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
126 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
127 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
128 (fetch_inferior_registers): Rename to ...
129 (rs6000_fetch_inferior_registers): ... this. Make static.
130 (store_inferior_registers): Rename to ...
131 (rs6000_store_inferior_registers): ... this. Make static.
132 (read_word, child_xfer_memory): Remove.
133 (rs6000_xfer_partial): New function.
134 (kernel_u_size): Remove.
135 (_initialize_core_rs6000): Add inf_ptrace-based target.
136 * Makefile.in (rs6000-nat.o): Update dependencies.
140 * inf-ptrace.c: Include "gdb_stdint.h".
141 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
142 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
143 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
144 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
145 (inf_ptrace_store_register): Likewise.
146 * Makefile.in (inf-ptrace.o): Update dependencies.
150 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
151 * configure.tgt (rs6000-*-*): Likewise.
152 * config/rs6000/aix4.mh: Delete file.
153 * config/rs6000/aix4.mt: Delete file.
154 * config/rs6000/rs6000.mh: Delete file.
155 * config/rs6000/rs6000.mt: Delete file.
157 * config/powerpc/nm-aix.h: Delete file.
158 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
162 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
163 Remove obsolete part of comment.
164 (store_regs_user_thread): Use uint32_t temporaries when calling
166 (store_regs_kernel_thread): Likewise. Add assertion to verify
167 correct size of struct ptsprs members.
168 (aix_thread_xfer_memory): Fix type of myaddr.
169 (aix_thread_extra_thread_info): Fix compiler warning.
170 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
171 (fetch_register, store_register): Adapt callers.
175 * vec.h (vec_free): Rename to vec_free_. Adapt users.
179 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
181 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
182 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
183 (alpha_linux_regset_from_core_section): New function.
184 (alpha_linux_init_abi): Install it.
185 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
186 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
187 <sys/procfs.h>, and "gregset.h".
188 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
189 Move from config/alpha/nm-linux.h.
190 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
192 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
193 * alpha-nat.c: Remove #ifdef __linux__ section.
194 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
195 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
196 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
197 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
198 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
199 (NATDEPFILES): Remove alpha-nat.o.
200 * config/alpha/nm-linux.h: Delete file.
201 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
202 * Makefile.in (alpha-linux-nat.o): Update dependencies.
203 (alpha-linux-tdep.o): Likewise.
207 * mips-linux-nat.c: No longer include "gdbcore.h".
208 (mips_linux_register_addr): Move from mips-linux-tdep.c.
209 (mips64_linux_register_addr): Likewise.
210 (mips_linux_register_u_offset): Call mips_linux_register_addr or
211 mips64_linux_register_addr instead of register_addr.
212 * mips-linux-tdep.c (mips_linux_register_addr,
213 mips64_linux_register_addr): Move to mips-linux-nat.c.
214 (register_addr): Remove.
215 (register_addr_data, init_register_addr_data): Remove.
216 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
217 (set_mips_linux_register_addr): Remove.
218 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
219 * Makefile.in (mips-linux-nat.o): Update dependencies.
223 * linux-nat.c (linux_register_u_offset): Remove.
224 (linux_target_install_ops): New function.
225 (linux_target): Use it.
226 (linux_trad_target): New function.
227 * linux-nat.h (linux_trad_target): Declare.
229 * alpha-linux-nat.c: Include "gdbcore.h".
230 (alpha_linux_register_u_offset): New function.
231 (_initialize_alpha_linux_nat): Use linux_trad_target.
233 * mips-linux-nat.c: Include "gdbcore.h".
234 (mips_linux_register_u_offset): New function.
235 (_initialize_mips_linux_nat): Use linux_trad_target.
237 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
238 * config/arm/nm-linux.h: Delete file.
240 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
241 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
243 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
244 * config/ia64/nm-linux.h: Delete file.
246 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
247 * config/m32r/nm-linux.h: Delete file.
249 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
250 * config/m68k/nm-linux.h: Delete file.
252 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
253 * config/pa/nm-linux.h: Delete file.
255 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
256 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
257 * config/powerpc/nm-linux.h: Delete file.
259 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
260 * config/s390/nm-linux.h: Delete file.
262 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
263 * config/sparc/linux64.mh (NAT_FILE): Likewise.
264 * config/sparc/nm-linux.h: Delete file.
266 * Makefile.in (alpha-linux-nat.o): Update dependencies.
267 (mips-linux-nat.o): Likewise.
271 * core-aout.c: Delete file.
272 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
273 (core-aout.o): Delete rule.
274 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
276 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
278 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
279 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
280 KERNEL_U_ADDR): Remove.
282 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
283 (cannot_fetch_register, cannot_store_register): Remove.
284 (fetch_register): Inline cannot_fetch_register and register_addr.
285 (store_register): Inline cannot_store_register and register_addr.
286 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
287 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
288 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
291 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
292 (fetch_register): Inline register_addr.
293 (store_register): Inline register_addr.
294 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
295 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
296 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
298 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
299 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
300 REGISTER_U_ADDR): Remove.
302 * hppa-linux-nat.c (register_addr): Rename to ...
303 (hppa_linux_register_addr): ... this. Make static.
304 (fetch_register, store_register): Adapt callers.
305 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
307 * ppc-linux-nat.c (kernel_u_size): Remove.
308 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
310 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
311 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
313 * config/vax/nm-vax.h: Delete file.
317 * MAINTAINERS (Write After Approval): Add myself.
321 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
322 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
323 (m68k_linux_sigcontext_reg_offset): Fix typo.
324 (target_is_uclinux): New.
325 (m68k_linux_inferior_created): New.
326 (m68k_linux_get_sigtramp_info): Check for uClinux or
327 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
329 (_initialize_m68k_linux_tdep): Register
330 m68k_linux_inferior_created.
334 * win32-nat.c (win32_detach): Remove delete_command call.
335 Resume inferior with win32_resume instead of win32_continue.
339 * ser-mingw.c (fd_is_file): New function.
340 (file_select_thread): New function.
341 (ser_console_wait_handle): Add special handling for files.
345 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
346 when missing from DW_TAG_subrange_type. Remove the handling of null
347 return from die_type.
351 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
352 change to rearrange some brackets.
353 (mips_n32n64_push_dummy_call): Likewise.
354 (mips_o32_push_dummy_call): Likewise.
355 (mips_o64_push_dummy_call): Likewise.
359 * infcmd.c (post_create_inferior): Start with a call to
360 target_terminal_ours.
364 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
366 (mips_n32n64_push_dummy_call): Likewise. Reformat some
368 (mips_o32_push_dummy_call): Likewise.
369 (mips_o64_push_dummy_call): Likewise.
373 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
378 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
380 (mips_o32_push_dummy_call): Likewise.
384 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
385 sal to be bigger than the end of the function.
390 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
391 argument alignment requirements when calculating stack space
392 required. When aligning an arg register to eight bytes
393 boundary, align stack_offset too. Write floating-point
394 arguments to the appropriate integer register if need go there.
395 (mips_o64_push_dummy_call): Likewise.
399 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
400 "sig" arguments, add "regcache" argument.
401 * gdbarch.c, gdbarch.h: Regenerate.
403 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
404 (handle_inferior_event): Call remove_single_step_breakpoints directly
405 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
407 * alpha-tdep.c (alpha_software_single_step): Update argument list.
408 Remove handling of !insert_breakpoints_p case.
409 * arm-tdep.c (arm_software_single_step): Likewise.
410 * cris-tdep.c (cris_software_single_step): Likewise.
411 * mips-tdep.c (mips_software_single_step): Likewise.
412 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
413 * sparc-tdep.c (sparc_software_single_step): Likewise.
414 * spu-tdep.c (spu_software_single_step): Likewise.
416 * alpha-tdep.h (alpha_software_single_step): Update prototype.
417 * mips-tdep.h (mips_software_single_step): Likewise.
418 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
419 * sparc-tdep.h (sparc_software_single_step): Likewise.
423 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
424 when removing single-step breakpoints.
428 * varobj.h (varobj_set_frozen): New
429 (varobj_get_frozen): New.
430 (varobj_update): New parameter explicit.
431 * varobj.c (struct varobj): New fields frozen
433 (varobj_set_frozen, varobj_get_frozen): New.
434 (install_new_value): Don't fetch values for
435 frozen variable object, or children thereof. Allow
436 a frozen variable object to have non-fetched value.
437 (varobj_update): Allow updating child variables.
438 Don't traverse frozen children.
439 (new_variable): Initialize the frozen field.
440 (c_value_of_variable): Return NULL for frozen
441 variable without any value yet.
442 * mi/mi-cmd-var.c (varobj_update_one): New parameter
444 (mi_cmd_var_create): Output the 'frozen' field,
445 as soon as testsuite is adjusted to expect that field.
446 (mi_cmd_var_set_frozen): New.
447 (mi_cmd_var_update): Pass the 'explicit' parameter to
449 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
450 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
454 * target-descriptions.c (tdesc_named_type): Add ieee_single and
456 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
460 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
461 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
462 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
463 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
464 * Makefile.in: Remove references to deleted files.
465 * README: Do not mention deleted ROM monitor interfaces.
466 * defs.h (enum language): Delete language_scm.
467 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
468 (dump_subexp_body_standard): Likewise.
469 * parse.c (operator_length_standard): Likewise.
470 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
471 * remote-mips.c: Do not include remote-utils.h.
472 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
474 * value.c: Do not include scm-lang.h.
475 (unpack_long): Delete scm_unpack call.
476 * config/h8300/h8300.mt, config/mips/embed.mt,
477 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
478 config/sh/embed.mt, config/sh/linux.mt: Remove references to
480 * NEWS: Mention removed files.
484 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
485 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
489 * NEWS: Mention removal of HP aCC support.
493 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
494 first entry for static executables.
495 (breakpoint_addr): Delete unused variable.
496 (elf_locate_base): Search for _r_debug in static executables.
497 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
502 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
503 (bpstat_what, print_one_breakpoint, allocate_bp_location)
504 (mention): Remove bp_through_sigtramp support.
505 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
509 * breakpoint.c (bpstat_what): Give step-resume higher priority than
514 * infrun.c: Doc fixes.
515 (handle_inferior_event): Clarify debug message.
516 (insert_step_resume_breakpoint_at_sal): Print a debug message.
520 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
524 * config/m68k/tm-monitor.h: Delete file.
525 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
526 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
528 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
529 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
533 * gdbarch.sh (software_single_step): Change the return type
534 from void to int and reformatted some comments to <= 80
536 * gdbarch.c, gdbarch.h: Regenerated.
537 * alpha-tdep.c (alpha_software_single_step): Likewise.
538 * alpha-tdep.h (alpha_software_single_step): Likewise.
539 * arm-tdep.c (arm_software_single_step): Likewise.
540 * cris-tdep.c (cris_software_single_step): Likewise.
541 * mips-tdep.c (mips_software_single_step): Likewise.
542 * mips-tdep.h (mips_software_single_step): Likewise.
543 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
544 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
545 * sparc-tdep.c (sparc_software_single_step): Likewise.
546 * sparc-tdep.h (sparc_software_single_step): Likewise.
547 * spu-tdep.c (spu_software_single_step): Likewise.
548 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
553 * configure.ac (build_warnings): Add -Wno-char-subscripts.
554 * configure: Regenerate.
555 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
559 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
563 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
565 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
566 distinct on the TYPE_STUB_SUPPORTED debug targets.
567 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
571 * sparc-tdep.c (X_RS2): New macro.
572 (sparc_skip_stack_check): New function.
573 (sparc_analyze_prologue): Adjust PC past stack probing
574 sequence if necessary.
578 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
583 * breakpoint.c (gdb_breakpoint_query): Really return an
585 (gdb_breakpoint): Likewise.
586 * thread.c (gdb_list_thread_ids): Likewise.
587 (gdb_thread_select): Likewise.
588 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
589 (mi_cmd_thread_list_ids): Remove bogus initialization.
593 * Makefile.in (SFILES): Remove hpacc-abi.c.
594 (COMMON_OBS): Remove hpacc-abi.o.
595 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
596 (hpacc-abi.o, hpread.o): Delete rules.
597 * somread.c: Delete extern declarations from hpread.c.
598 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
599 (som_symfile_finish): Do not call hpread_symfile_finish.
600 (som_symfile_init): Do not call hpread_symfile_init.
601 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
602 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
603 * hpacc-abi.c, hpread.c: Deleted.
607 * solib-svr4.c (enable_break): Simplify return value.
608 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
612 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
613 l_ld_size, l_next_size, l_prev_size, l_name_size.
615 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
616 to extract addresses from link map.
617 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
620 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
621 (elf_locate_base): Likewise.
622 (open_symbol_file_object): Likewise.
623 (svr4_fetch_objfile_link_map): Likewise.
624 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
625 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
627 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
628 (svr4_lp64_fetch_link_map_offsets): Likewise.
630 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
631 removed members. Set l_ld_offset to -1 if not present.
635 Pass stderr of program run with "target remote |"
637 * serial.c (serial_open): Set error_fd to -1.
638 * serial.h (struct serial): New field error_fd.
639 (struct serial_opts): New field avail.
640 * ser-pipe.c (pipe_open): Create another pair
641 of sockets. Pass stderr to gdb.
642 * ser-mingw.c (pipe_windows_open): Pass
643 PEX_STDERR_TO_PIPE to pex_run. Initialize
646 (_initialize_ser_windows): Hook pipe_avail.
647 * ser-base.c (generic_readchar): Check if there's
648 anything in stderr channel and route that to gdb_stderr.
652 * dbxread.c (read_ofile_symtab): Move current_objfile
653 clearing to after end_stabs.
657 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
658 gdbarch instead of current_gdbarch.
662 * varobj.c (varobj_create): Keep varobj value
663 NULL when evaluating the type.
667 * NEWS: Mention new Windows CE support.
671 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
672 the obsoletion stanza.
673 * NEWS: Mention deleted targets.
675 * config/sh/tm-wince.h: Remove.
676 * config/sh/wince.mt: Remove.
677 * config/mips/tm-wince.h: Remove.
678 * config/mips/wince.mt: Remove.
681 * wince-stub.c: Remove.
682 * wince-stub.h: Remove.
683 * Makefile.in (wince.o): Remove rule.
684 (wince-stub.o): Likewise.
686 * mips-tdep.c (mips_next_pc): Make static.
687 * mips-tdep.h (mips_next_pc): Remove declaration.
688 * arm-tdep.c (arm_pc_is_thumb): Make static.
689 (thumb_get_next_pc): Likewise.
690 (arm_get_next_pc): Likewise.
691 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
692 (arm_pc_is_thumb): Likewise.
693 (thumb_get_next_pc): Likewise.
694 (arm_get_next_pc): Likewise.
698 * MAINTAINERS: Remove d10v entry.
699 * Makefile.in (SFILES): Remove dwarfread.c.
700 (COMMON_OBS): Remove dwarfread.o.
701 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
702 (remote-est.o, rom68k-rom.o): Delete.
703 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
704 target est, target rom68k, and DWARF 1.
705 * configure.tgt: Mark d10v as removed.
706 * dwarf2read.c: Doc update.
707 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
709 (elf_locate_sections): Do not set them.
710 (elf_symfile_read): Do not call dwarf_build_psymtabs.
711 * symfile.h (dwarf_build_psymtabs): Delete prototype.
712 * config/m68k/monitor.mt (TDEPFILES): Prune.
713 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
714 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
718 * doublest.c (convert_floatformat_to_doublest): Use
719 floatformat_classify.
720 (floatformat_is_nan): Rename to...
721 (floatformat_classify): ...this. Return more information.
722 * doublest.h (enum float_kind): New.
723 (floatformat_is_nan): Replace prototype...
724 (floatformat_classify): ...with this one.
725 * valprint.c (print_floating): Use floatformat_classify. Handle
730 * README: Mention ISO C library requirement.
734 * Makefile.in (SFILES): Remove nlmread.c.
735 (COMMON_OBS): Remove nlmread.o.
736 (nlmread.o): Delete rule.
737 * README: Delete reference to remote-st.c.
738 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
739 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
741 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
742 (_initialize_i386_tdep): Do not reference them.
743 * nlmread.c: Delete file.
744 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
745 * target.c: Doc update.
746 * thread.c: Delete commented include.
747 * config/alpha/tm-alpha.h: Doc update.
751 * utils.c (string_to_core_addr): Comment typo.
755 * mips-tdep.c: Comment typo.
759 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
760 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
761 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
762 * config/powerpc/nm-ppc64-linux.h: Remove file.
763 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
764 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
765 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
766 * infptrace.c (call_ptrace): Likewise.
767 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
768 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
769 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
770 (store_register): Likewise.
774 * Makefile.in (varobj.o): Add missing dependency.
778 * MAINTAINERS: Update my email address.
782 Add support for exception handling with multiple versions of
784 * ada-lang.c: Update general comments on how Ada exception catchpoints
786 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
787 (__gnat_raise_nodefer_with_msg): Delete.
788 (ada_unhandled_exception_name_addr_ftype): New type.
789 (exception_support_info): New type.
790 (ada_unhandled_exception_name_addr): Add forward declaration.
791 (ada_unhandled_exception_name_addr_from_raise): Likewise.
792 (default_exception_support_info): New constant.
793 (exception_support_info_fallback): Likewise.
794 (exception_info): New global variable.
795 (ada_exception_support_info_sniffer): New function.
796 (ada_executable_changed_observer): Likewise.
797 (ada_unhandled_exception_name_addr_from_raise): Renamed from
798 ada_unhandled_exception_name_addr.
799 (ada_unhandled_exception_name_addr): Reimplement to match the
800 latest Ada runtime implementation.
801 (error_breakpoint_runtime_sym_not_found): Delete.
802 (ada_exception_sym_name): Get the exception sym name from
803 exception_info rather than hardcoding it.
804 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
805 Update error handling.
806 * Makefile.in (ada-lang.o): Add dependency on observer.h.
810 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
811 (remote-st.o, uw-thread.o): Delete.
812 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
813 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
814 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
815 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
816 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
817 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
818 rs6000-*-lynxos* to an obsoletion stanza.
819 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
820 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
821 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
822 i[34567]86-*-netware*.
823 * NEWS: Mention deleted targets.
825 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
826 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
827 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
828 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
829 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
830 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
831 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
832 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
833 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
834 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
835 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
836 config/rs6000/tm-rs6000ly.h: Delete files.
840 * defs.h (deprecated_registers_changed_hook): Delete declaration.
841 * interps.c (clear_interpreter_hooks): Do not clear
842 deprecated_registers_changed_hook.
843 * regcache.c (registers_changed): Do not call it.
844 * top.c (deprecated_registers_changed_hook): Do not define it.
845 * mi/mi-interp.c (mi_command_loop): Do not clear it.
846 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
847 (tui_remove_hooks): Do not remove it.
848 (tui_selected_frame_level_changed_hook): Check for negative level.
849 Use get_selected_frame.
850 (tui_registers_changed_hook): Deleted.
854 * stabsread.c (add_undefined_type): Add extra parameter.
855 Now handles nameless types separately.
856 (struct nat): New type.
857 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
858 New static variables.
859 (read_type): Update calls to add_undefined_type.
860 (add_undefined_type_noname): New function.
861 (add_undefined_type_1): Renames from add_undefined_type.
862 (cleanup_undefined_types_noname): New function.
863 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
864 (cleanup_undefined_types): New handles nameless types separately.
865 (_initialize_stabsread): Initialize our new static constants.
869 * configure.ac: Test for signal.h.
870 * configure, config.in: Regenerate.
874 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
875 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
879 * arm-wince-tdep.c: New.
880 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
883 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
884 solib-legacy.o, solib-svr4.o, and remove wince.o.
885 * configure.tgt (arm*-*-mingw32ce*): Add.
886 * signals/signals.c [HAVE_SIGNAL_H]: Check.
887 (do_target_signal_to_host): Silence 'not used' warning.
888 * config/arm/tm-wince.h: Remove.
892 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
893 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
895 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
896 * config/ia64/tm-linux.h: Remove file.
897 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
898 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
899 legacy_pc_in_sigtramp.
900 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
901 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
902 Remove func_name argument.
903 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
905 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
906 * target.c (update_current_target): Add to_have_steppable_watchpoint.
907 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
908 (HAVE_STEPPABLE_WATCHPOINT): Define.
910 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
911 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
912 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
913 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
914 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
915 target_insert_watchpoint, target_remove_watchpoint): Remove.
916 (FETCH_INFERIOR_REGISTERS): Define.
917 * ia64-linux-nat.c (ia64_register_addr): Make static.
918 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
919 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
920 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
921 (ia64_linux_stopped_data_address): Make static. Add target_ops.
922 (ia64_linux_stopped_by_watchpoint): Make static.
923 (ia64_linux_can_use_hw_breakpoint): New function.
924 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
925 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
926 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
930 * linespec.c: Include language.h.
931 (find_methods): Add language parameter. Call
932 lookup_symbol_in_language. Pass language down.
933 (add_matching_methods): Likewise. Call
934 lookup_symbol_in_language.
935 (add_constructors): Likewise.
936 (find_method): Pass sym_class to collect_methods.
937 (collect_methods): Add sym_class parameter. Pass language
939 * symtab.c (lookup_symbol): Rename to ...
940 (lookup_symbol_in_language): ... this. Add language
941 parameter. Use passed language instead of current_language.
942 (lookup_symbol): New as wrapper around
943 lookup_symbol_in_language.
944 (lookup_symbol_aux): Add language parameter. Use passed
945 language instead of current_language.
946 (search_symbols): Indent.
947 * symtab.h (enum language): Forward declare.
948 (lookup_symbol_in_language): Declare.
949 (lookup_symbol): Update description.
950 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
951 * ada-lang.c (restore_language): Remove.
952 (lookup_symbol_in_language): Remove.
956 * breakpoint.c (bpstat_num): Add int *num parameter.
957 * breakpoint.h (bpstat_num): Likewise.
958 * infcmd.c (continue_command): Adjust to new bpstat_num
960 (program_info): Likewise.
964 * config/sh/tm-sh.h: Remove file.
965 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
966 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
967 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
968 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
972 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
973 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
974 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
975 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
976 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
977 sequence if target_shortname is "remote".
981 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
982 instead of wordsize when looking for the LR in a stack frame.
987 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
988 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
989 argument. Update all callers.
990 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
991 (dwarf2_frame_set_eh_frame_regnum): Rename to...
992 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
993 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
994 (dwarf2_frame_set_adjust_regnum): ...this.
995 (dwarf2_frame_eh_frame_regnum): Delete prototype.
996 * rs6000-tdep.c: Include "dwarf2-frame.h".
997 (rs6000_adjust_frame_regnum): Define.
998 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
999 Register rs6000_adjust_frame_regnum.
1001 * Makefile.in (rs6000-tdep.o): Update dependencies.
1005 * Makefile.in: Add support for a "pdf" target.
1009 * amd64-tdep.c (amd64_init_frame_cache): New function.
1010 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
1015 * ui-out.c (ui_out_field_core_addr): Truncate address to
1016 TARGET_ADDR_BIT size before printing.
1021 * remote-mips.c (mips_xfer_memory): Update prototype.
1025 * symfile.h: #include "symtab.h"
1029 * utils.c (pagination_on_command, pagination_off_command):
1030 Remove useless prototypes.
1035 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
1036 instead of TYPE_NAME for object base class name.
1041 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
1042 Specify frame type in calls to frame_func_unwind().
1046 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
1047 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
1048 (refine_prologue_limit): Delete.
1049 (skip_prologue): Don't call it. Use extract_unsigned_integer.
1050 Assume lim_pc is set. Correct check for incomplete prologues.
1051 Do not skip clobbers of the frame pointer.
1052 * symtab.c (skip_prologue_using_sal): Fail if there is only one
1057 * frame.c (frame_pop): Check to see whether there's a frame to
1058 which we can pop first.
1062 * MAINTAINERS (Write After Approval): Add myself.
1066 * infrun.c (breakpoints_failed): Remove unnecessary variable.
1067 (handle_inferior_event): Remove unnecessary braces.
1068 * breakpoint.c (bpstat_what): Remove wrong comment.
1072 * spu-tdep.c (spu_in_function_epilogue_p): New function.
1073 (spu_gdbarch_init): Install it.
1077 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
1078 object types, not 0.
1082 * spu-tdep.c (spu_frame_align): New function.
1083 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
1087 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
1088 (spu_software_single_step): Likewise.
1089 (spu_read_pc, spu_write_pc): New functions.
1090 (spu_gdbarch_init): Install them.
1094 * cli/cli-dump.c (struct callback_data): load_offset needs to
1095 have signed long type.
1099 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
1100 Revert the previous change that had some unexpected side-effects
1102 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
1103 function to get the address of the calling instruction.
1107 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
1108 get_selected_frame by deprecated_safe_get_selected_frame.
1112 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
1113 "gdb_string.h". Don't include "nbsd-tdep.h".
1114 (SIZEOF_STRUCT_REG): Remove.
1115 (SHNBSD_SIZEOF_GREGS): New.
1116 (shnbsd_supply_gregset, shnbsd_collect_gregset)
1117 (shnbsd_regset_from_core_section): New functions.
1118 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1119 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
1120 shnbsd_supply_gregset, shnbsd_collect_gregset.
1121 (shnbsd_gregset): New variable.
1122 (shnbsd_init_abi): Set regset_from_core_section.
1123 (GDB_OSABI_NETBSD_CORE): New define.
1124 (shnbsd_core_osabi_sniffer): New function.
1125 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
1126 * Makefile.in (shnbsd-tdep.o): Update dependencies.
1127 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
1129 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
1133 * gdbtypes.c (replace_type): Fix typo that caused us to not update
1134 length of the types referenced by the new type CV ring.
1138 * frame.c (frame_pop, frame_observer_target_changed): Call
1140 (flush_cached_frames): Rename to reinit_frame_cache and delete
1142 * frame.h (flush_cached_frames): Delete prototype and update comment.
1144 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
1145 reinit_frame_cache instead of flush_cached_frames. Do not call
1146 select_frame after reinit_frame_cache.
1147 * corelow.c (core_open): Likewise.
1148 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
1149 * infrun.c (prepare_to_proceed, context_switch)
1150 (handle_inferior_event): Likewise.
1151 * linux-fork.c (fork_load_infrun_state): Likewise.
1152 * ocd.c (ocd_start_remote): Likewise.
1153 * remote-e7000.c (e7000_start_remote): Likewise.
1154 * remote-mips.c (device): Likewise.
1155 * thread.c (switch_to_thread): Likewise.
1156 * tracepoint.c (finish_tfind_command): Likewise.
1157 * gdbarch.c: Regenerated.
1162 * gdbtypes.c (check_typedef): Do not replace stub type if
1163 the resolved type is not defined in the same objfile.
1167 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
1171 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
1172 symbol for Ada units when the symbol is defined using 't' rather
1173 than 'Tt' as symbol descriptor.
1177 * config/mips/tm-nbsd.h: Delete file.
1178 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1179 * config/sh/tm-nbsd.h: Delete file.
1180 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
1184 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
1185 unused WRONG_PARAM value since it was recently deleted.
1189 * varobj.c (varobj_update): Free temporary vectors.
1193 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
1194 * config/powerpc/tm-linux.h: Delete file.
1195 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
1196 (PROCESS_LINENUMBER_HOOK): Do not undefine.
1197 (TEXT_SEGMENT_BASE): Do not redefine.
1198 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
1199 from config/rs6000/tm-rs6000.h.
1200 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
1201 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
1202 (TEXT_SEGMENT_BASE): Remove.
1203 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
1204 (rs6000_in_solib_return_trampoline): Remove.
1205 (SKIP_TRAMPOLINE_CODE): Remove.
1206 (rs6000_skip_trampoline_code): Remove.
1207 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
1208 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
1209 (FP0_REGNUM): Remove.
1210 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
1211 (rs6000_set_host_arch_hook): Remove.
1212 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
1213 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
1214 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
1215 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
1216 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
1217 * rs6000-nat.c: Include "rs6000-tdep.h".
1218 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
1219 (set_host_arch): Rename to ...
1220 (rs6000_create_inferior): ... this. Make public.
1221 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
1222 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
1223 (rs6000_create_inferior): Remove.
1224 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
1225 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
1226 set_gdbarch_in_solib_return_trampoline, and
1227 set_gdbarch_skip_trampoline_code.
1228 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
1229 from config/rs6000/tm-rs6000.h.
1233 * buildsym.c (record_producer): Do nothing if no producer is provided.
1237 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
1238 to check changelist is non-NULL. Call error if the frontend tries
1239 to update a non-root variable.
1241 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
1245 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
1246 (dwarf2_frame_sniffer): Update.
1247 (dwarf2_signal_frame_this_id): New function.
1248 (dwarf2_signal_frame_unwind): Use it.
1249 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
1250 * frame.c (frame_func_unwind): Add this_type argument.
1251 (get_frame_func): Update.
1252 (frame_unwind_address_in_block): Add this_type argument and check it.
1254 (get_frame_address_in_block): Update.
1255 * frame.h (enum frame_type): Move higher in the file.
1256 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
1259 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
1260 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
1261 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
1262 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
1263 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
1264 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
1265 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
1266 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
1267 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
1268 frame_func_unwind and frame_unwind_address_in_block to specify
1269 the frame type. Use frame_unwind_address_in_block instead of
1270 frame_pc_unwind in sniffers.
1274 * frame.c (deprecated_selected_frame): Rename to...
1275 (selected_frame): ...this. Make static.
1276 (get_selected_frame, select_frame): Update.
1277 * frame.h (deprected_select_frame): Delete.
1278 (deprecated_safe_get_selected_frame): Update comments.
1280 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
1281 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
1282 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
1283 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
1284 tui/tui.c: Replace references to deprecated_selected_frame.
1288 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
1289 directly decrement the stack pointer, accumulate their operand into
1290 the stack offset, and mark the function as not being frameless.
1294 * arch-utils.c (selected_byte_order): New.
1295 * arch-utils.h (selected_byte_order): New prototype.
1296 * remote-sim.c (gdbsim_open): Use selected_byte_order.
1300 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
1301 (default_symfile_offsets): Check VMA here. Update section VMAs.
1305 * remote.c (init_remote_state): Add special handling for placeholder
1310 * Makefile.in (XMLFILES): Include $(TDEP_XML).
1311 (filenames_h): New variable.
1312 (clean): Clean up xml-builtin.c and stamp-xml.
1313 (arm-linux-nat.o): Update.
1314 * config/arm/linux.mh (TDEP_XML): Define.
1315 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
1316 (arm_linux_has_wmmx_registers): New.
1317 (GET_THREAD_ID): Fix typo.
1318 (IWMMXT_REGS_SIZE): Define.
1319 (fetch_wmmx_regs, store_wmmx_regs): New.
1320 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
1321 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
1322 (super_xfer_partial, arm_linux_xfer_partial): New.
1323 (_initialize_arm_linux_nat): Use them.
1324 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
1325 (xml_builtin_xfer_partial): New function.
1326 * xml-support.h (xml_builtin_xfer_partial): New prototype.
1327 * NEWS: Update mention of iWMMXt support.
1331 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
1332 if there are no FPA registers.
1333 (arm_dwarf_reg_to_regnum): New function.
1334 (arm_register_type, arm_register_name): Return minimal values for
1335 unsupported registers.
1336 (arm_register_sim_regno): Handle iWMMXt registers.
1337 (arm_gdbarch_init): Record missing FPA registers if indicated by
1338 a target description. Recognize iWMMXt registers. Only register
1339 "info float" for FPA. Use ARM_NUM_REGS. Register
1340 arm_dwarf_reg_to_regnum.
1341 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
1343 (struct gdbarch_tdep): Add have_fpa_registers.
1344 * features/xscale-iwmmxt.xml: Update capitalization.
1345 * regformats/arm-with-iwmmxt.dat: Regenerated.
1349 * NEWS (New targets): Add entry for the Toshiba Media Processor.
1353 * MAINTAINERS (mep): New target.
1357 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
1359 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
1360 (mep-tdep.o): New rule.
1361 * configure.tgt (mep-*-*): New target.
1362 * mep-tdep.c: New file.
1363 * config/mep/mep.mt: New file.
1367 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
1368 BREAKPOINT_HIT and STOP_UNKNOWN.
1372 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
1376 * gdb_expat.h (XMLCALL): Define if not already defined.
1380 * Makefile.in (symfile.o): Update dependencies.
1384 * MAINTAINERS: Disable -Werror for cris simulator. Build
1385 sparc64-solaris2.10 instead of the broken sparc-elf.
1386 * solib-frv.c: Include "solib.h".
1387 * Makefile.in (solib-frv.o): Update.
1388 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
1389 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
1390 (xtensa_frame_this_id, xtensa_frame_prev_register)
1391 (xtensa_push_dummy_call): Use %p.
1395 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1396 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
1397 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
1398 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
1399 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
1400 (sparc-linux-tdep.o): Update.
1404 * xtensa-tdep.h (xtensa_reg_mask_t): New.
1405 (xtensa_mask_t): Change mask field to be a separate array.
1406 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
1407 (xtensa_pseudo_register_write, xtensa_unwind_pc)
1408 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
1409 (xtensa_breakpoint_from_pc): Remove implicit type casting.
1410 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
1411 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
1412 (mask14, mask15): Rename to
1413 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
1414 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
1415 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
1416 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
1417 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
1418 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
1419 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
1420 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
1421 (xtensa_submask14, xtensa_submask15): New.
1422 (rmap): Follow strict aliasing rules doing static initialization.
1426 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
1427 handling from here...
1428 (tdesc_register_type): ...to here.
1429 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
1430 * features/arm-core.xml: Use code_ptr and data_ptr.
1434 * varobj.h (enum varobj_update_error): New enum.
1435 * varobj.c (struct varobj_root): Add is_valid member.
1436 (varobj_get_type): Check for invalid varobj.
1437 (varobj_get_attributes): Likewise.
1438 (variable_editable):Likewise.
1439 (varobj_update): Likewise. Use varobj_update_error.
1440 (new_root_variable): Set root varobj as valid by default.
1441 (varobj_invalidate): New function.
1442 * symfile.c (clear_symtab_users): Use varobj_invalidate.
1443 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
1444 Use varobj_update_error.
1449 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
1450 Pascal language marker.
1451 * dwarf2read.c (set_cu_language): Likewise.
1455 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
1456 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
1457 instead of target_terminal_init since inferior_ptid isn't set yet.
1461 * MAINTAINERS (Write After Approval): Add myself.
1465 Based on work by Apple Computer, Inc.
1466 * event-top.c (async_request_quit): Call quit() whenever either
1467 quit_flag is set or immediate_quit is set.
1471 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
1472 type to a pointer to const struct block.
1473 (ada_lookup_symbol_list): Don't cast away constness when calling
1474 remove_out_of_scope_renamings.
1478 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
1479 address of 'filename'; it is always non null.
1483 * exec.c (add_to_section_table): Do not discard empty sections.
1487 * features/Makefile, features/arm-with-iwmmxt.xml,
1488 features/gdbserver-regs.xsl, features/number-regs.xsl,
1489 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
1490 * regformats/arm-with-iwmmxt.dat: Generate.
1491 * NEWS: Mention iWMMXt.
1495 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
1496 (xml-tdesc.o): Update.
1497 * xml-support.c: Add a comment.
1498 (gdb_xml_enums_boolean): New variable.
1499 (gdb_xml_parse_attr_enum): Use strcasecmp.
1500 * xml-support.h (gdb_xml_enums_boolean): Declare.
1501 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
1502 next_regnum, and current_union.
1503 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
1504 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
1505 (field_attributes, union_children, reg_attributes, union_attributes)
1506 (vector_attributes, feature_attributes, feature_children): New.
1507 (target_children): Make static. Add <feature>.
1508 (tdesc_elements): Make static.
1509 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
1510 (struct tdesc_feature, tdesc_feature_p): New types.
1511 (struct target_desc): Add features member.
1512 (struct tdesc_arch_data, tdesc_data): New.
1513 (target_find_description): Clarify error message. Warn about
1514 ignored register descriptions.
1515 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1516 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
1517 (tdesc_data_cleanup, tdesc_numbered_register)
1518 (tdesc_numbered_register_choices, tdesc_find_register)
1519 (tdesc_register_name, tdesc_register_type)
1520 (tdesc_remote_register_number, tdesc_register_reggroup_p)
1521 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
1522 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
1523 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
1524 (tdesc_create_feature, tdesc_record_type): New.
1525 (free_target_description): Free features.
1526 (_initialize_target_descriptions): Initialize tdesc_data.
1527 * arch-utils.c (default_remote_register_number): New.
1528 * arch-utils.h (default_remote_register_number): New prototype.
1529 * target-descriptions.h (set_tdesc_pseudo_register_name)
1530 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
1531 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
1532 (tdesc_numbered_register, tdesc_numbered_register_choices)
1533 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1534 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
1535 (tdesc_create_reg): Declare.
1536 * gdbarch.sh (remote_register_number): New entry.
1537 * gdbarch.c, gdbarch.h: Regenerate.
1538 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
1539 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
1541 * arm-tdep.c (arm_register_aliases): New.
1542 (arm_register_name_strings): Rename to...
1543 (arm_register_names): ...this. Make const. Delete the old version.
1544 (current_option, arm_register_byte): Delete.
1545 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
1546 (value_of_arm_user_reg): New.
1547 (arm_gdbarch_init): Verify any described registers. Call
1548 tdesc_use_registers. Don't use arm_register_byte. Create aliases
1549 for standard register names.
1550 (_initialize_arm_tdep): Do not adjust arm_register_names.
1551 * user-regs.c (struct user_reg): Add baton member.
1552 (append_user_reg, user_reg_add_builtin, user_regs_init)
1553 (user_reg_add, value_of_user_reg): Use a baton for user
1555 * std-regs.c: Update.
1556 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
1557 (user_reg_add): Add baton argument.
1558 * NEWS: Mention target description register support.
1559 * features/arm-core.xml, features/arm-fpa.xml: New.
1560 * eval.c (evaluate_subexp_standard): Allow ptype $register
1561 when the program is not running.
1565 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
1569 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
1570 info->disassembler_options to "any".
1574 * varobj.c (install_new_value): Only call value_get_print_value
1580 * gdb/target.c (target_flash_erase): Do not return void value.
1581 (target_flash_done): Likewise.
1582 * gdb/cli/cli-cmds.c (source_command): Likewise.
1586 Based on work by Apple Computer, Inc.
1587 * event-top.c (handle_sigint): Set quit_flag.
1588 (async_request_quit): Don't set quit_flag. Avoid calling quit()
1589 if quit_flag has already been reset.
1593 * ser-mingw.c (pipe_windows_close): Move variable initialization back
1598 * defs.h (request_quit): Remove declaration.
1599 * utils.c (request_quit): Remove definition.
1605 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
1606 (skip_prologue): Allow bl->blrl used by PIC code.
1611 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
1612 initialize tmp_obstack.
1613 * p-valprint.c (pascal_object_print_value_fields)
1614 (pascal_object_print_value): Likewise.
1618 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
1622 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
1623 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
1627 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
1629 (tdesc_parse_xml): Cache expanded descriptions.
1633 * Makefile.in (XMLFILES): New.
1634 (COMMON_OBS): Add xml-builtin.o.
1635 (xml-builtin.c, stamp-xml): New rules.
1636 (xml-tdesc.o): Update.
1637 * features/feature_to_c.sh: New file.
1638 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
1639 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
1640 (gdb_xml_start_element): Initialize scope after possibly reallocating
1641 scopes. Move cleanup later. Handle the XInclude description
1643 (gdb_xml_end_element): Only parse the body if there is a current element.
1644 Call XML_DefaultCurrent if there is no element.
1645 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
1646 (struct xinclude_parsing_data, xinclude_start_include)
1647 (xinclude_end_include, xml_xinclude_default)
1648 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
1649 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
1650 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
1651 * xml-support.h (xml_fetch_another, xml_process_xincludes)
1652 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
1653 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
1654 XInclude directives. Use the compiled in DTD.
1655 (fetch_xml_from_file): Add baton argument. Treat it as a containing
1656 directory name. Do not warn here.
1657 (file_read_description_xml): Update call. Warn here instead. Pass
1659 (fetch_available_features_from_target): New.
1660 (target_read_description_xml): Use it.
1661 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
1663 * features/xinclude.dtd: New file.
1667 * linux-thread-db.c (check_for_thread_db): Return early if we have
1668 no libthread_db support.
1672 * mi/mi-parse.h: Include <sys/time.h>.
1676 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
1677 instead of print_variable_value to print values.
1681 * mi/mi-main.c: Numerous formatting changes.
1682 (mi_cmd_data_write_register_values): Replace clause inadvertantly
1683 removed in my previous change.
1687 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
1688 Use 1000000L instead of 1000000.
1692 Based on work by Apple Computer, Inc.
1694 * configure.ac: Test for sys/resource.h and getrusage.
1695 * configure, config.in: Regenerate.
1697 * mi/mi-main.c: Include <sys/resource.h> if present.
1698 (rusage): Declare if HAVE_GETRUSAGE.
1699 (current_command_ts, do_timings): New static variables.
1700 (timestamp, print_diff_now, print_diff, timeval_diff):
1701 New static timing functions.
1702 (mi_cmd_enable_timings): New function for new MI command.
1703 (captured_mi_execute_command, mi_execute_async_cli_command):
1704 Call timing functions.
1706 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
1709 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
1711 * mi/mi-parse.h: (mi_timestamp): New structure.
1712 (mi_parse): Add mi_timestamp* member.
1716 * thread.c (make_cleanup_restore_current_thread): New function.
1717 (info_threads_command): Use of make_cleanup_restore_current_thread
1718 to restore the current thread and the selected frame.
1719 (restore_selected_frame): New function.
1720 (struct current_thread_cleanup): Add frame_id field.
1721 (do_restore_current_thread_cleanup): Add restoring of the selected
1723 (make_cleanup_restore_current_thread): Likewise.
1724 (thread_apply_all_command): backup the selected frame while
1725 entering the function and restore it at exit.
1726 (thread_apply_command): Likewise.
1730 * MAINTAINERS (Write After Approval): Add myself to the list.
1734 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
1735 (m32r_store_register): Ditto.
1739 * ser-mingw.c (pipe_windows_open)
1740 (pipe_windows_read, pipe_windows_write): Declare
1741 variables at the top of the function.
1745 * doublest.c (floatformat_from_length): Use the right element from
1746 gdbarch floatformats.
1747 (floatformat_from_type, extract_typed_floating)
1748 (store_typed_floating): Likewise.
1749 * doublest.h: Remove declarations for undefined floatformat arrays.
1750 * gdbarch.sh (float_format, double_format, long_double_format): Change
1752 (pformat): Update for pairs.
1753 * gdbarch.c, gdbarch.h: Regenerated.
1754 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
1755 (floatformats_ieee_double_littlebyte_bigword)
1756 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
1757 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
1758 (floatformats_vax_d): New variables.
1759 (builtin_type_ieee_single, builtin_type_ieee_double)
1760 (builtin_type_arm_ext, builtin_type_ia64_spill)
1761 (builtin_type_ia64_quad): Replace arrays with individual types.
1762 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
1763 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
1764 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
1765 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
1766 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
1767 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
1768 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
1769 unused and endian-specific types.
1770 (recursive_dump_type): Update for floatformat pairs.
1771 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
1772 (build_gdbtypes): Use build_flt.
1773 (_initialize_gdbtypes): Update set of initialized types.
1774 * gdbtypes.h: Update declarations to match gdbtypes.c.
1775 (struct main_type): Store a pointer to two floatformats.
1776 * arch-utils.c (default_float_format, default_double_format): Delete.
1777 * arch-utils.h (default_float_format, default_double_format): Delete.
1779 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1780 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
1781 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
1782 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
1783 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
1787 * target.c (maintenance_print_target_stack): New function.
1788 (initialize_targets): Add new "maintenance print target-stack"
1793 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
1797 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
1798 (struct dwarf2_loclist_baton): Likewise.
1802 * cli/cli-script.c: Include breakpoint.h.
1803 (build_command_line): Require arguments only for if and while
1805 (get_command_line, execute_user_command, execute_control_command):
1806 Fix wording of warning messages.
1807 (print_command_lines): Print breakpoint commands.
1808 (execute_control_command): Call commands_from_control_command to
1809 handle the `commands' command inside a body of a flow-control
1811 (read_next_line): Recognize the `commands' command and build a
1812 command line structure for it.
1813 (recurse_read_control_structure, read_command_lines): Handle
1814 `commands' similarly to `if' and `while'.
1816 * breakpoint.c (get_number_trailer): Document the special meaning
1817 of NULL as the first argument PP.
1818 (commands_from_control_command): New function.
1820 * breakpoint.h (commands_from_control_command): Add prototype.
1822 * defs.h (commands_control): New enumerated value for enum
1823 command_control_type.
1827 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
1828 (ada_exception_sal): Update accordingly.
1832 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
1833 * NEWS: Describe CHAR array vs. string identifcation rules.
1837 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
1841 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
1842 expression is empty, bother to return the 'optimized out' value we
1843 construct. (Thanks to Carl Burch.)
1847 * varobj.c (c_value_of_root, c_value_of_child)
1848 (cplus_describe_child): Don't call release_value.
1852 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
1857 Refactor getting children name, value and type access
1859 * varobj.c (get_type_deref): Remove.
1860 (adjust_value_for_child_access): New.
1861 (c_number_of_children): Use the above.
1862 (c_describe_child): Likewise.
1863 (enum accessibility): New.
1864 (match_accessibility): New function.
1865 (cplus_describe_child): New function.
1866 (cplus_name_of_child, cplus_value_of_child)
1867 (cplus_type_of_child): Reimplement in terms
1868 of cplus_describe_child.
1869 (cplus_number_of_children): Use
1870 adjust_value_for_child_access.
1874 Fix computation of the 'editable' attribute and
1875 value changeability for for references.
1876 * varobj.c (get_value_type): New function.
1877 (c_variable_editable): Use get_value_type.
1878 (varobj_value_is_changeable): Likewise.
1882 * source.c (find_and_open_source): Try rewriting the source
1883 path inside filename if dirname is NULL.
1887 * dwarf2read.c (add_partial_symbol): Create an extra partial
1888 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
1889 (new_symbol): Likewise for symbols.
1893 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
1897 * value.c (value_primitive_field): Copy the full 'location'
1898 contents, instead of assuming that copying ADDRESS will
1899 bring over everything in the union. Remove obsolete comment.
1903 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
1904 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
1905 (m32c_m16c_pointer_to_address): Separate code from declarations.
1909 * target.c (update_current_target): Correct typo.
1913 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
1920 * dwarf2-frame.c (execute_cfa_program): New support of
1921 `DW_CFA_GNU_negative_offset_extended'.
1925 * NEWS: Mention flash support for "load" and new remote packets.
1929 * breakpoint.c (delete_command): Skip redundant loop iterations.
1933 * gdbarch.sh (register_type): Update comment.
1934 * gdbarch.h: Regenerated.
1935 * arch-utils.c (generic_register_size): Call register_type.
1936 * ia64-tdep.c (ia64_extract_return_value): Likewise.
1937 * m32c-tdep.c (check_for_saved): Likewise.
1938 * mips-tdep.c (mips_print_register, print_gp_register_row)
1939 (mips_print_registers_info): Likewise.
1940 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
1942 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
1943 (sh64_do_register, sh64_print_register)
1944 (sh64_media_print_registers_info): Likewise.
1945 * tui/tui-regs.c (tui_register_format): Likewise.
1949 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
1951 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
1952 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
1953 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
1954 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
1955 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
1956 (make_symbol_completion_list): Likewise.
1961 * buildsym.c (end_symtab): Use preallocated symtab if available.
1962 Fill in SYMBOL_SYMTAB.
1963 * buildsym.h (struct subfile): Add symtab member.
1964 * dwarf2read.c (struct dwarf2_cu): Add line_header.
1965 (struct file_entry): Add symtab.
1966 (free_cu_line_header): New function.
1967 (read_file_scope): Use it. Save line_header in the cu. Process
1969 (add_file_name): Initialize new symtab member.
1970 (dwarf_decode_lines): Create symtabs for included files.
1971 (new_symbol): Set SYMBOL_SYMTAB.
1972 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
1973 (search_symbols): Likewise.
1974 * symtab.h (struct symbol): Add symtab member.
1975 (SYMBOL_SYMTAB): Define.
1979 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
1983 * arch-utils.c (show_endian): Correct reversed condition.
1987 * MAINTAINERS (Write After Approval): Add myself.
1992 Fix 'selected frame' varobjs.
1993 * varobj.c (struct varobj): Remove the error field.
1994 (varobj_set_value): Don't check var->error.
1995 (install_new_value): Don't set var->error.
1996 (varobj_update): Always pass the new value
1997 of the root via install_new_value.
1998 (create_child): Don't set error field.
1999 (new_variable): Likewise.
2000 (c_value_of_root): Always reevaluate the value
2001 of selected frame varobjs in the selected frame.
2002 Don't call reinit_frame_cache.
2006 * source.c (_initialize_source): Improve the help text of
2007 the substitute-path commands.
2011 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
2012 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
2013 (frv_skip_prologue): Remove prototypes.
2014 (frv_adjust_breakpoint_address): Renamed from
2015 frv_gdbarch_adjust_breakpoint_address.
2016 (frv_gdbarch_init): Adjust.
2020 * gdbarch.sh (deprecated_extract_return_value)
2021 (deprecated_store_return_value): Remove.
2022 (extract_return_value, store_return_value): Remove default values.
2023 * gdbarch.c, gdbarch.h: Regenerate.
2024 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
2025 (legacy_store_return_value): Remove.
2026 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
2029 * mi/mi-main.c: Remove obsolete comment.
2031 * regcache.c, regcache.h (deprecated_register_bytes)
2032 (deprecated_read_register_bytes)
2033 (deprecated_write_register_bytes): Remove.
2035 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
2036 Don't forget to move destination pointer.
2040 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
2044 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
2045 past entry function with recent newlib.
2049 * gdb.texinfo (GDB/MI Variable Objects): Improve the
2050 introduction. Specify -var-update more exactly.
2054 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
2058 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
2059 the Global Maintainers' invitation to be a global maintainer.
2063 * infrun.c (singlestep_pc): New variable.
2064 (resume): Set singlestep_pc.
2065 (context_switch): Add a debugging message. Flush the frame cache.
2066 (handle_inferior_event): Add debugging messages. Handle thread
2067 hops when a software single step has completed. Let context_switch
2068 handle flushing the frame cache.
2072 * NEWS: Mention target descriptions, "set tdesc filename",
2073 "unset tdesc filename", "show tdesc filename", and
2074 qXfer:features:read.
2075 * arch-utils.c (choose_architecture_for_target): New function.
2076 (gdbarch_info_fill): Call it.
2077 * target-descriptions.c (struct property): Make members non-const.
2078 (struct target_desc): Add arch member.
2079 (target_description_filename): New variable.
2080 (target_find_description): Try via XML first.
2081 (tdesc_architecture): New.
2082 (free_target_description, make_cleanup_free_target_description): New.
2083 (set_tdesc_property): Call xstrdup.
2084 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
2085 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
2086 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
2087 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
2088 * target-descriptions.h (tdesc_architecture)
2089 (make_cleanup_free_target_description, set_tdesc_architecture): New
2091 * Makefile.in (SFILES): Add xml-tdesc.c.
2092 (COMMON_OBS): Add xml-tdesc.o.
2093 (target-descriptions.o): Update.
2094 (xml-tdesc.o): New rule.
2095 * xml-tdesc.c, xml-tdesc.h: New files.
2096 * remote.c (PACKET_qXfer_features): New enum.
2097 (remote_protocol_features): Add qXfer:features:read.
2098 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
2099 (_initialize_remote): Register qXfer:features:read.
2100 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
2101 * features/gdb-target.dtd: New file.
2105 * copyright.sh: Clarify error.
2109 * symtab.c (matching_bfd_sections): Fix VMA matching for
2114 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
2119 Updated copyright notices for most files.
2123 * copyright.sh (prunes): Add step-line.inp and step-line.c.
2127 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
2129 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
2131 * configure, config.in: Regenerate.
2132 * defs.h (debug_file_directory): Declare.
2133 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
2134 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
2135 relocate it if DEBUGDIR_RELOCATABLE.
2136 * symfile.c (debug_file_directory): Make non-static.
2137 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
2138 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
2139 (_initialize_symfile): Don't initialize debug_file_directory here.
2143 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
2148 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
2149 frame_unwind_register to recurse.
2150 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
2151 (alpha_heuristic_frame_prev_register): Likewise.
2152 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
2153 * m32c-tdep.c (m32c_prev_register): Likewise.
2154 * frame.c (frame_register_unwind_location): Remove FIXME.
2159 * copyright.sh: New file.
2163 * configure.ac: Check for XML_StopParser.
2164 * xml-support.c (gdb_xml_body_text): Check for an error.
2165 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
2166 (gdb_xml_end_element_wrapper): Likewise.
2167 * config.in, configure: Regenerated.
2171 * varobj.c (install_new_value): Always update print_value.
2172 (value_get_print_value): Immediately return NULL for missing
2177 * configure.ac: Tighten pattern for extracting value of
2178 DEPRECATED_TM_FILE from the target makefile fragment.
2179 * configure: Regenerated.
2183 * linux-nat.c (struct simple_pid_list): Add status.
2184 (add_to_pid_list): Record the PID's status.
2185 (linux_record_stopped_pid): Likewise. Make static.
2186 (pull_pid_from_list): Return the saved status.
2187 (linux_nat_handle_extended): Deleted.
2188 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
2189 Make static. Handle non-SIGSTOP for a new thread's first signal.
2190 (flush_callback): Handle unexpected pending signals.
2191 (linux_nat_wait): Update calls to changed functions.
2192 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
2193 Remove prototypes for newly static functions.
2197 * gdbarch.sh (value_from_register): New gdbarch function.
2198 * gdbarch.c, gdbarch.h: Regenerate.
2199 * findvar.c (default_value_from_register): New function.
2200 (value_from_register): Use gdbarch_value_from_register.
2201 * value.h (default_value_from_register): Declare.
2202 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
2203 spu_value_to_register): Remove.
2204 (spu_value_from_register): New function.
2205 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
2206 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
2207 Call set_gdbarch_value_from_register.
2208 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
2209 s390_value_to_register): Remove.
2210 (s390_value_from_register): New function.
2211 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
2212 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
2213 Call set_gdbarch_value_from_register.
2217 * NEWS: Add "set sysroot" and "show sysroot".
2218 * solib.c (solib_absolute_prefix): Delete. Replace
2219 all uses with gdb_sysroot.
2220 (_initialize_solib): Add "set sysroot" and "show sysroot".
2221 Make "solib-absolute-prefix" an alias to it.
2225 * frame.c (get_frame_register_bytes): New function.
2226 (put_frame_register_bytes): Likewise.
2227 * frame.h (get_frame_register_bytes): Declare.
2228 (put_frame_register_bytes): Likewise.
2229 * findvar.c (value_from_register): Always construct lval_register
2230 values. Use get_frame_register_bytes.
2231 * valops.c (value_assign): Use get_frame_register_bytes and
2232 put_frame_register_bytes.
2236 * MAINTAINERS: Update Stan Shebs' email address.
2240 * ada-lang.c (is_known_support_routine): Improve the implementation.
2244 * ada-lang.c: Add include of source.h.
2245 (is_known_support_routine): Improve the check verifying that the file
2246 associated to this frame exists.
2247 * Makefile.in (ada-lang.o): Add dependency on source.h.
2251 * ax-general.c (ax_const_l): Select proper opcode for the given
2256 * varobj.c (c_value_of_root): Don't select frame if variable
2257 object is out of scope.
2261 * varobj.c (struct varobj): New member print_value.
2262 (install_new_value): Compare last printed value with current one
2263 instead of contents.
2264 (new_variable): Initialize var->print_value to NULL.
2265 (free_variable): Free var->print_value.
2266 (value_get_print_value): New function derived from
2267 c_value_of_variable.
2268 (c_value_of_variable): Use value_get_print_value.
2272 * i386-tdep.c (i386_analyze_stack_align): Add comment.
2276 * NEWS: Add entries for new catch commands.
2280 * dwarf2read.c (partial_die_info): Add field has_byte_size.
2281 (add_partial_symbol): Correct identification of external references.
2282 (process_structure_scope): Likewise.
2283 (read_partial_die): Handle DW_AT_byte_size attribute.
2287 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
2291 * varobj.c (get_type_deref): Fix variable objects for references to
2296 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
2301 * memory-map.c (struct_memory_map_parsing_data): Remove most
2302 members. Make property_name an array.
2303 (free_memory_map_parsing_data, memory_map_start_element)
2304 (memory_map_end_element, memory_map_character_data): Delete.
2305 (memory_map_start_memory, memory_map_end_memory)
2306 (memory_map_start_property, memory_map_end_property): New functions.
2307 (property_attributes, memory_children, memory_type_enum)
2308 (memory_attributes, memory_map_children, memory_map_elements): New.
2309 (parse_memory_map): Rewrite.
2310 * xml-support.c (debug_xml): New.
2311 (xml_get_required_attribute, xml_get_integer_attribute)
2312 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
2314 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
2315 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
2316 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
2317 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
2318 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
2319 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
2320 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
2322 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
2323 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
2324 (enum gdb_xml_element_flag, struct gdb_xml_element)
2325 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
2326 (struct gdb_xml_enum): New.
2327 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
2328 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
2329 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
2330 (xml_get_required_attribute, xml_get_integer_attribute)
2331 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
2332 * Makefile.in (xml_support_h, xml-support.o): Update.
2336 * Makefile.in (eval.o): Update dependencies.
2337 * eval.c: Include "ui-out.h" and "exceptions.h".
2338 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
2339 Use value_zero if an error occurs when avoiding side effects.
2340 * varobj.c (c_value_of_root): Initialize new_val.
2344 * varobj.c (varobj_list_children): Stop if the number of children is
2346 (c_number_of_children):
2350 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
2351 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
2352 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
2353 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
2354 sizeof, instead of hardcoded constants.
2358 * CONTRIBUTE: Use sourceware.org.
2362 * buildsym.c (start_subfile): Handle producer.
2363 (record_producer): New function.
2364 * buildsym.h (struct subfile): Include producer.
2365 (record_producer): New prototype.
2366 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
2367 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
2368 armcc_cfa_offsets_reversed.
2369 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
2370 (dwarf2_frame_find_quirks): New function.
2371 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
2372 (decode_frame_entry_1): Record the CIE version. Record the
2373 augmentation. Skip armcc augmentations.
2374 * dwarf2read.c (read_file_scope): Save the producer.
2375 * symtab.h (struct symtab): Rename unused version member to
2380 * configure.ac (build_warnings): Use -Wall and
2381 -Wdeclaration-after-statement.
2382 * configure: Regenerated.
2386 Simplify access to variours properties of child
2387 variable objects in C.
2388 * varobj.c (value_struct_element_index): New function.
2389 (c_describe_child): New function.
2390 (c_name_of_child, c_value_of_child)
2391 (c_type_of_child): Rewrite to use c_describe_child.
2396 * varobj.c: Include "vec.h".
2397 (varobj_p): New typedef, declare vector of those.
2398 (struct varobj): Use vector for the 'children' member.
2399 (child_exists): Remove.
2400 (save_child_in_parent): Remove.
2401 (remove_child_from_parent): Remove.
2402 (struct varobj_child): Remove.
2403 (struct vstack): Remove.
2404 (vpush, vpop): Remove.
2405 (varobj_list_children): Adjust to work work vector.
2406 (varobj_update): Likewise. Use vectors for
2407 working stack and result.
2408 (delete_variable_1): Likewise.
2409 * Makefile.in (varobj.o): Update dependencies.
2413 Port from Apple's version.
2415 * varobj.c (type_changeable): Rename to...
2416 (varobj_value_is_changeable_p): ...this. Adjust all callers.
2417 (is_root_p): New function. Use it everywhere.
2421 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
2426 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
2430 * hpread.c (hpread_type_lookup): Fix compilation failure.
2434 * NEWS: New port to S+core.
2435 * MAINTAINERS (Write After Approval, Responsible Maintainers):
2438 * Makefile.in: Add dependencies for S+core files.
2439 * configure.tgt (score*, score-*-*): Add S+core target.
2440 * config/score/embed.mt: New file.
2441 * score-tdep.c: New file.
2442 * score-tdep.h: New file.
2446 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
2447 the appropriate type rather than a bogus void type.
2451 * ada-lang.h (ada_find_printable_frame): Remove.
2452 (ada_exception_catchpoint_p, ada_decode_exception_location)
2453 (ada_decode_assert_location): Add declaration.
2454 * ada-lang.c: Add include of annotate.h and valprint.h.
2455 (exception_catchpoint_kind): New enum.
2456 (function_name_from_pc, is_known_support_routine)
2457 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
2458 (ada_exception_name_addr_1, ada_exception_name_addr)
2459 (print_it_exception, print_one_exception, print_mention_exception)
2460 (print_it_catch_exception, print_one_catch_exception)
2461 (print_mention_catch_exception, catch_exception_breakpoint_ops)
2462 (print_it_catch_exception_unhandled)
2463 (print_one_catch_exception_unhandled)
2464 (print_mention_catch_exception_unhandled, print_it_catch_assert)
2465 (print_one_catch_assert, print_mention_catch_assert)
2466 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
2467 (ada_get_next_arg, catch_ada_exception_command_split)
2468 (ada_exception_sym_name, ada_exception_sym_name)
2469 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
2470 (ada_parse_catchpoint_condition, ada_exception_sal)
2471 (ada_decode_exception_location)
2472 (ada_decode_assert_location): New function.
2473 (catch_exception_unhandled_breakpoint_ops): New global variable.
2474 (catch_assert_breakpoint_ops): New global variable.
2475 * breakpoint.c: Add include of ada-lang.h.
2476 (print_one_breakpoint): Do not print the condition for Ada
2477 exception catchpoints.
2478 (create_ada_exception_breakpoint): New function.
2479 (catch_ada_exception_command, catch_assert_command): New function.
2480 (catch_command_1): Add support for the new "catch exception" and
2481 "catch assert" commands.
2482 (_initialize_breakpoint): Add help description for the new catch
2484 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
2486 (breakpoint.o): Add dependency on ada-lang.h.
2490 * coffread.c (cs_to_section): If bfd_section is found, always
2491 return its section index.
2492 (coff_symtab_read): Determine the minimal_symbol_type using the
2498 * Makefile.in (top.o): Update.
2499 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
2500 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
2501 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
2503 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
2507 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
2508 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
2512 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
2513 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
2514 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
2515 greater than or equal to zero.
2516 * m2-typeprint.c (m2_array): Likewise.
2517 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2518 * gdbtypes.c (copy_type_recursive): Correct == typo.
2519 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
2520 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
2522 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
2523 (default_macro_scope): Remove unused variable.
2524 * prologue-value.h (pv_area_find_reg): Don't name an argument
2526 * remote-fileio.c (remote_fio_func_map): Add missing braces.
2527 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
2529 (cleanup_sigint_signal_handler): Remove casts.
2530 * valprint.c (val_print): Use a volatile local for the modified
2532 * varobj.c (languages): Remove extra array dimension.
2533 (varobj_create): Correct access to languages array.
2534 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
2536 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2537 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
2538 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
2539 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2540 (mi_cmd_data_write_memory): Likewise.
2541 * signals/signals.c (target_signal_to_string): Cast to int before
2543 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
2548 * NEWS: Mention pointer to member improvements.
2549 * Makefile.in (gnu-v3-abi.o): Delete special rule.
2550 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
2551 * ada-valprint.c (ada_print_scalar): Update for new type codes.
2552 * c-typeprint.c (c_print_type): Update for new type codes.
2553 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
2554 (c_type_print_base): Likewise.
2555 (c_type_print_args): Rewrite.
2556 * c-valprint.c (c_val_print): Update for new type codes. Remove
2557 support for references to members. Treat methods like functions.
2558 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
2559 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
2560 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
2561 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
2562 (struct cp_abi_ops): Add corresponding members.
2563 * cp-valprint.c (cp_print_class_method): Delete.
2564 (cp_find_class_member): New function.
2565 (cp_print_class_member): Use it. Simplify support for bogus
2567 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
2568 lookup_methodptr_type.
2569 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
2570 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
2571 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
2573 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
2574 references returned by user defined operators.
2575 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
2576 (f_type_print_varspec_suffix): Remove support for member pointers.
2577 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
2579 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
2580 (lookup_methodptr_type): New.
2581 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
2582 (recursive_dump_type): Update for new types.
2583 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
2584 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
2585 (lookup_memberptr_type, lookup_methodptr_type)
2586 (smash_to_memberptr_type): New prototypes.
2587 (smash_to_method_type): Formatting fix.
2588 (lookup_member_type, smash_to_member_type): Delete prototypes.
2589 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
2590 Do not rely on debug information for the vptr or the method's
2591 enclosing type. Handle function descriptors for IA64.
2592 (gnuv3_virtual_fn_field): Rewrite using the new functions.
2593 (gnuv3_find_method_in, gnuv3_print_method_ptr)
2594 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
2595 (gnuv3_method_ptr_to_value): New.
2596 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
2597 * hpread.c (hpread_type_lookup): Update for new types.
2598 * infcall.c (value_arg_coerce): Likewise.
2599 * m2-typeprint.c (m2_print_type): Remove explicit support
2600 for member pointers.
2601 * m2-valprint.c (m2_val_print): Likewise.
2602 * p-typeprint.c (pascal_type_print_varspec_prefix)
2603 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
2604 * p-valprint.c (pascal_val_print): Likewise.
2605 (pascal_object_print_class_method, pascal_object_print_class_member):
2607 * p-lang.h (pascal_object_print_class_method)
2608 (pascal_object_print_class_member): Delete prototypes.
2609 * stabsread.c (read_type): Update for new types.
2610 * typeprint.c (print_type_scalar): Likewise.
2611 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
2612 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
2613 argument. Construct a pointer to member if the address of a
2614 function or data member is requested.
2615 (value_cast_pointers): Don't modify the input value.
2616 (value_cast): Adjust pointer to member handling for new types.
2617 Allow null pointer to member constants. Don't modify the input
2619 (value_ind): Remove pointer to member check. Handle function
2620 descriptors for function pointers.
2621 (value_struct_elt, value_find_oload_method_list, check_field):
2622 Remove pointer to member checks.
2623 * value.c (unpack_long): Allow pointers to data members.
2624 (value_from_longest): Allow member pointers.
2625 * value.h (value_aggregate_elt): Add want_address.
2626 * varobj.c (c_variable_editable): Remove check for members.
2627 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
2628 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
2630 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
2631 * c-lang.h (cp_print_class_method): Delete prototype.
2632 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
2633 * mips-tdep.c (mips_gdbarch_init): Likewise.
2634 * gdbarch.c, gdbarch.h: Regenerated.
2638 * rs6000-tdep.c (rs6000_use_struct_convention)
2639 (rs6000_extract_return_value, rs6000_store_return_value)
2640 (rs6000_extract_struct_value_address): Remove.
2641 (rs6000_return_value): New function.
2642 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
2643 store_return_value, deprecated_extract_struct_value_address and
2644 deprecated_use_struct_convention. Use rs6000_return_value
2649 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
2650 -display-disable, -display-enable, -display-insert and
2655 * breakpoint.c (remove_breakpoint): Remove dead code.
2659 * varobj.c: Include block.h.
2660 (c_value_of_root): Check scope within nested statements.
2664 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
2665 regcache_cooked_write_signed instead of
2666 deprecated_write_register_bytes.
2670 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
2674 Followed the Start of New Year Procedure:
2675 * ChangeLog-2006: New file, containing all the entries for 2006.
2676 * ChangeLog: Removed all 2006 entries, and changed the reference
2677 to the previous ChangeLog to point to ChangeLog 2006.
2678 * top.c (print_gdb_version): Update copyright year.
2682 * Makefile.in (remote-sds.o): Remove.
2683 * remote-sds.c: Delete.
2685 For older changes see ChangeLog-2006.
2691 version-control: never