3 * frame.c (get_prev_frame): When a legacy frame, always call
4 legacy_get_prev_frame. Simplify unwind code using assumption that
6 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
12 * frame.c (get_saved_register): Delete function.
13 * frame.h (get_saved_register): Delete declaration.
14 * xstormy16-tdep.c: Update comment.
15 * regcache.h: Update comments.
16 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
17 get_saved_register and extract_address, use
18 frame_read_unsigned_register.
19 (sparc_frame_saved_pc): Ditto.
20 (sparc_get_saved_register): Instead of get_saved_register, use
22 (sparc_pop_frame): Ditto.
23 * findvar.c: Update comments.
24 (value_of_register): Call frame_register instead of
26 (value_from_register): Ditto.
27 * config/sparc/tm-sparc.h: Update comment.
28 * breakpoint.c: Update comment.
32 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
34 * gdbarch.h, gdbarch.c: Re-generate.
35 * frame.h: Update comments.
36 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
37 * x86-64-tdep.c (x86_64_init_abi): Update.
38 * sparc-tdep.c (sparc_gdbarch_init): Update.
39 * sh-tdep.c (sh_gdbarch_init): Update.
40 * mips-tdep.c (mips_gdbarch_init): Update.
41 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
42 * cris-tdep.c (cris_gdbarch_init): Update.
43 * ia64-tdep.c (ia64_gdbarch_init): Update.
44 * frame.c (frame_register): Update.
45 (get_saved_register): Update.
46 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
50 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
51 * gdbarch.h, gdbarch.c: Regenerate.
52 * valops.c (hand_function_call): Update comment.
53 * stack.c (return_command): Update comment.
54 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
55 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
56 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
57 * x86-64-tdep.c (x86_64_init_abi): Update.
58 * vax-tdep.c (vax_gdbarch_init): Update.
59 * v850-tdep.c (v850_gdbarch_init): Update.
60 * sparc-tdep.c (sparc_gdbarch_init): Update.
61 * sh-tdep.c (sh_gdbarch_init): Update.
62 * s390-tdep.c (s390_gdbarch_init): Update.
63 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
64 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
65 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
66 * mips-tdep.c (mips_gdbarch_init): Update.
67 * mcore-tdep.c (mcore_gdbarch_init): Update.
68 * m68k-tdep.c (m68k_gdbarch_init): Update.
69 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
70 * ia64-tdep.c (ia64_gdbarch_init): Update.
71 * i386-tdep.c (i386_gdbarch_init): Update.
72 * hppa-tdep.c (hppa_gdbarch_init): Update.
73 * h8300-tdep.c (h8300_gdbarch_init): Update.
74 * frv-tdep.c (frv_gdbarch_init): Update.
75 * cris-tdep.c (cris_gdbarch_init): Update.
76 * avr-tdep.c (avr_gdbarch_init): Update.
77 * arm-tdep.c (arm_gdbarch_init): Update.
78 * alpha-tdep.c (alpha_gdbarch_init): Update.
82 * frame.c (legacy_frame_p): New function.
83 (get_prev_frame): Use legacy_frame_p.
84 * frame.h (legacy_frame_p): Declare.
88 * MAINTAINERS (write after approval): Alphabetically
93 * MAINTAINERS (write after approval): Add myself.
97 * frame.c (get_prev_frame): Rename the frame parameter to
99 (get_next_frame, legacy_get_prev_frame): Ditto.
103 * frame.c (get_current_frame): Check target_has_registers before
104 checking target_has_stack.
105 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
106 instead of deprecated_selected_frame.
107 * findvar.c (value_of_register): Pass "frame", not
108 deprecated_selected_frame, to value_of_builtin_reg.
112 * regcache.c (regcache_cooked_write_signed): New function.
113 (regcache_cooked_write_unsigned): New function.
114 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
115 (regcache_cooked_read_signed): Fix regnum in range assertion.
116 * regcache.h (regcache_cooked_write_signed): Declare.
117 (regcache_cooked_write_unsigned): Declare.
121 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
122 * gdbarch.h, gdbarch.c: Re-generate.
123 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
124 * x86-64-tdep.h: Update.
125 * x86-64-tdep.c (x86_64_init_abi): Update.
126 * v850-tdep.c (v850_gdbarch_init): Update.
127 * sparc-tdep.c (sparc_gdbarch_init): Update.
128 * sh-tdep.c (sh_gdbarch_init): Update.
129 * s390-tdep.c (s390_gdbarch_init): Update.
130 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
131 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
132 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
133 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
134 * mips-tdep.c (mips_gdbarch_init): Update.
135 * mcore-tdep.c (mcore_gdbarch_init): Update.
136 * m68k-tdep.c (m68k_gdbarch_init): Update.
137 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
138 * ia64-tdep.c (ia64_gdbarch_init): Update.
139 * i386-tdep.c (i386_gdbarch_init): Update.
140 * i386-interix-tdep.c (i386_interix_init_abi): Update.
141 * hppa-tdep.c (hppa_gdbarch_init): Update.
142 * h8300-tdep.c (h8300_gdbarch_init): Update.
143 * frv-tdep.c (frv_gdbarch_init): Update.
144 * cris-tdep.c (cris_gdbarch_init): Update.
145 * avr-tdep.c (avr_gdbarch_init): Update.
146 * arm-tdep.c (arm_gdbarch_init): Update.
147 * alpha-tdep.c (alpha_gdbarch_init): Update.
148 * sh-tdep.c (sh_init_extra_frame_info): Update.
149 (sh64_init_extra_frame_info): Update.
150 * ns32knbsd-nat.c (frame_num_args): Update.
151 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
152 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
153 (xstormy16_frame_chain_valid): Update.
154 * vax-tdep.c (vax_saved_pc_after_call): Update.
155 * v850-tdep.c (v850_frame_chain): Update.
156 (v850_pop_frame): Update.
157 (v850_init_extra_frame_info): Update.
158 * sparc-tdep.c (setup_arbitrary_frame): Update.
159 * ns32k-tdep.c (umax_frame_num_args): Update.
160 * s390-tdep.c (s390_pop_frame_regular): Update.
161 * mn10300-tdep.c (mn10300_frame_chain): Update.
162 (mn10300_pop_frame_regular): Update.
163 (mn10300_init_extra_frame_info): Update.
164 * mips-tdep.c (mips_init_frame_pc_first): Update.
165 (mips_frame_chain): Update.
166 (mips_pop_frame): Update.
167 * mcore-tdep.c (mcore_frame_chain): Update.
168 (mcore_pop_frame): Update.
169 (mcore_init_extra_frame_info): Update.
170 * arch-utils.c (init_frame_pc_default): Update.
171 * m68k-tdep.c (isi_frame_num_args): Update.
172 (delta68_frame_num_args): Update.
173 (news_frame_num_args): Update.
174 * ia64-tdep.c (ia64_pop_frame_regular): Update.
175 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
176 (alpha_frame_chain): Update.
177 (alpha_pop_frame): Update.
178 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
179 (hppa_init_extra_frame_info): Update.
180 (hppa_frame_chain): Update.
181 (hppa_frame_chain_valid): Update.
182 * cris-tdep.c (cris_init_extra_frame_info): Update.
183 * avr-tdep.c (avr_init_extra_frame_info): Update.
184 * arm-tdep.c (arm_frame_chain_valid): Update.
185 (arm_init_extra_frame_info): Update.
186 (arm_pop_frame): Update.
187 * frame.c (frame_pc_unwind): Update.
188 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
189 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
190 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
191 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
192 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
193 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
197 Eliminate the need for POP_FRAME.
198 * frame.c (do_frame_unwind_register): New function.
199 (frame_pop): When no POP_FRAME, pop the frame using register
200 unwind and a scratch regcache.
201 (frame_saved_regs_pop): Delete function.
202 (trad_frame_unwinder): Update.
203 * d10v-tdep.c (d10v_frame_pop): Delete function.
204 (d10v_frame_unwind): Update.
205 * sentinel-frame.c (sentinel_frame_pop): Delete function.
206 (sentinel_frame_unwinder): Update.
207 * dummy-frame.c (dummy_frame_pop): Delete function.
208 (dummy_frame_unwind): Update.
209 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
210 (struct frame_unwind): Update.
214 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
215 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
216 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
217 Do range checks on register number obtained from debugging info.
218 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
219 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
220 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
222 (do_fp_register_row): Fix typo which caused double type to be
223 used when attempting to unpack a float.
227 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
231 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
232 frame. Problem found by Corinna Vinschen.
236 * doublest.c (floatformat_from_length): Accept also
237 the real size of 'long double' type.
242 * breakpoint.c (bpstat_copy): Copy the command lines as well
243 as the old value, to match what is freed in bpstat_clear.
247 * minsyms.c (add_minsym_to_hash_table): Replace
248 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
249 (compare_minimal_symbols, compact_minimal_symbols)
250 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
251 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
252 of DEPRECATED_SYMBOL_MATCHES_NAME.
253 (lookup_minimal_symbol_solib_trampoline): Ditto.
257 * regcache.h (regcache_cooked_read_ftype): Define.
258 (regcache_save, regcache_restore): Add a cooked_read parameter.
259 * regcache.c (regcache_save, regcache_restore): Update.
260 (do_cooked_read): New function.
261 (regcache_cpy): Pass do_cooked_read to regcache_save and
266 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
267 * gdbarch.h, gdbarch.c: Re-generate.
268 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
269 * x86-64-tdep.h: Update.
270 * x86-64-tdep.c (x86_64_init_abi): Update.
271 * v850-tdep.c (v850_gdbarch_init): Update.
272 * sparc-tdep.c (sparc_gdbarch_init): Update.
273 * sh-tdep.c (sh_gdbarch_init): Update.
274 * s390-tdep.c (s390_gdbarch_init): Update.
275 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
276 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
277 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
278 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
279 * mips-tdep.c (mips_gdbarch_init): Update.
280 * mcore-tdep.c (mcore_gdbarch_init): Update.
281 * m68k-tdep.c (m68k_gdbarch_init): Update.
282 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
283 * ia64-tdep.c (ia64_gdbarch_init): Update.
284 * i386-tdep.c (i386_gdbarch_init): Update.
285 * i386-interix-tdep.c (i386_interix_init_abi): Update.
286 * hppa-tdep.c (hppa_gdbarch_init): Update.
287 * h8300-tdep.c (h8300_gdbarch_init): Update.
288 * frv-tdep.c (frv_gdbarch_init): Update.
289 * cris-tdep.c (cris_gdbarch_init): Update.
290 * avr-tdep.c (avr_gdbarch_init): Update.
291 * arm-tdep.c (arm_gdbarch_init): Update.
292 * alpha-tdep.c (alpha_gdbarch_init): Update.
293 * sh-tdep.c (sh_init_extra_frame_info): Update.
294 (sh64_init_extra_frame_info): Update.
295 * ns32knbsd-nat.c (frame_num_args): Update.
296 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
297 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
298 (xstormy16_frame_chain_valid): Update.
299 * vax-tdep.c (vax_saved_pc_after_call): Update.
300 * v850-tdep.c (v850_frame_chain): Update.
301 (v850_pop_frame): Update.
302 (v850_init_extra_frame_info): Update.
303 * sparc-tdep.c (setup_arbitrary_frame): Update.
304 * ns32k-tdep.c (umax_frame_num_args): Update.
305 * s390-tdep.c (s390_pop_frame_regular): Update.
306 * mn10300-tdep.c (mn10300_frame_chain): Update.
307 (mn10300_pop_frame_regular): Update.
308 (mn10300_init_extra_frame_info): Update.
309 * mips-tdep.c (mips_init_frame_pc_first): Update.
310 (mips_frame_chain): Update.
311 (mips_pop_frame): Update.
312 * mcore-tdep.c (mcore_frame_chain): Update.
313 (mcore_pop_frame): Update.
314 (mcore_init_extra_frame_info): Update.
315 * arch-utils.c (init_frame_pc_default): Update.
316 * m68k-tdep.c (isi_frame_num_args): Update.
317 (delta68_frame_num_args): Update.
318 (news_frame_num_args): Update.
319 * ia64-tdep.c (ia64_pop_frame_regular): Update.
320 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
321 (alpha_frame_chain): Update.
322 (alpha_pop_frame): Update.
323 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
324 (hppa_init_extra_frame_info): Update.
325 (hppa_frame_chain): Update.
326 (hppa_frame_chain_valid): Update.
327 * cris-tdep.c (cris_init_extra_frame_info): Update.
328 * avr-tdep.c (avr_init_extra_frame_info): Update.
329 * arm-tdep.c (arm_frame_chain_valid): Update.
330 (arm_init_extra_frame_info): Update.
331 (arm_pop_frame): Update.
332 * frame.c (frame_pc_unwind): Update.
333 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
334 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
335 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
336 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
337 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
338 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
342 * gdbarch.sh (gdbarch_unwind_pc): New method.
343 * gdbarch.h, gdbarch.c: Regenerate.
344 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
345 but use read_pc and FRAME_SAVED_PC as fall backs.
346 (frame_saved_regs_pc_unwind): Delete function.
347 (trad_frame_unwinder): Update.
348 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
349 (struct frame_unwind): Update.
350 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
351 (dummy_frame_unwind): Update.
352 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
353 (sentinel_frame_unwinder): Update.
354 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
355 (d10v_frame_unwind): Update.
356 (d10v_unwind_pc): New function.
357 (d10v_gdbarch_init): Set unwind_pc.
361 * gdbarch.h: Re-generate.
363 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
365 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
370 * gdbarch.sh (save_dummy_frame_tos): Add comment.
374 * cli-out.c: Update copyright.
375 (cli_out_data): Define typedef. Use instead of ui_out_data.
379 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
384 * gdbarch.sh: Don't generate two macro definitions when an
385 undefined macro taking no arguments.
386 * gdbarch.h: Regenerate.
390 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
391 (x86_64_unwind_dummy_id): New functions.
392 (x86_64_init_abi): Register these two new functions.
396 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
397 (x86_64_skip_prologue): Move prologue detection to
399 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
403 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
404 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
405 * frame.c (get_prev_frame): Restructure the frame ID unwind code
406 to use unwind_dummy_id when a dummy frame.
407 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
409 * gdbarch.h, gdbarch.c: Regneerate.
413 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
414 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
415 Do not use d10v_read_sp or d10v_read_fp when obtaining register
420 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
421 (struct d10v_unwind_cache): Delete field "frameless". Replace
422 "next_addr" with "sp_offset". Add "r11_offset".
423 (d10v_frame_unwind_cache): Update.
424 (prologue_find_regs): Update. When "mv r11, sp", save the
425 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
426 RN was saved in r11_offset.
430 * frame.c (deprecated_update_frame_pc_hack): Also update the the
431 cached PC value in the next frame.
435 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
436 "id_unwind_cache" with "id".
437 (frame_id_unwind): Delete declaration.
438 * frame.c (frame_id_unwind): Delete function.
439 (get_prev_frame): Call the frame id unwind method directly. Store
440 the returned next frame's ID value in NEXT_FRAME. Note that there
441 is a problem with the wrong unwind ID being called with the wrong
446 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
451 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
452 (auto_cp_abi): New variable.
453 (current_cp_abi, num_cp_abis): Make static.
454 (CP_ABI_MAX): Define.
455 (cp_abis): Turn into an array.
456 (value_virtual_fn_field): Fix formatting.
457 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
459 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
460 (list_cp_abis, _initialize_cp_abi): New functions.
461 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
462 declarations for cp_abis, num_cp_abis, current_cp_abi, and
463 switch_to_cp_abi. Update prototype for register_cp_abi.
464 * Makefile.in (cp-abi.o): Update dependencies.
465 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
466 instead of switch_to_cp_abi.
467 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
469 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
471 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
475 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
476 * dwarf2loc.c: Include "regcache.h".
477 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
479 * Makefile.in (dwarf2loc.o): Update dependencies.
483 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
484 number of io registers reported by remote target is not a multiple of
489 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
490 (lookup_symbol_aux_psymtabs): Update call to
491 lookup_partial_symbol.
492 (lookup_transparent_type, find_main_psymtab)
493 (make_symbol_overload_list): Ditto.
497 * MAINTAINERS (Write after approval): Update my email address.
501 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
502 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
503 predicate. Replace MAX_REGISTER_RAW_SIZE.
504 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
505 MAX_REGISTER_VIRTUAL_SIZE.
506 * regcache.c (legacy_max_register_raw_size): New function.
507 (legacy_max_register_virtual_size): New function.
508 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
509 (MAX_REGISTER_RAW_SIZE): Define.
510 (legacy_max_register_raw_size): Declare.
511 (legacy_max_register_virtual_size): Declare.
512 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
513 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
514 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
515 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
516 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
517 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
518 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
519 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
520 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
521 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
522 * vax-tdep.c (vax_gdbarch_init): Update.
523 * v850-tdep.c (v850_gdbarch_init): Update.
524 * sparc-tdep.c (sparc_gdbarch_init): Update.
525 * sh-tdep.c (sh_gdbarch_init): Update.
526 * s390-tdep.c (s390_gdbarch_init): Update.
527 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
528 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
529 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
530 * mips-tdep.c (mips_gdbarch_init): Update.
531 * mcore-tdep.c (mcore_gdbarch_init): Update.
532 * m68k-tdep.c (m68k_gdbarch_init): Update.
533 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
534 * ia64-tdep.c (ia64_gdbarch_init): Update.
535 * i386-tdep.c (i386_gdbarch_init): Update.
536 * hppa-tdep.c (hppa_gdbarch_init): Update.
537 * h8300-tdep.c (h8300_gdbarch_init): Update.
538 * frv-tdep.c (frv_gdbarch_init): Update.
539 * cris-tdep.c (cris_gdbarch_init): Update.
540 * avr-tdep.c (avr_gdbarch_init): Update.
541 * arm-tdep.c (arm_gdbarch_init): Update.
542 * alpha-tdep.c (alpha_gdbarch_init): Update.
543 * d10v-tdep.c (d10v_gdbarch_init): Do not set
544 max_register_raw_size or max_register_virtual_size.
548 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
549 SYMBOL_MATCHES_NAME, add comment.
550 (SYMBOL_MATCHES_NATURAL_NAME): New.
551 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
552 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
553 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
554 * symtab.c (lookup_partial_symbol): Use
555 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
557 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
563 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
564 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
565 by regexp matching against SYMBOL_NATURAL_NAME.
569 * linespec.c (find_method): Extract code into collect_methods.
570 (collect_methods): New.
574 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
577 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
578 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
582 * arch-utils.c (generic_register_byte): Fix to use the loop index
583 and not regnum when summing the size of all registers up to regnum.
587 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
588 FRAME_INIT_SAVED_REGS.
589 * gdbarch.h, gdbarch.c: Regenerate.
590 * stack.c (frame_info): Update.
591 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
592 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
593 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
594 * ns32k-tdep.c (ns32k_pop_frame): Update.
595 * mips-tdep.c (mips_pop_frame): Update.
596 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
597 * ia64-tdep.c (ia64_frame_chain): Update.
598 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
599 (ia64_frameless_function_invocation): Update.
600 (ia64_init_extra_frame_info): Update.
601 (ia64_pop_frame_regular): Update.
602 * frame.h (struct frame_info): Update comment.
603 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
604 * frame.c (frame_saved_regs_register_unwind): Update.
605 (frame_saved_regs_register_unwind): Update.
606 (deprecated_generic_get_saved_register): Update.
607 * cris-tdep.c: Update comment.
608 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
610 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
611 * x86-64-tdep.c (x86_64_init_abi): Update.
612 * vax-tdep.c (vax_gdbarch_init): Update.
613 * v850-tdep.c (v850_gdbarch_init): Update.
614 * sparc-tdep.c (sparc_gdbarch_init): Update.
615 * sh-tdep.c (sh_gdbarch_init): Update.
616 * s390-tdep.c (s390_gdbarch_init): Update.
617 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
618 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
619 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
620 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
621 * mips-tdep.c (mips_gdbarch_init): Update.
622 * mcore-tdep.c (mcore_gdbarch_init): Update.
623 * m68k-tdep.c (m68k_gdbarch_init): Update.
624 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
625 * ia64-tdep.c (ia64_gdbarch_init): Update.
626 * i386-tdep.c (i386_gdbarch_init): Update.
627 * frv-tdep.c (frv_gdbarch_init): Update.
628 * avr-tdep.c (avr_gdbarch_init): Update.
629 * arm-tdep.c (arm_gdbarch_init): Update.
630 * alpha-tdep.c (alpha_gdbarch_init): Update.
634 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
635 option enum and switch. When no windows, set the interpreter to
640 * main.c (captured_main): Replace magic option characters with an
645 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
646 INIT_EXTRA_FRAME_INFO.
647 * gdbarch.h, gdbarch.c: Regenerate.
648 * arm-tdep.c: Update comments.
649 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
650 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
651 * frame.h, avr-tdep.c: Ditto.
652 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
653 (create_new_frame, legacy_get_prev_frame): Ditto.
654 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
655 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
656 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
657 deprecated_init_extra_frame_info instead of init_extra_frame_info.
658 * x86-64-tdep.c (x86_64_init_abi): Ditto.
659 * v850-tdep.c (v850_gdbarch_init): Ditto.
660 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
661 * sh-tdep.c (sh_gdbarch_init): Ditto.
662 * s390-tdep.c (s390_gdbarch_init): Ditto.
663 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
664 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
665 * mips-tdep.c (mips_gdbarch_init): Ditto.
666 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
667 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
668 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
669 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
670 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
671 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
672 * frv-tdep.c (frv_gdbarch_init): Ditto.
673 * cris-tdep.c (cris_gdbarch_init): Ditto.
674 * avr-tdep.c (avr_gdbarch_init): Ditto.
675 * arm-tdep.c (arm_gdbarch_init): Ditto.
676 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
677 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
681 * gdbarch.sh (register_type): New function with predicate.
682 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
683 * gdbarch.h, gdbarch.c: Re-generate.
684 * arch-utils.c (generic_register_byte): Use generic_register_size.
685 (generic_register_size): When available, use
686 gdbarch_register_type.
687 * regcache.c (init_regcache_descr): When available, initialize the
688 register type array using gdbarch_register_type. If the
689 architecture supplies gdbarch_register_type, do not use the legacy
691 * d10v-tdep.c (d10v_register_type): Replace
692 d10v_register_virtual_type.
693 (d10v_gdbarch_init): Set register_type instead of
694 register_virtual_type.
698 * Makefile.in (ax-gdb.o): Update dependencies.
699 * ax-gdb.c: Include "regcache.h".
700 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
701 * findvar.c (value_of_register): Ditto.
702 * infcmd.c (default_print_registers_info): Ditto.
706 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
707 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
711 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
716 * Makefile.in (dwarf2loc.o): Update dependencies.
717 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
718 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
719 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
720 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
721 (locexpr_tracepoint_var_ref): New function.
722 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
726 * regcache.c (register_size): New function.
727 * regcache.h (register_size): Declare
728 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
729 max_register_size instead of MAX_REGISTER_RAW_SIZE.
733 * linespec.c (decode_compound): Extract code into find_method.
738 * Makefile.in: Add rules to build and link in observer.o.
742 * observer.c: Minor comments edits.
746 * observer.h, observer.c: New file.
750 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
754 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
755 (M6812_OP_STS_EXT): Likewise.
756 (m6811_prologue): Use the above to recognize prologue.
757 (m6812_prologue): Likewise.
761 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
763 (compare_psymbols): Ditto.
764 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
768 * f-lang.c (build_fortran_types): New function.
769 (_initialize_f_language): Gdbarch-register built-in fortran types.
770 * doublest.c (extract_floating): Fix warning text.
774 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
775 predicate. Replaces PUSH_DUMMY_FRAME.
776 * gdbarch.h, gdbarch.c: Regnerate.
777 * valops.c (hand_function_call): Update. Call
778 generic_push_dummy_frame directly.
779 * vax-tdep.c (vax_gdbarch_init): Update.
780 * sparc-tdep.c (sparc_gdbarch_init): Update.
781 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
782 * m68k-tdep.c (m68k_gdbarch_init): Update.
783 * hppa-tdep.c (hppa_gdbarch_init): Update.
784 * alpha-tdep.c (alpha_gdbarch_init): Update.
785 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
786 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
787 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
788 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
789 push_dummy_frame to generic_push_dummy_frame.
790 * v850-tdep.c (v850_gdbarch_init): Ditto.
791 * sh-tdep.c (sh_gdbarch_init): Ditto.
792 * s390-tdep.c (s390_gdbarch_init): Ditto.
793 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
794 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
795 * mips-tdep.c (mips_gdbarch_init): Ditto.
796 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
797 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
798 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
799 * i386-tdep.c (i386_gdbarch_init): Ditto.
800 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
801 * frv-tdep.c (frv_gdbarch_init): Ditto.
802 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
803 * cris-tdep.c (cris_gdbarch_init): Ditto.
804 * avr-tdep.c (avr_gdbarch_init): Ditto.
805 * arm-tdep.c (arm_gdbarch_init): Ditto.
809 * mips-tdep.c (show_mips_abi): New function.
810 (_initialize_mips_tdep): Use show_mips_abi() to implement the
811 command ``show mips abi''.
816 * dbxread.c (process_one_symbol): Only record line 0 if one or
817 more sline entries have been seen for the function.
821 * configure: Regenerate with autoconf 000227.
826 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
828 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
832 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
833 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
837 * configure.in: New variable HAVE_UINTPTR_T.
838 * configure, config.in: Regenerated.
843 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
847 * frame.c (get_prev_frame): Add comment on check for
848 inside_entry_func. Only check for inside_entry_file when not a
849 dummy and not a sentinel. Check that the new frame is not inner
854 * frame.c (frame_debug): New variable.
855 (_initialize_frame): Add "set/show debug frame" command.
856 (get_prev_frame): When frame_debug, print reason why unwind
861 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
862 to avoid uintptr_t definition problems.
866 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
867 (SYMBOL_LINKAGE_NAME): Ditto.
868 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
870 (struct general_symbol_info): Expand comment.
871 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
872 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
873 (SYMBOL_MATCHES_REGEXP): Ditto.
874 * symtab.c (symbol_natural_name): New function.
875 * objfiles.h: Replace all uses of SYMBOL_NAME by
876 DEPRECATED_SYMBOL_NAME.
877 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
878 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
879 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
880 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
881 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
882 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
883 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
884 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
885 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
886 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
888 * ada-exp.y: Update copyright.
889 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
890 * cp-valprint.c: Ditto.
894 * infptrace.c (detach): Do not flag error if ptrace detach fails
895 and errno is set to ESRCH.
899 * infptrace.c (udot_info): Change type of udot_off to long. Use
900 paddr when printing udot_off's value.
904 * symtab.c (make_symbol_overload_list): Only read in partial
905 symtabs containing a matching partial symbol.
909 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
910 do the comparison, not strcmp.
911 * symfile.c (compare_psymbols): Ditto.
912 * defs.h: Declare strcmp_iw_ordered.
913 * utils.c (strcmp_iw_ordered): New function.
917 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
918 support, shared libs): Remove my name from here, to better reflect
923 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
924 (target_ops): Add to_have_continuable_watchpoint.
925 * target.c (update_current_target): Add INHERIT line for
926 to_have_continuable_watchpoint.
927 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
928 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
929 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
930 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
934 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
939 * solib.c (solib_open): Call target defined search function after
940 failing with solib-search-path.
941 * solist.h (target_so_ops): Add find_and_open_solib function hook and
942 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
946 * MAINTAINERS: Add myself to Write After section.
950 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
954 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
955 (m68hc11_add_reggroups): New function.
956 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
957 (m68hc11_gdbarch_init): Install the reggroups.
958 (_initialize_m68hc11_tdep): Initialize them.
962 * MAINTAINERS: Update my email address.
966 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
971 * symtab.h: Add opaque declarations of struct axs_value and
973 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
974 (struct location_funcs): New type.
975 (struct symbol): Add "loc" to aux_value.
976 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
977 * dwarf2read.c: Include "dwarf2expr.h".
978 (dwarf2_symbol_mark_computed): New function.
979 (read_func_scope): Use it.
980 (var_decode_location): New function.
981 (new_symbol): Use it.
982 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
984 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
985 (dwarf2expr_h, dwarf2loc_h): New variables.
986 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
987 (dwarf2expr.o, dwarf2loc.o): New rules.
988 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
989 * buildsym.c (finish_block): Handle LOC_COMPUTED and
991 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
992 * m2-exp.y (yylex): Likewise.
993 * printcmd.c (address_info, print_frame_args): Likewise.
994 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
995 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
996 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
997 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
998 * symtab.c (lookup_block_symbol): Likewise.
1002 * symtab.h: Remove objc_specific struct
1003 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
1004 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
1005 Have language_objc use cplus_specific struct.
1009 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
1010 TYPE_NAME, when printing a String value. PR java/1075.
1014 * objc-lang.h (find_methods): Remove declaration.
1015 * objc-lang.c (find_methods): Make static.
1019 * win32-nat.c (get_image_name): Check return value from
1021 (child_xfer_memory): Ditto.
1025 * configure.in (TARGET_SYSTEM_ROOT): Set default to
1026 ${exec_prefix}/${target_alias}/sys-root. Match explicit
1027 '${exec_prefix}' (in addition to the expansion thereof) as
1029 * configure: Rebuilt.
1033 * symtab.c (search_symbols): Revert the search_symbols part of my
1034 2002-12-23 patch. Add comment.
1038 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
1039 * dbxread.c (elfstab_build_psymtabs): Don't call
1040 install_minimal_symbols.
1041 (stabsect_build_psymtabs): Likewise.
1042 * elfread.c (elf_symfile_read): Call install_minimal_symbols
1044 * somread.c (som_symfile_read): Call install_minimal_symbols
1045 and do_cleanups earlier.
1046 * nlmread.c (nlm_symfile_read): Likewise.
1047 * mdebugread.c (elfmdebug_build_psymtabs): Call
1048 install_minimal_symbols and make appropriate cleanups.
1052 * solib.c (reload_shared_libraries): New function.
1053 (_initialize_solib): Add callbacks for ``set solib-search-path''
1054 and ``set solib-absolute-prefix''.
1058 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
1060 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
1061 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
1062 * ada-typeprint.c (ada_typedef_print): Ditto.
1063 * ax-gdb.c (gen_var_ref): Ditto.
1064 * breakpoint.c (print_one_breakpoint): Ditto.
1065 * buildsym.c (finish_block): Ditto.
1066 * c-valprint.c (c_val_print): Ditto.
1067 * expprint.c (print_subexp): Ditto.
1068 * findvar.c (locate_var_value): Ditto.
1069 * infcmd.c (jump_command): Ditto.
1070 * linespec.c (decode_line_2, decode_compound): Ditto.
1071 * maint.c (maintenance_translate_address): Ditto.
1072 * objc-lang.c (compare_selectors, compare_classes): Ditto.
1073 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
1075 * p-valprint.c (pascal_val_print): Ditto.
1076 * stabsread.c (define_symbol): Ditto.
1077 * stack.c (print_frame, frame_info, print_block_frame_locals)
1078 (print_frame_arg_vars, return_command): Ditto.
1079 * symfile.c (compare_symbols, compare_psymbols): Ditto.
1080 * symmisc.c (print_symbol): Ditto.
1081 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
1082 (compare_search_syms, print_symbol_info, print_msymbol_info)
1083 (rbreak_command): Ditto.
1084 * tracepoint.c (tracepoints_info): Ditto.
1085 * typeprint.c (typedef_print): Ditto.
1086 * valops.c (value_of_variable, hand_function_call): Ditto.
1087 * cli/cli-cmds.c (edit_command, list_command): Ditto.
1088 * ada-typeprint.c: Update Copyright.
1089 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
1090 * tracepoint.c, cli/cli-cmds.c: Ditto.
1094 * frame.c (generic_unwind_get_saved_register): Make non-static.
1095 * frame.h (generic_unwind_get_saved_register): Declare.
1096 * mips-tdep.c (read_next_frame_reg): Fetch register from
1097 current regcache when frame is NULL.
1098 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
1100 (mips_get_saved_register): Call generic_unwind_get_saved_register()
1101 instead of frame_register_unwind().
1105 * remote-sim.c (gdbsim_insert_breakpoint)
1106 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
1111 * remote.c (_initialize_remote): Add commands "set/show remote
1112 hardware-watchpoint-limit" and "set/show remote
1113 hardware-breakpoint-limit".
1114 (remote_hw_watchpoint_limit): Initialize to -1.
1115 (remote_hw_breakpoint_limit): Ditto.
1116 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
1120 * coff-pe-read.c: New file - support reading of minimal symbols from a
1121 portable executable using the export table.
1122 * coff-pe-read.h: New file.
1123 * coffread.c: Include coff-pe-read.h.
1124 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
1125 debugging symbols found.
1126 * Makefile.in (SFILES): Add coff-pe-read.o.
1127 (coff_pe_read_h): Define.
1128 (COMMON_OBS): Add coff-pe-read.o.
1129 (coffread.o): Add coff_pe_read_h dependency.
1130 (coff-pe-read.o): New target.
1134 * Makefile.in (SFILES): Add block.c.
1136 (COMMON_OBS): Add block.o.
1138 (x86-64-tdep.o): Add $(block_h).
1139 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
1140 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
1141 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
1142 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
1143 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
1144 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
1145 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
1146 * value.h: Add opaque declaration for struct block.
1147 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
1148 * ada-lang.h: Ditto.
1149 * x86-64-tdep.c: #include "block.h"
1150 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
1151 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
1152 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
1153 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
1154 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
1155 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
1156 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
1157 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
1158 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
1159 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
1160 * symtab.c (block_function): Ditto.
1161 (contained_in): Ditto.
1162 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
1163 block.h. Add opaque declaration for struct block.
1164 * symtab.h: Move block_function and contained_in declarations to
1165 block.h. Add opaque declarations for struct block, struct
1167 (struct block): Move to block.h.
1168 (struct blockvector): Ditto.
1169 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
1170 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
1171 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
1172 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
1173 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
1175 * block.c: New file.
1176 * block.h: New file.
1180 * avr-tdep.c (avr_extract_return_value): Remove function.
1181 (avr_store_return_value): Remove function.
1182 (avr_extract_struct_value_address): Remove function.
1183 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
1187 * rs6000-tdep.c: Include "gdb_assert.h".
1188 (registers_e500): Add "acc" and "spefscr".
1189 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
1190 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
1191 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
1193 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
1197 * Makefile.in: Add gdbtk-interps.c.
1201 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
1202 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
1206 * symtab.h (struct objfile): Add opaque declaration.
1211 * dbxread.c (process_one_symbol): Use last_function_start rather
1212 than function_start_offset to find the real beginning of the
1213 current function. The latter is just the text section offset on
1214 some systems, the former is always the real function start.
1218 * configure.in: Revert ${target} != ${host}.
1222 * configure.in (Makefile): Use the test ${target} != ${host},
1223 instead of the absence of the "nm.h" file, to determine of the
1224 configuration non-native.
1225 * configure: Regenerate.
1231 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
1232 conditionalize tui_active test.
1233 (lookup_cmd_1): Ditto.
1237 * configure.in: Add check for _etext.
1238 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
1240 * config.in, configure: regenerated.
1244 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
1248 * main.c (tui_version): Delete variable.
1249 (captured_main): When --tui, set interpreter_p to "tui" instead of
1250 enabling tui_version.
1251 * printcmd.c (display_command) [TUI]: Test tui_active instead of
1253 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
1254 * cli/cli-cmds.c (disassemble_command): Ditto.
1255 * defs.h (tui_version): Delete declaration.
1256 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
1257 (tui-interp.o): Add rules.
1258 (SUBDIR_TUI_OBS): Add "tui-interp.o".
1262 * win32-nat.c (register_loaded_dll): Correctly set address range for
1267 * symmisc.c (print_objfile_statistics): Include information about
1268 the number of psymtabs and symtabs in each object file.
1272 * main.h (struct captured_main_args): Add interpreter_p.
1273 * main.c (captured_main): Initialize interpreter_p from context.
1274 * gdb.c (main): Set interpreter_p argument.
1275 * Makefile.in (gdb.o): Add dependency for interps.h.
1279 * event-top.c (cli_command_loop): Delete declaration.
1280 (_initialize_event_loop): Delete function setting event_loop_hook.
1281 * event-top.h (cli_command_loop): Declare. Update copyright.
1282 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
1283 * interps.c (current_interp_command_loop): When event_loop_p, call
1288 * interps.h (interp_command_loop_ftype): Change return type to
1293 * x86-64-tdep.c (x86_64_extract_return_value)
1294 (x86_64_store_return_value): Use regcache instead of regbuf.
1295 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
1296 * x86-64-linux-nat.c (fill_gregset): Use regcache.
1300 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
1301 * aclocal.m4: Regenerate.
1302 * configure: Regenerate.
1304 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
1305 TCL_LD_SEARCH_FLAGS.
1309 * dwarf2cfi.c: Reindented.
1313 * interps.c (clear_interpreter_hooks): Convert function definition
1318 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
1322 * gdbtypes.h (struct main_type): Move ``length'' field from here...
1323 (struct type): ...to here.
1324 (TYPE_LENGTH): Adjust to reflect different location of ``length''
1326 * gdbtypes.c (make_qualified_type): Set length on newly created type.
1327 (replace_type): Set length on all type variants for a given type.
1331 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
1333 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
1337 * Makefile.in (symm-nat.o): Update dependencies.
1338 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
1339 (lynx-nat.o, ia64-linux-nat.): Ditto.
1340 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
1341 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
1342 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
1344 * Makefile.in (inflow_h): Define.
1345 (procfs.o, inflow.o, procfs.o): Update dependencies.
1346 * inftarg.c (child_stop): Delete extern declaration of
1347 inferior_process_group. Include "inflow.h".
1348 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
1349 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
1350 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
1351 (our_process_group, inferior_process_group): Extern declarations.
1353 * procfs.c: Include "gdb_assert.h".
1355 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
1356 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
1357 * jv-typeprint.c (java_type_print_base): Ditto.
1358 * typeprint.c (typedef_print): Eliminate STREQ.
1359 * cli/cli-script.c (define_command, define_command): Ditto.
1360 * main.c (captured_main): Ditto.
1361 * values.c (lookup_internalvar): Ditto.
1362 * utils.c (safe_strerror, parse_escape): Eliminate assignment
1363 within `if' conditional.
1364 * linespec.c (decode_line_2): Ditto.
1365 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
1366 (bfd_openw_with_cleanup): Ditto.
1370 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
1371 legacy_extract_return_value and store_return_value to
1372 legacy_return_value.
1376 * win32-nat.c (get_relocated_section_addrs): New function. Find
1377 section load addresses for symbol handling in relocated DLLs.
1378 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
1382 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
1384 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
1386 (angel_RDI_info): Ditto.
1387 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
1389 (threads_continue_all_with_signals): Ditto.
1396 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
1397 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
1398 (SUBDIR_MI_OBS): Add "mi-interp.o".
1399 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
1400 (SFILES): Add "interps.c".
1401 (COMMON_OBS): Add "interps.o".
1402 (interps_h, mi_main_h): Define.
1403 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
1404 (mi-main.o, main.o, event-top.o): Update dependencies.
1405 * cli/cli-interp.c: New file.
1406 * interps.h, interps.c: New files.
1407 * top.c: (gdb_init): Don't install the default interpreter, handed
1409 * main.c: Include "interps.h".
1410 (interpreter_p): Note that it should malloc'ed.
1411 (captured_command_loop): Call current_interp_command_loop.
1412 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
1413 xfree and xstrdup when updating interpreter_p. Install the
1414 default interpreter. Add hack to stop mi1's copyright notice
1416 * event-top.h (gdb_setup_readline): Declare.
1417 (gdb_disable_readline): Declare.
1418 * event-top.c: Include "interps.h".
1419 (display_gdb_prompt): Call current_interp_display_prompt_p.
1420 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
1421 gdb_stdlog, and gdb_stdtarg.
1422 (_initialize_event_loop): Don't call gdb_setup_readline.
1423 * cli-out.c (cli_out_set_stream): New function.
1424 * cli-out.h (cli_out_set_stream): Declare.
1428 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
1429 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
1430 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
1431 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
1432 config/i386/i386v42mp.mt: Removed.
1436 * configure.tgt (*-*-solaris*): Set gdb_osabi to
1441 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
1442 2.12.1 and earlier versions.
1446 Remove orphaned hosts, targets and files.
1447 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
1448 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
1449 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
1450 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
1451 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
1452 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
1453 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
1454 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
1455 * config/sparc/tm-sp64sim.h: Delete.
1456 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
1458 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
1459 mips*-dec-mach3* targets.
1463 * NEWS: Fix typo: sepcifying -> specifying.
1467 * dwarfread.c: Add documentation on the state of dwarf-1,
1468 looking towards obsoletion.
1472 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
1473 gdb/testsuite/gdb.c++/pr-1023.exp.
1477 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
1478 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
1480 * utils.c (init_page_info): Delete reference to MPW in comments.
1481 * main.c (captured_main): Delete #ifdef MPW.
1485 * NEWS: Note that the m32r-*-elf* is obsolete.
1486 * monitor.c (monitor_expect): Obsolete reference to m32r.
1487 * configure.tgt: Mark m32r-*-elf* as obsolete.
1488 * MAINTAINERS: Mark m32k as obsolete.
1489 * m32r-rom.c: Obsolete file.
1490 * config/m32r/m32r.mt: Obsolete file.
1491 * config/m32r/tm-m32r.h: Obsolete file.
1492 * m32r-stub.c: Obsolete file.
1493 * m32r-tdep.c: Obsolete file.
1497 * NEWS: Mention that the z8k-zilog-none is obsolete.
1498 * MAINTAINERS: Mark z8k as obsolete.
1499 * configure.tgt: Obsolete the z8k-*-coff* target.
1500 * config/z8k/z8k.mt: Obsolete file.
1501 * config/z8k/tm-z8k.h: Obsolete file.
1502 * z8k-tdep.c: Obsolete file.
1506 * NEWS: Mention that the mn10200-elf is obsolete.
1507 * configure.tgt: Obsolete mn10200-*-* target.
1508 * breakpoint.c (update_breakpoints_after_exec): Update comment to
1509 mention that the mn10200 is obsolete.
1510 * breakpoint.h: Ditto.
1511 * MAINTAINERS: Mark the mn10200-elf as obsolete.
1512 * config/mn10200/mn10200.mt: Obsolete file.
1513 * config/mn10200/tm-mn10200.h: Obsolete file.
1514 * mn10200-tdep.c: Obsolete file.
1518 * MAINTAINERS: Mark h8500 as obsolete.
1519 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
1520 * findvar.c (value_from_register): Ditto.
1521 * h8500-tdep.c: Mark file as obsolete.
1522 * config/h8500/h8500.mt: Ditto.
1523 * config/h8500/tm-h8500.h: Ditto.
1524 * NEWS: Mention that h8500 is obsolete.
1528 * objfiles.c (allocate_objfile): Always set name. Add comment at
1530 * jv-lang.c (get_dynamics_objfile): Add comment.
1534 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
1535 * printcmd.c (build_address_symbolic): Replace uses of
1536 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
1537 SYMBOL_NAME, and asm_demangle.
1542 * linespec.c (decode_compound): Extract code into
1544 (lookup_prefix_sym): New function.
1548 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
1549 FLOAT_COERCION_BADNESS.
1550 * gdbtypes.c (rank_one_type): Replace all uses of
1551 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
1555 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
1556 section, let dwarf_macinfo_section point to it, not
1562 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
1563 (ppc_linux_at_sigtramp_return_path): Use it.
1567 * defs.h (streq): Add prototype.
1568 * utils.c (streq): New function.
1570 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
1571 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
1572 * mdebugread.c (new_symbol): Likewise.
1573 * stabsread.c (define_symbol): Likewise.
1574 * coffread.c (process_coff_symbol): Likewise.
1575 * dwarfread.c (new_symbol): Likewise.
1577 * minsyms.c (prim_record_minimal_symbol_and_info): Use
1578 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
1580 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
1581 SYMBOL_INIT_DEMANGLED_NAME.
1582 * objfiles.c: Include "hashtab.h".
1583 (allocate_objfile): Call htab_set_functions_ex for the
1584 demangled_names_hash.
1585 (free_objfile): Call htab_delete for the demangled_names_hash.
1586 * objfiles.h (struct htab): Add declaration.
1587 (struct objfile): Add demangled_names_hash.
1588 * symfile.c: Include "hashtab.h".
1589 (reread_symbols): Call htab_delete for the demangled_names_hash.
1590 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
1591 SYMBOL_NAME in the bcache.
1592 * symtab.c: Include "hashtab.h". Update comments.
1593 (create_demangled_names_hash, symbol_set_names): New functions.
1594 (symbol_find_demangled_name): New function, broken out from
1595 symbol_init_demangled_names.
1596 (symbol_init_demangled_names): Use it.
1597 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
1598 (SYMBOL_SET_NAMES): New macro.
1599 (symbol_set_names): Add prototype.
1603 Use a single, consistent representation for an empty minimal
1604 symbol table in an objfile.
1605 * objfiles.c (terminate_minimal_symbol_table): New function.
1606 (allocate_objfile): Call it.
1607 * objfiles.h (terminate_minimal_symbol_table): New declaration.
1608 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
1610 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
1611 objfile has minimal symbols, compare minimal_symbol_count to zero,
1612 instead of comparing msymbols with NULL.
1613 * objfiles.c (have_minimal_symbols): Same.
1614 * solib-sunos.c (solib_add_common_symbols): Call
1615 terminate_minimal_symbol_table.
1616 * symfile.c (reread_symbols): Same.
1620 * s390-tdep.c (s390_address_class_type_flags)
1621 (s390_address_class_type_flags_to_name)
1622 (s390_address_class_name_to_type_flags): New functions.
1623 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
1624 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
1628 * arm-tdep.c: Fix spell-o in comment.
1632 * dwarf2cfi.c (pointer_encoding): Added new parameter.
1633 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
1634 error messages to contain BFD filename.
1638 Fix PR gdb/742 gdb/743 gdb/877
1639 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
1640 (do_mixed_source_and_assembly): Use
1641 make_cleanup_ui_out_tuple_begin_end and
1642 make_cleanup_ui_out_tuple_begin_end.
1643 (do_mixed_source_and_assembly): Ditto.
1644 * thread.c (do_captured_list_thread_ids): Ditto.
1645 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
1646 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
1647 ui_out_tuple_end): Delete prototypes.
1648 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
1649 ui_out_list_end, ui_out_tuple_end): Delete.
1652 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
1653 * ui-out.c (make_cleanup_ui_out_table_begin_end)
1654 (do_cleanup_table_end): New functions.
1655 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
1656 Use cleanups to invoke_ui_out_tuple_end().
1657 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
1658 * cli/cli-setshow.c (cmd_show_list): Use
1659 make_cleanup_ui_out_tuple_begin_end.
1663 * frame.c (frame_unwind_register): New function.
1664 (frame_unwind_unsigned_register): Use.
1665 (frame_unwind_signed_register): Use.
1666 (frame_read_register): New function.
1667 * frame.h (frame_unwind_register): Declare.
1668 (frame_read_register): Declare.
1670 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
1671 and frame_unwind_register instead of read_memory, write_register
1672 and deprecated_write_register_bytes.
1676 * frame.h: Note that namelen can be negative.
1677 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
1680 * NEWS: Mention that the d10v's `regs' command is deprecated.
1681 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
1682 (d10v_print_registers_info): New function.
1683 (show_regs): Call d10v_print_registers_info.
1684 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
1688 * stack.c (print_frame_info): Restore call to annotate_frame_begin
1689 lost in the previous patch.
1694 * stack.c (print_frame_info_base): Output complete FRAME tuple
1695 for synthesized frames.
1699 * mips-nat.c (zerobuf): Delete.
1700 (fetch_inferior_registers): Alloc local zerobuf.
1701 (fetch_core_registers): Alloc local zerobuf.
1702 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
1703 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
1704 * thread-db.c (thread_db_store_registers): Ditto.
1705 * sh-tdep.c (sh_do_register): Ditto.
1706 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1707 * remote-sim.c (gdbsim_store_register): Ditto.
1708 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1709 * remote-e7000.c (fetch_regs_from_dump): Ditto.
1710 * monitor.c (monitor_supply_register): Ditto.
1711 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
1712 * mips-nat.c (fetch_inferior_registers): Ditto.
1713 * m68klinux-nat.c (fetch_register): Ditto.
1714 * lynx-nat.c (fetch_inferior_registers): Ditto.
1715 (fetch_inferior_registers): Ditto.
1716 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
1717 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
1718 (hpux_thread_store_registers): Ditto.
1719 * hppah-nat.c (fetch_register): Ditto.
1720 * hppab-nat.c (fetch_register): Ditto.
1721 * hppa-tdep.c (pa_register_look_aside): Ditto.
1722 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
1723 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
1727 * gdbarch.sh: Explictly specify all method levels. When a
1728 variable with an empty level, provide a non-multi-arch default.
1729 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
1730 * gdbarch.h: Re-generate.
1731 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
1732 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
1736 * defs.h (host_pointer_to_address): Delete declaration.
1737 (address_to_host_pointer): Delete declaration.
1738 * utils.c (host_pointer_to_address): Delete function.
1739 (address_to_host_pointer): Delete function.
1740 * procfs.c (procfs_address_to_host_pointer): New function.
1741 * procfs.c (proc_set_watchpoint): Use.
1742 (procfs_can_use_hw_breakpoint): Update comments.
1743 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
1744 (som_solib_add): Use.
1745 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
1746 * hppa-tdep.c (unwind_command): Use.
1750 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
1753 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
1754 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
1755 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
1756 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
1757 (define_symbol): Update.
1758 * symfile.c (generic_load): Remove references to nindy.
1759 * symtab.c: Remove references to nindy.
1763 * infcmd.c (print_float_info): Delete code conditional on
1765 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
1766 * config/m68k/nm-apollo68b.h: Ditto.
1767 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
1768 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
1769 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
1773 * config/i386/tm-i386os9k.h: Removed.
1775 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
1776 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
1777 they're identical to i[3456]86-*-sysv* now.
1778 * config/i386/i386v32.mh: Removed.
1779 * config/i386/xm-i386v32.h: Removed.
1780 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
1782 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
1784 * config/i386/i386dgux.mh: Removed.
1785 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
1787 * configure.in: Fix typo.
1788 * configure: Regenerated.
1792 * dwarf2read.c (dwarf2_locate_sections): Set
1793 dwarf_ranges_section.
1797 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
1798 * utils.c: Update comments documenting legitimate uses of PTR.
1800 * utils.c: Re-indent.
1802 * config/djgpp/fnchange.lst: Delete nindy files.
1803 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
1804 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
1805 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
1806 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
1807 * nindy-share/README, nindy-share/Onindy.c: Delete files.
1808 * nindy-tdep.c, nindy-share/Makefile: Delete files.
1809 * Makefile.in (init.c): Remove nindy references.
1810 (saber_gdb): Delete rule.
1811 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
1812 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
1814 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
1815 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
1816 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
1817 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
1819 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
1820 * saber.suppress: Delete file.
1824 * dbxread.c (stabs_data): New static variable.
1825 (fill_symbuf): Support an in-memory buffer for stabs data.
1826 (stabs_seek): New function.
1827 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
1828 (read_ofile_symtab): Use stabs_seek.
1829 (elfstab_build_psymtabs): Take an asection* instead of
1830 an offset and size. Relocate the stabs data if necessary.
1831 Save the section* for dbx_psymtab_to_symtab.
1832 * dwarf2read.c: Add section variables for each debug section.
1833 (dwarf2_locate_sections): Fill them in.
1834 (dwarf2_read_section): Take an asection* argument.
1835 Relocate the section contents if necessary.
1836 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
1837 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
1838 it to dwarf2_read_section.
1839 (dwarf2_build_frame_info): Update callers.
1840 * elfread.c (elf_symfile_read): Update call to
1841 elfstab_build_psymtabs.
1842 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
1843 (DBX_STAB_SECTION): New macro.
1844 * stabsread.h (elfstab_build_psymtabs): Update prototype.
1845 * symfile.c (symfile_dummy_outputs): New function.
1846 (symfile_relocate_debug_section): New function.
1847 * symfile.h (symfile_relocate_debug_section): Add prototype.
1851 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
1852 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
1853 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
1854 * alpha-tdep.c (alpha_register_name): Add "unique".
1855 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
1856 (ALPHA_UNIQUE_REGNUM): New.
1857 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
1861 * README: Remove reference to Ericsson 1800 monitor.
1862 * Makefile.in (remote-es.o): Delete rule.
1863 (ALLDEPFILES): Delete remote-es.c.
1864 * remote-es.c: Delete file.
1865 * config/m68k/es1800.mt: Delete file.
1866 * config/djgpp/fnchange.lst: Update.
1867 * configure.tgt: Delete m68*-ericsson-* target.
1871 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
1872 Remove duplicate/shadowing variable of same name.
1876 * symfile.c (find_separate_debug_file): Assert that the objfile's
1877 directory name we compute ends with a slash, and then assume that
1878 that's so everywhere we use it.
1882 * valops.c (value_assign): Flush frame cache after stores to memory
1887 * Makefile.in (mon960-rom.o): Delete rule.
1888 * mon960-rom.c: Delete file.
1892 * d10v-tdep.c: Include "frame-unwind.h".
1893 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
1895 (next_addr, uses_frame): Delete.
1896 (struct d10v_unwind_cache): Define.
1897 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
1898 Use info instead of next_addr and uses_frame globals.
1899 (d10v_frame_init_saved_regs): Delete function.
1900 (d10v_init_extra_frame_info): Delete function.
1901 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
1902 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
1903 init_frame_pc or frame_saved_pc.
1904 (d10v_pop_frame): Delete function.
1905 (do_d10v_pop_frame): Delete function.
1906 (d10v_frame_chain): Delete function.
1907 (d10v_frame_chain_valid): Delete function.
1908 (d10v_frame_pc_unwind): New function.
1909 (d10v_frame_id_unwind): New function.
1910 (saved_regs_unwinder): New function.
1911 (d10v_frame_register_unwind): New function.
1912 (d10v_frame_pop): New function.
1913 (d10v_frame_unwind): New variable.
1914 (d10v_frame_p): New function.
1915 (d10v_frame_saved_pc): Delete function.
1916 * Makefile.in (d10v-tdep.o): Update dependencies.
1920 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
1921 causing some regressions due to a change in the default value
1929 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
1931 (RANGES_SECTION): New.
1932 (dwarf_ranges_buffer): New variable.
1933 (struct comp_unit_head): Add member "die".
1934 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
1935 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
1936 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
1937 (dwarf2_locate_sections): Likewise.
1938 (dwarf2_build_psymtabs): Read .debug_ranges.
1939 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
1940 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
1941 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
1942 Look for DW_AT_ranges and return the bounding box.
1946 * win32-nat.c (cygwin_pid): Removed as unused.
1947 (child_attach): Try fall back to Cygwin pid.
1951 * objfiles.h (struct objfile): Doc fix.
1955 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
1956 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
1957 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
1958 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
1959 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
1960 (FRAME_SAVED_PC): Change to a function with predicate.
1961 * gdbarch.h, gdbarch.c: Re-generate.
1965 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
1967 * complaints.c (complain): Delete function.
1968 * complaints.h (struct deprecated_complaint): Delete definition.
1969 (complain): Delete declaration.
1973 * mips-tdep.c (mips_init_extra_frame_info): Return early for
1978 * sentinel-frame.h, sentinel-frame.c: New files.
1979 * Makefile.in (frame.o): Update dependencies.
1980 (SFILES): Add sentinel-frame.c.
1981 (sentinel_frame_h): Define.
1982 (COMMON_OBS): Add sentinel-frame.o.
1983 (sentinel-frame.o): Specify dependencies.
1984 * frame.c: Include "sentinel-frame.h".
1985 (frame_register_unwind): Rewrite assuming that there is always a a
1987 (frame_register, generic_unwind_get_saved_register): Ditto.
1988 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
1989 (create_sentinel_frame, unwind_to_current_frame): New functions.
1990 (get_current_frame): Rewrite using create_sentinel_frame and
1991 unwind_to_current_frame. When possible, always create a frame.
1992 (create_new_frame): Set next to the sentinel frame.
1993 (get_next_frame): Rewrite. Don't go below the level 0 frame.
1994 (deprecated_update_frame_pc_hack): Update the next frame's PC and
1995 ID cache when necessary.
1996 (frame_saved_regs_id_unwind): Use frame_relative_level.
1997 (deprecated_generic_get_saved_register): Use frame_relative_level,
1998 get_frame_saved_regs, get_frame_pc, get_frame_base and
2000 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
2005 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
2009 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
2010 (maintenance_set_profile_cmd): Use error () instead of warning ().
2014 * configure.in: Check that -pg works if using --enable-profiling.
2015 Check for monstartup and _mcleanup regardless of --enable-profiling.
2016 * maint.c: Check for monstartup and _mcleanup before using them.
2017 * config.in: Regenerated.
2018 * configure: Regenerated.
2026 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
2027 (sh2e_show_regs): New.
2028 (sh_gdbarch_init): Handle bfd_mach_sh2e.
2029 * config/sh/tm-sh.h: Added sh2e to comments.
2033 * symfile.c (syms_from_objfile): Don't print the "(no debugging
2034 symbols found)" message here; we haven't checked for a separate
2035 debug info file yet, so we don't know yet.
2036 (symbol_file_add_with_addrs_or_offsets): Print it here, after
2037 we've looked everywhere. Also, there's no need to print a special
2038 message when we're loading the separate debug info file: the one
2039 symbol_file_add prints is fine.
2044 Add support for executables whose debug info has been separated
2045 out into a separate file, leaving only a link behind.
2046 * objfiles.h (struct objfile): New fields: separate_debug_objfile
2047 and separate_debug_objfile_backlink.
2048 (put_objfile_before): New declaration.
2049 * symfile.c: #include "filenames.h".
2050 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
2051 debug info in a separate file, read that, too. Save the addrs
2052 argument, so we can use it again to read the separated debug info;
2053 syms_from_objfile modifies the table we pass it.
2054 (reread_symbols): After re-reading an objfile, call
2055 reread_separate_symbols to refresh its separate debug info
2056 objfile, if it has one.
2057 (reread_separate_symbols, find_separate_debug_file,
2058 get_debug_link_info, separate_debug_file_exists): New functions.
2059 (debug_file_directory): New global var.
2060 (_initialize_symfile): Initialize debug_file_directory, and
2061 provide the new `set debug-file-directory' command to let the user
2063 * objfiles.c (free_objfile): If this objfile has its debug info in
2064 a separate objfile, free that one too. If this is itself a
2065 separate debug info objfile, clear our parent's backlink.
2066 (put_objfile_before): New function.
2067 * utils.c (gnu_debuglink_crc32): New function.
2068 * defs.h (gnu_debuglink_crc32): New declaration.
2069 * Makefile.in (symfile.o): Note dependency on "filenames.h".
2070 * configure.in: Handle --with-separate-debug-dir config option.
2071 * acinclude.m4 (AC_DEFINE_DIR): New macro.
2072 * acconfig.h (DEBUGDIR): New macro.
2073 * configure, aclocal.m4, config.in: Regenerated.
2077 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
2078 like the old symbol_file_add, but taking new arguments: you can
2079 now pass in either a `struct section_addr_info' list to say where
2080 each section is loaded, or a `struct section_offsets' table. Pass
2081 these new arguments through to syms_from_objfile as appropriate.
2082 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
2083 with the appropriate quiescent values for the new arguments.
2085 * symfile.c: #include "gdb_assert.h".
2086 (syms_from_objfile): Add the ability to pass in a section offset
2087 table directly, as an alternative to the section_addr_info table.
2088 Document arguments better.
2089 (symbol_file_add): Pass extra arguments to syms_from_objfile.
2090 * symfile.h (syms_from_objfile): Update declaration.
2091 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
2093 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
2099 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
2100 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
2101 * NEWS: Mention profiling.
2102 * configure.in (--enable-gdbtk): Fix typo.
2103 (--enable-profiling): New. Set PROFILE_CFLAGS.
2104 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
2106 (profiling_state): New variable.
2107 (mcleanup_wrapper): New function.
2108 (_initialize_maint): Remove NOTYET, fix call to
2109 add_setshow_boolean_cmd for "maint set profile".
2110 * configure: Regenerated.
2114 * Makefile.in (install-gdbtk): Install PNG images too.
2118 * exec.c (text_start): Delete global variable.
2119 (exec_file_attach): Make text_start local to the function.
2120 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
2121 * valops.c (hand_function_call): Delete code that handles
2122 BEFORE_TEXT_END and AFTER_TEXT_END.
2123 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
2124 of CALL_DUMMY_LOCATION.
2125 * gdbarch.c: Regenerate.
2126 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
2127 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
2128 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2129 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
2130 (text_end): Delete extern declaration.
2134 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
2135 * blockframe.c (backtrace_below_main): Move to "frame.c".
2136 (frame_chain_valid): Delete check for backtrace_below_main.
2137 (_initialize_blockframe): Delete initialization, move ``set
2138 backtrace-below-main'' command to "frame.c".
2139 (do_flush_frames_sfunc): Delete function.
2140 * frame.c: Include "command.h" and "gdbcmd.h".
2141 (frame_type_from_pc): New function.
2142 (create_new_frame): Use frame_type_from_pc.
2143 (legacy_get_prev_frame): New function.
2144 (get_prev_frame): Rewrite. When an old style frame, call
2145 legacy_get_prev_frame. Otherwize, unwind the PC first.
2146 (_initialize_frame): Add ``set backtrace-below-main'' command.
2147 * Makefile.in (frame.o): Update dependencies.
2151 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
2152 DEPRECATED_REGISTERS_INFO.
2156 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
2157 Maintainers'. Update `Various Maintainers'.
2161 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
2162 * gdbarch.sh (POP_FRAME): Change to function with predicate.
2163 Suppress actual parameters when `-'.
2164 * gdbarch.h, gdbarch.c: Regenerate.
2168 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
2169 code handling dummy frames.
2173 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
2174 (struct frame_unwind): Add field pop.
2175 * frame.h (frame_pop): Declare.
2176 * frame.c (frame_saved_regs_pop): New function.
2177 (trad_frame_unwinder): Add frame_saved_regs_pop.
2178 (frame_pop): New function.
2179 * dummy-frame.c (dummy_frame_pop): New function.
2180 (discard_innermost_dummy): New function.
2181 (generic_pop_dummy_frame): Use discard_innermost_dummy.
2182 (dummy_frame_unwind): Add dummy_frame_pop.
2183 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
2184 * valops.c (hand_function_call): Ditto.
2185 * stack.c (return_command): Ditto.
2189 * cris-tdep.c: Fix function declaration indentation.
2190 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
2191 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
2192 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
2193 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
2194 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
2195 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
2199 * README (Unpacking and Installation -- quick overview):
2200 Warn against ".../gdb-5.3/gdb/configure".
2204 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
2205 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2206 (struct frame_unwind): Declare opaque.
2207 (dummy_frame_p): Declare function.
2208 * dummy-frame.c (dummy_frame_id_unwind): Make static.
2209 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2210 * dummy-frame.c: Include "frame-unwind.h".
2211 (dummy_frame_p): New function.
2212 (dummy_frame_unwind): New variable.
2213 * frame.c: Include "frame-unwind.h".
2214 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
2215 to use the new unwind field.
2216 (set_unwind_by_pc): Delete function.
2217 (create_new_frame, get_prev_frame): Set unwind field using
2218 frame_unwind_find_by_pc.
2219 (trad_frame_unwind, trad_frame_unwinder): New variables.
2220 * frame.h (trad_frame_unwind): Declare variable.
2221 (frame_id_unwind_ftype): Delete declaration.
2222 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
2223 (struct frame_unwind): Declare opaque.
2224 (struct frame_info): Replace the fields id_unwind, pc_unwind and
2225 register_unwind with a single unwind pointer.
2226 * frame-unwind.h, frame-unwind.c: New files.
2227 * Makefile.in (SFILES): Add frame-unwind.c.
2228 (frame_unwind_h): Define.
2229 (COMMON_OBS): Add frame-unwind.o.
2230 (frame-unwind.o): Specify dependencies.
2231 (frame.o, dummy-frame.o): Update dependencies.
2235 * ada-valprint.c: Eliminate PTR.
2236 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
2237 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
2238 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
2239 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
2240 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
2241 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
2242 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
2246 * main.c (captured_main): Don't use PTR.
2247 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
2248 * gdbtypes.c (lookup_primitive_typename): Ditto.
2249 (lookup_struct_elt_type): Ditto.
2250 * f-valprint.c (info_common_command): Ditto.
2251 (list_all_visible_commons): Ditto.
2252 * jv-typeprint.c (java_type_print_base): Ditto.
2254 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
2255 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
2256 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
2257 i386-interix-nat.c and i386-interix-tdep.c. Rename
2258 m68klinux-nat.c and m68klinux-tdep.c. Rename
2259 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
2260 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
2261 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
2262 * main.c (captured_main): Use xfree, not free.
2266 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
2267 ID back using a parameter.
2268 * frame.c (frame_id_unwind): Update call.
2269 (frame_saved_regs_id_unwind): Update.
2270 * dummy-frame.c (dummy_frame_id_unwind): Update function.
2271 * dummy-frame.h (struct frame_id): Add opaque declaration.
2272 (dummy_frame_id_unwind): Update declaration.
2276 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
2280 * MAINTAINERS (Stephen P. Smith): Updated email address.
2285 * breakpoint.c (until_break_command): Add new argument. Use it to
2286 decide whether to stop only at the current frame or not.
2287 * breakpoint.h (until_break_command): Update prototype.
2288 * infcmd.c (until_command): Add new argument to until_break_command
2290 (advance_command): New function.
2291 (_initialize_infcmd): Update help string for 'until' command.
2292 Add new 'advance' command.
2296 * linespec.c (decode_line_1): Normalize comments.
2298 (locate_first_half): Ditto.
2299 (decode_compound): Ditto.
2300 (symtab_from_filename): Ditto.
2301 (decode_all_digits): Ditto.
2302 (decode_dollar): Ditto.
2303 (find_methods): Ditto.
2304 (find_toplevel_char): Ditto.
2308 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
2309 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
2310 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
2311 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
2312 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
2313 * language.c, language.h, m32r-tdep.c: Update copyright.
2314 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
2315 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
2316 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
2317 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
2318 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
2319 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
2323 * stabsread.h (process_later, resolve_cfront_continuation):
2325 Update copyright years.
2326 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
2327 Update copyright year.
2328 * dbxread.c(struct cont_elem): Obsolete.
2329 (process_later, process_now): Obsolete functions.
2330 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
2331 Update copyright year.
2332 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
2333 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
2334 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
2335 (parse_partial_symbols): Obsolete cfront support.
2337 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
2339 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
2340 read_cfront_baseclasses, read_cfront_member_functions,
2341 resolve_cfront_continuation,read_cfront_static_fields,
2342 copy_cfront_struct_fields): Obsolete functions.
2343 (define_symbol, read_one_struct_field): Obsolete cfront support.
2344 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
2345 Update Copyright year.
2349 * stack.c (print_frame_info, print_stack_frame_base_stub,
2350 print_stack_frame_base, show_and_print_stack_frame_stub,
2351 show_and_print_stack_frame, print_only_stack_frame_stub,
2352 print_only_stack_frame): Delete functions.
2353 (print_stack_frame_stub): Call print_frame_info instead of
2354 print_frame_info_base.
2355 (print_frame_info_base): Rename to print_frame_info.
2356 (backtrace_command_1): Call print_frame_info, instead of
2357 print_frame_info_base.
2358 (current_frame_command): Call print_stack_frame, instead of
2359 print_only_stack_frame.
2360 (frame_command): Call print_stack_frame, instead of
2361 show_and_print_stack_frame.
2362 (up_command): Ditto.
2363 (down_command): Ditto.
2364 * frame.h (print_only_stack_frame): Delete prototype.
2365 * infrun.c (normal_stop): Call print_stack_frame, instead of
2366 show_and_print_stack_frame.
2367 * thread.c (info_threads_command): Call print_stack_frame, instead
2368 of print_only_stack_frame.
2372 * README (Graphical interface to GDB): Update URL. Point at
2375 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
2380 * symtab.c (find_pc_sect_line): Don't consider end-of-function
2385 * thread-db.c (attach_thread): Prototype.
2386 (struct private_thread_info): Remove lwpid. Add thread handle (th),
2387 thread information (ti), and valid flags (th_valid, ti_valid).
2388 (attach_thread): Move target_pid_to_str call to after the thread
2389 is added to GDB's list. Initialize the cache.
2390 (thread_get_info_callback, thread_db_map_id2thr)
2391 (thread_db_get_info): New functions.
2392 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
2393 (thread_db_store_registers, thread_db_thread_alive)
2394 (thread_db_get_thread_local_address): Use them.
2395 (thread_db_pid_to_str): Likewise. Return "Missing" instead
2396 of calling error() for threads in unknown state.
2398 (clear_lwpid_callback): New function.
2399 (thread_db_resume): Use it to clear the cache.
2403 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
2404 (resume_callback): Remove dead code.
2408 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
2410 * gdbarch.h, gdbarch.c: Regenerate.
2411 * stack.c (frame_info): Only initialize the saved registers when
2412 FRAME_INIT_SAVED_REGS_P.
2413 * frame.c (frame_saved_regs_register_unwind): Assert
2414 FRAME_INIT_SAVED_REGS_P.
2415 (deprecated_generic_get_saved_register): Ditto.
2419 * source.c (openp): Squelch warning about "filename".
2423 * source.c (openp): If the file does not exist don't necessarily
2429 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
2430 (integer_types_same_name_p): New function.
2431 (rank_one_type): Use it.
2432 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
2436 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
2438 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
2439 * configure.in: Add --with-sysroot.
2440 * configure: Regenerated.
2441 * main.c (gdb_sysroot): New variable.
2442 (captured_main): Initialize gdb_sysroot.
2443 * defs.h (gdb_sysroot): New extern declaration.
2444 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
2448 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
2452 * top.c (print_gdb_version): Bump copyright year to 2003.
2456 * linespec.c (symtab_from_filename): Rename variable 's' to
2461 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
2463 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
2467 * d10v-tdep.c: Include "gdb_assert.h".
2468 (d10v_store_return_value): Rewrite to match current interface.
2469 (d10v_extract_struct_value_address): Ditto.
2470 (d10v_extract_return_value): Ditto.
2471 (d10v_gdbarch_init): Set store_restore_value,
2472 extract_struct_value_address and extract_return_value.
2476 * hpread.c (set_namestring): New procedure replacing the
2477 SET_NAMESTRING macro.
2478 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
2479 by calls to set_namestring.
2483 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
2484 a compilation warning.
2485 (hpread_process_one_debug_symbol): Likewise.
2489 * linespec.c (decode_line_1): Rename variable 's' to
2491 (decode_all_digits): Rename argument 's' to 'file_symtab'.
2492 (decode_dollar): Ditto.
2493 (decode_variable): Ditto.
2494 (symbol_found): Ditto.
2498 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
2502 * win32-nat.c (set_process_privilege): New function.
2503 (child_attach): Call set_process_privilege() to enable the
2504 SE_DEBUG_NAME user privilege if available in process token.
2508 * hpread.c (hpread_process_one_debug_symbol): Fix a small
2509 compilation error in the previous revision.
2513 * linespec.c: Update copyright.
2517 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
2519 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
2523 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
2525 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
2526 (frame_saved_regs_zalloc): Update.
2527 (frame_saved_regs_register_unwind): Update.
2528 (create_new_frame): Update.
2529 (get_prev_frame): Update.
2530 (frame_extra_info_zalloc): Update.
2531 (deprecated_get_frame_saved_regs): Update.
2532 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
2533 * cris-tdep.c: Update comment.
2535 * somsolib.h: Fix function indentation.
2536 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
2537 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
2538 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
2539 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
2540 * somsolib.c, inftarg.c: Remove assignment in if conditional.
2542 * infrun.c (follow_fork): Use ISO C definition.
2543 * expprint.c (print_subexp): Use xfree instead of free.
2544 * charset.c: Include "gdb_string.h" instead of <string.h>.
2545 (register_iconv_charsets): Use ISO C definition.
2546 (host_charset, target_charset): Ditto.
2547 * Makefile.in (charset.o): Update dependencies.
2548 (mi-cmd-env.o): Update dependencies.
2552 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
2557 * gdb_mbuild.sh: Add --keep option. When specified, keep the
2558 build directories. Save edited gdb output in Mbuild.log. If a
2559 build fails, remove any final GDB executable.
2563 * gdb_mbuild.sh: Edit the output of `maint print architecture'
2564 replacing hex constants with function names and stripping leading
2565 file name directory prefixes.
2569 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
2574 * linespec.c (decode_line_1): Move code into decode_variable.
2575 (decode_variable): New function.
2579 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
2583 * cris-tdep.c (cris_frame_init_saved_regs): Use
2584 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
2586 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
2587 (sh64_nofp_frame_init_saved_regs): Ditto.
2588 (sh_fp_frame_init_saved_regs): Ditto.
2589 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
2590 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2591 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2592 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2596 * minsyms.c (lookup_minimal_symbol): Update comment.
2597 (lookup_minimal_symbol_text): Update comment. Use the hash table.
2598 (lookup_minimal_symbol_solib_trampoline): Likewise.
2602 * d10v-tdep.c (d10v_init_extra_frame_info): Use
2603 frame_relative_level.
2605 * alpha-tdep.c: Use get_frame_extra_info.
2606 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2607 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
2608 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2609 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
2611 * alpha-tdep.c: Use get_next_frame.
2612 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2613 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
2614 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
2615 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
2616 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
2617 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
2618 * xstormy16-tdep.c: Ditto.
2622 * alpha-tdep.c: Use get_frame_base.
2623 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2624 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
2625 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
2626 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2627 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
2628 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
2629 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
2630 * config/sparc/tm-sparc.h: Ditto.
2634 * frame.c (deprecated_get_frame_context): New function.
2635 (deprecated_set_frame_context): New function.
2636 * frame.h (deprecated_get_frame_context): Declare.
2637 (deprecated_set_frame_context): Declare.
2638 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
2639 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
2643 * frame.c (deprecated_set_frame_next_hack): New function.
2644 (deprecated_set_frame_prev_hack): New function.
2645 * frame.h (deprecated_set_frame_next_hack): Declare.
2646 (deprecated_set_frame_prev_hack): Declare.
2647 * mcore-tdep.c (analyze_dummy_frame): Use
2648 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
2649 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2653 * linespec.c (decode_line_1): Move code into decode_dollar.
2654 (decode_dollar): New function.
2658 * arm-tdep.c (arm_init_extra_frame_info): Use
2659 deprecated_update_frame_base_hack.
2660 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
2661 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2662 (fix_frame_pointer): Ditto.
2663 (mn10300_analyze_prologue): Ditto.
2667 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
2668 extra_info using frame_extra_info_zalloc.
2669 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
2670 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
2671 (sh64_init_extra_frame_info): Ditto.
2672 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
2673 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
2674 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2675 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
2676 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
2677 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
2678 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
2679 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
2680 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
2681 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
2682 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
2683 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
2685 * mn10300-tdep.c (analyze_dummy_frame): Use
2686 deprecated_set_frame_extra_info_hack.
2687 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2691 * mdebugread.c (parse_symbol): Skip stProc entries which storage
2692 class is not scText. These do not define "real" procedures.
2693 (parse_partial_symbols): Likewise.
2697 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
2701 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
2702 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
2703 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
2704 deprecated_frame_xmalloc_with_cleanup.
2705 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
2706 deprecated_frame_xmalloc.
2707 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
2708 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
2712 * x86-64-linux-tdep.c: Include "osabi.h".
2713 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
2715 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
2719 * MAINTAINERS (Target Instruction Set Architectures): Update
2720 arm-elf. Can be built with -Werror, has been multiarched.
2722 * value.h (unpack_long): Make buffer parameter constant.
2723 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
2724 * scm-lang.h (scm_parse): Ditto.
2725 * defs.h (extract_typed_address, extract_address): Ditto.
2726 (extract_long_unsigned_integer): Ditto.
2727 * inferior.h (unsigned_pointer_to_address): Ditto.
2728 (signed_pointer_to_address): Ditto.
2729 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
2730 * gdbarch.h, gdbarch.c: Regenerate.
2731 * findvar.c (extract_long_unsigned_integer): Update.
2732 (extract_address): Update.
2733 (extract_typed_address): Update.
2734 (unsigned_pointer_to_address): Update.
2735 * values.c (unpack_long): Update.
2736 (unpack_double): Update.
2737 (unpack_pointer): Update.
2738 (unpack_field_as_long): Update.
2739 * d10v-tdep.c (d10v_pointer_to_address): Update.
2740 * avr-tdep.c (avr_pointer_to_address): Update.
2741 * scm-lang.c (scm_unpack): Update.
2742 * findvar.c (signed_pointer_to_address): Update.
2746 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
2747 since it is in i386-tdep.c.
2751 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
2752 failure introduced in the previous change.
2756 * README: Remove references to deleted remote-*.c files:
2757 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
2758 remote-nrom.c, remote-os9k.c, remote-udi.c.
2762 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
2763 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
2764 i386_get_longjmp_target.
2768 * arm-tdep.c (prologue_cache): Change to a pointer.
2769 (_initialize_arm_tdep): Allocate prologue_cache.
2770 (check_prologue_cache): Update.
2771 (save_prologue_cache): Update.
2772 (arm_gdbarch_init): Update.
2776 * stabsread.c (update_method_name_from_physname): Call complaint()
2781 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
2782 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
2783 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
2785 * blockframe.c: Include "gdbcmd.h" and "command.h".
2786 (backtrace_below_main): New variable.
2787 (file_frame_chain_valid, func_frame_chain_valid)
2788 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
2789 (generic_func_frame_chain_valid): Remove functions.
2790 (frame_chain_valid, do_flush_frames_sfunc): New functions.
2791 (_initialize_blockframe): New function.
2792 * Makefile.in (blockframe.o): Update dependencies.
2793 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
2794 comment. Call frame_chain_valid ().
2795 * frame.h: Remove old prototypes. Add prototype for
2796 frame_chain_valid and update comments to match.
2797 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
2799 * gdbarch.h: Regenerated.
2800 * gdbarch.c: Regenerated.
2802 * alpha-tdep.c (alpha_gdbarch_init): Don't call
2803 set_gdbarch_frame_chain_valid.
2804 * avr-tdep.c (avr_gdbarch_init): Likewise.
2805 * cris-tdep.c (cris_gdbarch_init): Likewise.
2806 * frv-tdep.c (frv_gdbarch_init): Likewise.
2807 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2808 * i386-tdep.c (i386_svr4_init_abi): Likewise.
2809 (i386_nw_init_abi): Likewise.
2810 (i386_gdbarch_init): Likewise.
2811 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2812 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2813 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2814 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2815 * mips-tdep.c (mips_gdbarch_init): Likewise.
2816 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2817 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
2818 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
2819 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2820 * s390-tdep.c (s390_gdbarch_init): Likewise.
2821 * sh-tdep.c (sh_gdbarch_init): Likewise.
2822 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2823 * v850-tdep.c (v850_gdbarch_init): Likewise.
2824 * vax-tdep.c (vax_gdbarch_init): Likewise.
2825 * x86-64-tdep.c (x86_64_init_abi): Likewise.
2827 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
2828 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
2829 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
2830 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
2831 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
2832 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
2833 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
2834 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
2838 * Makefile.in (acconfig_h): Remove incorrect macro.
2840 (osabi.o): Update dependencies.
2841 * configure.tgt: Set gdb_osabi based on target triplet.
2842 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
2843 * configure: Regenerated.
2844 * config.in: Regenerated.
2845 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
2846 (GDB_OSABI_DEFAULT): Define if not already defined.
2847 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
2848 (set_osabi_string): New variables.
2849 (gdbarch_register_osabi): Add new OS ABI to
2850 gdb_osabi_available_names.
2851 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
2852 (set_osabi, show_osabi): New functions.
2853 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
2857 * arch-utils.c (gdbarch_info_init): Set osabi to
2858 GDB_OSABI_UNINITIALIZED.
2859 * gdbarch.sh: Add osabi to struct gdbarch and to struct
2860 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
2861 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
2862 * gdbarch.c: Regenerated.
2863 * gdbarch.h: Regenerated.
2864 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
2866 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
2867 * osabi.h (enum gdb_osabi): Move to defs.h.
2868 (gdbarch_init_osabi): Update prototype.
2869 * defs.h (enum gdb_osabi): Moved here.
2870 * Makefile.in: Update dependencies.
2872 * alpha-tdep.h: Don't include "osabi.h".
2873 (struct gdbarch_tdep): Remove osabi member.
2874 * alpha-tdep.c: Include "osabi.h".
2875 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2876 iterate over arches. Update call to gdbarch_init_osabi.
2877 (alpha_dump_tdep): Don't dump osabi.
2878 * alpha-linux-tdep.c: Include "osabi.h".
2879 * alpha-osf1-tdep.c: Include "osabi.h".
2880 * alphafbsd-tdep.c: Include "osabi.h".
2881 * alphanbsd-tdep.c: Include "osabi.h".
2883 * arm-tdep.h: Don't include "osabi.h".
2884 (struct gdbarch_tdep): Remove osabi member.
2885 * arm-tdep.c: Include "osabi.h".
2886 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2887 iterate over arches. Update call to gdbarch_init_osabi.
2888 (arm_dump_tdep): Don't dump osabi.
2889 * arm-linux-tdep.c: Include "osabi.h".
2890 * armnbsd-tdep.c: Include "osabi.h".
2892 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
2893 Update call to gdbarch_init_osabi.
2895 * i386-tdep.h: Don't include "osabi.h".
2896 (struct gdbarch_tdep): Remove osabi member.
2897 * i386-tdep.c: Include "osabi.h".
2898 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2899 iterate over arches. Update call to gdbarch_init_osabi.
2900 (i386_dump_tdep): Don't dump osabi.
2901 * i386-linux-tdep.c: Include "osabi.h".
2902 * i386-sol2-tdep.c: Include "osabi.h".
2903 * i386bsd-tdep.c: Include "osabi.h".
2904 * i386gnu-tdep.c: Include "osabi.h".
2905 * i386ly-tdep.c: Include "osabi.h".
2906 * i386nbsd-tdep.c: Include "osabi.h".
2907 * i386obsd-tdep.c: Include "osabi.h".
2909 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
2910 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2911 check osabi when iterating over arches. Update call to
2913 (mips_dump_tdep): Don't dump osabi.
2915 * ns32k-tdep.h: Don't include "osabi.h".
2916 (struct gdbarch_tdep): Remove.
2917 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
2918 gdbarch_lookup_osabi. Don't iterate over arches. Don't
2919 allocate tdep. Update call to gdbarch_init_osabi.
2920 (ns32k_dump_tdep): Remove.
2921 (_initialize_ns32k_tdep): Update call to gdbarch_register.
2922 * ns32knbsd-tdep.c: Include "osabi.h".
2924 * ppc-tdep.h: Don't include "osabi.h".
2925 (struct gdbarch_tdep): Remove osabi member.
2926 * rs6000-tdep.c: Include "osabi.h".
2927 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
2928 osabi when iterating over arches. Update call to
2930 (rs6000_dump_tdep): Don't dump osabi.
2931 * ppc-linux-tdep.c: Include "osabi.h".
2932 * ppcnbsd-tdep.c: Include "osabi.h".
2934 * sh-tdep.h: Don't include "osabi.h".
2935 (struct gdbarch_tdep): Remove osabi member.
2936 * sh-tdep.c: Include "osabi.h".
2937 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2938 iterate over arches. Update call to gdbarch_init_osabi.
2939 (sh_dump_tdep): Don't dump osabi.
2940 * shnbsd-tdep.c: Include "osabi.h".
2942 * sparc-tdep.c: Include "osabi.h".
2943 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2944 iterate over arches. Update call to gdbarch_init_osabi.
2945 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
2948 * vax-tdep.h: Don't include "osabi.h".
2949 (struct gdbarch_tdep): Remove.
2950 * vax-tdep.c: Include "osabi.h".
2951 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2952 iterate over arches. Don't allocate tdep. Update call
2953 to gdbarch_init_osabi.
2954 (vax_dump_tdep): Remove.
2955 (_initialize_vax_tdep): Update call to gdbarch_register.
2959 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
2961 (breakpoint_re_set_one): Don't fetch the value for a disabled
2966 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
2967 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
2968 (COERCE_FLOAT_TO_DOUBLE): Remove.
2969 * gdbarch.c: Regenerate.
2970 * gdbarch.h: Regenerate.
2971 * Makefile.in: Remove value_h from gdbarch_h.
2972 * valops.c (coerce_float_to_double): New variable.
2973 (default_coerce_float_to_double): Remove.
2974 (standard_coerce_float_to_double): Remove.
2975 (value_arg_coerce): Use coerce_float_to_double.
2976 (_initialize_valops): Add "set coerce-float-to-double".
2977 * value.h (default_coerce_float_to_double): Remove prototype.
2978 (standard_coerce_float_to_double): Remove prototype.
2980 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
2982 * mdebugread.c (parse_symbol): Likewise.
2983 * stabsread.c (define_symbol): Mark all functions as prototyped.
2985 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
2986 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
2987 set_gdbarch_coerce_float_to_double.
2988 * arm-tdep.c (arm_gdbarch_init): Likewise.
2989 * frv-tdep.c (frv_gdbarch_init): Likewise.
2990 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
2991 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2992 * mips-tdep.c (mips_gdbarch_init): Likewise.
2993 (mips_coerce_float_to_double): Remove.
2994 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2995 (rs6000_coerce_float_to_double): Remove.
2996 * s390-tdep.c (s390_gdbarch_init): Likewise.
2997 * sh-tdep.c (sh_gdbarch_init): Likewise.
2998 (sh_coerce_float_to_double): Remove.
2999 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3000 (sparc_coerce_float_to_double): Remove.
3001 * v850-tdep.c (v850_gdbarch_init): Likewise.
3002 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3003 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3004 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
3005 (hppa_coerce_float_to_double): Remove prototype.
3006 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3010 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
3015 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
3016 in recursive calls. Handle TYPE_CODE_TYPEDEF.
3017 (c_type_print_varspec_suffix): Likewise.
3021 * configure.in: Don't set and AC_SUBST SUBDIRS.
3022 * configure: Regenerated.
3024 * configure.in: Remove code dealing with shared libraries.
3025 * Makefile.in: Remove HLDFLAGS and HLDENV.
3026 * configure: Regenerated.
3030 * frame.c (deprecated_frame_xmalloc): New function.
3031 (deprecated_set_frame_saved_regs_hack): New function.
3032 (deprecated_set_frame_extra_info_hack): New function.
3033 * frame.h (deprecated_frame_xmalloc): Declare.
3034 (deprecated_set_frame_saved_regs_hack): Declare.
3035 (deprecated_set_frame_extra_info_hack): Declare.
3039 * configure.in: Move code that provides the --enable-gdbtk option
3040 right after the code that handles the --enable-tui option, and
3042 * configure: Regenerated.
3044 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
3045 AC_CHECK_FUNCS and remove the old check for pread64.
3046 * acinclude.m4 (AC_GNU_SOURCE): New macro.
3047 * acconfig.h (_GNU_SOURCE): Add.
3048 (HAVE_PREAD64): Remove.
3049 * configure, aclocal.m4, config.in: Regenerated.
3053 * alpha-tdep.c: Use get_frame_saved_regs.
3054 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3055 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3056 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
3057 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
3058 * vax-tdep.c, xstormy16-tdep.c: Ditto.
3062 * configure.in: Remove all use of the SUBDIRS variable; add
3063 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
3064 code providing the --enable-multi-ice option, and move it right in
3065 front of the code that checks whether gdbserver is supported.
3067 * configure: Regenerated.
3068 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
3073 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
3074 * avr-tdep.c, cris-tdep.c: Ditto.
3075 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3076 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3080 * configure.in: Remove --enable-netrom option.
3081 * configure: Regenerated.
3085 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
3086 declaration for `struct re_pattern_buffer' instead.
3087 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
3091 * mdebugread.c (parse_symbol): Count until the stEnd matching
3096 * configure.in: Remove --with-cpu option.
3097 subscripts. Remove evil changequotes here.
3098 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
3099 * config.in, configure: Regenerated.
3101 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
3102 * configure.in: Cleanup section that sources GDB and BFD configure
3103 subscripts. Remove evil changequotes here.
3104 * config.in, configure: Regenerated.
3108 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
3109 frame accessor methods.
3110 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3111 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3112 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
3113 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
3114 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3115 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3116 * z8k-tdep.c: Ditto.
3120 * configure.in: Remove UI_OUT configuration code.
3121 * ada-lang.c: Update assuming UI_OUT is always true.
3122 * Makefile.in (UIOUT_CFLAGS): Remove.
3123 * configure: Regenerated.
3124 * TODO: Remove blurb about elimination of -DUI_OUT.
3126 * configure.in: Move code that provides the --enable-gdbcli,
3127 --enable-gdbmi options right before the code that handles the
3128 --enable-tui option. Polish a bit.
3129 * configure: Regenerated.
3131 * configure.in: Rewrite check for GNU regex and the
3132 --without-included regex option, and move it into the "Checks for
3133 library functions" section. This makes us use the system regex
3134 again by default on systems with version 2 of the GNU C library.
3135 This was apparently broken.
3136 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
3137 * acconfig.h (USE_INCLUDED_REGEX): Remove.
3138 * config.in, configure: Regenerated.
3140 * configure.in: Move code that provides the --enable-tui option
3141 before the "Checks for libraries" section. Polish the code
3142 somewhat and set need_curses to yes if we build the TUI. Rewrite
3143 code that looks for a library providing termcap functionality to
3144 match more closely what's done in the Readline library, and move
3145 it into to the "Checks for libraries" section.
3146 * configure: Regenerated.
3147 * Makefile.in (TERMCAP): Remove variable.
3148 * config/i386/go32.mh (TERMCAP): Remove variable.
3152 * MAINTAINERS: Mention gdb_mbuild.sh.
3153 * gdb_mbuild.sh: Rewrite.
3157 * configure.in: Fix typo in last change.
3158 * config.in, configure: Regenerated.
3162 * valarith.c (value_binop): Delete obsolete code and comments.
3163 * configure.host: Ditto.
3164 * buildsym.h (make_blockvector): Ditto.
3165 * buildsym.c (make_blockvector): Ditto.
3166 * defs.h (enum language): Ditto.
3167 (chill_demangle): Ditto.
3168 * elfread.c (elf_symtab_read): Ditto.
3169 * dwarfread.c (CHILL_PRODUCER): Ditto.
3170 (set_cu_language): Ditto.
3171 (handle_producer): Ditto.
3172 * expprint.c (print_subexp): Ditto.
3173 * gdbtypes.c (chill_varying_type): Ditto.
3174 * gdbtypes.h (builtin_type_chill_bool): Ditto.
3175 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
3176 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
3177 (chill_varying_type): Ditto.
3178 * language.h (_LANG_chill): Ditto.
3179 * language.c (binop_result_type, integral_type): Ditto.
3180 (character_type, string_type, structured_type): Ditto.
3181 (lang_bool_type, binop_type_check): Ditto.
3182 * stabsread.h (os9k_stabs): Ditto.
3183 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
3184 (define_symbol, read_type, read_struct_fields): Ditto.
3185 (read_array_type, read_enum_type, read_huge_number): Ditto.
3186 (read_range_type, start_stabs): Ditto.
3187 * symfile.c (init_filename_language_table): Ditto.
3188 (add_psymbol_with_dem_name_to_list): Ditto.
3189 * symtab.c (symbol_init_language_specific): Ditto.
3190 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
3191 * symtab.h (struct general_symbol_info): Ditto.
3192 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3193 * typeprint.c (typedef_print): Ditto.
3194 * utils.c (fprintf_symbol_filtered): Ditto.
3195 * valops.c (value_cast, search_struct_field, value_slice): Delete
3197 (varying_to_slice): Delete function.
3198 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
3199 (varying_to_slice): Delete declaration.
3200 * MAINTAINERS: Update.
3204 * configure.in: Reorganize "Checks for library functions section"
3205 a bit. Remove check for `btowc' and `isascii' functions.
3206 * configure: Regenerated.
3208 * acconfig.h (_MSE_INT_H): Remove.
3209 * configure.in: Create "Checks for header files" section, and move
3210 appropriate tests there. Don't check for objlist.h, wchar.h,
3211 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
3212 misdetection fix. Also add "Checks for types", "Checks for
3213 compiler characteristics" and "Checks for library functions"
3215 * config.in, configure: Regenerated.
3217 * configure.in: Create "Checks for programs" section, and move
3218 appropriate tests there.
3222 * configure.in: Create "Checks for libraries" section, and move
3223 appropriate tests there. Cleanup check for wctype in libw. Use
3224 AC_SEARCH_LIBS to see whether we need libsocket.
3225 * configure: Regenerated.
3227 For older changes see ChangeLog-2002
3233 version-control: never