1 2003-03-13 Andrew Cagney <cagney@redhat.com>
3 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
4 * gdbarch.h, gdbarch.c: Regenerate.
5 * valops.c (hand_function_call): Update comment.
6 * stack.c (return_command): Update comment.
7 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10 * x86-64-tdep.c (x86_64_init_abi): Update.
11 * vax-tdep.c (vax_gdbarch_init): Update.
12 * v850-tdep.c (v850_gdbarch_init): Update.
13 * sparc-tdep.c (sparc_gdbarch_init): Update.
14 * sh-tdep.c (sh_gdbarch_init): Update.
15 * s390-tdep.c (s390_gdbarch_init): Update.
16 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
17 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
18 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
19 * mips-tdep.c (mips_gdbarch_init): Update.
20 * mcore-tdep.c (mcore_gdbarch_init): Update.
21 * m68k-tdep.c (m68k_gdbarch_init): Update.
22 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
23 * ia64-tdep.c (ia64_gdbarch_init): Update.
24 * i386-tdep.c (i386_gdbarch_init): Update.
25 * hppa-tdep.c (hppa_gdbarch_init): Update.
26 * h8300-tdep.c (h8300_gdbarch_init): Update.
27 * frv-tdep.c (frv_gdbarch_init): Update.
28 * cris-tdep.c (cris_gdbarch_init): Update.
29 * avr-tdep.c (avr_gdbarch_init): Update.
30 * arm-tdep.c (arm_gdbarch_init): Update.
31 * alpha-tdep.c (alpha_gdbarch_init): Update.
33 2003-03-13 Andrew Cagney <cagney@redhat.com>
35 * frame.c (legacy_frame_p): New function.
36 (get_prev_frame): Use legacy_frame_p.
37 * frame.h (legacy_frame_p): Declare.
39 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
41 * MAINTAINERS (write after approval): Alphabetically
44 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
46 * MAINTAINERS (write after approval): Add myself.
48 2003-03-12 Andrew Cagney <cagney@redhat.com>
50 * frame.c (get_prev_frame): Rename the frame parameter to
52 (get_next_frame, legacy_get_prev_frame): Ditto.
54 2003-03-12 Andrew Cagney <cagney@redhat.com>
56 * frame.c (get_current_frame): Check target_has_registers before
57 checking target_has_stack.
58 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
59 instead of deprecated_selected_frame.
60 * findvar.c (value_of_register): Pass "frame", not
61 deprecated_selected_frame, to value_of_builtin_reg.
63 2003-03-12 Andrew Cagney <cagney@redhat.com>
65 * regcache.c (regcache_cooked_write_signed): New function.
66 (regcache_cooked_write_unsigned): New function.
67 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
68 (regcache_cooked_read_signed): Fix regnum in range assertion.
69 * regcache.h (regcache_cooked_write_signed): Declare.
70 (regcache_cooked_write_unsigned): Declare.
72 2003-03-12 Andrew Cagney <cagney@redhat.com>
74 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
75 * gdbarch.h, gdbarch.c: Re-generate.
76 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
77 * x86-64-tdep.h: Update.
78 * x86-64-tdep.c (x86_64_init_abi): Update.
79 * v850-tdep.c (v850_gdbarch_init): Update.
80 * sparc-tdep.c (sparc_gdbarch_init): Update.
81 * sh-tdep.c (sh_gdbarch_init): Update.
82 * s390-tdep.c (s390_gdbarch_init): Update.
83 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
84 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
85 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
86 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
87 * mips-tdep.c (mips_gdbarch_init): Update.
88 * mcore-tdep.c (mcore_gdbarch_init): Update.
89 * m68k-tdep.c (m68k_gdbarch_init): Update.
90 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
91 * ia64-tdep.c (ia64_gdbarch_init): Update.
92 * i386-tdep.c (i386_gdbarch_init): Update.
93 * i386-interix-tdep.c (i386_interix_init_abi): Update.
94 * hppa-tdep.c (hppa_gdbarch_init): Update.
95 * h8300-tdep.c (h8300_gdbarch_init): Update.
96 * frv-tdep.c (frv_gdbarch_init): Update.
97 * cris-tdep.c (cris_gdbarch_init): Update.
98 * avr-tdep.c (avr_gdbarch_init): Update.
99 * arm-tdep.c (arm_gdbarch_init): Update.
100 * alpha-tdep.c (alpha_gdbarch_init): Update.
101 * sh-tdep.c (sh_init_extra_frame_info): Update.
102 (sh64_init_extra_frame_info): Update.
103 * ns32knbsd-nat.c (frame_num_args): Update.
104 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
105 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
106 (xstormy16_frame_chain_valid): Update.
107 * vax-tdep.c (vax_saved_pc_after_call): Update.
108 * v850-tdep.c (v850_frame_chain): Update.
109 (v850_pop_frame): Update.
110 (v850_init_extra_frame_info): Update.
111 * sparc-tdep.c (setup_arbitrary_frame): Update.
112 * ns32k-tdep.c (umax_frame_num_args): Update.
113 * s390-tdep.c (s390_pop_frame_regular): Update.
114 * mn10300-tdep.c (mn10300_frame_chain): Update.
115 (mn10300_pop_frame_regular): Update.
116 (mn10300_init_extra_frame_info): Update.
117 * mips-tdep.c (mips_init_frame_pc_first): Update.
118 (mips_frame_chain): Update.
119 (mips_pop_frame): Update.
120 * mcore-tdep.c (mcore_frame_chain): Update.
121 (mcore_pop_frame): Update.
122 (mcore_init_extra_frame_info): Update.
123 * arch-utils.c (init_frame_pc_default): Update.
124 * m68k-tdep.c (isi_frame_num_args): Update.
125 (delta68_frame_num_args): Update.
126 (news_frame_num_args): Update.
127 * ia64-tdep.c (ia64_pop_frame_regular): Update.
128 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
129 (alpha_frame_chain): Update.
130 (alpha_pop_frame): Update.
131 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
132 (hppa_init_extra_frame_info): Update.
133 (hppa_frame_chain): Update.
134 (hppa_frame_chain_valid): Update.
135 * cris-tdep.c (cris_init_extra_frame_info): Update.
136 * avr-tdep.c (avr_init_extra_frame_info): Update.
137 * arm-tdep.c (arm_frame_chain_valid): Update.
138 (arm_init_extra_frame_info): Update.
139 (arm_pop_frame): Update.
140 * frame.c (frame_pc_unwind): Update.
141 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
142 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
143 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
144 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
145 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
146 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
148 2003-03-12 Andrew Cagney <cagney@redhat.com>
150 Eliminate the need for POP_FRAME.
151 * frame.c (do_frame_unwind_register): New function.
152 (frame_pop): When no POP_FRAME, pop the frame using register
153 unwind and a scratch regcache.
154 (frame_saved_regs_pop): Delete function.
155 (trad_frame_unwinder): Update.
156 * d10v-tdep.c (d10v_frame_pop): Delete function.
157 (d10v_frame_unwind): Update.
158 * sentinel-frame.c (sentinel_frame_pop): Delete function.
159 (sentinel_frame_unwinder): Update.
160 * dummy-frame.c (dummy_frame_pop): Delete function.
161 (dummy_frame_unwind): Update.
162 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
163 (struct frame_unwind): Update.
165 2003-03-11 Kevin Buettner <kevinb@redhat.com>
167 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
168 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
169 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
170 Do range checks on register number obtained from debugging info.
171 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
172 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
173 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
175 (do_fp_register_row): Fix typo which caused double type to be
176 used when attempting to unpack a float.
178 2003-03-11 J. Brobecker <brobecker@gnat.com>
180 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
182 2003-03-11 Andrew Cagney <cagney@redhat.com>
184 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
185 frame. Problem found by Corinna Vinschen.
187 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
189 * doublest.c (floatformat_from_length): Accept also
190 the real size of 'long double' type.
192 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
194 From Klee Dienes <kdienes@apple.com>:
195 * breakpoint.c (bpstat_copy): Copy the command lines as well
196 as the old value, to match what is freed in bpstat_clear.
198 2003-03-10 David Carlton <carlton@math.stanford.edu>
200 * minsyms.c (add_minsym_to_hash_table): Replace
201 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
202 (compare_minimal_symbols, compact_minimal_symbols)
203 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
204 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
205 of DEPRECATED_SYMBOL_MATCHES_NAME.
206 (lookup_minimal_symbol_solib_trampoline): Ditto.
208 2003-03-10 Andrew Cagney <cagney@redhat.com>
210 * regcache.h (regcache_cooked_read_ftype): Define.
211 (regcache_save, regcache_restore): Add a cooked_read parameter.
212 * regcache.c (regcache_save, regcache_restore): Update.
213 (do_cooked_read): New function.
214 (regcache_cpy): Pass do_cooked_read to regcache_save and
217 2003-03-10 Andrew Cagney <cagney@redhat.com>
219 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
220 * gdbarch.h, gdbarch.c: Re-generate.
221 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
222 * x86-64-tdep.h: Update.
223 * x86-64-tdep.c (x86_64_init_abi): Update.
224 * v850-tdep.c (v850_gdbarch_init): Update.
225 * sparc-tdep.c (sparc_gdbarch_init): Update.
226 * sh-tdep.c (sh_gdbarch_init): Update.
227 * s390-tdep.c (s390_gdbarch_init): Update.
228 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
229 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
230 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
231 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
232 * mips-tdep.c (mips_gdbarch_init): Update.
233 * mcore-tdep.c (mcore_gdbarch_init): Update.
234 * m68k-tdep.c (m68k_gdbarch_init): Update.
235 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
236 * ia64-tdep.c (ia64_gdbarch_init): Update.
237 * i386-tdep.c (i386_gdbarch_init): Update.
238 * i386-interix-tdep.c (i386_interix_init_abi): Update.
239 * hppa-tdep.c (hppa_gdbarch_init): Update.
240 * h8300-tdep.c (h8300_gdbarch_init): Update.
241 * frv-tdep.c (frv_gdbarch_init): Update.
242 * cris-tdep.c (cris_gdbarch_init): Update.
243 * avr-tdep.c (avr_gdbarch_init): Update.
244 * arm-tdep.c (arm_gdbarch_init): Update.
245 * alpha-tdep.c (alpha_gdbarch_init): Update.
246 * sh-tdep.c (sh_init_extra_frame_info): Update.
247 (sh64_init_extra_frame_info): Update.
248 * ns32knbsd-nat.c (frame_num_args): Update.
249 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
250 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
251 (xstormy16_frame_chain_valid): Update.
252 * vax-tdep.c (vax_saved_pc_after_call): Update.
253 * v850-tdep.c (v850_frame_chain): Update.
254 (v850_pop_frame): Update.
255 (v850_init_extra_frame_info): Update.
256 * sparc-tdep.c (setup_arbitrary_frame): Update.
257 * ns32k-tdep.c (umax_frame_num_args): Update.
258 * s390-tdep.c (s390_pop_frame_regular): Update.
259 * mn10300-tdep.c (mn10300_frame_chain): Update.
260 (mn10300_pop_frame_regular): Update.
261 (mn10300_init_extra_frame_info): Update.
262 * mips-tdep.c (mips_init_frame_pc_first): Update.
263 (mips_frame_chain): Update.
264 (mips_pop_frame): Update.
265 * mcore-tdep.c (mcore_frame_chain): Update.
266 (mcore_pop_frame): Update.
267 (mcore_init_extra_frame_info): Update.
268 * arch-utils.c (init_frame_pc_default): Update.
269 * m68k-tdep.c (isi_frame_num_args): Update.
270 (delta68_frame_num_args): Update.
271 (news_frame_num_args): Update.
272 * ia64-tdep.c (ia64_pop_frame_regular): Update.
273 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
274 (alpha_frame_chain): Update.
275 (alpha_pop_frame): Update.
276 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
277 (hppa_init_extra_frame_info): Update.
278 (hppa_frame_chain): Update.
279 (hppa_frame_chain_valid): Update.
280 * cris-tdep.c (cris_init_extra_frame_info): Update.
281 * avr-tdep.c (avr_init_extra_frame_info): Update.
282 * arm-tdep.c (arm_frame_chain_valid): Update.
283 (arm_init_extra_frame_info): Update.
284 (arm_pop_frame): Update.
285 * frame.c (frame_pc_unwind): Update.
286 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
287 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
288 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
289 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
290 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
291 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
293 2003-03-10 Andrew Cagney <cagney@redhat.com>
295 * gdbarch.sh (gdbarch_unwind_pc): New method.
296 * gdbarch.h, gdbarch.c: Regenerate.
297 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
298 but use read_pc and FRAME_SAVED_PC as fall backs.
299 (frame_saved_regs_pc_unwind): Delete function.
300 (trad_frame_unwinder): Update.
301 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
302 (struct frame_unwind): Update.
303 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
304 (dummy_frame_unwind): Update.
305 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
306 (sentinel_frame_unwinder): Update.
307 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
308 (d10v_frame_unwind): Update.
309 (d10v_unwind_pc): New function.
310 (d10v_gdbarch_init): Set unwind_pc.
312 2003-03-10 Andrew Cagney <cagney@redhat.com>
314 * gdbarch.h: Re-generate.
316 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
318 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
321 2003-03-08 Mark Kettenis <kettenis@gnu.org>
323 * gdbarch.sh (save_dummy_frame_tos): Add comment.
325 2003-03-08 Andrew Cagney <cagney@redhat.com>
327 * cli-out.c: Update copyright.
328 (cli_out_data): Define typedef. Use instead of ui_out_data.
330 2003-03-08 Andrew Cagney <cagney@redhat.com>
332 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
335 2003-03-07 Andrew Cagney <cagney@redhat.com>
337 * gdbarch.sh: Don't generate two macro definitions when an
338 undefined macro taking no arguments.
339 * gdbarch.h: Regenerate.
341 2002-03-07 Michal Ludvig <mludvig@suse.cz>
343 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
344 (x86_64_unwind_dummy_id): New functions.
345 (x86_64_init_abi): Register these two new functions.
347 2003-03-07 Michal Ludvig <mludvig@suse.cz>
349 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
350 (x86_64_skip_prologue): Move prologue detection to
352 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
354 2003-03-05 Andrew Cagney <cagney@redhat.com>
356 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
357 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
358 * frame.c (get_prev_frame): Restructure the frame ID unwind code
359 to use unwind_dummy_id when a dummy frame.
360 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
362 * gdbarch.h, gdbarch.c: Regneerate.
364 2003-03-05 Andrew Cagney <cagney@redhat.com>
366 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
367 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
368 Do not use d10v_read_sp or d10v_read_fp when obtaining register
371 2003-03-05 Andrew Cagney <cagney@redhat.com>
373 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
374 (struct d10v_unwind_cache): Delete field "frameless". Replace
375 "next_addr" with "sp_offset". Add "r11_offset".
376 (d10v_frame_unwind_cache): Update.
377 (prologue_find_regs): Update. When "mv r11, sp", save the
378 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
379 RN was saved in r11_offset.
381 2003-03-05 Andrew Cagney <cagney@redhat.com>
383 * frame.c (deprecated_update_frame_pc_hack): Also update the the
384 cached PC value in the next frame.
386 2003-03-05 Andrew Cagney <cagney@redhat.com>
388 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
389 "id_unwind_cache" with "id".
390 (frame_id_unwind): Delete declaration.
391 * frame.c (frame_id_unwind): Delete function.
392 (get_prev_frame): Call the frame id unwind method directly. Store
393 the returned next frame's ID value in NEXT_FRAME. Note that there
394 is a problem with the wrong unwind ID being called with the wrong
397 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
399 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
401 2003-03-05 James Ingham <jingham@apple.com>
402 Daniel Jacobowitz <drow@mvista.com>
404 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
405 (auto_cp_abi): New variable.
406 (current_cp_abi, num_cp_abis): Make static.
407 (CP_ABI_MAX): Define.
408 (cp_abis): Turn into an array.
409 (value_virtual_fn_field): Fix formatting.
410 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
412 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
413 (list_cp_abis, _initialize_cp_abi): New functions.
414 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
415 declarations for cp_abis, num_cp_abis, current_cp_abi, and
416 switch_to_cp_abi. Update prototype for register_cp_abi.
417 * Makefile.in (cp-abi.o): Update dependencies.
418 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
419 instead of switch_to_cp_abi.
420 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
422 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
424 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
426 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
428 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
429 * dwarf2loc.c: Include "regcache.h".
430 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
432 * Makefile.in (dwarf2loc.o): Update dependencies.
434 2003-03-04 Theodore A. Roth <troth@openavr.org>
436 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
437 number of io registers reported by remote target is not a multiple of
440 2003-03-04 David Carlton <carlton@math.stanford.edu>
442 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
443 (lookup_symbol_aux_psymtabs): Update call to
444 lookup_partial_symbol.
445 (lookup_transparent_type, find_main_psymtab)
446 (make_symbol_overload_list): Ditto.
448 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
450 * MAINTAINERS (Write after approval): Update my email address.
452 2003-03-03 Andrew Cagney <cagney@redhat.com>
454 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
455 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
456 predicate. Replace MAX_REGISTER_RAW_SIZE.
457 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
458 MAX_REGISTER_VIRTUAL_SIZE.
459 * regcache.c (legacy_max_register_raw_size): New function.
460 (legacy_max_register_virtual_size): New function.
461 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
462 (MAX_REGISTER_RAW_SIZE): Define.
463 (legacy_max_register_raw_size): Declare.
464 (legacy_max_register_virtual_size): Declare.
465 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
466 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
467 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
468 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
469 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
470 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
471 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
472 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
473 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
474 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
475 * vax-tdep.c (vax_gdbarch_init): Update.
476 * v850-tdep.c (v850_gdbarch_init): Update.
477 * sparc-tdep.c (sparc_gdbarch_init): Update.
478 * sh-tdep.c (sh_gdbarch_init): Update.
479 * s390-tdep.c (s390_gdbarch_init): Update.
480 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
481 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
482 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
483 * mips-tdep.c (mips_gdbarch_init): Update.
484 * mcore-tdep.c (mcore_gdbarch_init): Update.
485 * m68k-tdep.c (m68k_gdbarch_init): Update.
486 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
487 * ia64-tdep.c (ia64_gdbarch_init): Update.
488 * i386-tdep.c (i386_gdbarch_init): Update.
489 * hppa-tdep.c (hppa_gdbarch_init): Update.
490 * h8300-tdep.c (h8300_gdbarch_init): Update.
491 * frv-tdep.c (frv_gdbarch_init): Update.
492 * cris-tdep.c (cris_gdbarch_init): Update.
493 * avr-tdep.c (avr_gdbarch_init): Update.
494 * arm-tdep.c (arm_gdbarch_init): Update.
495 * alpha-tdep.c (alpha_gdbarch_init): Update.
496 * d10v-tdep.c (d10v_gdbarch_init): Do not set
497 max_register_raw_size or max_register_virtual_size.
499 2003-03-03 David Carlton <carlton@math.stanford.edu>
501 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
502 SYMBOL_MATCHES_NAME, add comment.
503 (SYMBOL_MATCHES_NATURAL_NAME): New.
504 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
505 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
506 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
507 * symtab.c (lookup_partial_symbol): Use
508 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
510 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
514 2003-03-03 David Carlton <carlton@math.stanford.edu>
516 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
517 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
518 by regexp matching against SYMBOL_NATURAL_NAME.
520 2003-03-03 David Carlton <carlton@math.stanford.edu>
522 * linespec.c (find_method): Extract code into collect_methods.
523 (collect_methods): New.
525 2003-03-02 Mark Kettenis <kettenis@gnu.org>
527 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
530 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
531 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
533 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
535 * arch-utils.c (generic_register_byte): Fix to use the loop index
536 and not regnum when summing the size of all registers up to regnum.
538 2003-03-01 Andrew Cagney <cagney@redhat.com>
540 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
541 FRAME_INIT_SAVED_REGS.
542 * gdbarch.h, gdbarch.c: Regenerate.
543 * stack.c (frame_info): Update.
544 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
545 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
546 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
547 * ns32k-tdep.c (ns32k_pop_frame): Update.
548 * mips-tdep.c (mips_pop_frame): Update.
549 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
550 * ia64-tdep.c (ia64_frame_chain): Update.
551 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
552 (ia64_frameless_function_invocation): Update.
553 (ia64_init_extra_frame_info): Update.
554 (ia64_pop_frame_regular): Update.
555 * frame.h (struct frame_info): Update comment.
556 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
557 * frame.c (frame_saved_regs_register_unwind): Update.
558 (frame_saved_regs_register_unwind): Update.
559 (deprecated_generic_get_saved_register): Update.
560 * cris-tdep.c: Update comment.
561 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
563 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
564 * x86-64-tdep.c (x86_64_init_abi): Update.
565 * vax-tdep.c (vax_gdbarch_init): Update.
566 * v850-tdep.c (v850_gdbarch_init): Update.
567 * sparc-tdep.c (sparc_gdbarch_init): Update.
568 * sh-tdep.c (sh_gdbarch_init): Update.
569 * s390-tdep.c (s390_gdbarch_init): Update.
570 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
571 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
572 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
573 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
574 * mips-tdep.c (mips_gdbarch_init): Update.
575 * mcore-tdep.c (mcore_gdbarch_init): Update.
576 * m68k-tdep.c (m68k_gdbarch_init): Update.
577 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
578 * ia64-tdep.c (ia64_gdbarch_init): Update.
579 * i386-tdep.c (i386_gdbarch_init): Update.
580 * frv-tdep.c (frv_gdbarch_init): Update.
581 * avr-tdep.c (avr_gdbarch_init): Update.
582 * arm-tdep.c (arm_gdbarch_init): Update.
583 * alpha-tdep.c (alpha_gdbarch_init): Update.
585 2003-03-01 Andrew Cagney <cagney@redhat.com>
587 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
588 option enum and switch. When no windows, set the interpreter to
591 2003-03-01 Andrew Cagney <cagney@redhat.com>
593 * main.c (captured_main): Replace magic option characters with an
596 2003-03-01 Andrew Cagney <cagney@redhat.com>
598 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
599 INIT_EXTRA_FRAME_INFO.
600 * gdbarch.h, gdbarch.c: Regenerate.
601 * arm-tdep.c: Update comments.
602 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
603 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
604 * frame.h, avr-tdep.c: Ditto.
605 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
606 (create_new_frame, legacy_get_prev_frame): Ditto.
607 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
608 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
609 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
610 deprecated_init_extra_frame_info instead of init_extra_frame_info.
611 * x86-64-tdep.c (x86_64_init_abi): Ditto.
612 * v850-tdep.c (v850_gdbarch_init): Ditto.
613 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
614 * sh-tdep.c (sh_gdbarch_init): Ditto.
615 * s390-tdep.c (s390_gdbarch_init): Ditto.
616 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
617 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
618 * mips-tdep.c (mips_gdbarch_init): Ditto.
619 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
620 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
621 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
622 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
623 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
624 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
625 * frv-tdep.c (frv_gdbarch_init): Ditto.
626 * cris-tdep.c (cris_gdbarch_init): Ditto.
627 * avr-tdep.c (avr_gdbarch_init): Ditto.
628 * arm-tdep.c (arm_gdbarch_init): Ditto.
629 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
630 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
632 2003-03-01 Andrew Cagney <cagney@redhat.com>
634 * gdbarch.sh (register_type): New function with predicate.
635 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
636 * gdbarch.h, gdbarch.c: Re-generate.
637 * arch-utils.c (generic_register_byte): Use generic_register_size.
638 (generic_register_size): When available, use
639 gdbarch_register_type.
640 * regcache.c (init_regcache_descr): When available, initialize the
641 register type array using gdbarch_register_type. If the
642 architecture supplies gdbarch_register_type, do not use the legacy
644 * d10v-tdep.c (d10v_register_type): Replace
645 d10v_register_virtual_type.
646 (d10v_gdbarch_init): Set register_type instead of
647 register_virtual_type.
649 2003-03-01 Andrew Cagney <cagney@redhat.com>
651 * Makefile.in (ax-gdb.o): Update dependencies.
652 * ax-gdb.c: Include "regcache.h".
653 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
654 * findvar.c (value_of_register): Ditto.
655 * infcmd.c (default_print_registers_info): Ditto.
657 2003-03-01 Mark Kettenis <kettenis@gnu.org>
659 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
660 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
662 2003-03-01 Mark Kettenis <kettenis@gnu.org>
664 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
667 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
669 * Makefile.in (dwarf2loc.o): Update dependencies.
670 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
671 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
672 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
673 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
674 (locexpr_tracepoint_var_ref): New function.
675 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
677 2003-02-28 Andrew Cagney <cagney@redhat.com>
679 * regcache.c (register_size): New function.
680 * regcache.h (register_size): Declare
681 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
682 max_register_size instead of MAX_REGISTER_RAW_SIZE.
684 2003-02-28 David Carlton <carlton@math.stanford.edu>
686 * linespec.c (decode_compound): Extract code into find_method.
689 2003-02-28 J. Brobecker <brobecker@gnat.com>
691 * Makefile.in: Add rules to build and link in observer.o.
693 2003-02-27 J. Brobecker <brobecker@gnat.com>
695 * observer.c: Minor comments edits.
697 2003-02-27 J. Brobecker <brobecker@gnat.com>
699 * observer.h, observer.c: New file.
701 2003-02-27 Andrew Cagney <cagney@redhat.com>
703 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
705 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
707 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
708 (M6812_OP_STS_EXT): Likewise.
709 (m6811_prologue): Use the above to recognize prologue.
710 (m6812_prologue): Likewise.
712 2003-02-27 David Carlton <carlton@math.stanford.edu>
714 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
716 (compare_psymbols): Ditto.
717 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
719 2003-02-27 Michael Snyder <msnyder@redhat.com>
721 * f-lang.c (build_fortran_types): New function.
722 (_initialize_f_language): Gdbarch-register built-in fortran types.
723 * doublest.c (extract_floating): Fix warning text.
725 2003-02-27 Andrew Cagney <cagney@redhat.com>
727 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
728 predicate. Replaces PUSH_DUMMY_FRAME.
729 * gdbarch.h, gdbarch.c: Regnerate.
730 * valops.c (hand_function_call): Update. Call
731 generic_push_dummy_frame directly.
732 * vax-tdep.c (vax_gdbarch_init): Update.
733 * sparc-tdep.c (sparc_gdbarch_init): Update.
734 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
735 * m68k-tdep.c (m68k_gdbarch_init): Update.
736 * hppa-tdep.c (hppa_gdbarch_init): Update.
737 * alpha-tdep.c (alpha_gdbarch_init): Update.
738 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
739 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
740 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
741 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
742 push_dummy_frame to generic_push_dummy_frame.
743 * v850-tdep.c (v850_gdbarch_init): Ditto.
744 * sh-tdep.c (sh_gdbarch_init): Ditto.
745 * s390-tdep.c (s390_gdbarch_init): Ditto.
746 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
747 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
748 * mips-tdep.c (mips_gdbarch_init): Ditto.
749 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
750 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
751 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
752 * i386-tdep.c (i386_gdbarch_init): Ditto.
753 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
754 * frv-tdep.c (frv_gdbarch_init): Ditto.
755 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
756 * cris-tdep.c (cris_gdbarch_init): Ditto.
757 * avr-tdep.c (avr_gdbarch_init): Ditto.
758 * arm-tdep.c (arm_gdbarch_init): Ditto.
760 2003-02-26 Kevin Buettner <kevinb@redhat.com>
762 * mips-tdep.c (show_mips_abi): New function.
763 (_initialize_mips_tdep): Use show_mips_abi() to implement the
764 command ``show mips abi''.
766 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
768 From Elena Zannoni <ezannoni@redhat.com>
769 * dbxread.c (process_one_symbol): Only record line 0 if one or
770 more sline entries have been seen for the function.
772 2003-02-26 Michael Chastain <mec@shout.net>
774 * configure: Regenerate with autoconf 000227.
776 2003-02-26 Michael Chastain <mec@shout.net>
779 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
781 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
783 2003-02-26 Kris Warkentin <kewarken@qnx.com>
785 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
786 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
788 2003-02-26 Michael Chastain <mec@shout.net>
790 * configure.in: New variable HAVE_UINTPTR_T.
791 * configure, config.in: Regenerated.
793 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
796 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
798 2003-02-25 Andrew Cagney <cagney@redhat.com>
800 * frame.c (get_prev_frame): Add comment on check for
801 inside_entry_func. Only check for inside_entry_file when not a
802 dummy and not a sentinel. Check that the new frame is not inner
805 2003-02-25 Andrew Cagney <cagney@redhat.com>
807 * frame.c (frame_debug): New variable.
808 (_initialize_frame): Add "set/show debug frame" command.
809 (get_prev_frame): When frame_debug, print reason why unwind
812 2003-02-25 Michael Chastain <mec@shout.net>
814 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
815 to avoid uintptr_t definition problems.
817 2003-02-25 David Carlton <carlton@math.stanford.edu>
819 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
820 (SYMBOL_LINKAGE_NAME): Ditto.
821 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
823 (struct general_symbol_info): Expand comment.
824 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
825 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
826 (SYMBOL_MATCHES_REGEXP): Ditto.
827 * symtab.c (symbol_natural_name): New function.
828 * objfiles.h: Replace all uses of SYMBOL_NAME by
829 DEPRECATED_SYMBOL_NAME.
830 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
831 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
832 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
833 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
834 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
835 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
836 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
837 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
838 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
839 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
841 * ada-exp.y: Update copyright.
842 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
843 * cp-valprint.c: Ditto.
845 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
847 * infptrace.c (detach): Do not flag error if ptrace detach fails
848 and errno is set to ESRCH.
850 2003-02-24 Andrew Cagney <cagney@redhat.com>
852 * infptrace.c (udot_info): Change type of udot_off to long. Use
853 paddr when printing udot_off's value.
855 2003-02-24 David Carlton <carlton@math.stanford.edu>
857 * symtab.c (make_symbol_overload_list): Only read in partial
858 symtabs containing a matching partial symbol.
860 2003-02-24 David Carlton <carlton@math.stanford.edu>
862 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
863 do the comparison, not strcmp.
864 * symfile.c (compare_psymbols): Ditto.
865 * defs.h: Declare strcmp_iw_ordered.
866 * utils.c (strcmp_iw_ordered): New function.
868 2003-02-24 Jim Blandy <jimb@redhat.com>
870 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
871 support, shared libs): Remove my name from here, to better reflect
874 2003-02-24 Kris Warkentin <kewarken@qnx.com>
876 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
877 (target_ops): Add to_have_continuable_watchpoint.
878 * target.c (update_current_target): Add INHERIT line for
879 to_have_continuable_watchpoint.
880 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
881 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
882 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
883 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
885 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
887 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
890 2003-02-24 Kris Warkentin <kewarken@qnx.com>
892 * solib.c (solib_open): Call target defined search function after
893 failing with solib-search-path.
894 * solist.h (target_so_ops): Add find_and_open_solib function hook and
895 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
897 2003-02-24 Kris Warkentin <kewarken@qnx.com>
899 * MAINTAINERS: Add myself to Write After section.
901 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
903 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
905 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
907 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
908 (m68hc11_add_reggroups): New function.
909 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
910 (m68hc11_gdbarch_init): Install the reggroups.
911 (_initialize_m68hc11_tdep): Initialize them.
913 2003-02-21 James E Wilson <wilson@tuliptree.org>
915 * MAINTAINERS: Update my email address.
917 2003-02-21 David Carlton <carlton@math.stanford.edu>
919 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
921 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
923 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
924 * symtab.h: Add opaque declarations of struct axs_value and
926 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
927 (struct location_funcs): New type.
928 (struct symbol): Add "loc" to aux_value.
929 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
930 * dwarf2read.c: Include "dwarf2expr.h".
931 (dwarf2_symbol_mark_computed): New function.
932 (read_func_scope): Use it.
933 (var_decode_location): New function.
934 (new_symbol): Use it.
935 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
937 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
938 (dwarf2expr_h, dwarf2loc_h): New variables.
939 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
940 (dwarf2expr.o, dwarf2loc.o): New rules.
941 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
942 * buildsym.c (finish_block): Handle LOC_COMPUTED and
944 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
945 * m2-exp.y (yylex): Likewise.
946 * printcmd.c (address_info, print_frame_args): Likewise.
947 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
948 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
949 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
950 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
951 * symtab.c (lookup_block_symbol): Likewise.
953 2003-02-20 Adam Fedor <fedor@gnu.org>
955 * symtab.h: Remove objc_specific struct
956 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
957 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
958 Have language_objc use cplus_specific struct.
960 2003-02-20 Tom Tromey <tromey@redhat.com>
962 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
963 TYPE_NAME, when printing a String value. PR java/1075.
965 2003-02-20 Adam Fedor <fedor@gnu.org>
967 * objc-lang.h (find_methods): Remove declaration.
968 * objc-lang.c (find_methods): Make static.
970 2003-02-20 Christopher Faylor <cgf@redhat.com>
972 * win32-nat.c (get_image_name): Check return value from
974 (child_xfer_memory): Ditto.
976 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
978 * configure.in (TARGET_SYSTEM_ROOT): Set default to
979 ${exec_prefix}/${target_alias}/sys-root. Match explicit
980 '${exec_prefix}' (in addition to the expansion thereof) as
982 * configure: Rebuilt.
984 2003-02-20 David Carlton <carlton@math.stanford.edu>
986 * symtab.c (search_symbols): Revert the search_symbols part of my
987 2002-12-23 patch. Add comment.
989 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
991 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
992 * dbxread.c (elfstab_build_psymtabs): Don't call
993 install_minimal_symbols.
994 (stabsect_build_psymtabs): Likewise.
995 * elfread.c (elf_symfile_read): Call install_minimal_symbols
997 * somread.c (som_symfile_read): Call install_minimal_symbols
998 and do_cleanups earlier.
999 * nlmread.c (nlm_symfile_read): Likewise.
1000 * mdebugread.c (elfmdebug_build_psymtabs): Call
1001 install_minimal_symbols and make appropriate cleanups.
1003 2003-02-20 Kevin Buettner <kevinb@redhat.com>
1005 * solib.c (reload_shared_libraries): New function.
1006 (_initialize_solib): Add callbacks for ``set solib-search-path''
1007 and ``set solib-absolute-prefix''.
1009 2003-02-20 David Carlton <carlton@math.stanford.edu>
1011 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
1013 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
1014 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
1015 * ada-typeprint.c (ada_typedef_print): Ditto.
1016 * ax-gdb.c (gen_var_ref): Ditto.
1017 * breakpoint.c (print_one_breakpoint): Ditto.
1018 * buildsym.c (finish_block): Ditto.
1019 * c-valprint.c (c_val_print): Ditto.
1020 * expprint.c (print_subexp): Ditto.
1021 * findvar.c (locate_var_value): Ditto.
1022 * infcmd.c (jump_command): Ditto.
1023 * linespec.c (decode_line_2, decode_compound): Ditto.
1024 * maint.c (maintenance_translate_address): Ditto.
1025 * objc-lang.c (compare_selectors, compare_classes): Ditto.
1026 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
1028 * p-valprint.c (pascal_val_print): Ditto.
1029 * stabsread.c (define_symbol): Ditto.
1030 * stack.c (print_frame, frame_info, print_block_frame_locals)
1031 (print_frame_arg_vars, return_command): Ditto.
1032 * symfile.c (compare_symbols, compare_psymbols): Ditto.
1033 * symmisc.c (print_symbol): Ditto.
1034 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
1035 (compare_search_syms, print_symbol_info, print_msymbol_info)
1036 (rbreak_command): Ditto.
1037 * tracepoint.c (tracepoints_info): Ditto.
1038 * typeprint.c (typedef_print): Ditto.
1039 * valops.c (value_of_variable, hand_function_call): Ditto.
1040 * cli/cli-cmds.c (edit_command, list_command): Ditto.
1041 * ada-typeprint.c: Update Copyright.
1042 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
1043 * tracepoint.c, cli/cli-cmds.c: Ditto.
1045 2003-02-20 Kevin Buettner <kevinb@redhat.com>
1047 * frame.c (generic_unwind_get_saved_register): Make non-static.
1048 * frame.h (generic_unwind_get_saved_register): Declare.
1049 * mips-tdep.c (read_next_frame_reg): Fetch register from
1050 current regcache when frame is NULL.
1051 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
1053 (mips_get_saved_register): Call generic_unwind_get_saved_register()
1054 instead of frame_register_unwind().
1056 2003-02-20 Andrew Cagney <ac131313@redhat.com>
1058 * remote-sim.c (gdbsim_insert_breakpoint)
1059 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
1062 2003-02-20 Andrew Cagney <ac131313@redhat.com>
1064 * remote.c (_initialize_remote): Add commands "set/show remote
1065 hardware-watchpoint-limit" and "set/show remote
1066 hardware-breakpoint-limit".
1067 (remote_hw_watchpoint_limit): Initialize to -1.
1068 (remote_hw_breakpoint_limit): Ditto.
1069 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
1071 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
1073 * coff-pe-read.c: New file - support reading of minimal symbols from a
1074 portable executable using the export table.
1075 * coff-pe-read.h: New file.
1076 * coffread.c: Include coff-pe-read.h.
1077 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
1078 debugging symbols found.
1079 * Makefile.in (SFILES): Add coff-pe-read.o.
1080 (coff_pe_read_h): Define.
1081 (COMMON_OBS): Add coff-pe-read.o.
1082 (coffread.o): Add coff_pe_read_h dependency.
1083 (coff-pe-read.o): New target.
1085 2003-02-19 David Carlton <carlton@math.stanford.edu>
1087 * Makefile.in (SFILES): Add block.c.
1089 (COMMON_OBS): Add block.o.
1091 (x86-64-tdep.o): Add $(block_h).
1092 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
1093 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
1094 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
1095 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
1096 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
1097 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
1098 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
1099 * value.h: Add opaque declaration for struct block.
1100 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
1101 * ada-lang.h: Ditto.
1102 * x86-64-tdep.c: #include "block.h"
1103 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
1104 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
1105 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
1106 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
1107 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
1108 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
1109 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
1110 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
1111 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
1112 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
1113 * symtab.c (block_function): Ditto.
1114 (contained_in): Ditto.
1115 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
1116 block.h. Add opaque declaration for struct block.
1117 * symtab.h: Move block_function and contained_in declarations to
1118 block.h. Add opaque declarations for struct block, struct
1120 (struct block): Move to block.h.
1121 (struct blockvector): Ditto.
1122 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
1123 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
1124 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
1125 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
1126 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
1128 * block.c: New file.
1129 * block.h: New file.
1131 2003-02-19 Theodore A. Roth <troth@openavr.org>
1133 * avr-tdep.c (avr_extract_return_value): Remove function.
1134 (avr_store_return_value): Remove function.
1135 (avr_extract_struct_value_address): Remove function.
1136 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
1138 2003-02-19 Andrew Cagney <ac131313@redhat.com>
1140 * rs6000-tdep.c: Include "gdb_assert.h".
1141 (registers_e500): Add "acc" and "spefscr".
1142 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
1143 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
1144 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
1146 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
1148 2003-02-18 Keith Seitz <keiths@redhat.com>
1150 * Makefile.in: Add gdbtk-interps.c.
1152 2003-02-18 Kevin Buettner <kevinb@redhat.com>
1154 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
1155 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
1157 2003-02-18 Andrew Cagney <cagney@redhat.com>
1159 * symtab.h (struct objfile): Add opaque declaration.
1161 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
1163 From Jim Ingham <jingham@apple.com>:
1164 * dbxread.c (process_one_symbol): Use last_function_start rather
1165 than function_start_offset to find the real beginning of the
1166 current function. The latter is just the text section offset on
1167 some systems, the former is always the real function start.
1169 2003-02-17 Andrew Cagney <cagney@redhat.com>
1171 * configure.in: Revert ${target} != ${host}.
1173 2003-02-17 Andrew Cagney <ac131313@redhat.com>
1175 * configure.in (Makefile): Use the test ${target} != ${host},
1176 instead of the absence of the "nm.h" file, to determine of the
1177 configuration non-native.
1178 * configure: Regenerate.
1180 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
1182 From Brian Ford <ford@vss.fsi.com>
1184 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
1185 conditionalize tui_active test.
1186 (lookup_cmd_1): Ditto.
1188 2003-02-14 Mark Kettenis <kettenis@gnu.org>
1190 * configure.in: Add check for _etext.
1191 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
1193 * config.in, configure: regenerated.
1195 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
1197 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
1199 2003-02-14 Andrew Cagney <ac131313@redhat.com>
1201 * main.c (tui_version): Delete variable.
1202 (captured_main): When --tui, set interpreter_p to "tui" instead of
1203 enabling tui_version.
1204 * printcmd.c (display_command) [TUI]: Test tui_active instead of
1206 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
1207 * cli/cli-cmds.c (disassemble_command): Ditto.
1208 * defs.h (tui_version): Delete declaration.
1209 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
1210 (tui-interp.o): Add rules.
1211 (SUBDIR_TUI_OBS): Add "tui-interp.o".
1213 2003-02-14 Christopher Faylor <cgf@redhat.com>
1215 * win32-nat.c (register_loaded_dll): Correctly set address range for
1218 2003-02-12 Jason Molenda (jmolenda@apple.com)
1220 * symmisc.c (print_objfile_statistics): Include information about
1221 the number of psymtabs and symtabs in each object file.
1223 2003-02-13 Keith R Seitz <keiths@redhat.com>
1225 * main.h (struct captured_main_args): Add interpreter_p.
1226 * main.c (captured_main): Initialize interpreter_p from context.
1227 * gdb.c (main): Set interpreter_p argument.
1228 * Makefile.in (gdb.o): Add dependency for interps.h.
1230 2003-02-12 Andrew Cagney <ac131313@redhat.com>
1232 * event-top.c (cli_command_loop): Delete declaration.
1233 (_initialize_event_loop): Delete function setting event_loop_hook.
1234 * event-top.h (cli_command_loop): Declare. Update copyright.
1235 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
1236 * interps.c (current_interp_command_loop): When event_loop_p, call
1239 2003-02-12 Andrew Cagney <ac131313@redhat.com>
1241 * interps.h (interp_command_loop_ftype): Change return type to
1244 2003-02-12 Michal Ludvig <mludvig@suse.cz>
1246 * x86-64-tdep.c (x86_64_extract_return_value)
1247 (x86_64_store_return_value): Use regcache instead of regbuf.
1248 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
1249 * x86-64-linux-nat.c (fill_gregset): Use regcache.
1251 2003-02-11 Andrew Cagney <ac131313@redhat.com>
1253 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
1254 * aclocal.m4: Regenerate.
1255 * configure: Regenerate.
1257 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
1258 TCL_LD_SEARCH_FLAGS.
1260 2003-02-10 Michal Ludvig <mludvig@suse.cz>
1262 * dwarf2cfi.c: Reindented.
1264 2003-02-09 Andrew Cagney <ac131313@redhat.com>
1266 * interps.c (clear_interpreter_hooks): Convert function definition
1269 2003-02-07 David Carlton <carlton@math.stanford.edu>
1271 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
1273 2003-02-07 Kevin Buettner <kevinb@redhat.com>
1275 * gdbtypes.h (struct main_type): Move ``length'' field from here...
1276 (struct type): ...to here.
1277 (TYPE_LENGTH): Adjust to reflect different location of ``length''
1279 * gdbtypes.c (make_qualified_type): Set length on newly created type.
1280 (replace_type): Set length on all type variants for a given type.
1282 2003-02-07 Andrew Cagney <ac131313@redhat.com>
1284 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
1286 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
1288 2003-02-06 Andrew Cagney <ac131313@redhat.com>
1290 * Makefile.in (symm-nat.o): Update dependencies.
1291 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
1292 (lynx-nat.o, ia64-linux-nat.): Ditto.
1293 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
1294 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
1295 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
1297 * Makefile.in (inflow_h): Define.
1298 (procfs.o, inflow.o, procfs.o): Update dependencies.
1299 * inftarg.c (child_stop): Delete extern declaration of
1300 inferior_process_group. Include "inflow.h".
1301 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
1302 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
1303 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
1304 (our_process_group, inferior_process_group): Extern declarations.
1306 * procfs.c: Include "gdb_assert.h".
1308 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
1309 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
1310 * jv-typeprint.c (java_type_print_base): Ditto.
1311 * typeprint.c (typedef_print): Eliminate STREQ.
1312 * cli/cli-script.c (define_command, define_command): Ditto.
1313 * main.c (captured_main): Ditto.
1314 * values.c (lookup_internalvar): Ditto.
1315 * utils.c (safe_strerror, parse_escape): Eliminate assignment
1316 within `if' conditional.
1317 * linespec.c (decode_line_2): Ditto.
1318 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
1319 (bfd_openw_with_cleanup): Ditto.
1321 2003-02-07 Mark Kettenis <kettenis@gnu.org>
1323 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
1324 legacy_extract_return_value and store_return_value to
1325 legacy_return_value.
1327 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
1329 * win32-nat.c (get_relocated_section_addrs): New function. Find
1330 section load addresses for symbol handling in relocated DLLs.
1331 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
1333 2003-02-05 Fred Fish <fnf@intrinsity.com>
1335 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
1337 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
1339 (angel_RDI_info): Ditto.
1340 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
1342 (threads_continue_all_with_signals): Ditto.
1344 2003-02-05 Jim Ingham <jingham@apple.com>
1345 Keith Seitz <keiths@redhat.com>
1346 Elena Zannoni <ezannoni@redhat.com>
1347 Andrew Cagney <ac131313@redhat.com>
1349 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
1350 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
1351 (SUBDIR_MI_OBS): Add "mi-interp.o".
1352 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
1353 (SFILES): Add "interps.c".
1354 (COMMON_OBS): Add "interps.o".
1355 (interps_h, mi_main_h): Define.
1356 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
1357 (mi-main.o, main.o, event-top.o): Update dependencies.
1358 * cli/cli-interp.c: New file.
1359 * interps.h, interps.c: New files.
1360 * top.c: (gdb_init): Don't install the default interpreter, handed
1362 * main.c: Include "interps.h".
1363 (interpreter_p): Note that it should malloc'ed.
1364 (captured_command_loop): Call current_interp_command_loop.
1365 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
1366 xfree and xstrdup when updating interpreter_p. Install the
1367 default interpreter. Add hack to stop mi1's copyright notice
1369 * event-top.h (gdb_setup_readline): Declare.
1370 (gdb_disable_readline): Declare.
1371 * event-top.c: Include "interps.h".
1372 (display_gdb_prompt): Call current_interp_display_prompt_p.
1373 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
1374 gdb_stdlog, and gdb_stdtarg.
1375 (_initialize_event_loop): Don't call gdb_setup_readline.
1376 * cli-out.c (cli_out_set_stream): New function.
1377 * cli-out.h (cli_out_set_stream): Declare.
1379 2003-02-06 Mark Kettenis <kettenis@gnu.org>
1381 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
1382 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
1383 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
1384 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
1385 config/i386/i386v42mp.mt: Removed.
1387 2003-02-05 Mark Kettenis <kettenis@gnu.org>
1389 * configure.tgt (*-*-solaris*): Set gdb_osabi to
1392 2003-02-05 Michael Chastain <mec@shout.net>
1394 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
1395 2.12.1 and earlier versions.
1397 2003-02-05 Andrew Cagney <ac131313@redhat.com>
1399 Remove orphaned hosts, targets and files.
1400 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
1401 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
1402 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
1403 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
1404 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
1405 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
1406 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
1407 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
1408 * config/sparc/tm-sp64sim.h: Delete.
1409 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
1411 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
1412 mips*-dec-mach3* targets.
1414 2003-02-04 Michael Chastain <mec@shout.net>
1416 * NEWS: Fix typo: sepcifying -> specifying.
1418 2003-02-04 Michael Chastain <mec@shout.net>
1420 * dwarfread.c: Add documentation on the state of dwarf-1,
1421 looking towards obsoletion.
1423 2003-02-03 Michael Chastain <mec@shout.net>
1425 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
1426 gdb/testsuite/gdb.c++/pr-1023.exp.
1428 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1430 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
1431 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
1433 * utils.c (init_page_info): Delete reference to MPW in comments.
1434 * main.c (captured_main): Delete #ifdef MPW.
1436 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1438 * NEWS: Note that the m32r-*-elf* is obsolete.
1439 * monitor.c (monitor_expect): Obsolete reference to m32r.
1440 * configure.tgt: Mark m32r-*-elf* as obsolete.
1441 * MAINTAINERS: Mark m32k as obsolete.
1442 * m32r-rom.c: Obsolete file.
1443 * config/m32r/m32r.mt: Obsolete file.
1444 * config/m32r/tm-m32r.h: Obsolete file.
1445 * m32r-stub.c: Obsolete file.
1446 * m32r-tdep.c: Obsolete file.
1448 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1450 * NEWS: Mention that the z8k-zilog-none is obsolete.
1451 * MAINTAINERS: Mark z8k as obsolete.
1452 * configure.tgt: Obsolete the z8k-*-coff* target.
1453 * config/z8k/z8k.mt: Obsolete file.
1454 * config/z8k/tm-z8k.h: Obsolete file.
1455 * z8k-tdep.c: Obsolete file.
1457 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1459 * NEWS: Mention that the mn10200-elf is obsolete.
1460 * configure.tgt: Obsolete mn10200-*-* target.
1461 * breakpoint.c (update_breakpoints_after_exec): Update comment to
1462 mention that the mn10200 is obsolete.
1463 * breakpoint.h: Ditto.
1464 * MAINTAINERS: Mark the mn10200-elf as obsolete.
1465 * config/mn10200/mn10200.mt: Obsolete file.
1466 * config/mn10200/tm-mn10200.h: Obsolete file.
1467 * mn10200-tdep.c: Obsolete file.
1469 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1471 * MAINTAINERS: Mark h8500 as obsolete.
1472 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
1473 * findvar.c (value_from_register): Ditto.
1474 * h8500-tdep.c: Mark file as obsolete.
1475 * config/h8500/h8500.mt: Ditto.
1476 * config/h8500/tm-h8500.h: Ditto.
1477 * NEWS: Mention that h8500 is obsolete.
1479 2003-02-04 David Carlton <carlton@math.stanford.edu>
1481 * objfiles.c (allocate_objfile): Always set name. Add comment at
1483 * jv-lang.c (get_dynamics_objfile): Add comment.
1485 2003-02-04 David Carlton <carlton@math.stanford.edu>
1487 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
1488 * printcmd.c (build_address_symbolic): Replace uses of
1489 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
1490 SYMBOL_NAME, and asm_demangle.
1493 2003-02-04 David Carlton <carlton@math.stanford.edu>
1495 * linespec.c (decode_compound): Extract code into
1497 (lookup_prefix_sym): New function.
1499 2003-02-04 David Carlton <carlton@math.stanford.edu>
1501 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
1502 FLOAT_COERCION_BADNESS.
1503 * gdbtypes.c (rank_one_type): Replace all uses of
1504 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
1506 2003-02-04 Jim Blandy <jimb@redhat.com>
1508 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
1509 section, let dwarf_macinfo_section point to it, not
1512 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
1514 Pointed out by Anton Blanchard <anton@samba.org>.
1515 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
1516 (ppc_linux_at_sigtramp_return_path): Use it.
1518 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
1520 * defs.h (streq): Add prototype.
1521 * utils.c (streq): New function.
1523 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
1524 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
1525 * mdebugread.c (new_symbol): Likewise.
1526 * stabsread.c (define_symbol): Likewise.
1527 * coffread.c (process_coff_symbol): Likewise.
1528 * dwarfread.c (new_symbol): Likewise.
1530 * minsyms.c (prim_record_minimal_symbol_and_info): Use
1531 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
1533 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
1534 SYMBOL_INIT_DEMANGLED_NAME.
1535 * objfiles.c: Include "hashtab.h".
1536 (allocate_objfile): Call htab_set_functions_ex for the
1537 demangled_names_hash.
1538 (free_objfile): Call htab_delete for the demangled_names_hash.
1539 * objfiles.h (struct htab): Add declaration.
1540 (struct objfile): Add demangled_names_hash.
1541 * symfile.c: Include "hashtab.h".
1542 (reread_symbols): Call htab_delete for the demangled_names_hash.
1543 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
1544 SYMBOL_NAME in the bcache.
1545 * symtab.c: Include "hashtab.h". Update comments.
1546 (create_demangled_names_hash, symbol_set_names): New functions.
1547 (symbol_find_demangled_name): New function, broken out from
1548 symbol_init_demangled_names.
1549 (symbol_init_demangled_names): Use it.
1550 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
1551 (SYMBOL_SET_NAMES): New macro.
1552 (symbol_set_names): Add prototype.
1554 2003-02-03 Jim Blandy <jimb@redhat.com>
1556 Use a single, consistent representation for an empty minimal
1557 symbol table in an objfile.
1558 * objfiles.c (terminate_minimal_symbol_table): New function.
1559 (allocate_objfile): Call it.
1560 * objfiles.h (terminate_minimal_symbol_table): New declaration.
1561 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
1563 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
1564 objfile has minimal symbols, compare minimal_symbol_count to zero,
1565 instead of comparing msymbols with NULL.
1566 * objfiles.c (have_minimal_symbols): Same.
1567 * solib-sunos.c (solib_add_common_symbols): Call
1568 terminate_minimal_symbol_table.
1569 * symfile.c (reread_symbols): Same.
1571 2003-02-03 Kevin Buettner <kevinb@redhat.com>
1573 * s390-tdep.c (s390_address_class_type_flags)
1574 (s390_address_class_type_flags_to_name)
1575 (s390_address_class_name_to_type_flags): New functions.
1576 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
1577 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
1579 2003-02-03 Michael Snyder <msnyder@redhat.com>
1581 * arm-tdep.c: Fix spell-o in comment.
1583 2003-02-03 Michal Ludvig <mludvig@suse.cz>
1585 * dwarf2cfi.c (pointer_encoding): Added new parameter.
1586 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
1587 error messages to contain BFD filename.
1589 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
1591 Fix PR gdb/742 gdb/743 gdb/877
1592 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
1593 (do_mixed_source_and_assembly): Use
1594 make_cleanup_ui_out_tuple_begin_end and
1595 make_cleanup_ui_out_tuple_begin_end.
1596 (do_mixed_source_and_assembly): Ditto.
1597 * thread.c (do_captured_list_thread_ids): Ditto.
1598 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
1599 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
1600 ui_out_tuple_end): Delete prototypes.
1601 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
1602 ui_out_list_end, ui_out_tuple_end): Delete.
1604 From Kevin Buettner <kevinb@redhat.com>:
1605 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
1606 * ui-out.c (make_cleanup_ui_out_table_begin_end)
1607 (do_cleanup_table_end): New functions.
1608 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
1609 Use cleanups to invoke_ui_out_tuple_end().
1610 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
1611 * cli/cli-setshow.c (cmd_show_list): Use
1612 make_cleanup_ui_out_tuple_begin_end.
1614 2003-02-02 Andrew Cagney <ac131313@redhat.com>
1616 * frame.c (frame_unwind_register): New function.
1617 (frame_unwind_unsigned_register): Use.
1618 (frame_unwind_signed_register): Use.
1619 (frame_read_register): New function.
1620 * frame.h (frame_unwind_register): Declare.
1621 (frame_read_register): Declare.
1623 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
1624 and frame_unwind_register instead of read_memory, write_register
1625 and deprecated_write_register_bytes.
1627 2003-02-02 Andrew Cagney <ac131313@redhat.com>
1629 * frame.h: Note that namelen can be negative.
1630 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
1633 * NEWS: Mention that the d10v's `regs' command is deprecated.
1634 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
1635 (d10v_print_registers_info): New function.
1636 (show_regs): Call d10v_print_registers_info.
1637 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
1639 2003-02-02 Mark Kettenis <kettenis@gnu.org>
1641 * stack.c (print_frame_info): Restore call to annotate_frame_begin
1642 lost in the previous patch.
1644 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1646 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
1647 * stack.c (print_frame_info_base): Output complete FRAME tuple
1648 for synthesized frames.
1650 2003-02-02 Andrew Cagney <ac131313@redhat.com>
1652 * mips-nat.c (zerobuf): Delete.
1653 (fetch_inferior_registers): Alloc local zerobuf.
1654 (fetch_core_registers): Alloc local zerobuf.
1655 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
1656 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
1657 * thread-db.c (thread_db_store_registers): Ditto.
1658 * sh-tdep.c (sh_do_register): Ditto.
1659 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1660 * remote-sim.c (gdbsim_store_register): Ditto.
1661 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1662 * remote-e7000.c (fetch_regs_from_dump): Ditto.
1663 * monitor.c (monitor_supply_register): Ditto.
1664 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
1665 * mips-nat.c (fetch_inferior_registers): Ditto.
1666 * m68klinux-nat.c (fetch_register): Ditto.
1667 * lynx-nat.c (fetch_inferior_registers): Ditto.
1668 (fetch_inferior_registers): Ditto.
1669 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
1670 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
1671 (hpux_thread_store_registers): Ditto.
1672 * hppah-nat.c (fetch_register): Ditto.
1673 * hppab-nat.c (fetch_register): Ditto.
1674 * hppa-tdep.c (pa_register_look_aside): Ditto.
1675 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
1676 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
1678 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1680 * gdbarch.sh: Explictly specify all method levels. When a
1681 variable with an empty level, provide a non-multi-arch default.
1682 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
1683 * gdbarch.h: Re-generate.
1684 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
1685 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
1687 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1689 * defs.h (host_pointer_to_address): Delete declaration.
1690 (address_to_host_pointer): Delete declaration.
1691 * utils.c (host_pointer_to_address): Delete function.
1692 (address_to_host_pointer): Delete function.
1693 * procfs.c (procfs_address_to_host_pointer): New function.
1694 * procfs.c (proc_set_watchpoint): Use.
1695 (procfs_can_use_hw_breakpoint): Update comments.
1696 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
1697 (som_solib_add): Use.
1698 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
1699 * hppa-tdep.c (unwind_command): Use.
1701 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1703 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
1706 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
1707 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
1708 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
1709 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
1710 (define_symbol): Update.
1711 * symfile.c (generic_load): Remove references to nindy.
1712 * symtab.c: Remove references to nindy.
1714 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1716 * infcmd.c (print_float_info): Delete code conditional on
1718 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
1719 * config/m68k/nm-apollo68b.h: Ditto.
1720 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
1721 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
1722 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
1724 2003-02-01 Mark Kettenis <kettenis@gnu.org>
1726 * config/i386/tm-i386os9k.h: Removed.
1728 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
1729 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
1730 they're identical to i[3456]86-*-sysv* now.
1731 * config/i386/i386v32.mh: Removed.
1732 * config/i386/xm-i386v32.h: Removed.
1733 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
1735 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
1737 * config/i386/i386dgux.mh: Removed.
1738 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
1740 * configure.in: Fix typo.
1741 * configure: Regenerated.
1743 2003-01-31 David Carlton <carlton@math.stanford.edu>
1745 * dwarf2read.c (dwarf2_locate_sections): Set
1746 dwarf_ranges_section.
1748 2003-01-31 Andrew Cagney <ac131313@redhat.com>
1750 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
1751 * utils.c: Update comments documenting legitimate uses of PTR.
1753 * utils.c: Re-indent.
1755 * config/djgpp/fnchange.lst: Delete nindy files.
1756 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
1757 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
1758 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
1759 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
1760 * nindy-share/README, nindy-share/Onindy.c: Delete files.
1761 * nindy-tdep.c, nindy-share/Makefile: Delete files.
1762 * Makefile.in (init.c): Remove nindy references.
1763 (saber_gdb): Delete rule.
1764 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
1765 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
1767 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
1768 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
1769 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
1770 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
1772 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
1773 * saber.suppress: Delete file.
1775 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
1777 * dbxread.c (stabs_data): New static variable.
1778 (fill_symbuf): Support an in-memory buffer for stabs data.
1779 (stabs_seek): New function.
1780 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
1781 (read_ofile_symtab): Use stabs_seek.
1782 (elfstab_build_psymtabs): Take an asection* instead of
1783 an offset and size. Relocate the stabs data if necessary.
1784 Save the section* for dbx_psymtab_to_symtab.
1785 * dwarf2read.c: Add section variables for each debug section.
1786 (dwarf2_locate_sections): Fill them in.
1787 (dwarf2_read_section): Take an asection* argument.
1788 Relocate the section contents if necessary.
1789 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
1790 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
1791 it to dwarf2_read_section.
1792 (dwarf2_build_frame_info): Update callers.
1793 * elfread.c (elf_symfile_read): Update call to
1794 elfstab_build_psymtabs.
1795 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
1796 (DBX_STAB_SECTION): New macro.
1797 * stabsread.h (elfstab_build_psymtabs): Update prototype.
1798 * symfile.c (symfile_dummy_outputs): New function.
1799 (symfile_relocate_debug_section): New function.
1800 * symfile.h (symfile_relocate_debug_section): Add prototype.
1802 2003-01-31 Richard Henderson <rth@redhat.com>
1804 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
1805 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
1806 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
1807 * alpha-tdep.c (alpha_register_name): Add "unique".
1808 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
1809 (ALPHA_UNIQUE_REGNUM): New.
1810 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
1812 2003-01-31 Andrew Cagney <ac131313@redhat.com>
1814 * README: Remove reference to Ericsson 1800 monitor.
1815 * Makefile.in (remote-es.o): Delete rule.
1816 (ALLDEPFILES): Delete remote-es.c.
1817 * remote-es.c: Delete file.
1818 * config/m68k/es1800.mt: Delete file.
1819 * config/djgpp/fnchange.lst: Update.
1820 * configure.tgt: Delete m68*-ericsson-* target.
1822 2003-01-31 Adam Fedor <fedor@gnu.org>
1824 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
1825 Remove duplicate/shadowing variable of same name.
1827 2003-01-30 Jim Blandy <jimb@redhat.com>
1829 * symfile.c (find_separate_debug_file): Assert that the objfile's
1830 directory name we compute ends with a slash, and then assume that
1831 that's so everywhere we use it.
1833 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
1835 * valops.c (value_assign): Flush frame cache after stores to memory
1838 2003-01-30 Andrew Cagney <ac131313@redhat.com>
1840 * Makefile.in (mon960-rom.o): Delete rule.
1841 * mon960-rom.c: Delete file.
1843 2003-01-30 Andrew Cagney <ac131313@redhat.com>
1845 * d10v-tdep.c: Include "frame-unwind.h".
1846 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
1848 (next_addr, uses_frame): Delete.
1849 (struct d10v_unwind_cache): Define.
1850 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
1851 Use info instead of next_addr and uses_frame globals.
1852 (d10v_frame_init_saved_regs): Delete function.
1853 (d10v_init_extra_frame_info): Delete function.
1854 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
1855 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
1856 init_frame_pc or frame_saved_pc.
1857 (d10v_pop_frame): Delete function.
1858 (do_d10v_pop_frame): Delete function.
1859 (d10v_frame_chain): Delete function.
1860 (d10v_frame_chain_valid): Delete function.
1861 (d10v_frame_pc_unwind): New function.
1862 (d10v_frame_id_unwind): New function.
1863 (saved_regs_unwinder): New function.
1864 (d10v_frame_register_unwind): New function.
1865 (d10v_frame_pop): New function.
1866 (d10v_frame_unwind): New variable.
1867 (d10v_frame_p): New function.
1868 (d10v_frame_saved_pc): Delete function.
1869 * Makefile.in (d10v-tdep.o): Update dependencies.
1871 2003-01-30 J. Brobecker <brobecker@gnat.com>
1873 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
1874 causing some regressions due to a change in the default value
1877 2003-01-29 Richard Henderson <rth@redhat.com>
1878 Elena Zannoni <ezannoni@redhat.com>
1879 Daniel Jacobowitz <drow@mvista.com>
1882 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
1884 (RANGES_SECTION): New.
1885 (dwarf_ranges_buffer): New variable.
1886 (struct comp_unit_head): Add member "die".
1887 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
1888 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
1889 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
1890 (dwarf2_locate_sections): Likewise.
1891 (dwarf2_build_psymtabs): Read .debug_ranges.
1892 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
1893 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
1894 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
1895 Look for DW_AT_ranges and return the bounding box.
1897 2003-01-29 Brian Ford <ford@vss.fsi.com>
1899 * win32-nat.c (cygwin_pid): Removed as unused.
1900 (child_attach): Try fall back to Cygwin pid.
1902 2003-01-29 Jim Blandy <jimb@redhat.com>
1904 * objfiles.h (struct objfile): Doc fix.
1906 2003-01-29 Andrew Cagney <ac131313@redhat.com>
1908 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
1909 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
1910 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
1911 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
1912 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
1913 (FRAME_SAVED_PC): Change to a function with predicate.
1914 * gdbarch.h, gdbarch.c: Re-generate.
1916 2003-01-28 Andrew Cagney <ac131313@redhat.com>
1918 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
1920 * complaints.c (complain): Delete function.
1921 * complaints.h (struct deprecated_complaint): Delete definition.
1922 (complain): Delete declaration.
1924 2003-01-28 Kevin Buettner <kevinb@redhat.com>
1926 * mips-tdep.c (mips_init_extra_frame_info): Return early for
1929 2003-01-27 Andrew Cagney <ac131313@redhat.com>
1931 * sentinel-frame.h, sentinel-frame.c: New files.
1932 * Makefile.in (frame.o): Update dependencies.
1933 (SFILES): Add sentinel-frame.c.
1934 (sentinel_frame_h): Define.
1935 (COMMON_OBS): Add sentinel-frame.o.
1936 (sentinel-frame.o): Specify dependencies.
1937 * frame.c: Include "sentinel-frame.h".
1938 (frame_register_unwind): Rewrite assuming that there is always a a
1940 (frame_register, generic_unwind_get_saved_register): Ditto.
1941 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
1942 (create_sentinel_frame, unwind_to_current_frame): New functions.
1943 (get_current_frame): Rewrite using create_sentinel_frame and
1944 unwind_to_current_frame. When possible, always create a frame.
1945 (create_new_frame): Set next to the sentinel frame.
1946 (get_next_frame): Rewrite. Don't go below the level 0 frame.
1947 (deprecated_update_frame_pc_hack): Update the next frame's PC and
1948 ID cache when necessary.
1949 (frame_saved_regs_id_unwind): Use frame_relative_level.
1950 (deprecated_generic_get_saved_register): Use frame_relative_level,
1951 get_frame_saved_regs, get_frame_pc, get_frame_base and
1953 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
1956 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
1958 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
1960 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
1962 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
1963 (maintenance_set_profile_cmd): Use error () instead of warning ().
1965 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
1967 * configure.in: Check that -pg works if using --enable-profiling.
1968 Check for monstartup and _mcleanup regardless of --enable-profiling.
1969 * maint.c: Check for monstartup and _mcleanup before using them.
1970 * config.in: Regenerated.
1971 * configure: Regenerated.
1973 2003-01-24 Nick Clifton <nickc@redhat.com>
1977 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
1979 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
1980 (sh2e_show_regs): New.
1981 (sh_gdbarch_init): Handle bfd_mach_sh2e.
1982 * config/sh/tm-sh.h: Added sh2e to comments.
1984 2003-01-23 Jim Blandy <jimb@redhat.com>
1986 * symfile.c (syms_from_objfile): Don't print the "(no debugging
1987 symbols found)" message here; we haven't checked for a separate
1988 debug info file yet, so we don't know yet.
1989 (symbol_file_add_with_addrs_or_offsets): Print it here, after
1990 we've looked everywhere. Also, there's no need to print a special
1991 message when we're loading the separate debug info file: the one
1992 symbol_file_add prints is fine.
1994 2003-01-23 Alexander Larsson <alexl@redhat.com>
1995 Jim Blandy <jimb@redhat.com>
1997 Add support for executables whose debug info has been separated
1998 out into a separate file, leaving only a link behind.
1999 * objfiles.h (struct objfile): New fields: separate_debug_objfile
2000 and separate_debug_objfile_backlink.
2001 (put_objfile_before): New declaration.
2002 * symfile.c: #include "filenames.h".
2003 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
2004 debug info in a separate file, read that, too. Save the addrs
2005 argument, so we can use it again to read the separated debug info;
2006 syms_from_objfile modifies the table we pass it.
2007 (reread_symbols): After re-reading an objfile, call
2008 reread_separate_symbols to refresh its separate debug info
2009 objfile, if it has one.
2010 (reread_separate_symbols, find_separate_debug_file,
2011 get_debug_link_info, separate_debug_file_exists): New functions.
2012 (debug_file_directory): New global var.
2013 (_initialize_symfile): Initialize debug_file_directory, and
2014 provide the new `set debug-file-directory' command to let the user
2016 * objfiles.c (free_objfile): If this objfile has its debug info in
2017 a separate objfile, free that one too. If this is itself a
2018 separate debug info objfile, clear our parent's backlink.
2019 (put_objfile_before): New function.
2020 * utils.c (gnu_debuglink_crc32): New function.
2021 * defs.h (gnu_debuglink_crc32): New declaration.
2022 * Makefile.in (symfile.o): Note dependency on "filenames.h".
2023 * configure.in: Handle --with-separate-debug-dir config option.
2024 * acinclude.m4 (AC_DEFINE_DIR): New macro.
2025 * acconfig.h (DEBUGDIR): New macro.
2026 * configure, aclocal.m4, config.in: Regenerated.
2028 2003-01-22 Jim Blandy <jimb@redhat.com>
2030 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
2031 like the old symbol_file_add, but taking new arguments: you can
2032 now pass in either a `struct section_addr_info' list to say where
2033 each section is loaded, or a `struct section_offsets' table. Pass
2034 these new arguments through to syms_from_objfile as appropriate.
2035 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
2036 with the appropriate quiescent values for the new arguments.
2038 * symfile.c: #include "gdb_assert.h".
2039 (syms_from_objfile): Add the ability to pass in a section offset
2040 table directly, as an alternative to the section_addr_info table.
2041 Document arguments better.
2042 (symbol_file_add): Pass extra arguments to syms_from_objfile.
2043 * symfile.h (syms_from_objfile): Update declaration.
2044 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
2046 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
2048 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
2050 Original patch by Tom Tromey <tromey@cygnus.com> and
2051 Jason Molenda <jmolenda@apple.com>.
2052 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
2053 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
2054 * NEWS: Mention profiling.
2055 * configure.in (--enable-gdbtk): Fix typo.
2056 (--enable-profiling): New. Set PROFILE_CFLAGS.
2057 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
2059 (profiling_state): New variable.
2060 (mcleanup_wrapper): New function.
2061 (_initialize_maint): Remove NOTYET, fix call to
2062 add_setshow_boolean_cmd for "maint set profile".
2063 * configure: Regenerated.
2065 2003-01-21 Martin M. Hunt <hunt@redhat.com>
2067 * Makefile.in (install-gdbtk): Install PNG images too.
2069 2003-01-21 Andrew Cagney <ac131313@redhat.com>
2071 * exec.c (text_start): Delete global variable.
2072 (exec_file_attach): Make text_start local to the function.
2073 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
2074 * valops.c (hand_function_call): Delete code that handles
2075 BEFORE_TEXT_END and AFTER_TEXT_END.
2076 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
2077 of CALL_DUMMY_LOCATION.
2078 * gdbarch.c: Regenerate.
2079 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
2080 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
2081 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2082 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
2083 (text_end): Delete extern declaration.
2085 2003-01-21 Andrew Cagney <ac131313@redhat.com>
2087 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
2088 * blockframe.c (backtrace_below_main): Move to "frame.c".
2089 (frame_chain_valid): Delete check for backtrace_below_main.
2090 (_initialize_blockframe): Delete initialization, move ``set
2091 backtrace-below-main'' command to "frame.c".
2092 (do_flush_frames_sfunc): Delete function.
2093 * frame.c: Include "command.h" and "gdbcmd.h".
2094 (frame_type_from_pc): New function.
2095 (create_new_frame): Use frame_type_from_pc.
2096 (legacy_get_prev_frame): New function.
2097 (get_prev_frame): Rewrite. When an old style frame, call
2098 legacy_get_prev_frame. Otherwize, unwind the PC first.
2099 (_initialize_frame): Add ``set backtrace-below-main'' command.
2100 * Makefile.in (frame.o): Update dependencies.
2102 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2104 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
2105 DEPRECATED_REGISTERS_INFO.
2107 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2109 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
2110 Maintainers'. Update `Various Maintainers'.
2112 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2114 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
2115 * gdbarch.sh (POP_FRAME): Change to function with predicate.
2116 Suppress actual parameters when `-'.
2117 * gdbarch.h, gdbarch.c: Regenerate.
2119 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2121 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
2122 code handling dummy frames.
2124 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2126 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
2127 (struct frame_unwind): Add field pop.
2128 * frame.h (frame_pop): Declare.
2129 * frame.c (frame_saved_regs_pop): New function.
2130 (trad_frame_unwinder): Add frame_saved_regs_pop.
2131 (frame_pop): New function.
2132 * dummy-frame.c (dummy_frame_pop): New function.
2133 (discard_innermost_dummy): New function.
2134 (generic_pop_dummy_frame): Use discard_innermost_dummy.
2135 (dummy_frame_unwind): Add dummy_frame_pop.
2136 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
2137 * valops.c (hand_function_call): Ditto.
2138 * stack.c (return_command): Ditto.
2140 2003-01-18 Andrew Cagney <ac131313@redhat.com>
2142 * cris-tdep.c: Fix function declaration indentation.
2143 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
2144 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
2145 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
2146 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
2147 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
2148 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
2150 2003-01-18 Michael Chastain <mec@shout.net>
2152 * README (Unpacking and Installation -- quick overview):
2153 Warn against ".../gdb-5.3/gdb/configure".
2155 2003-01-18 Andrew Cagney <ac131313@redhat.com>
2157 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
2158 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2159 (struct frame_unwind): Declare opaque.
2160 (dummy_frame_p): Declare function.
2161 * dummy-frame.c (dummy_frame_id_unwind): Make static.
2162 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2163 * dummy-frame.c: Include "frame-unwind.h".
2164 (dummy_frame_p): New function.
2165 (dummy_frame_unwind): New variable.
2166 * frame.c: Include "frame-unwind.h".
2167 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
2168 to use the new unwind field.
2169 (set_unwind_by_pc): Delete function.
2170 (create_new_frame, get_prev_frame): Set unwind field using
2171 frame_unwind_find_by_pc.
2172 (trad_frame_unwind, trad_frame_unwinder): New variables.
2173 * frame.h (trad_frame_unwind): Declare variable.
2174 (frame_id_unwind_ftype): Delete declaration.
2175 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
2176 (struct frame_unwind): Declare opaque.
2177 (struct frame_info): Replace the fields id_unwind, pc_unwind and
2178 register_unwind with a single unwind pointer.
2179 * frame-unwind.h, frame-unwind.c: New files.
2180 * Makefile.in (SFILES): Add frame-unwind.c.
2181 (frame_unwind_h): Define.
2182 (COMMON_OBS): Add frame-unwind.o.
2183 (frame-unwind.o): Specify dependencies.
2184 (frame.o, dummy-frame.o): Update dependencies.
2186 2003-01-18 Andrew Cagney <ac131313@redhat.com>
2188 * ada-valprint.c: Eliminate PTR.
2189 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
2190 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
2191 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
2192 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
2193 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
2194 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
2195 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
2197 2003-01-17 Andrew Cagney <ac131313@redhat.com>
2199 * main.c (captured_main): Don't use PTR.
2200 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
2201 * gdbtypes.c (lookup_primitive_typename): Ditto.
2202 (lookup_struct_elt_type): Ditto.
2203 * f-valprint.c (info_common_command): Ditto.
2204 (list_all_visible_commons): Ditto.
2205 * jv-typeprint.c (java_type_print_base): Ditto.
2207 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
2208 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
2209 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
2210 i386-interix-nat.c and i386-interix-tdep.c. Rename
2211 m68klinux-nat.c and m68klinux-tdep.c. Rename
2212 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
2213 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
2214 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
2215 * main.c (captured_main): Use xfree, not free.
2217 2003-01-16 Andrew Cagney <ac131313@redhat.com>
2219 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
2220 ID back using a parameter.
2221 * frame.c (frame_id_unwind): Update call.
2222 (frame_saved_regs_id_unwind): Update.
2223 * dummy-frame.c (dummy_frame_id_unwind): Update function.
2224 * dummy-frame.h (struct frame_id): Add opaque declaration.
2225 (dummy_frame_id_unwind): Update declaration.
2227 2003-01-15 Andrew Cagney <ac131313@redhat.com>
2229 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
2231 2003-01-15 Stephen P. Smith <ischis2@cox.net>
2233 * MAINTAINERS (Stephen P. Smith): Updated email address.
2235 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
2238 * breakpoint.c (until_break_command): Add new argument. Use it to
2239 decide whether to stop only at the current frame or not.
2240 * breakpoint.h (until_break_command): Update prototype.
2241 * infcmd.c (until_command): Add new argument to until_break_command
2243 (advance_command): New function.
2244 (_initialize_infcmd): Update help string for 'until' command.
2245 Add new 'advance' command.
2247 2003-01-14 David Carlton <carlton@math.stanford.edu>
2249 * linespec.c (decode_line_1): Normalize comments.
2251 (locate_first_half): Ditto.
2252 (decode_compound): Ditto.
2253 (symtab_from_filename): Ditto.
2254 (decode_all_digits): Ditto.
2255 (decode_dollar): Ditto.
2256 (find_methods): Ditto.
2257 (find_toplevel_char): Ditto.
2259 2003-01-13 Andrew Cagney <ac131313@redhat.com>
2261 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
2262 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
2263 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
2264 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
2265 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
2266 * language.c, language.h, m32r-tdep.c: Update copyright.
2267 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
2268 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
2269 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
2270 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
2271 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
2272 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
2274 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
2276 * stabsread.h (process_later, resolve_cfront_continuation):
2278 Update copyright years.
2279 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
2280 Update copyright year.
2281 * dbxread.c(struct cont_elem): Obsolete.
2282 (process_later, process_now): Obsolete functions.
2283 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
2284 Update copyright year.
2285 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
2286 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
2287 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
2288 (parse_partial_symbols): Obsolete cfront support.
2290 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
2292 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
2293 read_cfront_baseclasses, read_cfront_member_functions,
2294 resolve_cfront_continuation,read_cfront_static_fields,
2295 copy_cfront_struct_fields): Obsolete functions.
2296 (define_symbol, read_one_struct_field): Obsolete cfront support.
2297 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
2298 Update Copyright year.
2300 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
2302 * stack.c (print_frame_info, print_stack_frame_base_stub,
2303 print_stack_frame_base, show_and_print_stack_frame_stub,
2304 show_and_print_stack_frame, print_only_stack_frame_stub,
2305 print_only_stack_frame): Delete functions.
2306 (print_stack_frame_stub): Call print_frame_info instead of
2307 print_frame_info_base.
2308 (print_frame_info_base): Rename to print_frame_info.
2309 (backtrace_command_1): Call print_frame_info, instead of
2310 print_frame_info_base.
2311 (current_frame_command): Call print_stack_frame, instead of
2312 print_only_stack_frame.
2313 (frame_command): Call print_stack_frame, instead of
2314 show_and_print_stack_frame.
2315 (up_command): Ditto.
2316 (down_command): Ditto.
2317 * frame.h (print_only_stack_frame): Delete prototype.
2318 * infrun.c (normal_stop): Call print_stack_frame, instead of
2319 show_and_print_stack_frame.
2320 * thread.c (info_threads_command): Call print_stack_frame, instead
2321 of print_only_stack_frame.
2323 2003-01-13 Andrew Cagney <ac131313@redhat.com>
2325 * README (Graphical interface to GDB): Update URL. Point at
2328 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
2331 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2333 * symtab.c (find_pc_sect_line): Don't consider end-of-function
2336 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2338 * thread-db.c (attach_thread): Prototype.
2339 (struct private_thread_info): Remove lwpid. Add thread handle (th),
2340 thread information (ti), and valid flags (th_valid, ti_valid).
2341 (attach_thread): Move target_pid_to_str call to after the thread
2342 is added to GDB's list. Initialize the cache.
2343 (thread_get_info_callback, thread_db_map_id2thr)
2344 (thread_db_get_info): New functions.
2345 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
2346 (thread_db_store_registers, thread_db_thread_alive)
2347 (thread_db_get_thread_local_address): Use them.
2348 (thread_db_pid_to_str): Likewise. Return "Missing" instead
2349 of calling error() for threads in unknown state.
2351 (clear_lwpid_callback): New function.
2352 (thread_db_resume): Use it to clear the cache.
2354 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2356 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
2357 (resume_callback): Remove dead code.
2359 2003-01-13 Andrew Cagney <ac131313@redhat.com>
2361 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
2363 * gdbarch.h, gdbarch.c: Regenerate.
2364 * stack.c (frame_info): Only initialize the saved registers when
2365 FRAME_INIT_SAVED_REGS_P.
2366 * frame.c (frame_saved_regs_register_unwind): Assert
2367 FRAME_INIT_SAVED_REGS_P.
2368 (deprecated_generic_get_saved_register): Ditto.
2370 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2372 * source.c (openp): Squelch warning about "filename".
2374 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2376 * source.c (openp): If the file does not exist don't necessarily
2379 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2382 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
2383 (integer_types_same_name_p): New function.
2384 (rank_one_type): Use it.
2385 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
2387 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2389 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
2391 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
2392 * configure.in: Add --with-sysroot.
2393 * configure: Regenerated.
2394 * main.c (gdb_sysroot): New variable.
2395 (captured_main): Initialize gdb_sysroot.
2396 * defs.h (gdb_sysroot): New extern declaration.
2397 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
2399 2003-01-12 Michael Chastain <mec@shout.net>
2401 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
2403 2003-01-12 Michael Chastain <mec@shout.net>
2405 * top.c (print_gdb_version): Bump copyright year to 2003.
2407 2003-01-12 David Carlton <carlton@bactrian.org>
2409 * linespec.c (symtab_from_filename): Rename variable 's' to
2412 2003-01-12 Andrew Cagney <ac131313@redhat.com>
2414 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
2416 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
2418 2003-01-12 Andrew Cagney <ac131313@redhat.com>
2420 * d10v-tdep.c: Include "gdb_assert.h".
2421 (d10v_store_return_value): Rewrite to match current interface.
2422 (d10v_extract_struct_value_address): Ditto.
2423 (d10v_extract_return_value): Ditto.
2424 (d10v_gdbarch_init): Set store_restore_value,
2425 extract_struct_value_address and extract_return_value.
2427 2003-01-12 J. Brobecker <brobecker@gnat.com>
2429 * hpread.c (set_namestring): New procedure replacing the
2430 SET_NAMESTRING macro.
2431 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
2432 by calls to set_namestring.
2434 2003-01-11 J. Brobecker <brobecker@gnat.com>
2436 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
2437 a compilation warning.
2438 (hpread_process_one_debug_symbol): Likewise.
2440 2003-01-10 David Carlton <carlton@math.stanford.edu>
2442 * linespec.c (decode_line_1): Rename variable 's' to
2444 (decode_all_digits): Rename argument 's' to 'file_symtab'.
2445 (decode_dollar): Ditto.
2446 (decode_variable): Ditto.
2447 (symbol_found): Ditto.
2449 2003-01-09 Michael Chastain <mec@shout.net>
2451 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
2453 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
2455 * win32-nat.c (set_process_privilege): New function.
2456 (child_attach): Call set_process_privilege() to enable the
2457 SE_DEBUG_NAME user privilege if available in process token.
2459 2003-01-10 J. Brobecker <brobecker@gnat.com>
2461 * hpread.c (hpread_process_one_debug_symbol): Fix a small
2462 compilation error in the previous revision.
2464 2003-01-09 David Carlton <carlton@math.stanford.edu>
2466 * linespec.c: Update copyright.
2468 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
2470 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
2472 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
2474 2003-01-09 Andrew Cagney <ac131313@redhat.com>
2476 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
2478 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
2479 (frame_saved_regs_zalloc): Update.
2480 (frame_saved_regs_register_unwind): Update.
2481 (create_new_frame): Update.
2482 (get_prev_frame): Update.
2483 (frame_extra_info_zalloc): Update.
2484 (deprecated_get_frame_saved_regs): Update.
2485 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
2486 * cris-tdep.c: Update comment.
2488 * somsolib.h: Fix function indentation.
2489 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
2490 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
2491 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
2492 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
2493 * somsolib.c, inftarg.c: Remove assignment in if conditional.
2495 * infrun.c (follow_fork): Use ISO C definition.
2496 * expprint.c (print_subexp): Use xfree instead of free.
2497 * charset.c: Include "gdb_string.h" instead of <string.h>.
2498 (register_iconv_charsets): Use ISO C definition.
2499 (host_charset, target_charset): Ditto.
2500 * Makefile.in (charset.o): Update dependencies.
2501 (mi-cmd-env.o): Update dependencies.
2503 2003-01-08 Andrew Cagney <cagney@redhat.com>
2505 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
2508 2003-01-08 Andrew Cagney <ac131313@redhat.com>
2510 * gdb_mbuild.sh: Add --keep option. When specified, keep the
2511 build directories. Save edited gdb output in Mbuild.log. If a
2512 build fails, remove any final GDB executable.
2514 2003-01-08 Andrew Cagney <ac131313@redhat.com>
2516 * gdb_mbuild.sh: Edit the output of `maint print architecture'
2517 replacing hex constants with function names and stripping leading
2518 file name directory prefixes.
2520 2003-01-08 Andrew Cagney <cagney@redhat.com>
2522 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
2525 2003-01-08 David Carlton <carlton@math.stanford.edu>
2527 * linespec.c (decode_line_1): Move code into decode_variable.
2528 (decode_variable): New function.
2530 2003-01-08 Andrew Cagney <ac131313@redhat.com>
2532 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
2534 2003-01-08 Andrew Cagney <cagney@redhat.com>
2536 * cris-tdep.c (cris_frame_init_saved_regs): Use
2537 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
2539 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
2540 (sh64_nofp_frame_init_saved_regs): Ditto.
2541 (sh_fp_frame_init_saved_regs): Ditto.
2542 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
2543 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2544 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2545 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2547 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
2549 * minsyms.c (lookup_minimal_symbol): Update comment.
2550 (lookup_minimal_symbol_text): Update comment. Use the hash table.
2551 (lookup_minimal_symbol_solib_trampoline): Likewise.
2553 2003-01-08 Andrew Cagney <cagney@redhat.com>
2555 * d10v-tdep.c (d10v_init_extra_frame_info): Use
2556 frame_relative_level.
2558 * alpha-tdep.c: Use get_frame_extra_info.
2559 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2560 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
2561 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2562 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
2564 * alpha-tdep.c: Use get_next_frame.
2565 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2566 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
2567 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
2568 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
2569 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
2570 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
2571 * xstormy16-tdep.c: Ditto.
2573 2003-01-07 Andrew Cagney <cagney@redhat.com>
2575 * alpha-tdep.c: Use get_frame_base.
2576 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2577 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
2578 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
2579 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2580 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
2581 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
2582 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
2583 * config/sparc/tm-sparc.h: Ditto.
2585 2003-01-07 Andrew Cagney <cagney@redhat.com>
2587 * frame.c (deprecated_get_frame_context): New function.
2588 (deprecated_set_frame_context): New function.
2589 * frame.h (deprecated_get_frame_context): Declare.
2590 (deprecated_set_frame_context): Declare.
2591 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
2592 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
2594 2003-01-07 Andrew Cagney <cagney@redhat.com>
2596 * frame.c (deprecated_set_frame_next_hack): New function.
2597 (deprecated_set_frame_prev_hack): New function.
2598 * frame.h (deprecated_set_frame_next_hack): Declare.
2599 (deprecated_set_frame_prev_hack): Declare.
2600 * mcore-tdep.c (analyze_dummy_frame): Use
2601 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
2602 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2604 2003-01-07 David Carlton <carlton@math.stanford.edu>
2606 * linespec.c (decode_line_1): Move code into decode_dollar.
2607 (decode_dollar): New function.
2609 2003-01-07 Andrew Cagney <cagney@redhat.com>
2611 * arm-tdep.c (arm_init_extra_frame_info): Use
2612 deprecated_update_frame_base_hack.
2613 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
2614 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2615 (fix_frame_pointer): Ditto.
2616 (mn10300_analyze_prologue): Ditto.
2618 2003-01-07 Andrew Cagney <cagney@redhat.com>
2620 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
2621 extra_info using frame_extra_info_zalloc.
2622 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
2623 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
2624 (sh64_init_extra_frame_info): Ditto.
2625 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
2626 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
2627 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2628 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
2629 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
2630 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
2631 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
2632 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
2633 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
2634 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
2635 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
2636 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
2638 * mn10300-tdep.c (analyze_dummy_frame): Use
2639 deprecated_set_frame_extra_info_hack.
2640 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2642 2003-01-07 J. Brobecker <brobecker@gnat.com>
2644 * mdebugread.c (parse_symbol): Skip stProc entries which storage
2645 class is not scText. These do not define "real" procedures.
2646 (parse_partial_symbols): Likewise.
2648 2003-01-06 Michael Snyder <msnyder@redhat.com>
2650 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
2652 2003-01-06 Andrew Cagney <ac131313@redhat.com>
2654 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
2655 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
2656 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
2657 deprecated_frame_xmalloc_with_cleanup.
2658 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
2659 deprecated_frame_xmalloc.
2660 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
2661 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
2663 2003-01-06 Andrew Cagney <cagney@redhat.com>
2665 * x86-64-linux-tdep.c: Include "osabi.h".
2666 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
2668 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
2670 2003-01-06 Andrew Cagney <cagney@redhat.com>
2672 * MAINTAINERS (Target Instruction Set Architectures): Update
2673 arm-elf. Can be built with -Werror, has been multiarched.
2675 * value.h (unpack_long): Make buffer parameter constant.
2676 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
2677 * scm-lang.h (scm_parse): Ditto.
2678 * defs.h (extract_typed_address, extract_address): Ditto.
2679 (extract_long_unsigned_integer): Ditto.
2680 * inferior.h (unsigned_pointer_to_address): Ditto.
2681 (signed_pointer_to_address): Ditto.
2682 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
2683 * gdbarch.h, gdbarch.c: Regenerate.
2684 * findvar.c (extract_long_unsigned_integer): Update.
2685 (extract_address): Update.
2686 (extract_typed_address): Update.
2687 (unsigned_pointer_to_address): Update.
2688 * values.c (unpack_long): Update.
2689 (unpack_double): Update.
2690 (unpack_pointer): Update.
2691 (unpack_field_as_long): Update.
2692 * d10v-tdep.c (d10v_pointer_to_address): Update.
2693 * avr-tdep.c (avr_pointer_to_address): Update.
2694 * scm-lang.c (scm_unpack): Update.
2695 * findvar.c (signed_pointer_to_address): Update.
2697 2003-01-06 Michal Ludvig <mludvig@suse.cz>
2699 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
2700 since it is in i386-tdep.c.
2702 2003-01-06 J. Brobecker <brobecker@gnat.com>
2704 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
2705 failure introduced in the previous change.
2707 2003-01-05 Michael Chastain <mec@shout.net>
2709 * README: Remove references to deleted remote-*.c files:
2710 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
2711 remote-nrom.c, remote-os9k.c, remote-udi.c.
2713 2003-01-05 Mark Kettenis <kettenis@gnu.org>
2715 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
2716 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
2717 i386_get_longjmp_target.
2719 2003-01-05 Andrew Cagney <ac131313@redhat.com>
2721 * arm-tdep.c (prologue_cache): Change to a pointer.
2722 (_initialize_arm_tdep): Allocate prologue_cache.
2723 (check_prologue_cache): Update.
2724 (save_prologue_cache): Update.
2725 (arm_gdbarch_init): Update.
2727 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2729 * stabsread.c (update_method_name_from_physname): Call complaint()
2732 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2734 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
2735 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
2736 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
2738 * blockframe.c: Include "gdbcmd.h" and "command.h".
2739 (backtrace_below_main): New variable.
2740 (file_frame_chain_valid, func_frame_chain_valid)
2741 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
2742 (generic_func_frame_chain_valid): Remove functions.
2743 (frame_chain_valid, do_flush_frames_sfunc): New functions.
2744 (_initialize_blockframe): New function.
2745 * Makefile.in (blockframe.o): Update dependencies.
2746 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
2747 comment. Call frame_chain_valid ().
2748 * frame.h: Remove old prototypes. Add prototype for
2749 frame_chain_valid and update comments to match.
2750 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
2752 * gdbarch.h: Regenerated.
2753 * gdbarch.c: Regenerated.
2755 * alpha-tdep.c (alpha_gdbarch_init): Don't call
2756 set_gdbarch_frame_chain_valid.
2757 * avr-tdep.c (avr_gdbarch_init): Likewise.
2758 * cris-tdep.c (cris_gdbarch_init): Likewise.
2759 * frv-tdep.c (frv_gdbarch_init): Likewise.
2760 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2761 * i386-tdep.c (i386_svr4_init_abi): Likewise.
2762 (i386_nw_init_abi): Likewise.
2763 (i386_gdbarch_init): Likewise.
2764 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2765 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2766 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2767 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2768 * mips-tdep.c (mips_gdbarch_init): Likewise.
2769 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2770 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
2771 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
2772 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2773 * s390-tdep.c (s390_gdbarch_init): Likewise.
2774 * sh-tdep.c (sh_gdbarch_init): Likewise.
2775 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2776 * v850-tdep.c (v850_gdbarch_init): Likewise.
2777 * vax-tdep.c (vax_gdbarch_init): Likewise.
2778 * x86-64-tdep.c (x86_64_init_abi): Likewise.
2780 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
2781 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
2782 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
2783 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
2784 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
2785 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
2786 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
2787 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
2789 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
2791 * Makefile.in (acconfig_h): Remove incorrect macro.
2793 (osabi.o): Update dependencies.
2794 * configure.tgt: Set gdb_osabi based on target triplet.
2795 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
2796 * configure: Regenerated.
2797 * config.in: Regenerated.
2798 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
2799 (GDB_OSABI_DEFAULT): Define if not already defined.
2800 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
2801 (set_osabi_string): New variables.
2802 (gdbarch_register_osabi): Add new OS ABI to
2803 gdb_osabi_available_names.
2804 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
2805 (set_osabi, show_osabi): New functions.
2806 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
2808 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2810 * arch-utils.c (gdbarch_info_init): Set osabi to
2811 GDB_OSABI_UNINITIALIZED.
2812 * gdbarch.sh: Add osabi to struct gdbarch and to struct
2813 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
2814 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
2815 * gdbarch.c: Regenerated.
2816 * gdbarch.h: Regenerated.
2817 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
2819 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
2820 * osabi.h (enum gdb_osabi): Move to defs.h.
2821 (gdbarch_init_osabi): Update prototype.
2822 * defs.h (enum gdb_osabi): Moved here.
2823 * Makefile.in: Update dependencies.
2825 * alpha-tdep.h: Don't include "osabi.h".
2826 (struct gdbarch_tdep): Remove osabi member.
2827 * alpha-tdep.c: Include "osabi.h".
2828 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2829 iterate over arches. Update call to gdbarch_init_osabi.
2830 (alpha_dump_tdep): Don't dump osabi.
2831 * alpha-linux-tdep.c: Include "osabi.h".
2832 * alpha-osf1-tdep.c: Include "osabi.h".
2833 * alphafbsd-tdep.c: Include "osabi.h".
2834 * alphanbsd-tdep.c: Include "osabi.h".
2836 * arm-tdep.h: Don't include "osabi.h".
2837 (struct gdbarch_tdep): Remove osabi member.
2838 * arm-tdep.c: Include "osabi.h".
2839 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2840 iterate over arches. Update call to gdbarch_init_osabi.
2841 (arm_dump_tdep): Don't dump osabi.
2842 * arm-linux-tdep.c: Include "osabi.h".
2843 * armnbsd-tdep.c: Include "osabi.h".
2845 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
2846 Update call to gdbarch_init_osabi.
2848 * i386-tdep.h: Don't include "osabi.h".
2849 (struct gdbarch_tdep): Remove osabi member.
2850 * i386-tdep.c: Include "osabi.h".
2851 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2852 iterate over arches. Update call to gdbarch_init_osabi.
2853 (i386_dump_tdep): Don't dump osabi.
2854 * i386-linux-tdep.c: Include "osabi.h".
2855 * i386-sol2-tdep.c: Include "osabi.h".
2856 * i386bsd-tdep.c: Include "osabi.h".
2857 * i386gnu-tdep.c: Include "osabi.h".
2858 * i386ly-tdep.c: Include "osabi.h".
2859 * i386nbsd-tdep.c: Include "osabi.h".
2860 * i386obsd-tdep.c: Include "osabi.h".
2862 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
2863 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2864 check osabi when iterating over arches. Update call to
2866 (mips_dump_tdep): Don't dump osabi.
2868 * ns32k-tdep.h: Don't include "osabi.h".
2869 (struct gdbarch_tdep): Remove.
2870 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
2871 gdbarch_lookup_osabi. Don't iterate over arches. Don't
2872 allocate tdep. Update call to gdbarch_init_osabi.
2873 (ns32k_dump_tdep): Remove.
2874 (_initialize_ns32k_tdep): Update call to gdbarch_register.
2875 * ns32knbsd-tdep.c: Include "osabi.h".
2877 * ppc-tdep.h: Don't include "osabi.h".
2878 (struct gdbarch_tdep): Remove osabi member.
2879 * rs6000-tdep.c: Include "osabi.h".
2880 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
2881 osabi when iterating over arches. Update call to
2883 (rs6000_dump_tdep): Don't dump osabi.
2884 * ppc-linux-tdep.c: Include "osabi.h".
2885 * ppcnbsd-tdep.c: Include "osabi.h".
2887 * sh-tdep.h: Don't include "osabi.h".
2888 (struct gdbarch_tdep): Remove osabi member.
2889 * sh-tdep.c: Include "osabi.h".
2890 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2891 iterate over arches. Update call to gdbarch_init_osabi.
2892 (sh_dump_tdep): Don't dump osabi.
2893 * shnbsd-tdep.c: Include "osabi.h".
2895 * sparc-tdep.c: Include "osabi.h".
2896 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2897 iterate over arches. Update call to gdbarch_init_osabi.
2898 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
2901 * vax-tdep.h: Don't include "osabi.h".
2902 (struct gdbarch_tdep): Remove.
2903 * vax-tdep.c: Include "osabi.h".
2904 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2905 iterate over arches. Don't allocate tdep. Update call
2906 to gdbarch_init_osabi.
2907 (vax_dump_tdep): Remove.
2908 (_initialize_vax_tdep): Update call to gdbarch_register.
2910 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2912 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
2914 (breakpoint_re_set_one): Don't fetch the value for a disabled
2917 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2919 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
2920 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
2921 (COERCE_FLOAT_TO_DOUBLE): Remove.
2922 * gdbarch.c: Regenerate.
2923 * gdbarch.h: Regenerate.
2924 * Makefile.in: Remove value_h from gdbarch_h.
2925 * valops.c (coerce_float_to_double): New variable.
2926 (default_coerce_float_to_double): Remove.
2927 (standard_coerce_float_to_double): Remove.
2928 (value_arg_coerce): Use coerce_float_to_double.
2929 (_initialize_valops): Add "set coerce-float-to-double".
2930 * value.h (default_coerce_float_to_double): Remove prototype.
2931 (standard_coerce_float_to_double): Remove prototype.
2933 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
2935 * mdebugread.c (parse_symbol): Likewise.
2936 * stabsread.c (define_symbol): Mark all functions as prototyped.
2938 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
2939 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
2940 set_gdbarch_coerce_float_to_double.
2941 * arm-tdep.c (arm_gdbarch_init): Likewise.
2942 * frv-tdep.c (frv_gdbarch_init): Likewise.
2943 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
2944 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2945 * mips-tdep.c (mips_gdbarch_init): Likewise.
2946 (mips_coerce_float_to_double): Remove.
2947 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2948 (rs6000_coerce_float_to_double): Remove.
2949 * s390-tdep.c (s390_gdbarch_init): Likewise.
2950 * sh-tdep.c (sh_gdbarch_init): Likewise.
2951 (sh_coerce_float_to_double): Remove.
2952 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2953 (sparc_coerce_float_to_double): Remove.
2954 * v850-tdep.c (v850_gdbarch_init): Likewise.
2955 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2956 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
2957 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
2958 (hppa_coerce_float_to_double): Remove prototype.
2959 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
2961 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2963 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
2965 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2967 Suggested by Stewart Brown <sb24@avaya.com>:
2968 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
2969 in recursive calls. Handle TYPE_CODE_TYPEDEF.
2970 (c_type_print_varspec_suffix): Likewise.
2972 2003-01-04 Mark Kettenis <kettenis@gnu.org>
2974 * configure.in: Don't set and AC_SUBST SUBDIRS.
2975 * configure: Regenerated.
2977 * configure.in: Remove code dealing with shared libraries.
2978 * Makefile.in: Remove HLDFLAGS and HLDENV.
2979 * configure: Regenerated.
2981 2003-01-04 Andrew Cagney <ac131313@redhat.com>
2983 * frame.c (deprecated_frame_xmalloc): New function.
2984 (deprecated_set_frame_saved_regs_hack): New function.
2985 (deprecated_set_frame_extra_info_hack): New function.
2986 * frame.h (deprecated_frame_xmalloc): Declare.
2987 (deprecated_set_frame_saved_regs_hack): Declare.
2988 (deprecated_set_frame_extra_info_hack): Declare.
2990 2003-01-04 Mark Kettenis <kettenis@gnu.org>
2992 * configure.in: Move code that provides the --enable-gdbtk option
2993 right after the code that handles the --enable-tui option, and
2995 * configure: Regenerated.
2997 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
2998 AC_CHECK_FUNCS and remove the old check for pread64.
2999 * acinclude.m4 (AC_GNU_SOURCE): New macro.
3000 * acconfig.h (_GNU_SOURCE): Add.
3001 (HAVE_PREAD64): Remove.
3002 * configure, aclocal.m4, config.in: Regenerated.
3004 2003-01-03 Andrew Cagney <ac131313@redhat.com>
3006 * alpha-tdep.c: Use get_frame_saved_regs.
3007 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3008 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3009 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
3010 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
3011 * vax-tdep.c, xstormy16-tdep.c: Ditto.
3013 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3015 * configure.in: Remove all use of the SUBDIRS variable; add
3016 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
3017 code providing the --enable-multi-ice option, and move it right in
3018 front of the code that checks whether gdbserver is supported.
3020 * configure: Regenerated.
3021 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
3024 2003-01-03 Andrew Cagney <cagney@redhat.com>
3026 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
3027 * avr-tdep.c, cris-tdep.c: Ditto.
3028 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3029 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3031 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3033 * configure.in: Remove --enable-netrom option.
3034 * configure: Regenerated.
3036 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3038 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
3039 declaration for `struct re_pattern_buffer' instead.
3040 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
3042 2003-01-03 J. Brobecker <brobecker@gnat.com>
3044 * mdebugread.c (parse_symbol): Count until the stEnd matching
3047 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3049 * configure.in: Remove --with-cpu option.
3050 subscripts. Remove evil changequotes here.
3051 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
3052 * config.in, configure: Regenerated.
3054 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
3055 * configure.in: Cleanup section that sources GDB and BFD configure
3056 subscripts. Remove evil changequotes here.
3057 * config.in, configure: Regenerated.
3059 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3061 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
3062 frame accessor methods.
3063 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3064 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3065 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
3066 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
3067 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3068 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3069 * z8k-tdep.c: Ditto.
3071 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3073 * configure.in: Remove UI_OUT configuration code.
3074 * ada-lang.c: Update assuming UI_OUT is always true.
3075 * Makefile.in (UIOUT_CFLAGS): Remove.
3076 * configure: Regenerated.
3077 * TODO: Remove blurb about elimination of -DUI_OUT.
3079 * configure.in: Move code that provides the --enable-gdbcli,
3080 --enable-gdbmi options right before the code that handles the
3081 --enable-tui option. Polish a bit.
3082 * configure: Regenerated.
3084 * configure.in: Rewrite check for GNU regex and the
3085 --without-included regex option, and move it into the "Checks for
3086 library functions" section. This makes us use the system regex
3087 again by default on systems with version 2 of the GNU C library.
3088 This was apparently broken.
3089 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
3090 * acconfig.h (USE_INCLUDED_REGEX): Remove.
3091 * config.in, configure: Regenerated.
3093 * configure.in: Move code that provides the --enable-tui option
3094 before the "Checks for libraries" section. Polish the code
3095 somewhat and set need_curses to yes if we build the TUI. Rewrite
3096 code that looks for a library providing termcap functionality to
3097 match more closely what's done in the Readline library, and move
3098 it into to the "Checks for libraries" section.
3099 * configure: Regenerated.
3100 * Makefile.in (TERMCAP): Remove variable.
3101 * config/i386/go32.mh (TERMCAP): Remove variable.
3103 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3105 * MAINTAINERS: Mention gdb_mbuild.sh.
3106 * gdb_mbuild.sh: Rewrite.
3108 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3110 * configure.in: Fix typo in last change.
3111 * config.in, configure: Regenerated.
3113 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3115 * valarith.c (value_binop): Delete obsolete code and comments.
3116 * configure.host: Ditto.
3117 * buildsym.h (make_blockvector): Ditto.
3118 * buildsym.c (make_blockvector): Ditto.
3119 * defs.h (enum language): Ditto.
3120 (chill_demangle): Ditto.
3121 * elfread.c (elf_symtab_read): Ditto.
3122 * dwarfread.c (CHILL_PRODUCER): Ditto.
3123 (set_cu_language): Ditto.
3124 (handle_producer): Ditto.
3125 * expprint.c (print_subexp): Ditto.
3126 * gdbtypes.c (chill_varying_type): Ditto.
3127 * gdbtypes.h (builtin_type_chill_bool): Ditto.
3128 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
3129 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
3130 (chill_varying_type): Ditto.
3131 * language.h (_LANG_chill): Ditto.
3132 * language.c (binop_result_type, integral_type): Ditto.
3133 (character_type, string_type, structured_type): Ditto.
3134 (lang_bool_type, binop_type_check): Ditto.
3135 * stabsread.h (os9k_stabs): Ditto.
3136 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
3137 (define_symbol, read_type, read_struct_fields): Ditto.
3138 (read_array_type, read_enum_type, read_huge_number): Ditto.
3139 (read_range_type, start_stabs): Ditto.
3140 * symfile.c (init_filename_language_table): Ditto.
3141 (add_psymbol_with_dem_name_to_list): Ditto.
3142 * symtab.c (symbol_init_language_specific): Ditto.
3143 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
3144 * symtab.h (struct general_symbol_info): Ditto.
3145 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3146 * typeprint.c (typedef_print): Ditto.
3147 * utils.c (fprintf_symbol_filtered): Ditto.
3148 * valops.c (value_cast, search_struct_field, value_slice): Delete
3150 (varying_to_slice): Delete function.
3151 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
3152 (varying_to_slice): Delete declaration.
3153 * MAINTAINERS: Update.
3155 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3157 * configure.in: Reorganize "Checks for library functions section"
3158 a bit. Remove check for `btowc' and `isascii' functions.
3159 * configure: Regenerated.
3161 * acconfig.h (_MSE_INT_H): Remove.
3162 * configure.in: Create "Checks for header files" section, and move
3163 appropriate tests there. Don't check for objlist.h, wchar.h,
3164 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
3165 misdetection fix. Also add "Checks for types", "Checks for
3166 compiler characteristics" and "Checks for library functions"
3168 * config.in, configure: Regenerated.
3170 * configure.in: Create "Checks for programs" section, and move
3171 appropriate tests there.
3173 2003-01-01 Mark Kettenis <kettenis@gnu.org>
3175 * configure.in: Create "Checks for libraries" section, and move
3176 appropriate tests there. Cleanup check for wctype in libw. Use
3177 AC_SEARCH_LIBS to see whether we need libsocket.
3178 * configure: Regenerated.
3180 For older changes see ChangeLog-2002
3186 version-control: never