3 * i386-tdep.c (i386_num_register_names): New variable.
4 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5 (MM0_REGNUM): Remove redundant parentheses in define.
6 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8 i386_mxcsr_regnum_p): Remove redundant parentheses.
9 (i386_register_name): Use i386_num_register_names.
11 * i386-tdep.c (i386_extract_return_value,
12 i386_store_return_value): Correct check for availability of
13 floating-point registers.
15 * i386-tdep.c (i386_frame_num_args): Remove function.
16 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
18 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
19 mmx_regnum_to_fp_regnum. Adjust all callers.
21 * i386-tdep.c (i386_get_longjmp_target): Use
22 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
23 and TARGET_CHAR_BIT. Use extract_typed_address instead of
28 * core-regset.c: Update comments to reflect reality. Re-order
30 (fetch_core_registers): Use switch instead of if. Remove
35 * s390-tdep.c (s390_frame_align): New function.
36 (s390_gdbarch_init): Register it with the gdbarch object.
40 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
46 * gdb_gcore.sh: New script to create a core dump of a process.
50 * values.c (value_being_returned): Don't fetch the return
51 value if the return type is void.
55 * thread-db.c: Reindented.
59 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
60 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
65 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
66 the size of ``long double'' to 16, instead of 8.
70 * i386-linux-nat.c: Add some whitespace to make things more
72 (fetch_register, store_register, fetch_inferior_registers,
73 store_inferior_registers): Get rid of assignment in if-statement.
74 (store_register): Fix typo in error message.
78 * utils.c (xmmalloc): Always allocate something, matches
79 libiberty/xmalloc's semantics.
80 (xmrealloc, xmcalloc): Ditto.
84 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
86 (get_frame_type): Initialize unwind and type when needed.
87 (get_frame_id, frame_register_unwind): Ditto.
91 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
93 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
94 * sparcl-stub.c: Obsolete file.
95 * config/sparc/tm-sparclet.h: Obsolete file.
96 * sparclet-stub.c: Obsolete file.
97 * sparclet-rom.c: Obsolete file.
98 * sparcl-tdep.c: Obsolete file.
99 * config/sparc/tm-sparclite.h: Obsolete file.
100 * config/sparc/sparclite.mt: Obsolete file.
101 * config/sparc/sparclet.mt: Obsolete file.
102 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
103 sparc86x-*-* obsolete.
107 * Makefile.in (SFILES): Add cp-namespace.c.
108 (COMMON_OBS): Add cp-namespace.o.
109 (block.o): Depend on gdb_obstack_h and cp_support_h.
110 (buildsym.o): Depend on cp_support_h.
111 (cp-namespace.o): New.
112 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
113 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
114 (dwarf2read.o): Depend on cp_support_h.
115 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
116 * dwarf2read.c (process_die): Set processing_has_namespace_info,
117 processing_current_namespace.
118 (read_namespace): Update processing_current_namespace; check for
119 anonymous namespaces.
120 (dwarf2_name): New function.
121 (dwarf2_extension): Ditto.
122 * cp-support.h: Update copyright, contributors.
123 Add inclusion guards.
124 Add opaque declaration for structs obstack, block, symbol.
125 (struct using_direct): New struct.
126 Add declarations for cp_find_first_component,
127 cp_entire_prefix_len, processing_has_namespace_info,
128 processing_current_namespace, cp_is_anonymous,
129 cp_add_using_directive, cp_initialize_namespace,
130 cp_finalize_namespace, cp_set_block_scope,
131 cp_scan_for_anonymous_namespaces.
132 * cp-namespace.c: New file.
133 * cp-support.c: Update copyright.
134 Include ctype.h, gdb_assert.h, gdbcmd.h.
135 New variable maint_cplus_cmd_list.
136 (cp_find_first_component): New function.
137 (cp_entire_prefix_len, maint_cplus_command)
138 (first_component_command, _initialize_cp_support): Ditto.
139 * buildsym.c: Include cp-support.h.
140 New variable using_list.
141 (add_symbol_to_list): Check for anonymous namespaces.
142 (finish_block): Set block's scope.
143 (start_symtab): Initialize C++ namespace support.
144 (end_symtab): Finalize C++ namespace support.
145 * block.h: Add opaque declarations for structs
146 block_namespace_info, using_direct, and obstack.
147 Add declarations for block_set_scope and block_set_using.
148 (struct block): Add 'language_specific' member.
149 (BLOCK_NAMESPACE): New macro.
150 * block.c: Include gdb_obstack.h and cp-support.h.
151 (struct block_namespace_info): New struct.
152 (block_set_scope): New function.
153 (block_set_using, block_initialize_namespace): Ditto.
157 * solib-svr4.c (svr4_have_link_map_offsets): New function.
158 (locate_base): Return early if there aren't any link map offsets.
159 (svr4_solib_create_inferior_hook): Warn if shared library support
164 * symtab.c (symbol_set_names): Add prefix when storing Java names
165 in hash table. Fix for PR java/1039.
169 * symtab.c (symbol_set_names): Rename 'name' arg to
170 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
171 * symtab.h: Change 'name' argument in declaration of
172 symbol_set_names to 'linkage_name'.
173 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
177 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
178 return the fully sign-extended register value.
179 (get_frame_pointer): Ditto.
180 (mips_pop_frame): Initialize "proc_desc" after checking for a
185 * mips-tdep.c (mips_push_dummy_frame): Delete function.
186 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
187 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
188 (mips_push_register): Delete function.
189 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
194 * symmisc.c: #include "gdb_regex.h".
195 (maintenance_list_symtabs, maintenance_list_psymtabs): New
197 * maint.c (maintenance_list_command): New function.
198 (_initialize_maint_cmds): Register the above as commands.
199 * symtab.h (maintenance_list_symtabs,
200 maintenance_list_psymtabs): New declarations.
201 * cli/cli-cmds.c (maintenancelistlist): New variable.
202 (init_cmd_lists): Initialize it.
203 * cli/cli-cmds.h (maintenancelistlist): New declaration.
204 * gdbcmd.h (maintenancelistlist): New declaration.
205 * Makefile.in (symmisc.o): Update dependencies.
209 * s390-nat.c: Include asm/types.h for addr_t.
213 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
214 actually incoming type.
218 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
219 get_next_frame and get_frame_saved_regs.
223 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
228 * frame.h: Mention what replaced what in "struct frame_info".
229 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
230 deprecated_update_frame_base_hack and
231 deprecated_update_frame_pc_hack.
232 * hppa-tdep.c: Ditto.
236 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
237 to read_reg and update its comment. Remove regnum member.
238 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
239 Don't call read_reg when setting in_reg. Call read_reg to get
240 the frame base if it's in a register. Return the register number
241 on the stack instead of in the context. Remove extra arguments
243 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
244 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
245 the register number on the expression stack.
246 (needs_frame_read_reg): Remove extra arguments.
250 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
252 (execute_stack_op): All callers updated.
253 * dwarf2expr.h: Add prototype for dwarf2_read_address.
254 * dwarf2loc.c (find_location_expression): New function.
255 (dwarf_expr_frame_base): Call it.
256 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
257 (dwarf2_tracepoint_var_ref): New function, broken out from
258 locexpr_tracepoint_var_ref.
259 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
261 (loclist_read_variable, loclist_read_needs_frame): New functions.
262 (loclist_describe_location, loclist_tracepoint_var_ref): New
264 (dwarf2_loclist_funcs): New struct location_funcs.
265 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
266 (struct dwarf2_locexpr_baton): Add comments.
267 (dwarf2_loclist_funcs): New extern.
268 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
269 base_address and base_known.
270 (dwarf_loc_buffer): New variable.
271 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
272 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
273 (dwarf2_has_info): Initialize dwarf_loc_offset.
274 (dwarf2_build_psymtabs): Read in .debug_loc.
275 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
277 (psymtab_to_symtab_1): Likewise. Move base address calculation
279 (dwarf2_get_pc_bounds): ... here. Use the base address from
281 (dwarf2_symbol_mark_computed): Handle location lists.
285 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
286 if the linkage name demangled successfully.
290 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
291 disassmbly_flavour): Removed.
293 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
297 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
301 * frame.h (struct frame_info): Move definition from here ...
302 * frame.c (struct frame_info): ... to here.
306 * gdbthread.h (save_infrun_state): Delete parameter
308 (struct thread_info): Delete field "prev_func_start".
309 (load_infrun_state): Ditto.
310 * thread.c (load_infrun_state, save_infrun_state): Update.
311 * infrun.c (prev_func_start): Delete variable.
312 (context_switch, init_wait_for_inferior): Update.
313 (stop_stepping, keep_going): Update.
317 * gdbarch.sh: Add missing opaque declarations.
318 * gdbarch.h: Regnerate.
319 * symtab.h: Add missing opaque declarations.
320 * value.h, target.h, symfile.h, stabsread.h: Ditto.
321 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
322 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
323 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
324 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
325 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
326 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
327 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
328 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
329 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
330 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
331 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
332 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
336 * frame.c (get_frame_id): Return this frame's "id".
337 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
339 (legacy_saved_regs_this_id): Replace function body with
341 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
342 FRAME_OBSTACK_ZALLOC.
343 (create_new_frame): Mark the frame ID as valid.
347 * Makefile.in (libbfd_h): Added missing setting.
348 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
349 according to the selected ABI.
353 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
357 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
359 * gdbarch.h, gdbarch.c: Regenerate.
360 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
361 * x86-64-tdep.c (x86_64_init_abi): Update.
362 * vax-tdep.c (vax_gdbarch_init): Update.
363 * v850-tdep.c (v850_gdbarch_init): Update.
364 * sparc-tdep.c (sparc_gdbarch_init): Update.
365 * sh-tdep.c (sh_gdbarch_init): Update.
366 * s390-tdep.c (s390_gdbarch_init): Update.
367 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
368 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
369 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
370 * mips-tdep.c (mips_gdbarch_init): Update.
371 * mcore-tdep.c (mcore_gdbarch_init): Update.
372 * m68k-tdep.c (m68k_gdbarch_init): Update.
373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
374 * ia64-tdep.c (ia64_gdbarch_init): Update.
375 (ia64_saved_pc_after_call): Update declaration.
376 * i386ly-tdep.c (i386lynx_init_abi): Update.
377 * i386-tdep.c (i386_gdbarch_init): Update.
378 * hppa-tdep.c (hppa_gdbarch_init): Update.
379 * h8300-tdep.c (h8300_gdbarch_init): Update.
380 * frv-tdep.c (frv_gdbarch_init): Update.
381 * cris-tdep.c (cris_gdbarch_init): Update.
382 * avr-tdep.c (avr_gdbarch_init): Update.
383 * arm-tdep.c (arm_gdbarch_init): Update.
384 * alpha-tdep.c (alpha_gdbarch_init): Update.
385 * ns32knbsd-nat.c (frame_num_args): Update.
386 * ns32k-tdep.c (umax_frame_num_args): Update.
387 * mips-tdep.c (mips_init_frame_pc_first): Update.
388 * infrun.c (step_over_function): Update.
389 * i386-linux-tdep.c (skip_hurd_resolver): Update.
390 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
391 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
392 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
393 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
394 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
395 * arm-linux-tdep.c (skip_hurd_resolver): Update.
396 * arch-utils.c (init_frame_pc_default): Update.
397 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
398 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
403 * i387-tdep.c: Update copyright.
404 (i387_to_double): Delete function.
405 (double_to_i387): Delete function.
409 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
410 frame's function's address. Simplify.
411 (d10v_frame_unwind_cache): Check that the frame's function is
416 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
417 call to set_gdbarch_deprecated_push_arguments.
421 * frame.c (fprint_frame_id): New function.
422 (fprint_frame_type, fprint_frame): New function.
423 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
424 (create_sentinel_frame, get_frame_id): Ditto.
425 (frame_id_p, frame_id_eq): Ditto.
426 (frame_id_inner, create_new_frame): Ditto.
427 (legacy_get_prev_frame, get_prev_frame): Ditto.
428 (deprecated_update_frame_pc_hack): Ditto.
429 (frame_register_unwind): Ditto.
430 (deprecated_update_frame_base_hack): Ditto.
434 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
435 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
436 frame_chain function.
437 * Makefile.in: Add dependencies due to above change.
441 * blockframe.c (legacy_frame_chain_valid): Move call to
442 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
447 * frame.h (struct frame_id): Replace "pc" and "base" with
448 "stack_addr" and "code_addr". Update comments.
449 (frame_id_build): Update parameter names and comment.
450 (struct frame_info): Replace "id_p" and "id" with "this_id".
451 * dummy-frame.c (dummy_frame_this_id): Update.
452 * breakpoint.c (print_one_breakpoint): Update.
453 * frame.c (get_frame_id): Update.
454 (get_frame_base, frame_id_build): Update.
455 (create_sentinel_frame, legacy_get_prev_frame): Update.
456 (deprecated_update_frame_base_hack): Update.
457 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
458 (frame_id_inner): Ditto.
462 * defs.h (gdb_print_host_address): Make "addr" parameter a
464 * utils.c (gdb_print_host_address): Update.
468 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
469 register number for R0 is 0.
473 * frame.h (struct gdbarch): Add opaque structure definition
474 to avoid a compilation warning on LynxOS 4.0.
478 * frame.h (struct frame_info): Delete field "pc". Replace
479 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
481 * frame.c (frame_pc_unwind): Update.
482 (create_sentinel_frame): Do not set "pc".
483 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
484 (get_frame_pc): Call frame_pc_unwind.
485 (deprecated_update_frame_pc_hack): Update.
486 (create_new_frame): Use "pc" not "->pc".
490 * frame.c (get_frame_id): Eliminate code updating "frame".
491 (legacy_get_prev_frame): Ditto.
492 (get_frame_base): Return id.base directly.
493 (deprecated_update_frame_base_hack): Update "id.base".
494 * frame.h (struct frame_info): Delete field "frame".
498 * NEWS: Mention that the "Sequent family" is obsolete.
499 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
500 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
501 * configure.host: Obsolete i[3456]86-sequent-bsd*,
502 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
503 * config/i386/tm-ptx4.h: Obsolete file.
504 * config/i386/tm-ptx.h: Obsolete file.
505 * symm-tdep.c: Obsolete file.
506 * config/i386/symmetry.mt: Obsolete file.
507 * config/i386/tm-symmetry.h: Obsolete file.
508 * symm-nat.c: Obsolete file.
509 * config/i386/nm-symmetry.h: Obsolete file.
510 * config/i386/xm-symmetry.h: Obsolete file.
511 * config/i386/symmetry.mh: Obsolete file.
512 * config/i386/nm-ptx4.h: Obsolete file.
513 * config/i386/ptx4.mh: Obsolete file.
514 * config/i386/ptx.mt: Obsolete file.
515 * config/i386/ptx.mh: Obsolete file.
516 * config/i386/xm-ptx4.h: Obsolete file.
517 * config/i386/xm-ptx.h: Obsolete file.
521 Obsolete mips*-*-mach3*.
522 * NEWS: Mention that mips*-*-mach3* is obsolete.
523 * m3-nat.c: Obsolete file.
524 * config/nm-m3.h: Obsolete file.
525 * config/mips/tm-mipsm3.h: Obsolete file.
526 * config/mips/mipsm3.mt: Obsolete file.
527 * config/mips/mipsm3.mh: Obsolete file.
528 * config/mips/xm-mipsm3.h: Obsolete file.
529 * mipsm3-nat.c: Obsolete file.
530 * configure.host: Obsolete mips-dec-mach3*.
531 * configure.tgt: Obsolete mips*-*-mach3*.
535 * doublest.h: Update copyright.
536 (deprecated_store_floating, deprecated_extract_floating): Rename
537 store_floating and extract_floating. Update comments.
538 * doublest.c: Update copyright.
539 (extract_floating_by_length): Replace extract_floating.
540 (store_floating_by_length): Replace store_floating.
541 (deprecated_extract_floating): New function.
542 (deprecated_store_floating): New function.
543 (extract_typed_floating): Call extract_floating_by_length.
544 (store_typed_floating): Call store_floating_by_length.
545 * x86-64-tdep.c (x86_64_store_return_value): Update.
546 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
547 (sh64_extract_return_value): Update.
548 (sh_sh4_register_convert_to_virtual): Update.
549 (sh_sh64_register_convert_to_virtual): Update.
550 (sh_sh4_register_convert_to_raw): Update.
551 (sh_sh64_register_convert_to_raw): Update.
552 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
553 (rs6000_register_convert_to_raw): Update.
554 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
555 (ia64_register_convert_to_raw): Update.
556 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
557 (REGISTER_CONVERT_TO_VIRTUAL): Update.
558 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
559 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
560 (alpha_register_convert_to_raw): Update.
564 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
565 * gdbarch.h, gdbarch.c: Re-generate.
566 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
567 (d10v_gdbarch_init): Do not set saved_pc_after_call.
568 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
569 conditionally, use frame_pc_unwind as an alternative. Add
571 * arch-utils.c (init_frame_pc_default): Only call
572 SAVED_PC_AFTER_CALL when available.
576 * infrun.c (stop_soon): Rename from stop_soon_quietly.
577 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
578 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
579 (start_remote): Ditto.
580 (handle_inferior_event): Ditto.
581 (save_inferior_status): Ditto.
582 (restore_inferior_status): Ditto.
583 * infcmd.c (attach_command): Ditto.
584 * fork-child.c (startup_inferior): Ditto.
585 * inferior.h (stop_soon): Rename from stop_soon_quietly.
586 * alpha-tdep.c (heuristic_proc_start): Ditto.
587 * mips-tdep.c (heuristic_proc_start): Ditto.
588 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
589 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
590 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
591 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
592 * remote-vx.c (vx_create_inferior): Ditto.
596 * infrun.c (stop_soon_quietly): Make it an enum, to better
597 override the default behavior of handle_inferior_event.
598 (clear_proceed_status): Update uses of stop_soon_quietly to
599 reflect that it is now an enum.
600 (start_remote): Ditto.
601 (handle_inferior_event): Change logic a bit if stop_soon_quietly
602 is set to handle the new GNU/Linux kernel behavior for
603 attach/sigstop. Update uses of stop_soon_quietly.
604 * inferior.h (enum stop_kind): New enum.
605 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
606 Reset normal handle_inferior_event behavior, afterwards.
607 * fork-child.c (startup_inferior): Update.
608 * alpha-tdep.c (heuristic_proc_start): Update.
609 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
610 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
611 * solib-osf.c (osf_solib_create_inferior_hook): Update.
612 * solib-irix.c (irix_solib_create_inferior_hook): Update.
613 * remote-vx.c (vx_create_inferior): Update.
614 * mips-tdep.c (heuristic_proc_start): Update.
618 * disasm.c (dump_insns): Move variables inside loop, or they will
619 be freed more than once, causing wild memory corruptions.
620 (gdb_disassembly): Look for the substring "-thread",
621 instead of "-threads" in the target name, to make sure to find
622 the 'multi-thread' target. Also, make sure we do the right thing
623 with the "core" target.
627 * mips-tdep.c (mips_print_fp_register): New function, created from
628 do_fp_register_row(). Registers are now (also) printed as hex.
629 Only one register is printed per row.
630 (mips_print_register, do_fp_register_row): Print floating point
631 registers with mips_print_fp_register().
635 * valprint.h (inspect_it): Add extern declaration.
636 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
637 (selectors_info, classes_info): Ditto.
638 (find_objc_msgcall): Fix indentation.
639 (objc_printstr): Delete extern declarations.
641 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
645 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
647 * frame.c (legacy_saved_regs_this_id): Update.
648 (legacy_get_prev_frame): Update.
649 * xstormy16-tdep.c: Update comment.
650 * sparc-tdep.c (sparc_frame_chain): Update comment.
651 * blockframe.c (legacy_frame_chain_valid): Update.
655 * valprint.c (val_print_type_code_int): Delete #ifdef
656 PRINT_TYPELESS_INTEGER code.
658 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
659 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
660 multi-arch definition.
661 * gdbarch.h: Re-generate.
665 Eliminate FRAME_FIND_SAVED_REGS.
666 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
667 Change FSR parameter to a pointer.
668 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
669 Assume FSR parameter is a pointer.
670 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
672 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
673 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
674 saved_regs a pointer.
675 (hppa_frame_saved_pc): Ditto.
676 (find_dummy_frame_regs): Make frame_saved_regs a pointer
677 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
679 (restore_pc_queue): Make fsr a pointer.
680 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
681 (hppa_frame_chain): Make saved_regs a pointer, call
682 hppa_frame_init_saved_regs.
683 * sparc-tdep.c: Include "gdb_assert.h".
684 (sparc_frame_find_saved_regs): Replace internal_error with
686 * remote-vxsparc.c (vx_read_register): Delete reference to
687 FRAME_FIND_SAVED_REGS.
688 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
689 * gdbarch.h: Regenerate.
690 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
691 (deprecated_get_frame_saved_regs): Delete declaration.
692 (struct frame_saved_regs): Delete definition.
693 * frame.c (deprecated_get_frame_saved_regs): Delete function.
694 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
695 (hppa_frame_find_saved_regs): Delete declaration.
696 (FRAME_FIND_SAVED_REGS): Delete macro.
697 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
698 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
699 FRAME_FIND_SAVED_REGS in comment.
703 * frame.c (frame_func_unwind, get_frame_func): New functions.
704 * frame.h (get_frame_func, frame_func_unwind): Declare.
705 (struct frame_info): Add field "prev_func" for caching the
706 previous frame's function address.
707 * arm-tdep.c (arm_frameless_function_invocation): Combine
708 get_pc_function_start and get_frame_pc into get_frame_func.
709 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
710 (sh64_nofp_frame_init_saved_regs): Ditto.
711 * s390-tdep.c (s390_function_start): Ditto.
712 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
713 (rs6000_frameless_function_invocation): Ditto.
714 (rs6000_frame_saved_pc): Ditto.
715 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
716 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
717 * i386-tdep.c (i386_frameless_signal_p): Ditto.
718 (i386_frame_init_saved_regs): Ditto.
719 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
720 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
721 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
722 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
723 * blockframe.c (frameless_look_for_prologue): Ditto.
727 * frame.c (legacy_get_prev_frame): Link prev to next at the
728 function start. Update comments.
732 * frame.c (get_frame_id): Update comment.
733 (legacy_get_prev_frame): Update comment.
734 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
735 * gdbarch.h: Regenerate.
736 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
737 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
741 * stack.c (print_frame_info): Use get_frame_pc.
745 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
746 the frame's type from the unwinder.
747 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
748 (create_new_frame, legacy_get_prev_frame): When the unwinder's
749 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
750 (get_frame_base_address): Use get_frame_type.
751 (get_frame_locals_address, get_frame_args_address): Ditto.
752 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
753 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
754 (struct frame_info): Add comment explaining why the frame contains
756 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
757 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
758 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
760 * frame-unwind.h: Include "frame.h".
761 (struct frame_unwind): Add "type" field.
762 * Makefile.in (frame_unwind_h): Add $(frame_h).
766 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
767 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
768 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
770 (d10v_unwind_dummy_id): Use frame_id_build.
771 * frame.c (find_frame_sal): Use get_frame_pc.
772 (create_new_frame): Use deprecated_update_frame_pc_hack and
773 deprecated_update_frame_base_hack.
774 (create_sentinel_frame): Add comment about ->pc going away.
775 (get_prev_frame): Add comment about ->pc going away.
776 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
777 frame_id_build, deprecated_update_frame_pc_hack and
778 deprecated_update_frame_base_hack.
779 (select_frame): Use get_frame_pc.
780 (legacy_saved_regs_this_id): Use frame_id_build.
784 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
786 (classify_argument): Handle enumerations and references.
790 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
795 * gdb/objc-lang.c (selectors_info): Replace calls to
796 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
798 (classes_info, find_methods): Likewise.
802 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
803 ``mach'' to the value determined by bfd_default_set_arch_mach().
807 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
808 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
809 (mi-cmd-file.o): Update dependencies.
813 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
814 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
818 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
819 * language.h (struct language_defn): Add la_demangle.
820 (language_demangle): Declare.
821 * language.c (language_demangle): New function.
822 (unk_lang_demangle): Likewise.
823 (unknown_language_defn, auto_language_defn, local_language_defn):
824 Add ukn_lang_demangle.
825 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
826 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
827 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
828 (cplus_language_defn): Add cplus_demangle for la_demangle element.
829 * jv-lang.c (java_demangle): New function
830 (java_language_defn): Use it for la_demangle element.
831 * objc-lang.c (objc_demangle): Add options argument
832 (objc_language_defn): Use objc_demangle for la_demangle element.
833 * maint.c (maintenance_demangle): Replace switch with
834 call to language_demangle.
835 * utils.c (fprintf_symbol_filtered): Likewise.
839 * printcmd.c (print_frame_nameless_args): Delete #ifdef
840 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
841 PRINT_TYPELESS_INTEGER.
842 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
847 * Makefile.in (d10v-tdep.o): Update dependencies.
848 * d10v-tdep.c: Include "frame-base.h".
849 (d10v_frame_unwind): Make constant.
850 (d10v_frame_base_address): New function.
851 (d10v_frame_base): New variable.
852 (d10v_gdbarch_init): Set frame_base default.
853 (struct d10v_unwind_cache): Add the field "prev_sp". Update
855 (d10v_frame_unwind_cache): Set and use "prev_sp".
856 (d10v_frame_this_id): Use the previous frame's inner most stack
857 address and this frame's func address for the frame ID. Use
858 frame_id_build. Don't analyze beyond the current instruction.
862 * frame.h (get_frame_locals_address, get_frame_args_address):
863 Refer to the base address, instead of the address of the first
868 Add frame debug info addresses:
869 * frame-base.c: New file.
870 * frame-base.h: New file.
871 * frame.h (struct frame_base): Add opaque declaration.
872 (get_frame_base): Update comment.
873 (get_frame_base_address): Declare.
874 (get_frame_locals_address): Declare.
875 (get_frame_args_address): Declare.
876 (struct frame_info): Add "base" and "base_cache". Update
877 comments on the unwinder.
878 * frame.c: Include "frame-base.h".
879 (get_frame_locals_address): New function.
880 (get_frame_base_address): New function.
881 (get_frame_args_address): New function.
882 * findvar.c (read_var_value): Use get_frame_locals_address and
883 get_frame_args_address.
884 * stack.c (frame_info): Use get_frame_locals_address and
885 get_frame_args_address.
886 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
887 moved to "frame-base.c".
888 * printcmd.c (print_frame_nameless_args): Ditto.
889 * symtab.h (address_class): Update comments.
890 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
891 get_frame_base_address.
892 * dwarf2expr.c (execute_stack_op): Ditto.
893 * Makefile.in (frame_base_h): Define.
894 (frame.o): Update dependencies.
895 (frame-base.o): Add dependencies.
896 (SFILES): Add frame-base.c.
897 (COMMON_OBS): Add frame-base.o.
901 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
902 CALL_DUMMY_LENGTH): Ditto.
903 * gdbarch.c: Re-generate.
904 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
905 (CALL_DUMMY_LENGTH): Delete macro.
906 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
907 * arm-tdep.c (arm_gdbarch_init): Ditto.
908 * avr-tdep.c (avr_gdbarch_init): Ditto.
909 * cris-tdep.c (cris_gdbarch_init): Ditto.
910 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
911 * frv-tdep.c (frv_gdbarch_init): Ditto.
912 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
913 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
914 * i386-tdep.c (i386_gdbarch_init): Ditto.
915 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
916 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
917 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
918 * mips-tdep.c (mips_gdbarch_init): Ditto.
919 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
920 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
921 * s390-tdep.c (s390_gdbarch_init): Ditto.
922 * sh-tdep.c (sh_gdbarch_init): Ditto.
923 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
924 * v850-tdep.c (v850_gdbarch_init): Ditto.
925 * vax-tdep.c (vax_gdbarch_init): Ditto.
926 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
930 * frame.c (get_prev_frame): Disable call to inside_entry_file().
934 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
935 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
936 * gdbarch.h, gdbarch.c: Re-generate.
937 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
938 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
939 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
940 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
941 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
942 * infcmd.c (run_stack_dummy): Simplify assuming
943 CALL_DUMMY_BREAKPOINT_OFFSET_P.
944 * infrun.c (handle_inferior_event): Ditto.
945 * alpha-tdep.c (alpha_gdbarch_init): Do not set
946 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
947 * arm-tdep.c (arm_gdbarch_init): Ditto.
948 * avr-tdep.c (avr_gdbarch_init): Ditto.
949 * cris-tdep.c (cris_gdbarch_init): Ditto.
950 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
951 * frv-tdep.c (frv_gdbarch_init): Ditto.
952 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
953 * i386-tdep.c (i386_gdbarch_init): Ditto.
954 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
956 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
957 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
958 * mips-tdep.c (mips_gdbarch_init): Ditto.
959 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
960 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
961 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
962 * s390-tdep.c (s390_gdbarch_init): Ditto.
963 * sh-tdep.c (sh_gdbarch_init): Ditto.
964 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
965 * v850-tdep.c (v850_gdbarch_init): Ditto.
966 * vax-tdep.c (vax_gdbarch_init): Ditto.
967 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
971 * symfile.c (symfile_relocate_debug_section): Update call to
972 bfd_simple_get_relocated_section_contents.
976 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
977 * gdbarch.h, gdbarch.c: Regenerate.
978 * inferior.h (FIX_CALL_DUMMY): Delete macro.
979 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
981 * frame.h (generic_fix_call_dummy): Delete declaration.
982 * dummy-frame.h: Update comment.
983 * dummy-frame.c (generic_fix_call_dummy): Delete function.
984 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
986 * sh-tdep.c (sh_gdbarch_init): Ditto.
987 * s390-tdep.c (s390_gdbarch_init): Ditto.
988 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
989 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
990 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
991 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
992 * i386-tdep.c (i386_gdbarch_init): Ditto.
993 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
994 * frv-tdep.c (frv_gdbarch_init): Ditto.
995 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
996 * cris-tdep.c (cris_gdbarch_init): Ditto.
997 * avr-tdep.c (avr_gdbarch_init): Ditto.
998 * arm-tdep.c (arm_gdbarch_init): Ditto.
1002 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
1003 (INIT_FRAME_AP): Likewise.
1004 (EXTRA_FRAME_INFO): Likewise.
1008 * gdbarch.sh: Include "symfile.h".
1009 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
1010 * gdbarch.h, gdbarch.c: Re-generate.
1011 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
1012 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1013 call_dummy_address, the default is at entry_point_address.
1014 * v850-tdep.c (v850_gdbarch_init): Ditto.
1015 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1016 * sh-tdep.c (sh_gdbarch_init): Ditto.
1017 * s390-tdep.c (s390_gdbarch_init): Ditto.
1018 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1019 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1020 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1021 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1022 * i386-tdep.c (i386_gdbarch_init): Ditto.
1023 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1024 * frv-tdep.c (frv_gdbarch_init): Ditto.
1025 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1026 * cris-tdep.c (cris_gdbarch_init): Ditto.
1027 * arm-tdep.c (arm_gdbarch_init): Ditto.
1031 * gdbarch.sh (CALL_DUMMY_P): Delete.
1032 * gdbarch.h, gdbarch.c: Re-generate.
1033 * inferior.h (CALL_DUMMY_P): Delete macro.
1034 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1035 * vax-tdep.c (vax_gdbarch_init): Update.
1036 * v850-tdep.c (v850_gdbarch_init): Update.
1037 * sparc-tdep.c (sparc_gdbarch_init): Update.
1038 * sh-tdep.c (sh_gdbarch_init): Update.
1039 * s390-tdep.c (s390_gdbarch_init): Update.
1040 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1041 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1042 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1043 * mips-tdep.c (mips_gdbarch_init): Update.
1044 * mcore-tdep.c (mcore_gdbarch_init): Update.
1045 * m68k-tdep.c (m68k_gdbarch_init): Update.
1046 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1047 * ia64-tdep.c (ia64_gdbarch_init): Update.
1048 * i386-tdep.c (i386_gdbarch_init): Update.
1049 * h8300-tdep.c (h8300_gdbarch_init): Update.
1050 * frv-tdep.c (frv_gdbarch_init): Update.
1051 * d10v-tdep.c (d10v_gdbarch_init): Update.
1052 * cris-tdep.c (cris_gdbarch_init): Update.
1053 * breakpoint.c (deprecated_frame_in_dummy): Update.
1054 * avr-tdep.c (avr_gdbarch_init): Update.
1055 * alpha-tdep.c (alpha_gdbarch_init): Update.
1056 * arm-tdep.c (arm_gdbarch_init): Update.
1057 * dummy-frame.c (dummy_frame_this_id): Update comments.
1058 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
1059 * frame.c (legacy_get_prev_frame): Ditto.
1060 * valops.c (call_function_by_hand): Delete function.
1061 (hand_function_call): Rename to call_function_by_hand
1066 * value.h (struct value): Update comment.
1070 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
1072 (d10v_gdbarch_init): Do not set fp_regnum.
1074 * frame.c (get_frame_base): Force ID initialization.
1075 (get_prev_frame): Move computation of the frame ID from here ...
1076 (get_frame_id): ... to here.
1077 (legacy_get_prev_frame): Mark the frame ID as valid.
1078 * frame.h (struct frame_info): Add field "id_p".
1082 * i386-tdep.c (i386_store_struct_return): Removed.
1083 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
1087 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
1088 * gdbarch.h, gdbarch.c: Regenerate.
1089 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
1090 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1091 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1092 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1093 * i386-tdep.c (i386_gdbarch_init): Ditto.
1094 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1095 * cris-tdep.c (cris_gdbarch_init): Ditto.
1096 * vax-tdep.c (vax_gdbarch_init): Ditto.
1097 * s390-tdep.c (s390_gdbarch_init): Ditto.
1098 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1099 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1100 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1101 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
1102 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
1103 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
1104 * sparc-tdep.c (sparc_gdbarch_init): Update.
1105 * sh-tdep.c (sh_gdbarch_init): Update.
1106 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1107 * mips-tdep.c (mips_gdbarch_init): Update.
1108 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1109 * ia64-tdep.c (ia64_gdbarch_init): Update.
1110 * frv-tdep.c (frv_gdbarch_init): Update.
1111 * avr-tdep.c (avr_gdbarch_init): Update.
1112 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
1113 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
1114 instead of when push_dummy_call is not available.
1118 * infttrace.c: Include "gdbthread.h".
1119 (parent_attach_all): Fix function signature.
1120 (call_ptrace): Update call.
1121 * Makefile.in (infttrace.o): Update dependencies.
1125 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
1126 PUSH_RETURN_ADDRESS.
1127 * gdbarch.h, gdbarch.c: Regenerate.
1128 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1129 * x86-64-tdep.c (x86_64_init_abi): Update.
1130 * v850-tdep.c (v850_gdbarch_init): Update.
1131 * sparc-tdep.c (sparc_gdbarch_init): Update.
1132 * sh-tdep.c (sh_gdbarch_init): Update.
1133 * s390-tdep.c (s390_gdbarch_init): Update.
1134 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1135 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1136 * mips-tdep.c (mips_gdbarch_init): Update.
1137 * mcore-tdep.c (mcore_gdbarch_init): Update.
1138 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1139 * ia64-tdep.c (ia64_gdbarch_init): Update.
1140 * i386-tdep.c (i386_gdbarch_init): Update.
1141 * h8300-tdep.c (h8300_gdbarch_init): Update.
1142 * frv-tdep.c (frv_gdbarch_init): Update.
1143 * cris-tdep.c (cris_gdbarch_init): Update.
1144 * avr-tdep.c (avr_gdbarch_init): Update.
1145 * arm-tdep.c (arm_gdbarch_init): Update.
1146 * valops.c (hand_function_call): Update.
1150 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
1151 sizeof_call_dummy_words.
1152 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
1154 * gdbarch.h: Regenerate.
1158 * infttrace.h: New file.
1159 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
1160 (hpread_get_textlow): Detect an uninitialized dn_bufp.
1161 (hpread_read_doc_function_type): Detect an initialized type1.
1162 (hpread_quick_traverse): Initialize mod_name_string.
1163 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
1164 (som_solib_get_solib_by_pc): Declare.
1165 (so_lib_thread_start_addr): Declare.
1166 (no_shared_libraries): Declare.
1167 * somread.c (init_import_symbols): Make static. Add forward
1169 * config/pa/nm-hppah.h: Include "infttrace.h" for
1171 (hppa_insert_hw_watchpoint): Declare.
1172 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
1173 * hppah-nat.c: Include "gdb_string.h".
1174 (parent_attach_all): Delete extern declaration, moved to
1176 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
1178 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
1179 * Makefile.in (infttrace_h): Define.
1180 (hpread.o): Update dependencies.
1181 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
1182 * hppa-hpux-tdep.c: Include "gdb_string.h".
1183 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
1184 * infrun.c (handle_inferior_event): Always initialize
1185 stepped_after_stopped_by_watchpoint. Add default and remove
1186 fallthrough in switch statement.
1187 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
1189 (hppa_remove_hw_watchpoint): Ditto.
1193 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
1198 * arm-tdep.c (arm_push_arguments): Delete.
1199 (struct stack_item): New type.
1200 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
1201 (arm_store_struct_return): Delte.
1202 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
1203 arm_push_arguments or arm_store_struct_return.
1207 * Makefile.in (d10v-tdep.o): Update dependencies.
1208 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
1209 * d10v-tdep.c: Include "remote.h".
1210 (target_resume_hook): Delete extern declaration.
1211 (target_wait_loop_hook): Ditto.
1212 (tdisassemble_command): Eliminate assignment in "if" conditional.
1213 (d10v_ts2_register_sim_regno): Eliminate call to
1214 legacy_register_sim_regno.
1215 (d10v_ts3_register_sim_regno): Ditto.
1219 * thread.c: Reindented.
1221 * linux-proc.c: Ditto.
1225 * MAINTAINERS (write after approval): Add myself.
1229 * objc-exp.y: Add missing semi-colons.
1233 * regcache.c (write_sp): Delete function and references.
1234 * inferior.h (write_sp): Delete declaration.
1235 * valops.c (hand_function_call): Replace write_sp with
1237 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
1238 (sparc_pop_frame): Ditto.
1242 * NEWS: Mention removal of support for hppa*-*-bsd* and
1243 hppa*-*-osf* natives, and hppa*-*-pro* target.
1244 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
1245 * config/pa/xm-pa.h: Obsolete file.
1246 * config/pa/xm-hppab.h: Obsolete file.
1247 * config/pa/nm-hppab.h: Obsolete file.
1248 * config/pa/tm-hppab.h: Obsolete file.
1249 * config/pa/tm-hppao.h: Obsolete file.
1250 * config/pa/nm-hppao.h: Obsolete file.
1251 * config/pa/tm-pro.h: Obsolete file.
1252 * config/pa/hppaosf.mt: Obsolete file.
1253 * config/pa/hppaosf.mh: Obsolete file.
1254 * config/pa/hppapro.mt: Obsolete file.
1255 * config/pa/hppabsd.mt: Obsolete file.
1256 * config/pa/hppabsd.mh: Obsolete file.
1257 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
1258 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
1263 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
1264 push_arguments. Don't set push_return_address or write_sp.
1265 (d10v_push_dummy_call): Replace d10v_push_arguments.
1266 (d10v_push_return_address, d10v_write_sp): Delete function,
1267 handled by push_dummy_call.
1271 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
1272 (push_dummy_call): New pure multi-arch replacement with gdbarch,
1273 regcache and dummy_addr parameters.
1274 * gdbarch.h, gdbarch.c: Re-generate.
1275 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
1276 available; assume it will handle stack alignment and return
1277 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
1278 legacy_push_arguments.
1279 (legacy_push_arguments): Rename default_push_arguments.
1280 * value.h (legacy_push_arguments): Rename default_push_arguments.
1281 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
1282 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
1283 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
1284 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
1285 * config/i386/tm-symmetry.h: Update.
1286 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1287 * x86-64-tdep.c (x86_64_init_abi): Update.
1288 * v850-tdep.c (v850_gdbarch_init): Update.
1289 * sparc-tdep.c (sparc_gdbarch_init): Update.
1290 * sh-tdep.c (sh_gdbarch_init): Update.
1291 * s390-tdep.c (s390_gdbarch_init): Update.
1292 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1293 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1294 * mips-tdep.c (mips_gdbarch_init): Update.
1295 * mcore-tdep.c (mcore_gdbarch_init): Update.
1296 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1297 * ia64-tdep.c (ia64_gdbarch_init): Update.
1298 * i386-tdep.c (i386_gdbarch_init): Update.
1299 * hppa-tdep.c (hppa_gdbarch_init): Update.
1300 * h8300-tdep.c (h8300_gdbarch_init): Update.
1301 * frv-tdep.c (frv_gdbarch_init): Update.
1302 * d10v-tdep.c (d10v_gdbarch_init): Update.
1303 * cris-tdep.c (cris_gdbarch_init): Update.
1304 * avr-tdep.c (avr_gdbarch_init): Update.
1305 * arm-tdep.c (arm_gdbarch_init): Update.
1306 * arm-linux-tdep.c (arm_linux_init_abi): Update.
1307 * alpha-tdep.c (alpha_gdbarch_init): Update.
1311 * signals/signals.c (do_target_signal_to_host): Correct realtime
1316 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
1317 (struct sal_chain, map_catch_names): Remove.
1318 (catch_exception_command_1): Don't call
1319 handle_gnu_4_16_catch_command.
1324 * dwarf2cfi.c (read_2u): Increment pointer by two.
1328 * signals/signals.c: Fix typos in last change.
1332 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
1333 not already defined. Use __SIGRTMIN if available.
1334 (target_signal_from_host): Remove SIGRTMIN block.
1335 (do_target_signal_to_host): Remove SIGRTMIN block; check that
1336 the signal is within the realtime range.
1340 * Makefile.in (infrun.o): Add $(language_h)
1341 * infrun.c (handle_inferior_event): Use skip_language_trampoline
1342 for language specific trampolines.
1343 * language.h (struct language_defn): Add skip_trampoline.
1344 (skip_language_trampoline): Declare.
1345 * language.c (unk_lang_trampoline, skip_language_trampoline):
1347 (unknown_language_defn, auto_language_defn, local_language_defn):
1348 Add ukn_lang_trampoline.
1349 * ada-lang.c (ada_language_defn): Add NULL for language
1350 specific skip_trampoline.
1351 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
1352 scm-lang.c: Likewise.
1353 * objc-lang.c (objc_skip_trampoline): New function.
1354 (objc_language_defn): Add objc_skip_trampoline.
1358 * frame.c (get_prev_frame): Delay validating a frame's ID -
1359 non-NULL, didn't go backwards - until an attempt to unwind it to
1364 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
1365 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
1366 * gdbarch.h, gdbarch.c: Re-generate.
1367 * config/sparc/tm-sparc.h
1368 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
1369 * sparc-tdep.c (sparc_gdbarch_init): Set
1370 deprecated_extra_stack_alignment_needed.
1371 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
1372 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
1373 extra_stack_alignment_needed.
1374 * v850-tdep.c (v850_gdbarch_init): Ditto.
1375 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1376 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1377 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1378 * cris-tdep.c (cris_gdbarch_init): Ditto.
1379 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1380 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1384 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
1385 STORE_STRUCT_RETURN.
1386 * gdbarch.h, gdbarch.c: Regenerate.
1387 * d10v-tdep.c (d10v_store_struct_return): Delete function.
1388 (d10v_push_arguments): Set the struct return register.
1389 (d10v_gdbarch_init): Update.
1390 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1391 * x86-64-tdep.c (x86_64_init_abi): Update.
1392 * vax-tdep.c (vax_gdbarch_init): Update.
1393 * v850-tdep.c (v850_gdbarch_init): Update.
1394 * sparc-tdep.c (sparc_gdbarch_init): Update.
1395 * sh-tdep.c (sh_gdbarch_init): Update.
1396 * s390-tdep.c (s390_gdbarch_init): Update.
1397 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1398 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1399 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1400 * mips-tdep.c (mips_gdbarch_init): Update.
1401 * mcore-tdep.c (mcore_gdbarch_init): Update.
1402 * m68k-tdep.c (m68k_gdbarch_init): Update.
1403 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1404 * ia64-tdep.c (ia64_gdbarch_init): Update.
1405 * i386-tdep.c (i386_gdbarch_init): Update.
1406 * hppa-tdep.c (hppa_gdbarch_init): Update.
1407 * h8300-tdep.c (h8300_gdbarch_init): Update.
1408 * frv-tdep.c (frv_gdbarch_init): Update.
1409 * cris-tdep.c (cris_gdbarch_init): Update.
1410 * avr-tdep.c (avr_gdbarch_init): Update.
1411 * arm-tdep.c (arm_gdbarch_init): Update.
1412 * alpha-tdep.c (alpha_gdbarch_init): Update.
1416 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
1417 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
1418 CALL_DUMMY_STACK_ADJUST with a predicate variable.
1419 * gdbarch.h, gdbarch.c: Regenerate.
1420 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1421 call_dummy_stack_adjust_p.
1422 * vax-tdep.c (vax_gdbarch_init): Ditto.
1423 * v850-tdep.c (v850_gdbarch_init): Ditto.
1424 * sh-tdep.c (sh_gdbarch_init): Ditto.
1425 * s390-tdep.c (s390_gdbarch_init): Ditto.
1426 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1427 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1428 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1429 * mips-tdep.c (mips_gdbarch_init): Ditto.
1430 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1431 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1432 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1433 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1434 * i386-tdep.c (i386_gdbarch_init): Ditto.
1435 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1436 * frv-tdep.c (frv_gdbarch_init): Ditto.
1437 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1438 * cris-tdep.c (cris_gdbarch_init): Ditto.
1439 * avr-tdep.c (avr_gdbarch_init): Ditto.
1440 * arm-tdep.c (arm_gdbarch_init): Ditto.
1441 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1442 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
1443 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
1444 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
1445 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
1446 call_dummy_stack_adjust_p.
1447 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
1448 (CALL_DUMMY_STACK_ADJUST): Delete macro.
1449 * sparc-tdep.c (sparc32_push_arguments): Update.
1450 * valops.c (hand_function_call): Update.
1454 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
1455 set_gdbarch_char_signed.
1460 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
1464 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
1465 (_initialize_arm_tdep): Don't set tm_print_insn.
1469 * Makefile.in (YYOBJ): Add objc-exp.tab.o
1470 * objc-lang.h: Add multiple inclusion protection.
1471 (start_msglist, add_msglist, end_msglist): Additional declarations.
1475 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
1476 value was renamed to ARM_FLOAT_SOFT_FPA.
1480 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
1481 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
1482 * gdbarch.h, gdbarch.c: Regenerate.
1483 * valops.c (hand_function_call): Update.
1484 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
1485 * frame.c (legacy_saved_regs_this_id): Update.
1486 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
1487 * dummy-frame.h: Update.
1488 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
1489 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
1490 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
1491 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
1492 * config/m68k/tm-sun3.h: Update.
1493 * blockframe.c (inside_main_func, frame_chain_valid): Update.
1494 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1495 * x86-64-tdep.c (x86_64_init_abi): Update.
1496 * vax-tdep.c (vax_gdbarch_init): Update.
1497 * v850-tdep.c (v850_gdbarch_init): Update.
1498 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
1499 * sh-tdep.c (sh_gdbarch_init): Update.
1500 * s390-tdep.c (s390_gdbarch_init): Update.
1501 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1502 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
1503 (frame_get_saved_regs): Update.
1504 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1505 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1506 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1507 * mips-tdep.c (mips_gdbarch_init): Update.
1508 * mcore-tdep.c (mcore_gdbarch_init): Update.
1509 * m68k-tdep.c (m68k_gdbarch_init): Update.
1510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1511 * ia64-tdep.c (ia64_gdbarch_init): Update.
1512 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
1513 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1514 (i386_interix_back_one_frame): Update.
1515 * hppa-tdep.c (hppa_gdbarch_init): Update.
1516 (hppa_init_extra_frame_info): Update.
1517 * h8300-tdep.c (h8300_gdbarch_init): Update.
1518 * frv-tdep.c (frv_gdbarch_init): Update.
1519 * cris-tdep.c (cris_gdbarch_init): Update.
1520 * avr-tdep.c (avr_gdbarch_init): Update.
1521 * arm-tdep.c (arm_gdbarch_init): Update.
1522 * alpha-tdep.c (alpha_gdbarch_init): Update.
1526 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
1527 (arm_get_fp_model): Declare.
1528 * arm-tdep.c (fp_model_strings): New string array.
1529 (arm_fp_model, current_fp_model): New variables.
1530 (arm_get_fp_model): New function.
1531 (arm_set_fp): New function.
1532 (set_fp_model_sfunc): New function.
1533 (show_fp_model): New function.
1534 (_initialize_arm_tdep): Add new command to set/show the FPU.
1535 (arm_extract_return_value): Use arm_get_fp_model.
1536 (arm_store_return_value): Likewise.
1537 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
1538 to initialize the floating-point data types.
1539 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
1544 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
1545 the current setting of each value.
1546 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
1547 new_set and new_show. Use add_setshow_cmd_full and
1548 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
1549 commands and add new version as subcommands of "set/show arm".
1553 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
1554 (set_arm_command, show_arm_command): New functions.
1555 (_initialize_arm_tdep): Add them.
1556 (num_disassembly_options): Renamed from num_flavor_options.
1557 (valid_disassembly_styles): Renamed from valid_flavors.
1558 (disassembly_style): Renamed from disassembly_flavor.
1559 (set_disassembly_style_sfunc): Renamed from
1560 set_disassembly_flavor_sfunc.
1561 (set_disassembly_style): Renamed from set_disassembly_flavor.
1562 (arm_othernames): Updated.
1563 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
1564 command. Add "set/show arm disassembly" commands. Deprecate
1565 "othernames" command.
1569 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
1570 (arm-tdep.o): Depend on elf_arm_h.
1574 * Makefile.in (coff_internal_h): Define.
1575 (arm-tdep.o): Update dependencies.
1579 * arm-tdep.c (prologue_cache): Delete.
1580 (check_prologue_cache, save_prologue_cache): Delete.
1581 (arm_scan_prologue): Don't check or update the prologue_cache.
1582 (arm_gdb_arch_init): Don't initialize it.
1583 (_initialize_arm_tdep): Likewise.
1587 * MAINTAINERS (tui): Maintainer of tui code.
1591 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
1592 (i386-cygwin-tdep.o): Add dependencies.
1593 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
1594 * i386-cygwin-tdep.c: New file.
1595 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
1596 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
1600 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
1601 (handle_inferior_event): Remove code calling
1602 DYNAMIC_TRAMPOLINE_NEXTPC.
1604 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
1605 already has a full path.
1607 * main.c (gdb_main): Return 1.
1608 (captured_main): Call error to report an invalid interpreter.
1610 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
1611 * alpha-osf1-tdep.c: Include "gdb_string.h".
1615 Continuing work to convert the hppa targets to multiarch partial.
1617 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
1618 method, now that hppa_push_dummy_frame has a conformant prototype.
1619 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
1620 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
1621 for the switch to multiarch partial.
1625 * mdebugread.c (parse_symbol): For stEnd, we're done counting
1626 when iss is issNull.
1630 * mips-tdep.c (mips_register_name): Fix fencepost error involving
1631 NUM_REGS bounds check.
1635 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
1636 * mips-tdep.c (gdb_assert.h): Include.
1637 (mips_generic_reg_names, mips_processor_reg_names): Make static.
1638 (mips_register_name): Handle integer registers explicitly. Add
1640 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
1641 (mips_lsi33k_reg_names): Don't list integer registers; they're
1642 handled by mips_register_name() now.
1643 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
1644 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
1645 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
1646 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
1647 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
1651 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
1653 * gdbtypes.h (print_scalar_formatted): Update declaration.
1654 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
1658 * infrun.c (observer.h): Add #include.
1659 (normal_stop): Add call to observer_notify_normal_stop.
1660 * Makefile.in (infrun.o): Add dependency on observer.h.
1664 Continuing work to convert the hppa targets to multiarch partial.
1665 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
1666 parameter. Reformat comment.
1667 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
1668 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
1669 to match new profile.
1673 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
1674 appear to be working in any case.
1678 * observer.c (observer_test_first_observer): New static variable.
1679 (observer_test_second_observer): Likewise.
1680 (observer_test_third_observer): Likewise.
1681 (observer_test_first_notification_function): New static function.
1682 (observer_test_second_notification_function): Likewise.
1683 (observer_test_third_notification_function): Likewise.
1687 * hppa-tdep.c (gdb_assert.h): Add missing #include.
1688 * somsolib.c (gdb_assert.h): Likewise.
1689 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
1690 (somsolib.o): Likewise.
1694 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
1695 BFD. Simplify setting of di.endian.
1699 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
1700 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
1703 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
1704 vector and floating-point parameters.
1705 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
1707 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
1711 * MAINTAINERS: Remove my name from several maintainership roles.
1715 Fix frame off-by-one bug.
1716 * frame-unwind.h (frame_this_id_ftype): Replace
1717 frame_unwind_id_ftype.
1718 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
1719 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
1720 with "prev_register".
1721 * frame-unwind.c (frame_unwind_find_by_pc): Return
1722 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
1724 * dummy-frame.c (cached_find_dummy_frame): Delete function.
1725 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
1726 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
1727 (dummy_frame_unwind): Update.
1728 * sentinel-frame.c (sentinel_frame_prev_register): Replace
1729 sentinel_frame_register_unwind.
1730 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
1731 (sentinel_frame_unwinder): Update.
1732 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1733 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
1734 * frame.c (create_sentinel_frame): Update. Initialize
1735 "prologue_cache" instead of "unwind_cache".
1736 (frame_register_unwind): Call this frame's prev_register with the
1737 next frame and this frame's prologue cache.
1738 (get_prev_frame): Simplify. Always call prev frame's this_id with
1739 this frame and prev frame's prologue cache. Document that this
1740 call is shifted one to the left when compared to the
1741 frame_register_unwind call.
1742 (legacy_saved_regs_prev_register): Replace
1743 frame_saved_regs_register_unwind.
1744 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
1745 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
1746 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1747 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
1748 (d10v_frame_unwind): Update.
1749 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
1750 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
1751 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
1752 "saved_regs" with "this_saved_regs".
1756 * frame.c (frame_pop): Don't call target_store_registers. Fix
1757 problem reported by Mark Kettenis.
1761 * i386-tdep.c (i386_register_type): Renamed from
1762 i386_register_virtual_type. Adjust function signature.
1763 (i386_gdbarch_init): Set register_type instead of
1764 deprecated_max_register_raw_size,
1765 deprecated_max_register_virtual_size and register_virtual_type.
1769 * frame.c (get_prev_frame): When a legacy frame, always call
1770 legacy_get_prev_frame. Simplify unwind code using assumption that
1771 the unwinder is new.
1772 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
1773 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
1774 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
1778 * frame.c (get_saved_register): Delete function.
1779 * frame.h (get_saved_register): Delete declaration.
1780 * xstormy16-tdep.c: Update comment.
1781 * regcache.h: Update comments.
1782 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
1783 get_saved_register and extract_address, use
1784 frame_read_unsigned_register.
1785 (sparc_frame_saved_pc): Ditto.
1786 (sparc_get_saved_register): Instead of get_saved_register, use
1788 (sparc_pop_frame): Ditto.
1789 * findvar.c: Update comments.
1790 (value_of_register): Call frame_register instead of
1792 (value_from_register): Ditto.
1793 * config/sparc/tm-sparc.h: Update comment.
1794 * breakpoint.c: Update comment.
1798 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
1800 * gdbarch.h, gdbarch.c: Re-generate.
1801 * frame.h: Update comments.
1802 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1803 * x86-64-tdep.c (x86_64_init_abi): Update.
1804 * sparc-tdep.c (sparc_gdbarch_init): Update.
1805 * sh-tdep.c (sh_gdbarch_init): Update.
1806 * mips-tdep.c (mips_gdbarch_init): Update.
1807 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1808 * cris-tdep.c (cris_gdbarch_init): Update.
1809 * ia64-tdep.c (ia64_gdbarch_init): Update.
1810 * frame.c (frame_register): Update.
1811 (get_saved_register): Update.
1812 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
1816 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
1817 * gdbarch.h, gdbarch.c: Regenerate.
1818 * valops.c (hand_function_call): Update comment.
1819 * stack.c (return_command): Update comment.
1820 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
1821 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
1822 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1823 * x86-64-tdep.c (x86_64_init_abi): Update.
1824 * vax-tdep.c (vax_gdbarch_init): Update.
1825 * v850-tdep.c (v850_gdbarch_init): Update.
1826 * sparc-tdep.c (sparc_gdbarch_init): Update.
1827 * sh-tdep.c (sh_gdbarch_init): Update.
1828 * s390-tdep.c (s390_gdbarch_init): Update.
1829 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1830 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1831 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1832 * mips-tdep.c (mips_gdbarch_init): Update.
1833 * mcore-tdep.c (mcore_gdbarch_init): Update.
1834 * m68k-tdep.c (m68k_gdbarch_init): Update.
1835 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1836 * ia64-tdep.c (ia64_gdbarch_init): Update.
1837 * i386-tdep.c (i386_gdbarch_init): Update.
1838 * hppa-tdep.c (hppa_gdbarch_init): Update.
1839 * h8300-tdep.c (h8300_gdbarch_init): Update.
1840 * frv-tdep.c (frv_gdbarch_init): Update.
1841 * cris-tdep.c (cris_gdbarch_init): Update.
1842 * avr-tdep.c (avr_gdbarch_init): Update.
1843 * arm-tdep.c (arm_gdbarch_init): Update.
1844 * alpha-tdep.c (alpha_gdbarch_init): Update.
1848 * frame.c (legacy_frame_p): New function.
1849 (get_prev_frame): Use legacy_frame_p.
1850 * frame.h (legacy_frame_p): Declare.
1854 * MAINTAINERS (write after approval): Alphabetically
1859 * MAINTAINERS (write after approval): Add myself.
1863 * frame.c (get_prev_frame): Rename the frame parameter to
1865 (get_next_frame, legacy_get_prev_frame): Ditto.
1869 * frame.c (get_current_frame): Check target_has_registers before
1870 checking target_has_stack.
1871 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
1872 instead of deprecated_selected_frame.
1873 * findvar.c (value_of_register): Pass "frame", not
1874 deprecated_selected_frame, to value_of_builtin_reg.
1878 * regcache.c (regcache_cooked_write_signed): New function.
1879 (regcache_cooked_write_unsigned): New function.
1880 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
1881 (regcache_cooked_read_signed): Fix regnum in range assertion.
1882 * regcache.h (regcache_cooked_write_signed): Declare.
1883 (regcache_cooked_write_unsigned): Declare.
1887 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1888 * gdbarch.h, gdbarch.c: Re-generate.
1889 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1890 * x86-64-tdep.h: Update.
1891 * x86-64-tdep.c (x86_64_init_abi): Update.
1892 * v850-tdep.c (v850_gdbarch_init): Update.
1893 * sparc-tdep.c (sparc_gdbarch_init): Update.
1894 * sh-tdep.c (sh_gdbarch_init): Update.
1895 * s390-tdep.c (s390_gdbarch_init): Update.
1896 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1897 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1898 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1899 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1900 * mips-tdep.c (mips_gdbarch_init): Update.
1901 * mcore-tdep.c (mcore_gdbarch_init): Update.
1902 * m68k-tdep.c (m68k_gdbarch_init): Update.
1903 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1904 * ia64-tdep.c (ia64_gdbarch_init): Update.
1905 * i386-tdep.c (i386_gdbarch_init): Update.
1906 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1907 * hppa-tdep.c (hppa_gdbarch_init): Update.
1908 * h8300-tdep.c (h8300_gdbarch_init): Update.
1909 * frv-tdep.c (frv_gdbarch_init): Update.
1910 * cris-tdep.c (cris_gdbarch_init): Update.
1911 * avr-tdep.c (avr_gdbarch_init): Update.
1912 * arm-tdep.c (arm_gdbarch_init): Update.
1913 * alpha-tdep.c (alpha_gdbarch_init): Update.
1914 * sh-tdep.c (sh_init_extra_frame_info): Update.
1915 (sh64_init_extra_frame_info): Update.
1916 * ns32knbsd-nat.c (frame_num_args): Update.
1917 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1918 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1919 (xstormy16_frame_chain_valid): Update.
1920 * vax-tdep.c (vax_saved_pc_after_call): Update.
1921 * v850-tdep.c (v850_frame_chain): Update.
1922 (v850_pop_frame): Update.
1923 (v850_init_extra_frame_info): Update.
1924 * sparc-tdep.c (setup_arbitrary_frame): Update.
1925 * ns32k-tdep.c (umax_frame_num_args): Update.
1926 * s390-tdep.c (s390_pop_frame_regular): Update.
1927 * mn10300-tdep.c (mn10300_frame_chain): Update.
1928 (mn10300_pop_frame_regular): Update.
1929 (mn10300_init_extra_frame_info): Update.
1930 * mips-tdep.c (mips_init_frame_pc_first): Update.
1931 (mips_frame_chain): Update.
1932 (mips_pop_frame): Update.
1933 * mcore-tdep.c (mcore_frame_chain): Update.
1934 (mcore_pop_frame): Update.
1935 (mcore_init_extra_frame_info): Update.
1936 * arch-utils.c (init_frame_pc_default): Update.
1937 * m68k-tdep.c (isi_frame_num_args): Update.
1938 (delta68_frame_num_args): Update.
1939 (news_frame_num_args): Update.
1940 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1941 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1942 (alpha_frame_chain): Update.
1943 (alpha_pop_frame): Update.
1944 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1945 (hppa_init_extra_frame_info): Update.
1946 (hppa_frame_chain): Update.
1947 (hppa_frame_chain_valid): Update.
1948 * cris-tdep.c (cris_init_extra_frame_info): Update.
1949 * avr-tdep.c (avr_init_extra_frame_info): Update.
1950 * arm-tdep.c (arm_frame_chain_valid): Update.
1951 (arm_init_extra_frame_info): Update.
1952 (arm_pop_frame): Update.
1953 * frame.c (frame_pc_unwind): Update.
1954 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1955 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1956 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1957 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1958 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1959 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1963 Eliminate the need for POP_FRAME.
1964 * frame.c (do_frame_unwind_register): New function.
1965 (frame_pop): When no POP_FRAME, pop the frame using register
1966 unwind and a scratch regcache.
1967 (frame_saved_regs_pop): Delete function.
1968 (trad_frame_unwinder): Update.
1969 * d10v-tdep.c (d10v_frame_pop): Delete function.
1970 (d10v_frame_unwind): Update.
1971 * sentinel-frame.c (sentinel_frame_pop): Delete function.
1972 (sentinel_frame_unwinder): Update.
1973 * dummy-frame.c (dummy_frame_pop): Delete function.
1974 (dummy_frame_unwind): Update.
1975 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
1976 (struct frame_unwind): Update.
1980 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
1981 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
1982 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
1983 Do range checks on register number obtained from debugging info.
1984 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
1985 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
1986 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
1988 (do_fp_register_row): Fix typo which caused double type to be
1989 used when attempting to unpack a float.
1993 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
1997 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
1998 frame. Problem found by Corinna Vinschen.
2002 * doublest.c (floatformat_from_length): Accept also
2003 the real size of 'long double' type.
2008 * breakpoint.c (bpstat_copy): Copy the command lines as well
2009 as the old value, to match what is freed in bpstat_clear.
2013 * minsyms.c (add_minsym_to_hash_table): Replace
2014 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2015 (compare_minimal_symbols, compact_minimal_symbols)
2016 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
2017 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
2018 of DEPRECATED_SYMBOL_MATCHES_NAME.
2019 (lookup_minimal_symbol_solib_trampoline): Ditto.
2023 * regcache.h (regcache_cooked_read_ftype): Define.
2024 (regcache_save, regcache_restore): Add a cooked_read parameter.
2025 * regcache.c (regcache_save, regcache_restore): Update.
2026 (do_cooked_read): New function.
2027 (regcache_cpy): Pass do_cooked_read to regcache_save and
2032 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
2033 * gdbarch.h, gdbarch.c: Re-generate.
2034 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2035 * x86-64-tdep.h: Update.
2036 * x86-64-tdep.c (x86_64_init_abi): Update.
2037 * v850-tdep.c (v850_gdbarch_init): Update.
2038 * sparc-tdep.c (sparc_gdbarch_init): Update.
2039 * sh-tdep.c (sh_gdbarch_init): Update.
2040 * s390-tdep.c (s390_gdbarch_init): Update.
2041 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2042 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2043 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2044 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2045 * mips-tdep.c (mips_gdbarch_init): Update.
2046 * mcore-tdep.c (mcore_gdbarch_init): Update.
2047 * m68k-tdep.c (m68k_gdbarch_init): Update.
2048 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2049 * ia64-tdep.c (ia64_gdbarch_init): Update.
2050 * i386-tdep.c (i386_gdbarch_init): Update.
2051 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2052 * hppa-tdep.c (hppa_gdbarch_init): Update.
2053 * h8300-tdep.c (h8300_gdbarch_init): Update.
2054 * frv-tdep.c (frv_gdbarch_init): Update.
2055 * cris-tdep.c (cris_gdbarch_init): Update.
2056 * avr-tdep.c (avr_gdbarch_init): Update.
2057 * arm-tdep.c (arm_gdbarch_init): Update.
2058 * alpha-tdep.c (alpha_gdbarch_init): Update.
2059 * sh-tdep.c (sh_init_extra_frame_info): Update.
2060 (sh64_init_extra_frame_info): Update.
2061 * ns32knbsd-nat.c (frame_num_args): Update.
2062 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
2063 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
2064 (xstormy16_frame_chain_valid): Update.
2065 * vax-tdep.c (vax_saved_pc_after_call): Update.
2066 * v850-tdep.c (v850_frame_chain): Update.
2067 (v850_pop_frame): Update.
2068 (v850_init_extra_frame_info): Update.
2069 * sparc-tdep.c (setup_arbitrary_frame): Update.
2070 * ns32k-tdep.c (umax_frame_num_args): Update.
2071 * s390-tdep.c (s390_pop_frame_regular): Update.
2072 * mn10300-tdep.c (mn10300_frame_chain): Update.
2073 (mn10300_pop_frame_regular): Update.
2074 (mn10300_init_extra_frame_info): Update.
2075 * mips-tdep.c (mips_init_frame_pc_first): Update.
2076 (mips_frame_chain): Update.
2077 (mips_pop_frame): Update.
2078 * mcore-tdep.c (mcore_frame_chain): Update.
2079 (mcore_pop_frame): Update.
2080 (mcore_init_extra_frame_info): Update.
2081 * arch-utils.c (init_frame_pc_default): Update.
2082 * m68k-tdep.c (isi_frame_num_args): Update.
2083 (delta68_frame_num_args): Update.
2084 (news_frame_num_args): Update.
2085 * ia64-tdep.c (ia64_pop_frame_regular): Update.
2086 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
2087 (alpha_frame_chain): Update.
2088 (alpha_pop_frame): Update.
2089 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
2090 (hppa_init_extra_frame_info): Update.
2091 (hppa_frame_chain): Update.
2092 (hppa_frame_chain_valid): Update.
2093 * cris-tdep.c (cris_init_extra_frame_info): Update.
2094 * avr-tdep.c (avr_init_extra_frame_info): Update.
2095 * arm-tdep.c (arm_frame_chain_valid): Update.
2096 (arm_init_extra_frame_info): Update.
2097 (arm_pop_frame): Update.
2098 * frame.c (frame_pc_unwind): Update.
2099 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
2100 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2101 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2102 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
2103 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
2104 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
2108 * gdbarch.sh (gdbarch_unwind_pc): New method.
2109 * gdbarch.h, gdbarch.c: Regenerate.
2110 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
2111 but use read_pc and FRAME_SAVED_PC as fall backs.
2112 (frame_saved_regs_pc_unwind): Delete function.
2113 (trad_frame_unwinder): Update.
2114 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
2115 (struct frame_unwind): Update.
2116 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
2117 (dummy_frame_unwind): Update.
2118 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
2119 (sentinel_frame_unwinder): Update.
2120 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
2121 (d10v_frame_unwind): Update.
2122 (d10v_unwind_pc): New function.
2123 (d10v_gdbarch_init): Set unwind_pc.
2127 * gdbarch.h: Re-generate.
2129 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
2131 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
2136 * gdbarch.sh (save_dummy_frame_tos): Add comment.
2140 * cli-out.c: Update copyright.
2141 (cli_out_data): Define typedef. Use instead of ui_out_data.
2145 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
2150 * gdbarch.sh: Don't generate two macro definitions when an
2151 undefined macro taking no arguments.
2152 * gdbarch.h: Regenerate.
2156 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
2157 (x86_64_unwind_dummy_id): New functions.
2158 (x86_64_init_abi): Register these two new functions.
2162 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
2163 (x86_64_skip_prologue): Move prologue detection to
2165 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
2169 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
2170 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
2171 * frame.c (get_prev_frame): Restructure the frame ID unwind code
2172 to use unwind_dummy_id when a dummy frame.
2173 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
2175 * gdbarch.h, gdbarch.c: Regneerate.
2179 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
2180 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
2181 Do not use d10v_read_sp or d10v_read_fp when obtaining register
2186 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
2187 (struct d10v_unwind_cache): Delete field "frameless". Replace
2188 "next_addr" with "sp_offset". Add "r11_offset".
2189 (d10v_frame_unwind_cache): Update.
2190 (prologue_find_regs): Update. When "mv r11, sp", save the
2191 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
2192 RN was saved in r11_offset.
2196 * frame.c (deprecated_update_frame_pc_hack): Also update the the
2197 cached PC value in the next frame.
2201 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
2202 "id_unwind_cache" with "id".
2203 (frame_id_unwind): Delete declaration.
2204 * frame.c (frame_id_unwind): Delete function.
2205 (get_prev_frame): Call the frame id unwind method directly. Store
2206 the returned next frame's ID value in NEXT_FRAME. Note that there
2207 is a problem with the wrong unwind ID being called with the wrong
2212 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
2217 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
2218 (auto_cp_abi): New variable.
2219 (current_cp_abi, num_cp_abis): Make static.
2220 (CP_ABI_MAX): Define.
2221 (cp_abis): Turn into an array.
2222 (value_virtual_fn_field): Fix formatting.
2223 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
2225 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
2226 (list_cp_abis, _initialize_cp_abi): New functions.
2227 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
2228 declarations for cp_abis, num_cp_abis, current_cp_abi, and
2229 switch_to_cp_abi. Update prototype for register_cp_abi.
2230 * Makefile.in (cp-abi.o): Update dependencies.
2231 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
2232 instead of switch_to_cp_abi.
2233 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
2235 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
2237 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
2241 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
2242 * dwarf2loc.c: Include "regcache.h".
2243 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
2245 * Makefile.in (dwarf2loc.o): Update dependencies.
2249 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
2250 number of io registers reported by remote target is not a multiple of
2255 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
2256 (lookup_symbol_aux_psymtabs): Update call to
2257 lookup_partial_symbol.
2258 (lookup_transparent_type, find_main_psymtab)
2259 (make_symbol_overload_list): Ditto.
2263 * MAINTAINERS (Write after approval): Update my email address.
2267 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
2268 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
2269 predicate. Replace MAX_REGISTER_RAW_SIZE.
2270 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
2271 MAX_REGISTER_VIRTUAL_SIZE.
2272 * regcache.c (legacy_max_register_raw_size): New function.
2273 (legacy_max_register_virtual_size): New function.
2274 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
2275 (MAX_REGISTER_RAW_SIZE): Define.
2276 (legacy_max_register_raw_size): Declare.
2277 (legacy_max_register_virtual_size): Declare.
2278 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2279 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
2280 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2281 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
2282 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2283 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
2284 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
2285 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
2286 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
2287 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2288 * vax-tdep.c (vax_gdbarch_init): Update.
2289 * v850-tdep.c (v850_gdbarch_init): Update.
2290 * sparc-tdep.c (sparc_gdbarch_init): Update.
2291 * sh-tdep.c (sh_gdbarch_init): Update.
2292 * s390-tdep.c (s390_gdbarch_init): Update.
2293 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2294 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2295 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2296 * mips-tdep.c (mips_gdbarch_init): Update.
2297 * mcore-tdep.c (mcore_gdbarch_init): Update.
2298 * m68k-tdep.c (m68k_gdbarch_init): Update.
2299 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2300 * ia64-tdep.c (ia64_gdbarch_init): Update.
2301 * i386-tdep.c (i386_gdbarch_init): Update.
2302 * hppa-tdep.c (hppa_gdbarch_init): Update.
2303 * h8300-tdep.c (h8300_gdbarch_init): Update.
2304 * frv-tdep.c (frv_gdbarch_init): Update.
2305 * cris-tdep.c (cris_gdbarch_init): Update.
2306 * avr-tdep.c (avr_gdbarch_init): Update.
2307 * arm-tdep.c (arm_gdbarch_init): Update.
2308 * alpha-tdep.c (alpha_gdbarch_init): Update.
2309 * d10v-tdep.c (d10v_gdbarch_init): Do not set
2310 max_register_raw_size or max_register_virtual_size.
2314 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
2315 SYMBOL_MATCHES_NAME, add comment.
2316 (SYMBOL_MATCHES_NATURAL_NAME): New.
2317 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
2318 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
2319 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
2320 * symtab.c (lookup_partial_symbol): Use
2321 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
2323 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
2324 SYMBOL_MATCHES_NAME.
2329 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
2330 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
2331 by regexp matching against SYMBOL_NATURAL_NAME.
2335 * linespec.c (find_method): Extract code into collect_methods.
2336 (collect_methods): New.
2340 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
2343 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
2344 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2348 * arch-utils.c (generic_register_byte): Fix to use the loop index
2349 and not regnum when summing the size of all registers up to regnum.
2353 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
2354 FRAME_INIT_SAVED_REGS.
2355 * gdbarch.h, gdbarch.c: Regenerate.
2356 * stack.c (frame_info): Update.
2357 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
2358 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
2359 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
2360 * ns32k-tdep.c (ns32k_pop_frame): Update.
2361 * mips-tdep.c (mips_pop_frame): Update.
2362 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
2363 * ia64-tdep.c (ia64_frame_chain): Update.
2364 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
2365 (ia64_frameless_function_invocation): Update.
2366 (ia64_init_extra_frame_info): Update.
2367 (ia64_pop_frame_regular): Update.
2368 * frame.h (struct frame_info): Update comment.
2369 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
2370 * frame.c (frame_saved_regs_register_unwind): Update.
2371 (frame_saved_regs_register_unwind): Update.
2372 (deprecated_generic_get_saved_register): Update.
2373 * cris-tdep.c: Update comment.
2374 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
2376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2377 * x86-64-tdep.c (x86_64_init_abi): Update.
2378 * vax-tdep.c (vax_gdbarch_init): Update.
2379 * v850-tdep.c (v850_gdbarch_init): Update.
2380 * sparc-tdep.c (sparc_gdbarch_init): Update.
2381 * sh-tdep.c (sh_gdbarch_init): Update.
2382 * s390-tdep.c (s390_gdbarch_init): Update.
2383 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2384 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2385 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2386 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2387 * mips-tdep.c (mips_gdbarch_init): Update.
2388 * mcore-tdep.c (mcore_gdbarch_init): Update.
2389 * m68k-tdep.c (m68k_gdbarch_init): Update.
2390 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2391 * ia64-tdep.c (ia64_gdbarch_init): Update.
2392 * i386-tdep.c (i386_gdbarch_init): Update.
2393 * frv-tdep.c (frv_gdbarch_init): Update.
2394 * avr-tdep.c (avr_gdbarch_init): Update.
2395 * arm-tdep.c (arm_gdbarch_init): Update.
2396 * alpha-tdep.c (alpha_gdbarch_init): Update.
2400 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
2401 option enum and switch. When no windows, set the interpreter to
2406 * main.c (captured_main): Replace magic option characters with an
2411 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
2412 INIT_EXTRA_FRAME_INFO.
2413 * gdbarch.h, gdbarch.c: Regenerate.
2414 * arm-tdep.c: Update comments.
2415 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
2416 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
2417 * frame.h, avr-tdep.c: Ditto.
2418 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
2419 (create_new_frame, legacy_get_prev_frame): Ditto.
2420 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
2421 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
2422 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
2423 deprecated_init_extra_frame_info instead of init_extra_frame_info.
2424 * x86-64-tdep.c (x86_64_init_abi): Ditto.
2425 * v850-tdep.c (v850_gdbarch_init): Ditto.
2426 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2427 * sh-tdep.c (sh_gdbarch_init): Ditto.
2428 * s390-tdep.c (s390_gdbarch_init): Ditto.
2429 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
2430 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2431 * mips-tdep.c (mips_gdbarch_init): Ditto.
2432 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2433 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2434 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2435 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2436 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2437 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2438 * frv-tdep.c (frv_gdbarch_init): Ditto.
2439 * cris-tdep.c (cris_gdbarch_init): Ditto.
2440 * avr-tdep.c (avr_gdbarch_init): Ditto.
2441 * arm-tdep.c (arm_gdbarch_init): Ditto.
2442 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2443 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2447 * gdbarch.sh (register_type): New function with predicate.
2448 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
2449 * gdbarch.h, gdbarch.c: Re-generate.
2450 * arch-utils.c (generic_register_byte): Use generic_register_size.
2451 (generic_register_size): When available, use
2452 gdbarch_register_type.
2453 * regcache.c (init_regcache_descr): When available, initialize the
2454 register type array using gdbarch_register_type. If the
2455 architecture supplies gdbarch_register_type, do not use the legacy
2457 * d10v-tdep.c (d10v_register_type): Replace
2458 d10v_register_virtual_type.
2459 (d10v_gdbarch_init): Set register_type instead of
2460 register_virtual_type.
2464 * Makefile.in (ax-gdb.o): Update dependencies.
2465 * ax-gdb.c: Include "regcache.h".
2466 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
2467 * findvar.c (value_of_register): Ditto.
2468 * infcmd.c (default_print_registers_info): Ditto.
2472 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
2473 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2477 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
2482 * Makefile.in (dwarf2loc.o): Update dependencies.
2483 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
2484 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
2485 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
2486 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
2487 (locexpr_tracepoint_var_ref): New function.
2488 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
2492 * regcache.c (register_size): New function.
2493 * regcache.h (register_size): Declare
2494 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
2495 max_register_size instead of MAX_REGISTER_RAW_SIZE.
2499 * linespec.c (decode_compound): Extract code into find_method.
2504 * Makefile.in: Add rules to build and link in observer.o.
2508 * observer.c: Minor comments edits.
2512 * observer.h, observer.c: New file.
2516 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
2520 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
2521 (M6812_OP_STS_EXT): Likewise.
2522 (m6811_prologue): Use the above to recognize prologue.
2523 (m6812_prologue): Likewise.
2527 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
2529 (compare_psymbols): Ditto.
2530 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
2534 * f-lang.c (build_fortran_types): New function.
2535 (_initialize_f_language): Gdbarch-register built-in fortran types.
2536 * doublest.c (extract_floating): Fix warning text.
2540 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
2541 predicate. Replaces PUSH_DUMMY_FRAME.
2542 * gdbarch.h, gdbarch.c: Regnerate.
2543 * valops.c (hand_function_call): Update. Call
2544 generic_push_dummy_frame directly.
2545 * vax-tdep.c (vax_gdbarch_init): Update.
2546 * sparc-tdep.c (sparc_gdbarch_init): Update.
2547 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2548 * m68k-tdep.c (m68k_gdbarch_init): Update.
2549 * hppa-tdep.c (hppa_gdbarch_init): Update.
2550 * alpha-tdep.c (alpha_gdbarch_init): Update.
2551 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2552 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2553 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
2554 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
2555 push_dummy_frame to generic_push_dummy_frame.
2556 * v850-tdep.c (v850_gdbarch_init): Ditto.
2557 * sh-tdep.c (sh_gdbarch_init): Ditto.
2558 * s390-tdep.c (s390_gdbarch_init): Ditto.
2559 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2560 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2561 * mips-tdep.c (mips_gdbarch_init): Ditto.
2562 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2563 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2564 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2565 * i386-tdep.c (i386_gdbarch_init): Ditto.
2566 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2567 * frv-tdep.c (frv_gdbarch_init): Ditto.
2568 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2569 * cris-tdep.c (cris_gdbarch_init): Ditto.
2570 * avr-tdep.c (avr_gdbarch_init): Ditto.
2571 * arm-tdep.c (arm_gdbarch_init): Ditto.
2575 * mips-tdep.c (show_mips_abi): New function.
2576 (_initialize_mips_tdep): Use show_mips_abi() to implement the
2577 command ``show mips abi''.
2582 * dbxread.c (process_one_symbol): Only record line 0 if one or
2583 more sline entries have been seen for the function.
2587 * configure: Regenerate with autoconf 000227.
2592 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
2593 for old libc5/glibc.
2594 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
2598 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
2599 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
2603 * configure.in: New variable HAVE_UINTPTR_T.
2604 * configure, config.in: Regenerated.
2609 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
2613 * frame.c (get_prev_frame): Add comment on check for
2614 inside_entry_func. Only check for inside_entry_file when not a
2615 dummy and not a sentinel. Check that the new frame is not inner
2620 * frame.c (frame_debug): New variable.
2621 (_initialize_frame): Add "set/show debug frame" command.
2622 (get_prev_frame): When frame_debug, print reason why unwind
2627 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
2628 to avoid uintptr_t definition problems.
2632 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
2633 (SYMBOL_LINKAGE_NAME): Ditto.
2634 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
2635 SYMBOL_LINKAGE_NAME.
2636 (struct general_symbol_info): Expand comment.
2637 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
2638 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
2639 (SYMBOL_MATCHES_REGEXP): Ditto.
2640 * symtab.c (symbol_natural_name): New function.
2641 * objfiles.h: Replace all uses of SYMBOL_NAME by
2642 DEPRECATED_SYMBOL_NAME.
2643 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
2644 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
2645 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
2646 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
2647 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
2648 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
2649 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
2650 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
2651 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
2652 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
2654 * ada-exp.y: Update copyright.
2655 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
2656 * cp-valprint.c: Ditto.
2660 * infptrace.c (detach): Do not flag error if ptrace detach fails
2661 and errno is set to ESRCH.
2665 * infptrace.c (udot_info): Change type of udot_off to long. Use
2666 paddr when printing udot_off's value.
2670 * symtab.c (make_symbol_overload_list): Only read in partial
2671 symtabs containing a matching partial symbol.
2675 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
2676 do the comparison, not strcmp.
2677 * symfile.c (compare_psymbols): Ditto.
2678 * defs.h: Declare strcmp_iw_ordered.
2679 * utils.c (strcmp_iw_ordered): New function.
2683 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
2684 support, shared libs): Remove my name from here, to better reflect
2689 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
2690 (target_ops): Add to_have_continuable_watchpoint.
2691 * target.c (update_current_target): Add INHERIT line for
2692 to_have_continuable_watchpoint.
2693 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
2694 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
2695 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
2696 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
2700 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
2705 * solib.c (solib_open): Call target defined search function after
2706 failing with solib-search-path.
2707 * solist.h (target_so_ops): Add find_and_open_solib function hook and
2708 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2712 * MAINTAINERS: Add myself to Write After section.
2716 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
2720 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
2721 (m68hc11_add_reggroups): New function.
2722 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
2723 (m68hc11_gdbarch_init): Install the reggroups.
2724 (_initialize_m68hc11_tdep): Initialize them.
2728 * MAINTAINERS: Update my email address.
2732 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
2737 * symtab.h: Add opaque declarations of struct axs_value and
2739 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
2740 (struct location_funcs): New type.
2741 (struct symbol): Add "loc" to aux_value.
2742 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
2743 * dwarf2read.c: Include "dwarf2expr.h".
2744 (dwarf2_symbol_mark_computed): New function.
2745 (read_func_scope): Use it.
2746 (var_decode_location): New function.
2747 (new_symbol): Use it.
2748 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
2750 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
2751 (dwarf2expr_h, dwarf2loc_h): New variables.
2752 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
2753 (dwarf2expr.o, dwarf2loc.o): New rules.
2754 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
2755 * buildsym.c (finish_block): Handle LOC_COMPUTED and
2757 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2758 * m2-exp.y (yylex): Likewise.
2759 * printcmd.c (address_info, print_frame_args): Likewise.
2760 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
2761 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2762 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
2763 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
2764 * symtab.c (lookup_block_symbol): Likewise.
2768 * symtab.h: Remove objc_specific struct
2769 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
2770 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
2771 Have language_objc use cplus_specific struct.
2775 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
2776 TYPE_NAME, when printing a String value. PR java/1075.
2780 * objc-lang.h (find_methods): Remove declaration.
2781 * objc-lang.c (find_methods): Make static.
2785 * win32-nat.c (get_image_name): Check return value from
2787 (child_xfer_memory): Ditto.
2791 * configure.in (TARGET_SYSTEM_ROOT): Set default to
2792 ${exec_prefix}/${target_alias}/sys-root. Match explicit
2793 '${exec_prefix}' (in addition to the expansion thereof) as
2795 * configure: Rebuilt.
2799 * symtab.c (search_symbols): Revert the search_symbols part of my
2800 2002-12-23 patch. Add comment.
2804 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
2805 * dbxread.c (elfstab_build_psymtabs): Don't call
2806 install_minimal_symbols.
2807 (stabsect_build_psymtabs): Likewise.
2808 * elfread.c (elf_symfile_read): Call install_minimal_symbols
2810 * somread.c (som_symfile_read): Call install_minimal_symbols
2811 and do_cleanups earlier.
2812 * nlmread.c (nlm_symfile_read): Likewise.
2813 * mdebugread.c (elfmdebug_build_psymtabs): Call
2814 install_minimal_symbols and make appropriate cleanups.
2818 * solib.c (reload_shared_libraries): New function.
2819 (_initialize_solib): Add callbacks for ``set solib-search-path''
2820 and ``set solib-absolute-prefix''.
2824 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
2826 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
2827 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
2828 * ada-typeprint.c (ada_typedef_print): Ditto.
2829 * ax-gdb.c (gen_var_ref): Ditto.
2830 * breakpoint.c (print_one_breakpoint): Ditto.
2831 * buildsym.c (finish_block): Ditto.
2832 * c-valprint.c (c_val_print): Ditto.
2833 * expprint.c (print_subexp): Ditto.
2834 * findvar.c (locate_var_value): Ditto.
2835 * infcmd.c (jump_command): Ditto.
2836 * linespec.c (decode_line_2, decode_compound): Ditto.
2837 * maint.c (maintenance_translate_address): Ditto.
2838 * objc-lang.c (compare_selectors, compare_classes): Ditto.
2839 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
2841 * p-valprint.c (pascal_val_print): Ditto.
2842 * stabsread.c (define_symbol): Ditto.
2843 * stack.c (print_frame, frame_info, print_block_frame_locals)
2844 (print_frame_arg_vars, return_command): Ditto.
2845 * symfile.c (compare_symbols, compare_psymbols): Ditto.
2846 * symmisc.c (print_symbol): Ditto.
2847 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
2848 (compare_search_syms, print_symbol_info, print_msymbol_info)
2849 (rbreak_command): Ditto.
2850 * tracepoint.c (tracepoints_info): Ditto.
2851 * typeprint.c (typedef_print): Ditto.
2852 * valops.c (value_of_variable, hand_function_call): Ditto.
2853 * cli/cli-cmds.c (edit_command, list_command): Ditto.
2854 * ada-typeprint.c: Update Copyright.
2855 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
2856 * tracepoint.c, cli/cli-cmds.c: Ditto.
2860 * frame.c (generic_unwind_get_saved_register): Make non-static.
2861 * frame.h (generic_unwind_get_saved_register): Declare.
2862 * mips-tdep.c (read_next_frame_reg): Fetch register from
2863 current regcache when frame is NULL.
2864 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
2866 (mips_get_saved_register): Call generic_unwind_get_saved_register()
2867 instead of frame_register_unwind().
2871 * remote-sim.c (gdbsim_insert_breakpoint)
2872 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
2877 * remote.c (_initialize_remote): Add commands "set/show remote
2878 hardware-watchpoint-limit" and "set/show remote
2879 hardware-breakpoint-limit".
2880 (remote_hw_watchpoint_limit): Initialize to -1.
2881 (remote_hw_breakpoint_limit): Ditto.
2882 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
2886 * coff-pe-read.c: New file - support reading of minimal symbols from a
2887 portable executable using the export table.
2888 * coff-pe-read.h: New file.
2889 * coffread.c: Include coff-pe-read.h.
2890 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
2891 debugging symbols found.
2892 * Makefile.in (SFILES): Add coff-pe-read.o.
2893 (coff_pe_read_h): Define.
2894 (COMMON_OBS): Add coff-pe-read.o.
2895 (coffread.o): Add coff_pe_read_h dependency.
2896 (coff-pe-read.o): New target.
2900 * Makefile.in (SFILES): Add block.c.
2902 (COMMON_OBS): Add block.o.
2904 (x86-64-tdep.o): Add $(block_h).
2905 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
2906 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
2907 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
2908 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
2909 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
2910 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
2911 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
2912 * value.h: Add opaque declaration for struct block.
2913 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
2914 * ada-lang.h: Ditto.
2915 * x86-64-tdep.c: #include "block.h"
2916 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
2917 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
2918 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
2919 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
2920 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
2921 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
2922 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
2923 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
2924 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
2925 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
2926 * symtab.c (block_function): Ditto.
2927 (contained_in): Ditto.
2928 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
2929 block.h. Add opaque declaration for struct block.
2930 * symtab.h: Move block_function and contained_in declarations to
2931 block.h. Add opaque declarations for struct block, struct
2933 (struct block): Move to block.h.
2934 (struct blockvector): Ditto.
2935 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
2936 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
2937 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
2938 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
2939 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
2941 * block.c: New file.
2942 * block.h: New file.
2946 * avr-tdep.c (avr_extract_return_value): Remove function.
2947 (avr_store_return_value): Remove function.
2948 (avr_extract_struct_value_address): Remove function.
2949 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
2953 * rs6000-tdep.c: Include "gdb_assert.h".
2954 (registers_e500): Add "acc" and "spefscr".
2955 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
2956 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
2957 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
2959 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
2963 * Makefile.in: Add gdbtk-interps.c.
2967 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
2968 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
2972 * symtab.h (struct objfile): Add opaque declaration.
2977 * dbxread.c (process_one_symbol): Use last_function_start rather
2978 than function_start_offset to find the real beginning of the
2979 current function. The latter is just the text section offset on
2980 some systems, the former is always the real function start.
2984 * configure.in: Revert ${target} != ${host}.
2988 * configure.in (Makefile): Use the test ${target} != ${host},
2989 instead of the absence of the "nm.h" file, to determine of the
2990 configuration non-native.
2991 * configure: Regenerate.
2997 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
2998 conditionalize tui_active test.
2999 (lookup_cmd_1): Ditto.
3003 * configure.in: Add check for _etext.
3004 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
3006 * config.in, configure: regenerated.
3010 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
3014 * main.c (tui_version): Delete variable.
3015 (captured_main): When --tui, set interpreter_p to "tui" instead of
3016 enabling tui_version.
3017 * printcmd.c (display_command) [TUI]: Test tui_active instead of
3019 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
3020 * cli/cli-cmds.c (disassemble_command): Ditto.
3021 * defs.h (tui_version): Delete declaration.
3022 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
3023 (tui-interp.o): Add rules.
3024 (SUBDIR_TUI_OBS): Add "tui-interp.o".
3028 * win32-nat.c (register_loaded_dll): Correctly set address range for
3033 * symmisc.c (print_objfile_statistics): Include information about
3034 the number of psymtabs and symtabs in each object file.
3038 * main.h (struct captured_main_args): Add interpreter_p.
3039 * main.c (captured_main): Initialize interpreter_p from context.
3040 * gdb.c (main): Set interpreter_p argument.
3041 * Makefile.in (gdb.o): Add dependency for interps.h.
3045 * event-top.c (cli_command_loop): Delete declaration.
3046 (_initialize_event_loop): Delete function setting event_loop_hook.
3047 * event-top.h (cli_command_loop): Declare. Update copyright.
3048 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
3049 * interps.c (current_interp_command_loop): When event_loop_p, call
3054 * interps.h (interp_command_loop_ftype): Change return type to
3059 * x86-64-tdep.c (x86_64_extract_return_value)
3060 (x86_64_store_return_value): Use regcache instead of regbuf.
3061 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
3062 * x86-64-linux-nat.c (fill_gregset): Use regcache.
3066 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
3067 * aclocal.m4: Regenerate.
3068 * configure: Regenerate.
3070 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
3071 TCL_LD_SEARCH_FLAGS.
3075 * dwarf2cfi.c: Reindented.
3079 * interps.c (clear_interpreter_hooks): Convert function definition
3084 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
3088 * gdbtypes.h (struct main_type): Move ``length'' field from here...
3089 (struct type): ...to here.
3090 (TYPE_LENGTH): Adjust to reflect different location of ``length''
3092 * gdbtypes.c (make_qualified_type): Set length on newly created type.
3093 (replace_type): Set length on all type variants for a given type.
3097 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
3099 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
3103 * Makefile.in (symm-nat.o): Update dependencies.
3104 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
3105 (lynx-nat.o, ia64-linux-nat.): Ditto.
3106 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
3107 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
3108 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
3110 * Makefile.in (inflow_h): Define.
3111 (procfs.o, inflow.o, procfs.o): Update dependencies.
3112 * inftarg.c (child_stop): Delete extern declaration of
3113 inferior_process_group. Include "inflow.h".
3114 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
3115 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
3116 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
3117 (our_process_group, inferior_process_group): Extern declarations.
3119 * procfs.c: Include "gdb_assert.h".
3121 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
3122 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
3123 * jv-typeprint.c (java_type_print_base): Ditto.
3124 * typeprint.c (typedef_print): Eliminate STREQ.
3125 * cli/cli-script.c (define_command, define_command): Ditto.
3126 * main.c (captured_main): Ditto.
3127 * values.c (lookup_internalvar): Ditto.
3128 * utils.c (safe_strerror, parse_escape): Eliminate assignment
3129 within `if' conditional.
3130 * linespec.c (decode_line_2): Ditto.
3131 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
3132 (bfd_openw_with_cleanup): Ditto.
3136 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
3137 legacy_extract_return_value and store_return_value to
3138 legacy_return_value.
3142 * win32-nat.c (get_relocated_section_addrs): New function. Find
3143 section load addresses for symbol handling in relocated DLLs.
3144 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
3148 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
3150 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
3152 (angel_RDI_info): Ditto.
3153 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
3155 (threads_continue_all_with_signals): Ditto.
3162 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
3163 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
3164 (SUBDIR_MI_OBS): Add "mi-interp.o".
3165 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
3166 (SFILES): Add "interps.c".
3167 (COMMON_OBS): Add "interps.o".
3168 (interps_h, mi_main_h): Define.
3169 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
3170 (mi-main.o, main.o, event-top.o): Update dependencies.
3171 * cli/cli-interp.c: New file.
3172 * interps.h, interps.c: New files.
3173 * top.c: (gdb_init): Don't install the default interpreter, handed
3175 * main.c: Include "interps.h".
3176 (interpreter_p): Note that it should malloc'ed.
3177 (captured_command_loop): Call current_interp_command_loop.
3178 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
3179 xfree and xstrdup when updating interpreter_p. Install the
3180 default interpreter. Add hack to stop mi1's copyright notice
3182 * event-top.h (gdb_setup_readline): Declare.
3183 (gdb_disable_readline): Declare.
3184 * event-top.c: Include "interps.h".
3185 (display_gdb_prompt): Call current_interp_display_prompt_p.
3186 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
3187 gdb_stdlog, and gdb_stdtarg.
3188 (_initialize_event_loop): Don't call gdb_setup_readline.
3189 * cli-out.c (cli_out_set_stream): New function.
3190 * cli-out.h (cli_out_set_stream): Declare.
3194 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
3195 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
3196 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
3197 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
3198 config/i386/i386v42mp.mt: Removed.
3202 * configure.tgt (*-*-solaris*): Set gdb_osabi to
3207 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
3208 2.12.1 and earlier versions.
3212 Remove orphaned hosts, targets and files.
3213 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
3214 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
3215 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
3216 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
3217 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
3218 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
3219 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
3220 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
3221 * config/sparc/tm-sp64sim.h: Delete.
3222 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
3224 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
3225 mips*-dec-mach3* targets.
3229 * NEWS: Fix typo: sepcifying -> specifying.
3233 * dwarfread.c: Add documentation on the state of dwarf-1,
3234 looking towards obsoletion.
3238 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
3239 gdb/testsuite/gdb.c++/pr-1023.exp.
3243 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
3244 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
3246 * utils.c (init_page_info): Delete reference to MPW in comments.
3247 * main.c (captured_main): Delete #ifdef MPW.
3251 * NEWS: Note that the m32r-*-elf* is obsolete.
3252 * monitor.c (monitor_expect): Obsolete reference to m32r.
3253 * configure.tgt: Mark m32r-*-elf* as obsolete.
3254 * MAINTAINERS: Mark m32k as obsolete.
3255 * m32r-rom.c: Obsolete file.
3256 * config/m32r/m32r.mt: Obsolete file.
3257 * config/m32r/tm-m32r.h: Obsolete file.
3258 * m32r-stub.c: Obsolete file.
3259 * m32r-tdep.c: Obsolete file.
3263 * NEWS: Mention that the z8k-zilog-none is obsolete.
3264 * MAINTAINERS: Mark z8k as obsolete.
3265 * configure.tgt: Obsolete the z8k-*-coff* target.
3266 * config/z8k/z8k.mt: Obsolete file.
3267 * config/z8k/tm-z8k.h: Obsolete file.
3268 * z8k-tdep.c: Obsolete file.
3272 * NEWS: Mention that the mn10200-elf is obsolete.
3273 * configure.tgt: Obsolete mn10200-*-* target.
3274 * breakpoint.c (update_breakpoints_after_exec): Update comment to
3275 mention that the mn10200 is obsolete.
3276 * breakpoint.h: Ditto.
3277 * MAINTAINERS: Mark the mn10200-elf as obsolete.
3278 * config/mn10200/mn10200.mt: Obsolete file.
3279 * config/mn10200/tm-mn10200.h: Obsolete file.
3280 * mn10200-tdep.c: Obsolete file.
3284 * MAINTAINERS: Mark h8500 as obsolete.
3285 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
3286 * findvar.c (value_from_register): Ditto.
3287 * h8500-tdep.c: Mark file as obsolete.
3288 * config/h8500/h8500.mt: Ditto.
3289 * config/h8500/tm-h8500.h: Ditto.
3290 * NEWS: Mention that h8500 is obsolete.
3294 * objfiles.c (allocate_objfile): Always set name. Add comment at
3296 * jv-lang.c (get_dynamics_objfile): Add comment.
3300 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
3301 * printcmd.c (build_address_symbolic): Replace uses of
3302 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
3303 SYMBOL_NAME, and asm_demangle.
3308 * linespec.c (decode_compound): Extract code into
3310 (lookup_prefix_sym): New function.
3314 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
3315 FLOAT_COERCION_BADNESS.
3316 * gdbtypes.c (rank_one_type): Replace all uses of
3317 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
3321 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
3322 section, let dwarf_macinfo_section point to it, not
3328 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
3329 (ppc_linux_at_sigtramp_return_path): Use it.
3333 * defs.h (streq): Add prototype.
3334 * utils.c (streq): New function.
3336 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
3337 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
3338 * mdebugread.c (new_symbol): Likewise.
3339 * stabsread.c (define_symbol): Likewise.
3340 * coffread.c (process_coff_symbol): Likewise.
3341 * dwarfread.c (new_symbol): Likewise.
3343 * minsyms.c (prim_record_minimal_symbol_and_info): Use
3344 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
3346 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
3347 SYMBOL_INIT_DEMANGLED_NAME.
3348 * objfiles.c: Include "hashtab.h".
3349 (allocate_objfile): Call htab_set_functions_ex for the
3350 demangled_names_hash.
3351 (free_objfile): Call htab_delete for the demangled_names_hash.
3352 * objfiles.h (struct htab): Add declaration.
3353 (struct objfile): Add demangled_names_hash.
3354 * symfile.c: Include "hashtab.h".
3355 (reread_symbols): Call htab_delete for the demangled_names_hash.
3356 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
3357 SYMBOL_NAME in the bcache.
3358 * symtab.c: Include "hashtab.h". Update comments.
3359 (create_demangled_names_hash, symbol_set_names): New functions.
3360 (symbol_find_demangled_name): New function, broken out from
3361 symbol_init_demangled_names.
3362 (symbol_init_demangled_names): Use it.
3363 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
3364 (SYMBOL_SET_NAMES): New macro.
3365 (symbol_set_names): Add prototype.
3369 Use a single, consistent representation for an empty minimal
3370 symbol table in an objfile.
3371 * objfiles.c (terminate_minimal_symbol_table): New function.
3372 (allocate_objfile): Call it.
3373 * objfiles.h (terminate_minimal_symbol_table): New declaration.
3374 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
3376 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
3377 objfile has minimal symbols, compare minimal_symbol_count to zero,
3378 instead of comparing msymbols with NULL.
3379 * objfiles.c (have_minimal_symbols): Same.
3380 * solib-sunos.c (solib_add_common_symbols): Call
3381 terminate_minimal_symbol_table.
3382 * symfile.c (reread_symbols): Same.
3386 * s390-tdep.c (s390_address_class_type_flags)
3387 (s390_address_class_type_flags_to_name)
3388 (s390_address_class_name_to_type_flags): New functions.
3389 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
3390 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
3394 * arm-tdep.c: Fix spell-o in comment.
3398 * dwarf2cfi.c (pointer_encoding): Added new parameter.
3399 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
3400 error messages to contain BFD filename.
3404 Fix PR gdb/742 gdb/743 gdb/877
3405 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
3406 (do_mixed_source_and_assembly): Use
3407 make_cleanup_ui_out_tuple_begin_end and
3408 make_cleanup_ui_out_tuple_begin_end.
3409 (do_mixed_source_and_assembly): Ditto.
3410 * thread.c (do_captured_list_thread_ids): Ditto.
3411 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
3412 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
3413 ui_out_tuple_end): Delete prototypes.
3414 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
3415 ui_out_list_end, ui_out_tuple_end): Delete.
3418 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
3419 * ui-out.c (make_cleanup_ui_out_table_begin_end)
3420 (do_cleanup_table_end): New functions.
3421 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
3422 Use cleanups to invoke_ui_out_tuple_end().
3423 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3424 * cli/cli-setshow.c (cmd_show_list): Use
3425 make_cleanup_ui_out_tuple_begin_end.
3429 * frame.c (frame_unwind_register): New function.
3430 (frame_unwind_unsigned_register): Use.
3431 (frame_unwind_signed_register): Use.
3432 (frame_read_register): New function.
3433 * frame.h (frame_unwind_register): Declare.
3434 (frame_read_register): Declare.
3436 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
3437 and frame_unwind_register instead of read_memory, write_register
3438 and deprecated_write_register_bytes.
3442 * frame.h: Note that namelen can be negative.
3443 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
3446 * NEWS: Mention that the d10v's `regs' command is deprecated.
3447 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
3448 (d10v_print_registers_info): New function.
3449 (show_regs): Call d10v_print_registers_info.
3450 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
3454 * stack.c (print_frame_info): Restore call to annotate_frame_begin
3455 lost in the previous patch.
3460 * stack.c (print_frame_info_base): Output complete FRAME tuple
3461 for synthesized frames.
3465 * mips-nat.c (zerobuf): Delete.
3466 (fetch_inferior_registers): Alloc local zerobuf.
3467 (fetch_core_registers): Alloc local zerobuf.
3468 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
3469 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
3470 * thread-db.c (thread_db_store_registers): Ditto.
3471 * sh-tdep.c (sh_do_register): Ditto.
3472 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3473 * remote-sim.c (gdbsim_store_register): Ditto.
3474 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3475 * remote-e7000.c (fetch_regs_from_dump): Ditto.
3476 * monitor.c (monitor_supply_register): Ditto.
3477 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
3478 * mips-nat.c (fetch_inferior_registers): Ditto.
3479 * m68klinux-nat.c (fetch_register): Ditto.
3480 * lynx-nat.c (fetch_inferior_registers): Ditto.
3481 (fetch_inferior_registers): Ditto.
3482 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
3483 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
3484 (hpux_thread_store_registers): Ditto.
3485 * hppah-nat.c (fetch_register): Ditto.
3486 * hppab-nat.c (fetch_register): Ditto.
3487 * hppa-tdep.c (pa_register_look_aside): Ditto.
3488 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
3489 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
3493 * gdbarch.sh: Explictly specify all method levels. When a
3494 variable with an empty level, provide a non-multi-arch default.
3495 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
3496 * gdbarch.h: Re-generate.
3497 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
3498 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
3502 * defs.h (host_pointer_to_address): Delete declaration.
3503 (address_to_host_pointer): Delete declaration.
3504 * utils.c (host_pointer_to_address): Delete function.
3505 (address_to_host_pointer): Delete function.
3506 * procfs.c (procfs_address_to_host_pointer): New function.
3507 * procfs.c (proc_set_watchpoint): Use.
3508 (procfs_can_use_hw_breakpoint): Update comments.
3509 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
3510 (som_solib_add): Use.
3511 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
3512 * hppa-tdep.c (unwind_command): Use.
3516 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
3519 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
3520 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
3521 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
3522 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
3523 (define_symbol): Update.
3524 * symfile.c (generic_load): Remove references to nindy.
3525 * symtab.c: Remove references to nindy.
3529 * infcmd.c (print_float_info): Delete code conditional on
3531 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
3532 * config/m68k/nm-apollo68b.h: Ditto.
3533 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
3534 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
3535 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
3539 * config/i386/tm-i386os9k.h: Removed.
3541 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
3542 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
3543 they're identical to i[3456]86-*-sysv* now.
3544 * config/i386/i386v32.mh: Removed.
3545 * config/i386/xm-i386v32.h: Removed.
3546 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
3548 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
3550 * config/i386/i386dgux.mh: Removed.
3551 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
3553 * configure.in: Fix typo.
3554 * configure: Regenerated.
3558 * dwarf2read.c (dwarf2_locate_sections): Set
3559 dwarf_ranges_section.
3563 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
3564 * utils.c: Update comments documenting legitimate uses of PTR.
3566 * utils.c: Re-indent.
3568 * config/djgpp/fnchange.lst: Delete nindy files.
3569 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
3570 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
3571 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
3572 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
3573 * nindy-share/README, nindy-share/Onindy.c: Delete files.
3574 * nindy-tdep.c, nindy-share/Makefile: Delete files.
3575 * Makefile.in (init.c): Remove nindy references.
3576 (saber_gdb): Delete rule.
3577 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
3578 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
3580 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
3581 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
3582 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
3583 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
3585 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
3586 * saber.suppress: Delete file.
3590 * dbxread.c (stabs_data): New static variable.
3591 (fill_symbuf): Support an in-memory buffer for stabs data.
3592 (stabs_seek): New function.
3593 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
3594 (read_ofile_symtab): Use stabs_seek.
3595 (elfstab_build_psymtabs): Take an asection* instead of
3596 an offset and size. Relocate the stabs data if necessary.
3597 Save the section* for dbx_psymtab_to_symtab.
3598 * dwarf2read.c: Add section variables for each debug section.
3599 (dwarf2_locate_sections): Fill them in.
3600 (dwarf2_read_section): Take an asection* argument.
3601 Relocate the section contents if necessary.
3602 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
3603 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
3604 it to dwarf2_read_section.
3605 (dwarf2_build_frame_info): Update callers.
3606 * elfread.c (elf_symfile_read): Update call to
3607 elfstab_build_psymtabs.
3608 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
3609 (DBX_STAB_SECTION): New macro.
3610 * stabsread.h (elfstab_build_psymtabs): Update prototype.
3611 * symfile.c (symfile_dummy_outputs): New function.
3612 (symfile_relocate_debug_section): New function.
3613 * symfile.h (symfile_relocate_debug_section): Add prototype.
3617 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
3618 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
3619 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
3620 * alpha-tdep.c (alpha_register_name): Add "unique".
3621 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
3622 (ALPHA_UNIQUE_REGNUM): New.
3623 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
3627 * README: Remove reference to Ericsson 1800 monitor.
3628 * Makefile.in (remote-es.o): Delete rule.
3629 (ALLDEPFILES): Delete remote-es.c.
3630 * remote-es.c: Delete file.
3631 * config/m68k/es1800.mt: Delete file.
3632 * config/djgpp/fnchange.lst: Update.
3633 * configure.tgt: Delete m68*-ericsson-* target.
3637 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
3638 Remove duplicate/shadowing variable of same name.
3642 * symfile.c (find_separate_debug_file): Assert that the objfile's
3643 directory name we compute ends with a slash, and then assume that
3644 that's so everywhere we use it.
3648 * valops.c (value_assign): Flush frame cache after stores to memory
3653 * Makefile.in (mon960-rom.o): Delete rule.
3654 * mon960-rom.c: Delete file.
3658 * d10v-tdep.c: Include "frame-unwind.h".
3659 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
3661 (next_addr, uses_frame): Delete.
3662 (struct d10v_unwind_cache): Define.
3663 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
3664 Use info instead of next_addr and uses_frame globals.
3665 (d10v_frame_init_saved_regs): Delete function.
3666 (d10v_init_extra_frame_info): Delete function.
3667 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
3668 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
3669 init_frame_pc or frame_saved_pc.
3670 (d10v_pop_frame): Delete function.
3671 (do_d10v_pop_frame): Delete function.
3672 (d10v_frame_chain): Delete function.
3673 (d10v_frame_chain_valid): Delete function.
3674 (d10v_frame_pc_unwind): New function.
3675 (d10v_frame_id_unwind): New function.
3676 (saved_regs_unwinder): New function.
3677 (d10v_frame_register_unwind): New function.
3678 (d10v_frame_pop): New function.
3679 (d10v_frame_unwind): New variable.
3680 (d10v_frame_p): New function.
3681 (d10v_frame_saved_pc): Delete function.
3682 * Makefile.in (d10v-tdep.o): Update dependencies.
3686 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
3687 causing some regressions due to a change in the default value
3695 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
3697 (RANGES_SECTION): New.
3698 (dwarf_ranges_buffer): New variable.
3699 (struct comp_unit_head): Add member "die".
3700 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
3701 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
3702 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
3703 (dwarf2_locate_sections): Likewise.
3704 (dwarf2_build_psymtabs): Read .debug_ranges.
3705 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
3706 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
3707 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
3708 Look for DW_AT_ranges and return the bounding box.
3712 * win32-nat.c (cygwin_pid): Removed as unused.
3713 (child_attach): Try fall back to Cygwin pid.
3717 * objfiles.h (struct objfile): Doc fix.
3721 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
3722 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
3723 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
3724 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
3725 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
3726 (FRAME_SAVED_PC): Change to a function with predicate.
3727 * gdbarch.h, gdbarch.c: Re-generate.
3731 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
3733 * complaints.c (complain): Delete function.
3734 * complaints.h (struct deprecated_complaint): Delete definition.
3735 (complain): Delete declaration.
3739 * mips-tdep.c (mips_init_extra_frame_info): Return early for
3744 * sentinel-frame.h, sentinel-frame.c: New files.
3745 * Makefile.in (frame.o): Update dependencies.
3746 (SFILES): Add sentinel-frame.c.
3747 (sentinel_frame_h): Define.
3748 (COMMON_OBS): Add sentinel-frame.o.
3749 (sentinel-frame.o): Specify dependencies.
3750 * frame.c: Include "sentinel-frame.h".
3751 (frame_register_unwind): Rewrite assuming that there is always a a
3753 (frame_register, generic_unwind_get_saved_register): Ditto.
3754 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
3755 (create_sentinel_frame, unwind_to_current_frame): New functions.
3756 (get_current_frame): Rewrite using create_sentinel_frame and
3757 unwind_to_current_frame. When possible, always create a frame.
3758 (create_new_frame): Set next to the sentinel frame.
3759 (get_next_frame): Rewrite. Don't go below the level 0 frame.
3760 (deprecated_update_frame_pc_hack): Update the next frame's PC and
3761 ID cache when necessary.
3762 (frame_saved_regs_id_unwind): Use frame_relative_level.
3763 (deprecated_generic_get_saved_register): Use frame_relative_level,
3764 get_frame_saved_regs, get_frame_pc, get_frame_base and
3766 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
3771 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
3775 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
3776 (maintenance_set_profile_cmd): Use error () instead of warning ().
3780 * configure.in: Check that -pg works if using --enable-profiling.
3781 Check for monstartup and _mcleanup regardless of --enable-profiling.
3782 * maint.c: Check for monstartup and _mcleanup before using them.
3783 * config.in: Regenerated.
3784 * configure: Regenerated.
3792 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
3793 (sh2e_show_regs): New.
3794 (sh_gdbarch_init): Handle bfd_mach_sh2e.
3795 * config/sh/tm-sh.h: Added sh2e to comments.
3799 * symfile.c (syms_from_objfile): Don't print the "(no debugging
3800 symbols found)" message here; we haven't checked for a separate
3801 debug info file yet, so we don't know yet.
3802 (symbol_file_add_with_addrs_or_offsets): Print it here, after
3803 we've looked everywhere. Also, there's no need to print a special
3804 message when we're loading the separate debug info file: the one
3805 symbol_file_add prints is fine.
3810 Add support for executables whose debug info has been separated
3811 out into a separate file, leaving only a link behind.
3812 * objfiles.h (struct objfile): New fields: separate_debug_objfile
3813 and separate_debug_objfile_backlink.
3814 (put_objfile_before): New declaration.
3815 * symfile.c: #include "filenames.h".
3816 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
3817 debug info in a separate file, read that, too. Save the addrs
3818 argument, so we can use it again to read the separated debug info;
3819 syms_from_objfile modifies the table we pass it.
3820 (reread_symbols): After re-reading an objfile, call
3821 reread_separate_symbols to refresh its separate debug info
3822 objfile, if it has one.
3823 (reread_separate_symbols, find_separate_debug_file,
3824 get_debug_link_info, separate_debug_file_exists): New functions.
3825 (debug_file_directory): New global var.
3826 (_initialize_symfile): Initialize debug_file_directory, and
3827 provide the new `set debug-file-directory' command to let the user
3829 * objfiles.c (free_objfile): If this objfile has its debug info in
3830 a separate objfile, free that one too. If this is itself a
3831 separate debug info objfile, clear our parent's backlink.
3832 (put_objfile_before): New function.
3833 * utils.c (gnu_debuglink_crc32): New function.
3834 * defs.h (gnu_debuglink_crc32): New declaration.
3835 * Makefile.in (symfile.o): Note dependency on "filenames.h".
3836 * configure.in: Handle --with-separate-debug-dir config option.
3837 * acinclude.m4 (AC_DEFINE_DIR): New macro.
3838 * acconfig.h (DEBUGDIR): New macro.
3839 * configure, aclocal.m4, config.in: Regenerated.
3843 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
3844 like the old symbol_file_add, but taking new arguments: you can
3845 now pass in either a `struct section_addr_info' list to say where
3846 each section is loaded, or a `struct section_offsets' table. Pass
3847 these new arguments through to syms_from_objfile as appropriate.
3848 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
3849 with the appropriate quiescent values for the new arguments.
3851 * symfile.c: #include "gdb_assert.h".
3852 (syms_from_objfile): Add the ability to pass in a section offset
3853 table directly, as an alternative to the section_addr_info table.
3854 Document arguments better.
3855 (symbol_file_add): Pass extra arguments to syms_from_objfile.
3856 * symfile.h (syms_from_objfile): Update declaration.
3857 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
3859 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
3865 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
3866 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
3867 * NEWS: Mention profiling.
3868 * configure.in (--enable-gdbtk): Fix typo.
3869 (--enable-profiling): New. Set PROFILE_CFLAGS.
3870 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
3872 (profiling_state): New variable.
3873 (mcleanup_wrapper): New function.
3874 (_initialize_maint): Remove NOTYET, fix call to
3875 add_setshow_boolean_cmd for "maint set profile".
3876 * configure: Regenerated.
3880 * Makefile.in (install-gdbtk): Install PNG images too.
3884 * exec.c (text_start): Delete global variable.
3885 (exec_file_attach): Make text_start local to the function.
3886 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
3887 * valops.c (hand_function_call): Delete code that handles
3888 BEFORE_TEXT_END and AFTER_TEXT_END.
3889 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
3890 of CALL_DUMMY_LOCATION.
3891 * gdbarch.c: Regenerate.
3892 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
3893 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
3894 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
3895 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
3896 (text_end): Delete extern declaration.
3900 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
3901 * blockframe.c (backtrace_below_main): Move to "frame.c".
3902 (frame_chain_valid): Delete check for backtrace_below_main.
3903 (_initialize_blockframe): Delete initialization, move ``set
3904 backtrace-below-main'' command to "frame.c".
3905 (do_flush_frames_sfunc): Delete function.
3906 * frame.c: Include "command.h" and "gdbcmd.h".
3907 (frame_type_from_pc): New function.
3908 (create_new_frame): Use frame_type_from_pc.
3909 (legacy_get_prev_frame): New function.
3910 (get_prev_frame): Rewrite. When an old style frame, call
3911 legacy_get_prev_frame. Otherwize, unwind the PC first.
3912 (_initialize_frame): Add ``set backtrace-below-main'' command.
3913 * Makefile.in (frame.o): Update dependencies.
3917 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
3918 DEPRECATED_REGISTERS_INFO.
3922 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
3923 Maintainers'. Update `Various Maintainers'.
3927 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
3928 * gdbarch.sh (POP_FRAME): Change to function with predicate.
3929 Suppress actual parameters when `-'.
3930 * gdbarch.h, gdbarch.c: Regenerate.
3934 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
3935 code handling dummy frames.
3939 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
3940 (struct frame_unwind): Add field pop.
3941 * frame.h (frame_pop): Declare.
3942 * frame.c (frame_saved_regs_pop): New function.
3943 (trad_frame_unwinder): Add frame_saved_regs_pop.
3944 (frame_pop): New function.
3945 * dummy-frame.c (dummy_frame_pop): New function.
3946 (discard_innermost_dummy): New function.
3947 (generic_pop_dummy_frame): Use discard_innermost_dummy.
3948 (dummy_frame_unwind): Add dummy_frame_pop.
3949 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
3950 * valops.c (hand_function_call): Ditto.
3951 * stack.c (return_command): Ditto.
3955 * cris-tdep.c: Fix function declaration indentation.
3956 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
3957 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
3958 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
3959 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
3960 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
3961 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
3965 * README (Unpacking and Installation -- quick overview):
3966 Warn against ".../gdb-5.3/gdb/configure".
3970 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
3971 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3972 (struct frame_unwind): Declare opaque.
3973 (dummy_frame_p): Declare function.
3974 * dummy-frame.c (dummy_frame_id_unwind): Make static.
3975 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3976 * dummy-frame.c: Include "frame-unwind.h".
3977 (dummy_frame_p): New function.
3978 (dummy_frame_unwind): New variable.
3979 * frame.c: Include "frame-unwind.h".
3980 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
3981 to use the new unwind field.
3982 (set_unwind_by_pc): Delete function.
3983 (create_new_frame, get_prev_frame): Set unwind field using
3984 frame_unwind_find_by_pc.
3985 (trad_frame_unwind, trad_frame_unwinder): New variables.
3986 * frame.h (trad_frame_unwind): Declare variable.
3987 (frame_id_unwind_ftype): Delete declaration.
3988 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
3989 (struct frame_unwind): Declare opaque.
3990 (struct frame_info): Replace the fields id_unwind, pc_unwind and
3991 register_unwind with a single unwind pointer.
3992 * frame-unwind.h, frame-unwind.c: New files.
3993 * Makefile.in (SFILES): Add frame-unwind.c.
3994 (frame_unwind_h): Define.
3995 (COMMON_OBS): Add frame-unwind.o.
3996 (frame-unwind.o): Specify dependencies.
3997 (frame.o, dummy-frame.o): Update dependencies.
4001 * ada-valprint.c: Eliminate PTR.
4002 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
4003 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
4004 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
4005 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
4006 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
4007 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
4008 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
4012 * main.c (captured_main): Don't use PTR.
4013 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
4014 * gdbtypes.c (lookup_primitive_typename): Ditto.
4015 (lookup_struct_elt_type): Ditto.
4016 * f-valprint.c (info_common_command): Ditto.
4017 (list_all_visible_commons): Ditto.
4018 * jv-typeprint.c (java_type_print_base): Ditto.
4020 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
4021 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
4022 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
4023 i386-interix-nat.c and i386-interix-tdep.c. Rename
4024 m68klinux-nat.c and m68klinux-tdep.c. Rename
4025 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
4026 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
4027 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
4028 * main.c (captured_main): Use xfree, not free.
4032 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
4033 ID back using a parameter.
4034 * frame.c (frame_id_unwind): Update call.
4035 (frame_saved_regs_id_unwind): Update.
4036 * dummy-frame.c (dummy_frame_id_unwind): Update function.
4037 * dummy-frame.h (struct frame_id): Add opaque declaration.
4038 (dummy_frame_id_unwind): Update declaration.
4042 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
4046 * MAINTAINERS (Stephen P. Smith): Updated email address.
4051 * breakpoint.c (until_break_command): Add new argument. Use it to
4052 decide whether to stop only at the current frame or not.
4053 * breakpoint.h (until_break_command): Update prototype.
4054 * infcmd.c (until_command): Add new argument to until_break_command
4056 (advance_command): New function.
4057 (_initialize_infcmd): Update help string for 'until' command.
4058 Add new 'advance' command.
4062 * linespec.c (decode_line_1): Normalize comments.
4064 (locate_first_half): Ditto.
4065 (decode_compound): Ditto.
4066 (symtab_from_filename): Ditto.
4067 (decode_all_digits): Ditto.
4068 (decode_dollar): Ditto.
4069 (find_methods): Ditto.
4070 (find_toplevel_char): Ditto.
4074 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
4075 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
4076 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
4077 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
4078 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
4079 * language.c, language.h, m32r-tdep.c: Update copyright.
4080 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
4081 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
4082 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
4083 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
4084 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
4085 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
4089 * stabsread.h (process_later, resolve_cfront_continuation):
4091 Update copyright years.
4092 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
4093 Update copyright year.
4094 * dbxread.c(struct cont_elem): Obsolete.
4095 (process_later, process_now): Obsolete functions.
4096 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
4097 Update copyright year.
4098 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
4099 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
4100 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
4101 (parse_partial_symbols): Obsolete cfront support.
4103 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
4105 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
4106 read_cfront_baseclasses, read_cfront_member_functions,
4107 resolve_cfront_continuation,read_cfront_static_fields,
4108 copy_cfront_struct_fields): Obsolete functions.
4109 (define_symbol, read_one_struct_field): Obsolete cfront support.
4110 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
4111 Update Copyright year.
4115 * stack.c (print_frame_info, print_stack_frame_base_stub,
4116 print_stack_frame_base, show_and_print_stack_frame_stub,
4117 show_and_print_stack_frame, print_only_stack_frame_stub,
4118 print_only_stack_frame): Delete functions.
4119 (print_stack_frame_stub): Call print_frame_info instead of
4120 print_frame_info_base.
4121 (print_frame_info_base): Rename to print_frame_info.
4122 (backtrace_command_1): Call print_frame_info, instead of
4123 print_frame_info_base.
4124 (current_frame_command): Call print_stack_frame, instead of
4125 print_only_stack_frame.
4126 (frame_command): Call print_stack_frame, instead of
4127 show_and_print_stack_frame.
4128 (up_command): Ditto.
4129 (down_command): Ditto.
4130 * frame.h (print_only_stack_frame): Delete prototype.
4131 * infrun.c (normal_stop): Call print_stack_frame, instead of
4132 show_and_print_stack_frame.
4133 * thread.c (info_threads_command): Call print_stack_frame, instead
4134 of print_only_stack_frame.
4138 * README (Graphical interface to GDB): Update URL. Point at
4141 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
4146 * symtab.c (find_pc_sect_line): Don't consider end-of-function
4151 * thread-db.c (attach_thread): Prototype.
4152 (struct private_thread_info): Remove lwpid. Add thread handle (th),
4153 thread information (ti), and valid flags (th_valid, ti_valid).
4154 (attach_thread): Move target_pid_to_str call to after the thread
4155 is added to GDB's list. Initialize the cache.
4156 (thread_get_info_callback, thread_db_map_id2thr)
4157 (thread_db_get_info): New functions.
4158 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
4159 (thread_db_store_registers, thread_db_thread_alive)
4160 (thread_db_get_thread_local_address): Use them.
4161 (thread_db_pid_to_str): Likewise. Return "Missing" instead
4162 of calling error() for threads in unknown state.
4164 (clear_lwpid_callback): New function.
4165 (thread_db_resume): Use it to clear the cache.
4169 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
4170 (resume_callback): Remove dead code.
4174 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
4176 * gdbarch.h, gdbarch.c: Regenerate.
4177 * stack.c (frame_info): Only initialize the saved registers when
4178 FRAME_INIT_SAVED_REGS_P.
4179 * frame.c (frame_saved_regs_register_unwind): Assert
4180 FRAME_INIT_SAVED_REGS_P.
4181 (deprecated_generic_get_saved_register): Ditto.
4185 * source.c (openp): Squelch warning about "filename".
4189 * source.c (openp): If the file does not exist don't necessarily
4195 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
4196 (integer_types_same_name_p): New function.
4197 (rank_one_type): Use it.
4198 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
4202 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
4204 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
4205 * configure.in: Add --with-sysroot.
4206 * configure: Regenerated.
4207 * main.c (gdb_sysroot): New variable.
4208 (captured_main): Initialize gdb_sysroot.
4209 * defs.h (gdb_sysroot): New extern declaration.
4210 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
4214 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
4218 * top.c (print_gdb_version): Bump copyright year to 2003.
4222 * linespec.c (symtab_from_filename): Rename variable 's' to
4227 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
4229 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
4233 * d10v-tdep.c: Include "gdb_assert.h".
4234 (d10v_store_return_value): Rewrite to match current interface.
4235 (d10v_extract_struct_value_address): Ditto.
4236 (d10v_extract_return_value): Ditto.
4237 (d10v_gdbarch_init): Set store_restore_value,
4238 extract_struct_value_address and extract_return_value.
4242 * hpread.c (set_namestring): New procedure replacing the
4243 SET_NAMESTRING macro.
4244 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
4245 by calls to set_namestring.
4249 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
4250 a compilation warning.
4251 (hpread_process_one_debug_symbol): Likewise.
4255 * linespec.c (decode_line_1): Rename variable 's' to
4257 (decode_all_digits): Rename argument 's' to 'file_symtab'.
4258 (decode_dollar): Ditto.
4259 (decode_variable): Ditto.
4260 (symbol_found): Ditto.
4264 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
4268 * win32-nat.c (set_process_privilege): New function.
4269 (child_attach): Call set_process_privilege() to enable the
4270 SE_DEBUG_NAME user privilege if available in process token.
4274 * hpread.c (hpread_process_one_debug_symbol): Fix a small
4275 compilation error in the previous revision.
4279 * linespec.c: Update copyright.
4283 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
4285 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
4289 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
4291 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
4292 (frame_saved_regs_zalloc): Update.
4293 (frame_saved_regs_register_unwind): Update.
4294 (create_new_frame): Update.
4295 (get_prev_frame): Update.
4296 (frame_extra_info_zalloc): Update.
4297 (deprecated_get_frame_saved_regs): Update.
4298 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
4299 * cris-tdep.c: Update comment.
4301 * somsolib.h: Fix function indentation.
4302 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
4303 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
4304 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
4305 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
4306 * somsolib.c, inftarg.c: Remove assignment in if conditional.
4308 * infrun.c (follow_fork): Use ISO C definition.
4309 * expprint.c (print_subexp): Use xfree instead of free.
4310 * charset.c: Include "gdb_string.h" instead of <string.h>.
4311 (register_iconv_charsets): Use ISO C definition.
4312 (host_charset, target_charset): Ditto.
4313 * Makefile.in (charset.o): Update dependencies.
4314 (mi-cmd-env.o): Update dependencies.
4318 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
4323 * gdb_mbuild.sh: Add --keep option. When specified, keep the
4324 build directories. Save edited gdb output in Mbuild.log. If a
4325 build fails, remove any final GDB executable.
4329 * gdb_mbuild.sh: Edit the output of `maint print architecture'
4330 replacing hex constants with function names and stripping leading
4331 file name directory prefixes.
4335 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
4340 * linespec.c (decode_line_1): Move code into decode_variable.
4341 (decode_variable): New function.
4345 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
4349 * cris-tdep.c (cris_frame_init_saved_regs): Use
4350 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
4352 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
4353 (sh64_nofp_frame_init_saved_regs): Ditto.
4354 (sh_fp_frame_init_saved_regs): Ditto.
4355 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
4356 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
4357 * mcore-tdep.c (analyze_dummy_frame): Ditto.
4358 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4362 * minsyms.c (lookup_minimal_symbol): Update comment.
4363 (lookup_minimal_symbol_text): Update comment. Use the hash table.
4364 (lookup_minimal_symbol_solib_trampoline): Likewise.
4368 * d10v-tdep.c (d10v_init_extra_frame_info): Use
4369 frame_relative_level.
4371 * alpha-tdep.c: Use get_frame_extra_info.
4372 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4373 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
4374 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
4375 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
4377 * alpha-tdep.c: Use get_next_frame.
4378 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4379 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
4380 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
4381 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
4382 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
4383 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
4384 * xstormy16-tdep.c: Ditto.
4388 * alpha-tdep.c: Use get_frame_base.
4389 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4390 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
4391 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
4392 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
4393 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
4394 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
4395 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
4396 * config/sparc/tm-sparc.h: Ditto.
4400 * frame.c (deprecated_get_frame_context): New function.
4401 (deprecated_set_frame_context): New function.
4402 * frame.h (deprecated_get_frame_context): Declare.
4403 (deprecated_set_frame_context): Declare.
4404 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
4405 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
4409 * frame.c (deprecated_set_frame_next_hack): New function.
4410 (deprecated_set_frame_prev_hack): New function.
4411 * frame.h (deprecated_set_frame_next_hack): Declare.
4412 (deprecated_set_frame_prev_hack): Declare.
4413 * mcore-tdep.c (analyze_dummy_frame): Use
4414 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
4415 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4419 * linespec.c (decode_line_1): Move code into decode_dollar.
4420 (decode_dollar): New function.
4424 * arm-tdep.c (arm_init_extra_frame_info): Use
4425 deprecated_update_frame_base_hack.
4426 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
4427 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4428 (fix_frame_pointer): Ditto.
4429 (mn10300_analyze_prologue): Ditto.
4433 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
4434 extra_info using frame_extra_info_zalloc.
4435 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4436 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
4437 (sh64_init_extra_frame_info): Ditto.
4438 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
4439 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
4440 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
4441 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
4442 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
4443 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
4444 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
4445 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
4446 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
4447 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
4448 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
4449 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
4451 * mn10300-tdep.c (analyze_dummy_frame): Use
4452 deprecated_set_frame_extra_info_hack.
4453 * mcore-tdep.c (analyze_dummy_frame): Ditto.
4457 * mdebugread.c (parse_symbol): Skip stProc entries which storage
4458 class is not scText. These do not define "real" procedures.
4459 (parse_partial_symbols): Likewise.
4463 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
4467 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
4468 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
4469 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
4470 deprecated_frame_xmalloc_with_cleanup.
4471 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
4472 deprecated_frame_xmalloc.
4473 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
4474 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
4478 * x86-64-linux-tdep.c: Include "osabi.h".
4479 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
4481 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
4485 * MAINTAINERS (Target Instruction Set Architectures): Update
4486 arm-elf. Can be built with -Werror, has been multiarched.
4488 * value.h (unpack_long): Make buffer parameter constant.
4489 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
4490 * scm-lang.h (scm_parse): Ditto.
4491 * defs.h (extract_typed_address, extract_address): Ditto.
4492 (extract_long_unsigned_integer): Ditto.
4493 * inferior.h (unsigned_pointer_to_address): Ditto.
4494 (signed_pointer_to_address): Ditto.
4495 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
4496 * gdbarch.h, gdbarch.c: Regenerate.
4497 * findvar.c (extract_long_unsigned_integer): Update.
4498 (extract_address): Update.
4499 (extract_typed_address): Update.
4500 (unsigned_pointer_to_address): Update.
4501 * values.c (unpack_long): Update.
4502 (unpack_double): Update.
4503 (unpack_pointer): Update.
4504 (unpack_field_as_long): Update.
4505 * d10v-tdep.c (d10v_pointer_to_address): Update.
4506 * avr-tdep.c (avr_pointer_to_address): Update.
4507 * scm-lang.c (scm_unpack): Update.
4508 * findvar.c (signed_pointer_to_address): Update.
4512 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
4513 since it is in i386-tdep.c.
4517 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
4518 failure introduced in the previous change.
4522 * README: Remove references to deleted remote-*.c files:
4523 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
4524 remote-nrom.c, remote-os9k.c, remote-udi.c.
4528 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
4529 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
4530 i386_get_longjmp_target.
4534 * arm-tdep.c (prologue_cache): Change to a pointer.
4535 (_initialize_arm_tdep): Allocate prologue_cache.
4536 (check_prologue_cache): Update.
4537 (save_prologue_cache): Update.
4538 (arm_gdbarch_init): Update.
4542 * stabsread.c (update_method_name_from_physname): Call complaint()
4547 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
4548 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
4549 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
4551 * blockframe.c: Include "gdbcmd.h" and "command.h".
4552 (backtrace_below_main): New variable.
4553 (file_frame_chain_valid, func_frame_chain_valid)
4554 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
4555 (generic_func_frame_chain_valid): Remove functions.
4556 (frame_chain_valid, do_flush_frames_sfunc): New functions.
4557 (_initialize_blockframe): New function.
4558 * Makefile.in (blockframe.o): Update dependencies.
4559 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
4560 comment. Call frame_chain_valid ().
4561 * frame.h: Remove old prototypes. Add prototype for
4562 frame_chain_valid and update comments to match.
4563 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
4565 * gdbarch.h: Regenerated.
4566 * gdbarch.c: Regenerated.
4568 * alpha-tdep.c (alpha_gdbarch_init): Don't call
4569 set_gdbarch_frame_chain_valid.
4570 * avr-tdep.c (avr_gdbarch_init): Likewise.
4571 * cris-tdep.c (cris_gdbarch_init): Likewise.
4572 * frv-tdep.c (frv_gdbarch_init): Likewise.
4573 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4574 * i386-tdep.c (i386_svr4_init_abi): Likewise.
4575 (i386_nw_init_abi): Likewise.
4576 (i386_gdbarch_init): Likewise.
4577 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4578 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4579 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4580 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
4581 * mips-tdep.c (mips_gdbarch_init): Likewise.
4582 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4583 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
4584 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
4585 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4586 * s390-tdep.c (s390_gdbarch_init): Likewise.
4587 * sh-tdep.c (sh_gdbarch_init): Likewise.
4588 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4589 * v850-tdep.c (v850_gdbarch_init): Likewise.
4590 * vax-tdep.c (vax_gdbarch_init): Likewise.
4591 * x86-64-tdep.c (x86_64_init_abi): Likewise.
4593 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
4594 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
4595 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
4596 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
4597 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
4598 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
4599 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
4600 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
4604 * Makefile.in (acconfig_h): Remove incorrect macro.
4606 (osabi.o): Update dependencies.
4607 * configure.tgt: Set gdb_osabi based on target triplet.
4608 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
4609 * configure: Regenerated.
4610 * config.in: Regenerated.
4611 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
4612 (GDB_OSABI_DEFAULT): Define if not already defined.
4613 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
4614 (set_osabi_string): New variables.
4615 (gdbarch_register_osabi): Add new OS ABI to
4616 gdb_osabi_available_names.
4617 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
4618 (set_osabi, show_osabi): New functions.
4619 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
4623 * arch-utils.c (gdbarch_info_init): Set osabi to
4624 GDB_OSABI_UNINITIALIZED.
4625 * gdbarch.sh: Add osabi to struct gdbarch and to struct
4626 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
4627 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
4628 * gdbarch.c: Regenerated.
4629 * gdbarch.h: Regenerated.
4630 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
4632 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
4633 * osabi.h (enum gdb_osabi): Move to defs.h.
4634 (gdbarch_init_osabi): Update prototype.
4635 * defs.h (enum gdb_osabi): Moved here.
4636 * Makefile.in: Update dependencies.
4638 * alpha-tdep.h: Don't include "osabi.h".
4639 (struct gdbarch_tdep): Remove osabi member.
4640 * alpha-tdep.c: Include "osabi.h".
4641 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4642 iterate over arches. Update call to gdbarch_init_osabi.
4643 (alpha_dump_tdep): Don't dump osabi.
4644 * alpha-linux-tdep.c: Include "osabi.h".
4645 * alpha-osf1-tdep.c: Include "osabi.h".
4646 * alphafbsd-tdep.c: Include "osabi.h".
4647 * alphanbsd-tdep.c: Include "osabi.h".
4649 * arm-tdep.h: Don't include "osabi.h".
4650 (struct gdbarch_tdep): Remove osabi member.
4651 * arm-tdep.c: Include "osabi.h".
4652 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4653 iterate over arches. Update call to gdbarch_init_osabi.
4654 (arm_dump_tdep): Don't dump osabi.
4655 * arm-linux-tdep.c: Include "osabi.h".
4656 * armnbsd-tdep.c: Include "osabi.h".
4658 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
4659 Update call to gdbarch_init_osabi.
4661 * i386-tdep.h: Don't include "osabi.h".
4662 (struct gdbarch_tdep): Remove osabi member.
4663 * i386-tdep.c: Include "osabi.h".
4664 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4665 iterate over arches. Update call to gdbarch_init_osabi.
4666 (i386_dump_tdep): Don't dump osabi.
4667 * i386-linux-tdep.c: Include "osabi.h".
4668 * i386-sol2-tdep.c: Include "osabi.h".
4669 * i386bsd-tdep.c: Include "osabi.h".
4670 * i386gnu-tdep.c: Include "osabi.h".
4671 * i386ly-tdep.c: Include "osabi.h".
4672 * i386nbsd-tdep.c: Include "osabi.h".
4673 * i386obsd-tdep.c: Include "osabi.h".
4675 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
4676 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4677 check osabi when iterating over arches. Update call to
4679 (mips_dump_tdep): Don't dump osabi.
4681 * ns32k-tdep.h: Don't include "osabi.h".
4682 (struct gdbarch_tdep): Remove.
4683 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
4684 gdbarch_lookup_osabi. Don't iterate over arches. Don't
4685 allocate tdep. Update call to gdbarch_init_osabi.
4686 (ns32k_dump_tdep): Remove.
4687 (_initialize_ns32k_tdep): Update call to gdbarch_register.
4688 * ns32knbsd-tdep.c: Include "osabi.h".
4690 * ppc-tdep.h: Don't include "osabi.h".
4691 (struct gdbarch_tdep): Remove osabi member.
4692 * rs6000-tdep.c: Include "osabi.h".
4693 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
4694 osabi when iterating over arches. Update call to
4696 (rs6000_dump_tdep): Don't dump osabi.
4697 * ppc-linux-tdep.c: Include "osabi.h".
4698 * ppcnbsd-tdep.c: Include "osabi.h".
4700 * sh-tdep.h: Don't include "osabi.h".
4701 (struct gdbarch_tdep): Remove osabi member.
4702 * sh-tdep.c: Include "osabi.h".
4703 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4704 iterate over arches. Update call to gdbarch_init_osabi.
4705 (sh_dump_tdep): Don't dump osabi.
4706 * shnbsd-tdep.c: Include "osabi.h".
4708 * sparc-tdep.c: Include "osabi.h".
4709 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4710 iterate over arches. Update call to gdbarch_init_osabi.
4711 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
4714 * vax-tdep.h: Don't include "osabi.h".
4715 (struct gdbarch_tdep): Remove.
4716 * vax-tdep.c: Include "osabi.h".
4717 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4718 iterate over arches. Don't allocate tdep. Update call
4719 to gdbarch_init_osabi.
4720 (vax_dump_tdep): Remove.
4721 (_initialize_vax_tdep): Update call to gdbarch_register.
4725 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
4727 (breakpoint_re_set_one): Don't fetch the value for a disabled
4732 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
4733 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
4734 (COERCE_FLOAT_TO_DOUBLE): Remove.
4735 * gdbarch.c: Regenerate.
4736 * gdbarch.h: Regenerate.
4737 * Makefile.in: Remove value_h from gdbarch_h.
4738 * valops.c (coerce_float_to_double): New variable.
4739 (default_coerce_float_to_double): Remove.
4740 (standard_coerce_float_to_double): Remove.
4741 (value_arg_coerce): Use coerce_float_to_double.
4742 (_initialize_valops): Add "set coerce-float-to-double".
4743 * value.h (default_coerce_float_to_double): Remove prototype.
4744 (standard_coerce_float_to_double): Remove prototype.
4746 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
4748 * mdebugread.c (parse_symbol): Likewise.
4749 * stabsread.c (define_symbol): Mark all functions as prototyped.
4751 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
4752 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
4753 set_gdbarch_coerce_float_to_double.
4754 * arm-tdep.c (arm_gdbarch_init): Likewise.
4755 * frv-tdep.c (frv_gdbarch_init): Likewise.
4756 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
4757 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
4758 * mips-tdep.c (mips_gdbarch_init): Likewise.
4759 (mips_coerce_float_to_double): Remove.
4760 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4761 (rs6000_coerce_float_to_double): Remove.
4762 * s390-tdep.c (s390_gdbarch_init): Likewise.
4763 * sh-tdep.c (sh_gdbarch_init): Likewise.
4764 (sh_coerce_float_to_double): Remove.
4765 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4766 (sparc_coerce_float_to_double): Remove.
4767 * v850-tdep.c (v850_gdbarch_init): Likewise.
4768 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4769 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4770 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
4771 (hppa_coerce_float_to_double): Remove prototype.
4772 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4776 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
4781 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
4782 in recursive calls. Handle TYPE_CODE_TYPEDEF.
4783 (c_type_print_varspec_suffix): Likewise.
4787 * configure.in: Don't set and AC_SUBST SUBDIRS.
4788 * configure: Regenerated.
4790 * configure.in: Remove code dealing with shared libraries.
4791 * Makefile.in: Remove HLDFLAGS and HLDENV.
4792 * configure: Regenerated.
4796 * frame.c (deprecated_frame_xmalloc): New function.
4797 (deprecated_set_frame_saved_regs_hack): New function.
4798 (deprecated_set_frame_extra_info_hack): New function.
4799 * frame.h (deprecated_frame_xmalloc): Declare.
4800 (deprecated_set_frame_saved_regs_hack): Declare.
4801 (deprecated_set_frame_extra_info_hack): Declare.
4805 * configure.in: Move code that provides the --enable-gdbtk option
4806 right after the code that handles the --enable-tui option, and
4808 * configure: Regenerated.
4810 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
4811 AC_CHECK_FUNCS and remove the old check for pread64.
4812 * acinclude.m4 (AC_GNU_SOURCE): New macro.
4813 * acconfig.h (_GNU_SOURCE): Add.
4814 (HAVE_PREAD64): Remove.
4815 * configure, aclocal.m4, config.in: Regenerated.
4819 * alpha-tdep.c: Use get_frame_saved_regs.
4820 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4821 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
4822 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
4823 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
4824 * vax-tdep.c, xstormy16-tdep.c: Ditto.
4828 * configure.in: Remove all use of the SUBDIRS variable; add
4829 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
4830 code providing the --enable-multi-ice option, and move it right in
4831 front of the code that checks whether gdbserver is supported.
4833 * configure: Regenerated.
4834 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
4839 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
4840 * avr-tdep.c, cris-tdep.c: Ditto.
4841 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
4842 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4846 * configure.in: Remove --enable-netrom option.
4847 * configure: Regenerated.
4851 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
4852 declaration for `struct re_pattern_buffer' instead.
4853 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
4857 * mdebugread.c (parse_symbol): Count until the stEnd matching
4862 * configure.in: Remove --with-cpu option.
4863 subscripts. Remove evil changequotes here.
4864 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
4865 * config.in, configure: Regenerated.
4867 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
4868 * configure.in: Cleanup section that sources GDB and BFD configure
4869 subscripts. Remove evil changequotes here.
4870 * config.in, configure: Regenerated.
4874 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
4875 frame accessor methods.
4876 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4877 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
4878 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
4879 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
4880 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4881 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
4882 * z8k-tdep.c: Ditto.
4886 * configure.in: Remove UI_OUT configuration code.
4887 * ada-lang.c: Update assuming UI_OUT is always true.
4888 * Makefile.in (UIOUT_CFLAGS): Remove.
4889 * configure: Regenerated.
4890 * TODO: Remove blurb about elimination of -DUI_OUT.
4892 * configure.in: Move code that provides the --enable-gdbcli,
4893 --enable-gdbmi options right before the code that handles the
4894 --enable-tui option. Polish a bit.
4895 * configure: Regenerated.
4897 * configure.in: Rewrite check for GNU regex and the
4898 --without-included regex option, and move it into the "Checks for
4899 library functions" section. This makes us use the system regex
4900 again by default on systems with version 2 of the GNU C library.
4901 This was apparently broken.
4902 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
4903 * acconfig.h (USE_INCLUDED_REGEX): Remove.
4904 * config.in, configure: Regenerated.
4906 * configure.in: Move code that provides the --enable-tui option
4907 before the "Checks for libraries" section. Polish the code
4908 somewhat and set need_curses to yes if we build the TUI. Rewrite
4909 code that looks for a library providing termcap functionality to
4910 match more closely what's done in the Readline library, and move
4911 it into to the "Checks for libraries" section.
4912 * configure: Regenerated.
4913 * Makefile.in (TERMCAP): Remove variable.
4914 * config/i386/go32.mh (TERMCAP): Remove variable.
4918 * MAINTAINERS: Mention gdb_mbuild.sh.
4919 * gdb_mbuild.sh: Rewrite.
4923 * configure.in: Fix typo in last change.
4924 * config.in, configure: Regenerated.
4928 * valarith.c (value_binop): Delete obsolete code and comments.
4929 * configure.host: Ditto.
4930 * buildsym.h (make_blockvector): Ditto.
4931 * buildsym.c (make_blockvector): Ditto.
4932 * defs.h (enum language): Ditto.
4933 (chill_demangle): Ditto.
4934 * elfread.c (elf_symtab_read): Ditto.
4935 * dwarfread.c (CHILL_PRODUCER): Ditto.
4936 (set_cu_language): Ditto.
4937 (handle_producer): Ditto.
4938 * expprint.c (print_subexp): Ditto.
4939 * gdbtypes.c (chill_varying_type): Ditto.
4940 * gdbtypes.h (builtin_type_chill_bool): Ditto.
4941 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
4942 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
4943 (chill_varying_type): Ditto.
4944 * language.h (_LANG_chill): Ditto.
4945 * language.c (binop_result_type, integral_type): Ditto.
4946 (character_type, string_type, structured_type): Ditto.
4947 (lang_bool_type, binop_type_check): Ditto.
4948 * stabsread.h (os9k_stabs): Ditto.
4949 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
4950 (define_symbol, read_type, read_struct_fields): Ditto.
4951 (read_array_type, read_enum_type, read_huge_number): Ditto.
4952 (read_range_type, start_stabs): Ditto.
4953 * symfile.c (init_filename_language_table): Ditto.
4954 (add_psymbol_with_dem_name_to_list): Ditto.
4955 * symtab.c (symbol_init_language_specific): Ditto.
4956 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
4957 * symtab.h (struct general_symbol_info): Ditto.
4958 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4959 * typeprint.c (typedef_print): Ditto.
4960 * utils.c (fprintf_symbol_filtered): Ditto.
4961 * valops.c (value_cast, search_struct_field, value_slice): Delete
4963 (varying_to_slice): Delete function.
4964 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
4965 (varying_to_slice): Delete declaration.
4966 * MAINTAINERS: Update.
4970 * configure.in: Reorganize "Checks for library functions section"
4971 a bit. Remove check for `btowc' and `isascii' functions.
4972 * configure: Regenerated.
4974 * acconfig.h (_MSE_INT_H): Remove.
4975 * configure.in: Create "Checks for header files" section, and move
4976 appropriate tests there. Don't check for objlist.h, wchar.h,
4977 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
4978 misdetection fix. Also add "Checks for types", "Checks for
4979 compiler characteristics" and "Checks for library functions"
4981 * config.in, configure: Regenerated.
4983 * configure.in: Create "Checks for programs" section, and move
4984 appropriate tests there.
4988 * configure.in: Create "Checks for libraries" section, and move
4989 appropriate tests there. Cleanup check for wctype in libw. Use
4990 AC_SEARCH_LIBS to see whether we need libsocket.
4991 * configure: Regenerated.
4993 For older changes see ChangeLog-2002
4999 version-control: never