1 2003-03-17 J. Brobecker <brobecker@gnat.com>
3 * hppa-tdep.c (gdb_assert.h): Add missing #include.
4 * somsolib.c (gdb_assert.h): Likewise.
5 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
6 (somsolib.o): Likewise.
8 2003-03-17 Andrew Cagney <cagney@redhat.com>
10 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11 BFD. Simplify setting of di.endian.
13 2003-03-17 Andrew Cagney <cagney@redhat.com>
15 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
16 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
18 From Elena Zannoni <ezannoni@redhat.com>
19 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
20 vector and floating-point parameters.
21 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
23 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
25 2003-03-17 Fernando Nasser <fnasser@redhat.com>
27 * MAINTAINERS: Remove my name from several maintainership roles.
29 2003-03-17 Andrew Cagney <cagney@redhat.com>
31 Fix frame off-by-one bug.
32 * frame-unwind.h (frame_this_id_ftype): Replace
33 frame_unwind_id_ftype.
34 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
35 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
37 * frame-unwind.c (frame_unwind_find_by_pc): Return
38 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
40 * dummy-frame.c (cached_find_dummy_frame): Delete function.
41 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
42 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
43 (dummy_frame_unwind): Update.
44 * sentinel-frame.c (sentinel_frame_prev_register): Replace
45 sentinel_frame_register_unwind.
46 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
47 (sentinel_frame_unwinder): Update.
48 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
49 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
50 * frame.c (create_sentinel_frame): Update. Initialize
51 "prologue_cache" instead of "unwind_cache".
52 (frame_register_unwind): Call this frame's prev_register with the
53 next frame and this frame's prologue cache.
54 (get_prev_frame): Simplify. Always call prev frame's this_id with
55 this frame and prev frame's prologue cache. Document that this
56 call is shifted one to the left when compared to the
57 frame_register_unwind call.
58 (legacy_saved_regs_prev_register): Replace
59 frame_saved_regs_register_unwind.
60 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
61 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
62 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
63 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
64 (d10v_frame_unwind): Update.
65 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
66 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
67 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
68 "saved_regs" with "this_saved_regs".
70 2003-03-16 Andrew Cagney <cagney@redhat.com>
72 * frame.c (frame_pop): Don't call target_store_registers. Fix
73 problem reported by Mark Kettenis.
75 2003-03-16 Mark Kettenis <kettenis@gnu.org>
77 * i386-tdep.c (i386_register_type): Renamed from
78 i386_register_virtual_type. Adjust function signature.
79 (i386_gdbarch_init): Set register_type instead of
80 deprecated_max_register_raw_size,
81 deprecated_max_register_virtual_size and register_virtual_type.
83 2003-03-14 Andrew Cagney <cagney@redhat.com>
85 * frame.c (get_prev_frame): When a legacy frame, always call
86 legacy_get_prev_frame. Simplify unwind code using assumption that
88 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
89 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
90 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
92 2003-03-14 Andrew Cagney <cagney@redhat.com>
94 * frame.c (get_saved_register): Delete function.
95 * frame.h (get_saved_register): Delete declaration.
96 * xstormy16-tdep.c: Update comment.
97 * regcache.h: Update comments.
98 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
99 get_saved_register and extract_address, use
100 frame_read_unsigned_register.
101 (sparc_frame_saved_pc): Ditto.
102 (sparc_get_saved_register): Instead of get_saved_register, use
104 (sparc_pop_frame): Ditto.
105 * findvar.c: Update comments.
106 (value_of_register): Call frame_register instead of
108 (value_from_register): Ditto.
109 * config/sparc/tm-sparc.h: Update comment.
110 * breakpoint.c: Update comment.
112 2003-03-14 Andrew Cagney <cagney@redhat.com>
114 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
116 * gdbarch.h, gdbarch.c: Re-generate.
117 * frame.h: Update comments.
118 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
119 * x86-64-tdep.c (x86_64_init_abi): Update.
120 * sparc-tdep.c (sparc_gdbarch_init): Update.
121 * sh-tdep.c (sh_gdbarch_init): Update.
122 * mips-tdep.c (mips_gdbarch_init): Update.
123 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
124 * cris-tdep.c (cris_gdbarch_init): Update.
125 * ia64-tdep.c (ia64_gdbarch_init): Update.
126 * frame.c (frame_register): Update.
127 (get_saved_register): Update.
128 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
130 2003-03-13 Andrew Cagney <cagney@redhat.com>
132 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
133 * gdbarch.h, gdbarch.c: Regenerate.
134 * valops.c (hand_function_call): Update comment.
135 * stack.c (return_command): Update comment.
136 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
137 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
138 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
139 * x86-64-tdep.c (x86_64_init_abi): Update.
140 * vax-tdep.c (vax_gdbarch_init): Update.
141 * v850-tdep.c (v850_gdbarch_init): Update.
142 * sparc-tdep.c (sparc_gdbarch_init): Update.
143 * sh-tdep.c (sh_gdbarch_init): Update.
144 * s390-tdep.c (s390_gdbarch_init): Update.
145 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
146 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
147 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
148 * mips-tdep.c (mips_gdbarch_init): Update.
149 * mcore-tdep.c (mcore_gdbarch_init): Update.
150 * m68k-tdep.c (m68k_gdbarch_init): Update.
151 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
152 * ia64-tdep.c (ia64_gdbarch_init): Update.
153 * i386-tdep.c (i386_gdbarch_init): Update.
154 * hppa-tdep.c (hppa_gdbarch_init): Update.
155 * h8300-tdep.c (h8300_gdbarch_init): Update.
156 * frv-tdep.c (frv_gdbarch_init): Update.
157 * cris-tdep.c (cris_gdbarch_init): Update.
158 * avr-tdep.c (avr_gdbarch_init): Update.
159 * arm-tdep.c (arm_gdbarch_init): Update.
160 * alpha-tdep.c (alpha_gdbarch_init): Update.
162 2003-03-13 Andrew Cagney <cagney@redhat.com>
164 * frame.c (legacy_frame_p): New function.
165 (get_prev_frame): Use legacy_frame_p.
166 * frame.h (legacy_frame_p): Declare.
168 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
170 * MAINTAINERS (write after approval): Alphabetically
173 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
175 * MAINTAINERS (write after approval): Add myself.
177 2003-03-12 Andrew Cagney <cagney@redhat.com>
179 * frame.c (get_prev_frame): Rename the frame parameter to
181 (get_next_frame, legacy_get_prev_frame): Ditto.
183 2003-03-12 Andrew Cagney <cagney@redhat.com>
185 * frame.c (get_current_frame): Check target_has_registers before
186 checking target_has_stack.
187 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
188 instead of deprecated_selected_frame.
189 * findvar.c (value_of_register): Pass "frame", not
190 deprecated_selected_frame, to value_of_builtin_reg.
192 2003-03-12 Andrew Cagney <cagney@redhat.com>
194 * regcache.c (regcache_cooked_write_signed): New function.
195 (regcache_cooked_write_unsigned): New function.
196 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
197 (regcache_cooked_read_signed): Fix regnum in range assertion.
198 * regcache.h (regcache_cooked_write_signed): Declare.
199 (regcache_cooked_write_unsigned): Declare.
201 2003-03-12 Andrew Cagney <cagney@redhat.com>
203 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
204 * gdbarch.h, gdbarch.c: Re-generate.
205 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
206 * x86-64-tdep.h: Update.
207 * x86-64-tdep.c (x86_64_init_abi): Update.
208 * v850-tdep.c (v850_gdbarch_init): Update.
209 * sparc-tdep.c (sparc_gdbarch_init): Update.
210 * sh-tdep.c (sh_gdbarch_init): Update.
211 * s390-tdep.c (s390_gdbarch_init): Update.
212 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
213 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
214 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
215 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
216 * mips-tdep.c (mips_gdbarch_init): Update.
217 * mcore-tdep.c (mcore_gdbarch_init): Update.
218 * m68k-tdep.c (m68k_gdbarch_init): Update.
219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
220 * ia64-tdep.c (ia64_gdbarch_init): Update.
221 * i386-tdep.c (i386_gdbarch_init): Update.
222 * i386-interix-tdep.c (i386_interix_init_abi): Update.
223 * hppa-tdep.c (hppa_gdbarch_init): Update.
224 * h8300-tdep.c (h8300_gdbarch_init): Update.
225 * frv-tdep.c (frv_gdbarch_init): Update.
226 * cris-tdep.c (cris_gdbarch_init): Update.
227 * avr-tdep.c (avr_gdbarch_init): Update.
228 * arm-tdep.c (arm_gdbarch_init): Update.
229 * alpha-tdep.c (alpha_gdbarch_init): Update.
230 * sh-tdep.c (sh_init_extra_frame_info): Update.
231 (sh64_init_extra_frame_info): Update.
232 * ns32knbsd-nat.c (frame_num_args): Update.
233 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
234 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
235 (xstormy16_frame_chain_valid): Update.
236 * vax-tdep.c (vax_saved_pc_after_call): Update.
237 * v850-tdep.c (v850_frame_chain): Update.
238 (v850_pop_frame): Update.
239 (v850_init_extra_frame_info): Update.
240 * sparc-tdep.c (setup_arbitrary_frame): Update.
241 * ns32k-tdep.c (umax_frame_num_args): Update.
242 * s390-tdep.c (s390_pop_frame_regular): Update.
243 * mn10300-tdep.c (mn10300_frame_chain): Update.
244 (mn10300_pop_frame_regular): Update.
245 (mn10300_init_extra_frame_info): Update.
246 * mips-tdep.c (mips_init_frame_pc_first): Update.
247 (mips_frame_chain): Update.
248 (mips_pop_frame): Update.
249 * mcore-tdep.c (mcore_frame_chain): Update.
250 (mcore_pop_frame): Update.
251 (mcore_init_extra_frame_info): Update.
252 * arch-utils.c (init_frame_pc_default): Update.
253 * m68k-tdep.c (isi_frame_num_args): Update.
254 (delta68_frame_num_args): Update.
255 (news_frame_num_args): Update.
256 * ia64-tdep.c (ia64_pop_frame_regular): Update.
257 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
258 (alpha_frame_chain): Update.
259 (alpha_pop_frame): Update.
260 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
261 (hppa_init_extra_frame_info): Update.
262 (hppa_frame_chain): Update.
263 (hppa_frame_chain_valid): Update.
264 * cris-tdep.c (cris_init_extra_frame_info): Update.
265 * avr-tdep.c (avr_init_extra_frame_info): Update.
266 * arm-tdep.c (arm_frame_chain_valid): Update.
267 (arm_init_extra_frame_info): Update.
268 (arm_pop_frame): Update.
269 * frame.c (frame_pc_unwind): Update.
270 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
271 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
272 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
273 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
274 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
275 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
277 2003-03-12 Andrew Cagney <cagney@redhat.com>
279 Eliminate the need for POP_FRAME.
280 * frame.c (do_frame_unwind_register): New function.
281 (frame_pop): When no POP_FRAME, pop the frame using register
282 unwind and a scratch regcache.
283 (frame_saved_regs_pop): Delete function.
284 (trad_frame_unwinder): Update.
285 * d10v-tdep.c (d10v_frame_pop): Delete function.
286 (d10v_frame_unwind): Update.
287 * sentinel-frame.c (sentinel_frame_pop): Delete function.
288 (sentinel_frame_unwinder): Update.
289 * dummy-frame.c (dummy_frame_pop): Delete function.
290 (dummy_frame_unwind): Update.
291 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
292 (struct frame_unwind): Update.
294 2003-03-11 Kevin Buettner <kevinb@redhat.com>
296 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
297 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
298 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
299 Do range checks on register number obtained from debugging info.
300 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
301 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
302 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
304 (do_fp_register_row): Fix typo which caused double type to be
305 used when attempting to unpack a float.
307 2003-03-11 J. Brobecker <brobecker@gnat.com>
309 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
311 2003-03-11 Andrew Cagney <cagney@redhat.com>
313 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
314 frame. Problem found by Corinna Vinschen.
316 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
318 * doublest.c (floatformat_from_length): Accept also
319 the real size of 'long double' type.
321 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
323 From Klee Dienes <kdienes@apple.com>:
324 * breakpoint.c (bpstat_copy): Copy the command lines as well
325 as the old value, to match what is freed in bpstat_clear.
327 2003-03-10 David Carlton <carlton@math.stanford.edu>
329 * minsyms.c (add_minsym_to_hash_table): Replace
330 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
331 (compare_minimal_symbols, compact_minimal_symbols)
332 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
333 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
334 of DEPRECATED_SYMBOL_MATCHES_NAME.
335 (lookup_minimal_symbol_solib_trampoline): Ditto.
337 2003-03-10 Andrew Cagney <cagney@redhat.com>
339 * regcache.h (regcache_cooked_read_ftype): Define.
340 (regcache_save, regcache_restore): Add a cooked_read parameter.
341 * regcache.c (regcache_save, regcache_restore): Update.
342 (do_cooked_read): New function.
343 (regcache_cpy): Pass do_cooked_read to regcache_save and
346 2003-03-10 Andrew Cagney <cagney@redhat.com>
348 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
349 * gdbarch.h, gdbarch.c: Re-generate.
350 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
351 * x86-64-tdep.h: Update.
352 * x86-64-tdep.c (x86_64_init_abi): Update.
353 * v850-tdep.c (v850_gdbarch_init): Update.
354 * sparc-tdep.c (sparc_gdbarch_init): Update.
355 * sh-tdep.c (sh_gdbarch_init): Update.
356 * s390-tdep.c (s390_gdbarch_init): Update.
357 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
358 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
359 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
360 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
361 * mips-tdep.c (mips_gdbarch_init): Update.
362 * mcore-tdep.c (mcore_gdbarch_init): Update.
363 * m68k-tdep.c (m68k_gdbarch_init): Update.
364 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
365 * ia64-tdep.c (ia64_gdbarch_init): Update.
366 * i386-tdep.c (i386_gdbarch_init): Update.
367 * i386-interix-tdep.c (i386_interix_init_abi): Update.
368 * hppa-tdep.c (hppa_gdbarch_init): Update.
369 * h8300-tdep.c (h8300_gdbarch_init): Update.
370 * frv-tdep.c (frv_gdbarch_init): Update.
371 * cris-tdep.c (cris_gdbarch_init): Update.
372 * avr-tdep.c (avr_gdbarch_init): Update.
373 * arm-tdep.c (arm_gdbarch_init): Update.
374 * alpha-tdep.c (alpha_gdbarch_init): Update.
375 * sh-tdep.c (sh_init_extra_frame_info): Update.
376 (sh64_init_extra_frame_info): Update.
377 * ns32knbsd-nat.c (frame_num_args): Update.
378 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
379 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
380 (xstormy16_frame_chain_valid): Update.
381 * vax-tdep.c (vax_saved_pc_after_call): Update.
382 * v850-tdep.c (v850_frame_chain): Update.
383 (v850_pop_frame): Update.
384 (v850_init_extra_frame_info): Update.
385 * sparc-tdep.c (setup_arbitrary_frame): Update.
386 * ns32k-tdep.c (umax_frame_num_args): Update.
387 * s390-tdep.c (s390_pop_frame_regular): Update.
388 * mn10300-tdep.c (mn10300_frame_chain): Update.
389 (mn10300_pop_frame_regular): Update.
390 (mn10300_init_extra_frame_info): Update.
391 * mips-tdep.c (mips_init_frame_pc_first): Update.
392 (mips_frame_chain): Update.
393 (mips_pop_frame): Update.
394 * mcore-tdep.c (mcore_frame_chain): Update.
395 (mcore_pop_frame): Update.
396 (mcore_init_extra_frame_info): Update.
397 * arch-utils.c (init_frame_pc_default): Update.
398 * m68k-tdep.c (isi_frame_num_args): Update.
399 (delta68_frame_num_args): Update.
400 (news_frame_num_args): Update.
401 * ia64-tdep.c (ia64_pop_frame_regular): Update.
402 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
403 (alpha_frame_chain): Update.
404 (alpha_pop_frame): Update.
405 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
406 (hppa_init_extra_frame_info): Update.
407 (hppa_frame_chain): Update.
408 (hppa_frame_chain_valid): Update.
409 * cris-tdep.c (cris_init_extra_frame_info): Update.
410 * avr-tdep.c (avr_init_extra_frame_info): Update.
411 * arm-tdep.c (arm_frame_chain_valid): Update.
412 (arm_init_extra_frame_info): Update.
413 (arm_pop_frame): Update.
414 * frame.c (frame_pc_unwind): Update.
415 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
416 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
417 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
418 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
419 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
420 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
422 2003-03-10 Andrew Cagney <cagney@redhat.com>
424 * gdbarch.sh (gdbarch_unwind_pc): New method.
425 * gdbarch.h, gdbarch.c: Regenerate.
426 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
427 but use read_pc and FRAME_SAVED_PC as fall backs.
428 (frame_saved_regs_pc_unwind): Delete function.
429 (trad_frame_unwinder): Update.
430 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
431 (struct frame_unwind): Update.
432 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
433 (dummy_frame_unwind): Update.
434 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
435 (sentinel_frame_unwinder): Update.
436 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
437 (d10v_frame_unwind): Update.
438 (d10v_unwind_pc): New function.
439 (d10v_gdbarch_init): Set unwind_pc.
441 2003-03-10 Andrew Cagney <cagney@redhat.com>
443 * gdbarch.h: Re-generate.
445 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
447 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
450 2003-03-08 Mark Kettenis <kettenis@gnu.org>
452 * gdbarch.sh (save_dummy_frame_tos): Add comment.
454 2003-03-08 Andrew Cagney <cagney@redhat.com>
456 * cli-out.c: Update copyright.
457 (cli_out_data): Define typedef. Use instead of ui_out_data.
459 2003-03-08 Andrew Cagney <cagney@redhat.com>
461 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
464 2003-03-07 Andrew Cagney <cagney@redhat.com>
466 * gdbarch.sh: Don't generate two macro definitions when an
467 undefined macro taking no arguments.
468 * gdbarch.h: Regenerate.
470 2002-03-07 Michal Ludvig <mludvig@suse.cz>
472 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
473 (x86_64_unwind_dummy_id): New functions.
474 (x86_64_init_abi): Register these two new functions.
476 2003-03-07 Michal Ludvig <mludvig@suse.cz>
478 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
479 (x86_64_skip_prologue): Move prologue detection to
481 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
483 2003-03-05 Andrew Cagney <cagney@redhat.com>
485 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
486 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
487 * frame.c (get_prev_frame): Restructure the frame ID unwind code
488 to use unwind_dummy_id when a dummy frame.
489 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
491 * gdbarch.h, gdbarch.c: Regneerate.
493 2003-03-05 Andrew Cagney <cagney@redhat.com>
495 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
496 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
497 Do not use d10v_read_sp or d10v_read_fp when obtaining register
500 2003-03-05 Andrew Cagney <cagney@redhat.com>
502 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
503 (struct d10v_unwind_cache): Delete field "frameless". Replace
504 "next_addr" with "sp_offset". Add "r11_offset".
505 (d10v_frame_unwind_cache): Update.
506 (prologue_find_regs): Update. When "mv r11, sp", save the
507 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
508 RN was saved in r11_offset.
510 2003-03-05 Andrew Cagney <cagney@redhat.com>
512 * frame.c (deprecated_update_frame_pc_hack): Also update the the
513 cached PC value in the next frame.
515 2003-03-05 Andrew Cagney <cagney@redhat.com>
517 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
518 "id_unwind_cache" with "id".
519 (frame_id_unwind): Delete declaration.
520 * frame.c (frame_id_unwind): Delete function.
521 (get_prev_frame): Call the frame id unwind method directly. Store
522 the returned next frame's ID value in NEXT_FRAME. Note that there
523 is a problem with the wrong unwind ID being called with the wrong
526 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
528 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
530 2003-03-05 James Ingham <jingham@apple.com>
531 Daniel Jacobowitz <drow@mvista.com>
533 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
534 (auto_cp_abi): New variable.
535 (current_cp_abi, num_cp_abis): Make static.
536 (CP_ABI_MAX): Define.
537 (cp_abis): Turn into an array.
538 (value_virtual_fn_field): Fix formatting.
539 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
541 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
542 (list_cp_abis, _initialize_cp_abi): New functions.
543 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
544 declarations for cp_abis, num_cp_abis, current_cp_abi, and
545 switch_to_cp_abi. Update prototype for register_cp_abi.
546 * Makefile.in (cp-abi.o): Update dependencies.
547 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
548 instead of switch_to_cp_abi.
549 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
551 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
553 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
555 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
557 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
558 * dwarf2loc.c: Include "regcache.h".
559 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
561 * Makefile.in (dwarf2loc.o): Update dependencies.
563 2003-03-04 Theodore A. Roth <troth@openavr.org>
565 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
566 number of io registers reported by remote target is not a multiple of
569 2003-03-04 David Carlton <carlton@math.stanford.edu>
571 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
572 (lookup_symbol_aux_psymtabs): Update call to
573 lookup_partial_symbol.
574 (lookup_transparent_type, find_main_psymtab)
575 (make_symbol_overload_list): Ditto.
577 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
579 * MAINTAINERS (Write after approval): Update my email address.
581 2003-03-03 Andrew Cagney <cagney@redhat.com>
583 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
584 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
585 predicate. Replace MAX_REGISTER_RAW_SIZE.
586 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
587 MAX_REGISTER_VIRTUAL_SIZE.
588 * regcache.c (legacy_max_register_raw_size): New function.
589 (legacy_max_register_virtual_size): New function.
590 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
591 (MAX_REGISTER_RAW_SIZE): Define.
592 (legacy_max_register_raw_size): Declare.
593 (legacy_max_register_virtual_size): Declare.
594 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
595 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
596 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
597 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
598 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
599 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
600 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
601 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
602 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
603 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
604 * vax-tdep.c (vax_gdbarch_init): Update.
605 * v850-tdep.c (v850_gdbarch_init): Update.
606 * sparc-tdep.c (sparc_gdbarch_init): Update.
607 * sh-tdep.c (sh_gdbarch_init): Update.
608 * s390-tdep.c (s390_gdbarch_init): Update.
609 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
610 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
611 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
612 * mips-tdep.c (mips_gdbarch_init): Update.
613 * mcore-tdep.c (mcore_gdbarch_init): Update.
614 * m68k-tdep.c (m68k_gdbarch_init): Update.
615 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
616 * ia64-tdep.c (ia64_gdbarch_init): Update.
617 * i386-tdep.c (i386_gdbarch_init): Update.
618 * hppa-tdep.c (hppa_gdbarch_init): Update.
619 * h8300-tdep.c (h8300_gdbarch_init): Update.
620 * frv-tdep.c (frv_gdbarch_init): Update.
621 * cris-tdep.c (cris_gdbarch_init): Update.
622 * avr-tdep.c (avr_gdbarch_init): Update.
623 * arm-tdep.c (arm_gdbarch_init): Update.
624 * alpha-tdep.c (alpha_gdbarch_init): Update.
625 * d10v-tdep.c (d10v_gdbarch_init): Do not set
626 max_register_raw_size or max_register_virtual_size.
628 2003-03-03 David Carlton <carlton@math.stanford.edu>
630 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
631 SYMBOL_MATCHES_NAME, add comment.
632 (SYMBOL_MATCHES_NATURAL_NAME): New.
633 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
634 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
635 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
636 * symtab.c (lookup_partial_symbol): Use
637 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
639 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
643 2003-03-03 David Carlton <carlton@math.stanford.edu>
645 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
646 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
647 by regexp matching against SYMBOL_NATURAL_NAME.
649 2003-03-03 David Carlton <carlton@math.stanford.edu>
651 * linespec.c (find_method): Extract code into collect_methods.
652 (collect_methods): New.
654 2003-03-02 Mark Kettenis <kettenis@gnu.org>
656 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
659 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
660 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
662 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
664 * arch-utils.c (generic_register_byte): Fix to use the loop index
665 and not regnum when summing the size of all registers up to regnum.
667 2003-03-01 Andrew Cagney <cagney@redhat.com>
669 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
670 FRAME_INIT_SAVED_REGS.
671 * gdbarch.h, gdbarch.c: Regenerate.
672 * stack.c (frame_info): Update.
673 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
674 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
675 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
676 * ns32k-tdep.c (ns32k_pop_frame): Update.
677 * mips-tdep.c (mips_pop_frame): Update.
678 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
679 * ia64-tdep.c (ia64_frame_chain): Update.
680 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
681 (ia64_frameless_function_invocation): Update.
682 (ia64_init_extra_frame_info): Update.
683 (ia64_pop_frame_regular): Update.
684 * frame.h (struct frame_info): Update comment.
685 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
686 * frame.c (frame_saved_regs_register_unwind): Update.
687 (frame_saved_regs_register_unwind): Update.
688 (deprecated_generic_get_saved_register): Update.
689 * cris-tdep.c: Update comment.
690 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
692 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
693 * x86-64-tdep.c (x86_64_init_abi): Update.
694 * vax-tdep.c (vax_gdbarch_init): Update.
695 * v850-tdep.c (v850_gdbarch_init): Update.
696 * sparc-tdep.c (sparc_gdbarch_init): Update.
697 * sh-tdep.c (sh_gdbarch_init): Update.
698 * s390-tdep.c (s390_gdbarch_init): Update.
699 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
700 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
701 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
702 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
703 * mips-tdep.c (mips_gdbarch_init): Update.
704 * mcore-tdep.c (mcore_gdbarch_init): Update.
705 * m68k-tdep.c (m68k_gdbarch_init): Update.
706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
707 * ia64-tdep.c (ia64_gdbarch_init): Update.
708 * i386-tdep.c (i386_gdbarch_init): Update.
709 * frv-tdep.c (frv_gdbarch_init): Update.
710 * avr-tdep.c (avr_gdbarch_init): Update.
711 * arm-tdep.c (arm_gdbarch_init): Update.
712 * alpha-tdep.c (alpha_gdbarch_init): Update.
714 2003-03-01 Andrew Cagney <cagney@redhat.com>
716 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
717 option enum and switch. When no windows, set the interpreter to
720 2003-03-01 Andrew Cagney <cagney@redhat.com>
722 * main.c (captured_main): Replace magic option characters with an
725 2003-03-01 Andrew Cagney <cagney@redhat.com>
727 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
728 INIT_EXTRA_FRAME_INFO.
729 * gdbarch.h, gdbarch.c: Regenerate.
730 * arm-tdep.c: Update comments.
731 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
732 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
733 * frame.h, avr-tdep.c: Ditto.
734 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
735 (create_new_frame, legacy_get_prev_frame): Ditto.
736 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
737 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
738 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
739 deprecated_init_extra_frame_info instead of init_extra_frame_info.
740 * x86-64-tdep.c (x86_64_init_abi): Ditto.
741 * v850-tdep.c (v850_gdbarch_init): Ditto.
742 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
743 * sh-tdep.c (sh_gdbarch_init): Ditto.
744 * s390-tdep.c (s390_gdbarch_init): Ditto.
745 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
746 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
747 * mips-tdep.c (mips_gdbarch_init): Ditto.
748 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
749 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
750 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
751 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
752 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
753 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
754 * frv-tdep.c (frv_gdbarch_init): Ditto.
755 * cris-tdep.c (cris_gdbarch_init): Ditto.
756 * avr-tdep.c (avr_gdbarch_init): Ditto.
757 * arm-tdep.c (arm_gdbarch_init): Ditto.
758 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
759 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
761 2003-03-01 Andrew Cagney <cagney@redhat.com>
763 * gdbarch.sh (register_type): New function with predicate.
764 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
765 * gdbarch.h, gdbarch.c: Re-generate.
766 * arch-utils.c (generic_register_byte): Use generic_register_size.
767 (generic_register_size): When available, use
768 gdbarch_register_type.
769 * regcache.c (init_regcache_descr): When available, initialize the
770 register type array using gdbarch_register_type. If the
771 architecture supplies gdbarch_register_type, do not use the legacy
773 * d10v-tdep.c (d10v_register_type): Replace
774 d10v_register_virtual_type.
775 (d10v_gdbarch_init): Set register_type instead of
776 register_virtual_type.
778 2003-03-01 Andrew Cagney <cagney@redhat.com>
780 * Makefile.in (ax-gdb.o): Update dependencies.
781 * ax-gdb.c: Include "regcache.h".
782 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
783 * findvar.c (value_of_register): Ditto.
784 * infcmd.c (default_print_registers_info): Ditto.
786 2003-03-01 Mark Kettenis <kettenis@gnu.org>
788 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
789 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
791 2003-03-01 Mark Kettenis <kettenis@gnu.org>
793 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
796 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
798 * Makefile.in (dwarf2loc.o): Update dependencies.
799 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
800 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
801 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
802 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
803 (locexpr_tracepoint_var_ref): New function.
804 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
806 2003-02-28 Andrew Cagney <cagney@redhat.com>
808 * regcache.c (register_size): New function.
809 * regcache.h (register_size): Declare
810 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
811 max_register_size instead of MAX_REGISTER_RAW_SIZE.
813 2003-02-28 David Carlton <carlton@math.stanford.edu>
815 * linespec.c (decode_compound): Extract code into find_method.
818 2003-02-28 J. Brobecker <brobecker@gnat.com>
820 * Makefile.in: Add rules to build and link in observer.o.
822 2003-02-27 J. Brobecker <brobecker@gnat.com>
824 * observer.c: Minor comments edits.
826 2003-02-27 J. Brobecker <brobecker@gnat.com>
828 * observer.h, observer.c: New file.
830 2003-02-27 Andrew Cagney <cagney@redhat.com>
832 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
834 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
836 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
837 (M6812_OP_STS_EXT): Likewise.
838 (m6811_prologue): Use the above to recognize prologue.
839 (m6812_prologue): Likewise.
841 2003-02-27 David Carlton <carlton@math.stanford.edu>
843 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
845 (compare_psymbols): Ditto.
846 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
848 2003-02-27 Michael Snyder <msnyder@redhat.com>
850 * f-lang.c (build_fortran_types): New function.
851 (_initialize_f_language): Gdbarch-register built-in fortran types.
852 * doublest.c (extract_floating): Fix warning text.
854 2003-02-27 Andrew Cagney <cagney@redhat.com>
856 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
857 predicate. Replaces PUSH_DUMMY_FRAME.
858 * gdbarch.h, gdbarch.c: Regnerate.
859 * valops.c (hand_function_call): Update. Call
860 generic_push_dummy_frame directly.
861 * vax-tdep.c (vax_gdbarch_init): Update.
862 * sparc-tdep.c (sparc_gdbarch_init): Update.
863 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
864 * m68k-tdep.c (m68k_gdbarch_init): Update.
865 * hppa-tdep.c (hppa_gdbarch_init): Update.
866 * alpha-tdep.c (alpha_gdbarch_init): Update.
867 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
868 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
869 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
870 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
871 push_dummy_frame to generic_push_dummy_frame.
872 * v850-tdep.c (v850_gdbarch_init): Ditto.
873 * sh-tdep.c (sh_gdbarch_init): Ditto.
874 * s390-tdep.c (s390_gdbarch_init): Ditto.
875 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
876 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
877 * mips-tdep.c (mips_gdbarch_init): Ditto.
878 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
879 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
880 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
881 * i386-tdep.c (i386_gdbarch_init): Ditto.
882 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
883 * frv-tdep.c (frv_gdbarch_init): Ditto.
884 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
885 * cris-tdep.c (cris_gdbarch_init): Ditto.
886 * avr-tdep.c (avr_gdbarch_init): Ditto.
887 * arm-tdep.c (arm_gdbarch_init): Ditto.
889 2003-02-26 Kevin Buettner <kevinb@redhat.com>
891 * mips-tdep.c (show_mips_abi): New function.
892 (_initialize_mips_tdep): Use show_mips_abi() to implement the
893 command ``show mips abi''.
895 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
897 From Elena Zannoni <ezannoni@redhat.com>
898 * dbxread.c (process_one_symbol): Only record line 0 if one or
899 more sline entries have been seen for the function.
901 2003-02-26 Michael Chastain <mec@shout.net>
903 * configure: Regenerate with autoconf 000227.
905 2003-02-26 Michael Chastain <mec@shout.net>
908 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
910 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
912 2003-02-26 Kris Warkentin <kewarken@qnx.com>
914 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
915 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
917 2003-02-26 Michael Chastain <mec@shout.net>
919 * configure.in: New variable HAVE_UINTPTR_T.
920 * configure, config.in: Regenerated.
922 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
925 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
927 2003-02-25 Andrew Cagney <cagney@redhat.com>
929 * frame.c (get_prev_frame): Add comment on check for
930 inside_entry_func. Only check for inside_entry_file when not a
931 dummy and not a sentinel. Check that the new frame is not inner
934 2003-02-25 Andrew Cagney <cagney@redhat.com>
936 * frame.c (frame_debug): New variable.
937 (_initialize_frame): Add "set/show debug frame" command.
938 (get_prev_frame): When frame_debug, print reason why unwind
941 2003-02-25 Michael Chastain <mec@shout.net>
943 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
944 to avoid uintptr_t definition problems.
946 2003-02-25 David Carlton <carlton@math.stanford.edu>
948 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
949 (SYMBOL_LINKAGE_NAME): Ditto.
950 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
952 (struct general_symbol_info): Expand comment.
953 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
954 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
955 (SYMBOL_MATCHES_REGEXP): Ditto.
956 * symtab.c (symbol_natural_name): New function.
957 * objfiles.h: Replace all uses of SYMBOL_NAME by
958 DEPRECATED_SYMBOL_NAME.
959 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
960 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
961 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
962 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
963 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
964 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
965 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
966 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
967 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
968 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
970 * ada-exp.y: Update copyright.
971 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
972 * cp-valprint.c: Ditto.
974 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
976 * infptrace.c (detach): Do not flag error if ptrace detach fails
977 and errno is set to ESRCH.
979 2003-02-24 Andrew Cagney <cagney@redhat.com>
981 * infptrace.c (udot_info): Change type of udot_off to long. Use
982 paddr when printing udot_off's value.
984 2003-02-24 David Carlton <carlton@math.stanford.edu>
986 * symtab.c (make_symbol_overload_list): Only read in partial
987 symtabs containing a matching partial symbol.
989 2003-02-24 David Carlton <carlton@math.stanford.edu>
991 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
992 do the comparison, not strcmp.
993 * symfile.c (compare_psymbols): Ditto.
994 * defs.h: Declare strcmp_iw_ordered.
995 * utils.c (strcmp_iw_ordered): New function.
997 2003-02-24 Jim Blandy <jimb@redhat.com>
999 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
1000 support, shared libs): Remove my name from here, to better reflect
1003 2003-02-24 Kris Warkentin <kewarken@qnx.com>
1005 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
1006 (target_ops): Add to_have_continuable_watchpoint.
1007 * target.c (update_current_target): Add INHERIT line for
1008 to_have_continuable_watchpoint.
1009 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
1010 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
1011 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
1012 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
1014 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
1016 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
1019 2003-02-24 Kris Warkentin <kewarken@qnx.com>
1021 * solib.c (solib_open): Call target defined search function after
1022 failing with solib-search-path.
1023 * solist.h (target_so_ops): Add find_and_open_solib function hook and
1024 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
1026 2003-02-24 Kris Warkentin <kewarken@qnx.com>
1028 * MAINTAINERS: Add myself to Write After section.
1030 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
1032 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
1034 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
1036 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
1037 (m68hc11_add_reggroups): New function.
1038 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
1039 (m68hc11_gdbarch_init): Install the reggroups.
1040 (_initialize_m68hc11_tdep): Initialize them.
1042 2003-02-21 James E Wilson <wilson@tuliptree.org>
1044 * MAINTAINERS: Update my email address.
1046 2003-02-21 David Carlton <carlton@math.stanford.edu>
1048 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
1050 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
1052 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
1053 * symtab.h: Add opaque declarations of struct axs_value and
1055 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
1056 (struct location_funcs): New type.
1057 (struct symbol): Add "loc" to aux_value.
1058 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
1059 * dwarf2read.c: Include "dwarf2expr.h".
1060 (dwarf2_symbol_mark_computed): New function.
1061 (read_func_scope): Use it.
1062 (var_decode_location): New function.
1063 (new_symbol): Use it.
1064 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
1066 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
1067 (dwarf2expr_h, dwarf2loc_h): New variables.
1068 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
1069 (dwarf2expr.o, dwarf2loc.o): New rules.
1070 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
1071 * buildsym.c (finish_block): Handle LOC_COMPUTED and
1073 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1074 * m2-exp.y (yylex): Likewise.
1075 * printcmd.c (address_info, print_frame_args): Likewise.
1076 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
1077 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1078 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
1079 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
1080 * symtab.c (lookup_block_symbol): Likewise.
1082 2003-02-20 Adam Fedor <fedor@gnu.org>
1084 * symtab.h: Remove objc_specific struct
1085 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
1086 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
1087 Have language_objc use cplus_specific struct.
1089 2003-02-20 Tom Tromey <tromey@redhat.com>
1091 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
1092 TYPE_NAME, when printing a String value. PR java/1075.
1094 2003-02-20 Adam Fedor <fedor@gnu.org>
1096 * objc-lang.h (find_methods): Remove declaration.
1097 * objc-lang.c (find_methods): Make static.
1099 2003-02-20 Christopher Faylor <cgf@redhat.com>
1101 * win32-nat.c (get_image_name): Check return value from
1103 (child_xfer_memory): Ditto.
1105 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
1107 * configure.in (TARGET_SYSTEM_ROOT): Set default to
1108 ${exec_prefix}/${target_alias}/sys-root. Match explicit
1109 '${exec_prefix}' (in addition to the expansion thereof) as
1111 * configure: Rebuilt.
1113 2003-02-20 David Carlton <carlton@math.stanford.edu>
1115 * symtab.c (search_symbols): Revert the search_symbols part of my
1116 2002-12-23 patch. Add comment.
1118 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1120 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
1121 * dbxread.c (elfstab_build_psymtabs): Don't call
1122 install_minimal_symbols.
1123 (stabsect_build_psymtabs): Likewise.
1124 * elfread.c (elf_symfile_read): Call install_minimal_symbols
1126 * somread.c (som_symfile_read): Call install_minimal_symbols
1127 and do_cleanups earlier.
1128 * nlmread.c (nlm_symfile_read): Likewise.
1129 * mdebugread.c (elfmdebug_build_psymtabs): Call
1130 install_minimal_symbols and make appropriate cleanups.
1132 2003-02-20 Kevin Buettner <kevinb@redhat.com>
1134 * solib.c (reload_shared_libraries): New function.
1135 (_initialize_solib): Add callbacks for ``set solib-search-path''
1136 and ``set solib-absolute-prefix''.
1138 2003-02-20 David Carlton <carlton@math.stanford.edu>
1140 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
1142 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
1143 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
1144 * ada-typeprint.c (ada_typedef_print): Ditto.
1145 * ax-gdb.c (gen_var_ref): Ditto.
1146 * breakpoint.c (print_one_breakpoint): Ditto.
1147 * buildsym.c (finish_block): Ditto.
1148 * c-valprint.c (c_val_print): Ditto.
1149 * expprint.c (print_subexp): Ditto.
1150 * findvar.c (locate_var_value): Ditto.
1151 * infcmd.c (jump_command): Ditto.
1152 * linespec.c (decode_line_2, decode_compound): Ditto.
1153 * maint.c (maintenance_translate_address): Ditto.
1154 * objc-lang.c (compare_selectors, compare_classes): Ditto.
1155 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
1157 * p-valprint.c (pascal_val_print): Ditto.
1158 * stabsread.c (define_symbol): Ditto.
1159 * stack.c (print_frame, frame_info, print_block_frame_locals)
1160 (print_frame_arg_vars, return_command): Ditto.
1161 * symfile.c (compare_symbols, compare_psymbols): Ditto.
1162 * symmisc.c (print_symbol): Ditto.
1163 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
1164 (compare_search_syms, print_symbol_info, print_msymbol_info)
1165 (rbreak_command): Ditto.
1166 * tracepoint.c (tracepoints_info): Ditto.
1167 * typeprint.c (typedef_print): Ditto.
1168 * valops.c (value_of_variable, hand_function_call): Ditto.
1169 * cli/cli-cmds.c (edit_command, list_command): Ditto.
1170 * ada-typeprint.c: Update Copyright.
1171 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
1172 * tracepoint.c, cli/cli-cmds.c: Ditto.
1174 2003-02-20 Kevin Buettner <kevinb@redhat.com>
1176 * frame.c (generic_unwind_get_saved_register): Make non-static.
1177 * frame.h (generic_unwind_get_saved_register): Declare.
1178 * mips-tdep.c (read_next_frame_reg): Fetch register from
1179 current regcache when frame is NULL.
1180 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
1182 (mips_get_saved_register): Call generic_unwind_get_saved_register()
1183 instead of frame_register_unwind().
1185 2003-02-20 Andrew Cagney <ac131313@redhat.com>
1187 * remote-sim.c (gdbsim_insert_breakpoint)
1188 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
1191 2003-02-20 Andrew Cagney <ac131313@redhat.com>
1193 * remote.c (_initialize_remote): Add commands "set/show remote
1194 hardware-watchpoint-limit" and "set/show remote
1195 hardware-breakpoint-limit".
1196 (remote_hw_watchpoint_limit): Initialize to -1.
1197 (remote_hw_breakpoint_limit): Ditto.
1198 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
1200 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
1202 * coff-pe-read.c: New file - support reading of minimal symbols from a
1203 portable executable using the export table.
1204 * coff-pe-read.h: New file.
1205 * coffread.c: Include coff-pe-read.h.
1206 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
1207 debugging symbols found.
1208 * Makefile.in (SFILES): Add coff-pe-read.o.
1209 (coff_pe_read_h): Define.
1210 (COMMON_OBS): Add coff-pe-read.o.
1211 (coffread.o): Add coff_pe_read_h dependency.
1212 (coff-pe-read.o): New target.
1214 2003-02-19 David Carlton <carlton@math.stanford.edu>
1216 * Makefile.in (SFILES): Add block.c.
1218 (COMMON_OBS): Add block.o.
1220 (x86-64-tdep.o): Add $(block_h).
1221 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
1222 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
1223 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
1224 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
1225 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
1226 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
1227 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
1228 * value.h: Add opaque declaration for struct block.
1229 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
1230 * ada-lang.h: Ditto.
1231 * x86-64-tdep.c: #include "block.h"
1232 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
1233 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
1234 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
1235 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
1236 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
1237 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
1238 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
1239 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
1240 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
1241 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
1242 * symtab.c (block_function): Ditto.
1243 (contained_in): Ditto.
1244 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
1245 block.h. Add opaque declaration for struct block.
1246 * symtab.h: Move block_function and contained_in declarations to
1247 block.h. Add opaque declarations for struct block, struct
1249 (struct block): Move to block.h.
1250 (struct blockvector): Ditto.
1251 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
1252 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
1253 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
1254 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
1255 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
1257 * block.c: New file.
1258 * block.h: New file.
1260 2003-02-19 Theodore A. Roth <troth@openavr.org>
1262 * avr-tdep.c (avr_extract_return_value): Remove function.
1263 (avr_store_return_value): Remove function.
1264 (avr_extract_struct_value_address): Remove function.
1265 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
1267 2003-02-19 Andrew Cagney <ac131313@redhat.com>
1269 * rs6000-tdep.c: Include "gdb_assert.h".
1270 (registers_e500): Add "acc" and "spefscr".
1271 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
1272 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
1273 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
1275 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
1277 2003-02-18 Keith Seitz <keiths@redhat.com>
1279 * Makefile.in: Add gdbtk-interps.c.
1281 2003-02-18 Kevin Buettner <kevinb@redhat.com>
1283 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
1284 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
1286 2003-02-18 Andrew Cagney <cagney@redhat.com>
1288 * symtab.h (struct objfile): Add opaque declaration.
1290 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
1292 From Jim Ingham <jingham@apple.com>:
1293 * dbxread.c (process_one_symbol): Use last_function_start rather
1294 than function_start_offset to find the real beginning of the
1295 current function. The latter is just the text section offset on
1296 some systems, the former is always the real function start.
1298 2003-02-17 Andrew Cagney <cagney@redhat.com>
1300 * configure.in: Revert ${target} != ${host}.
1302 2003-02-17 Andrew Cagney <ac131313@redhat.com>
1304 * configure.in (Makefile): Use the test ${target} != ${host},
1305 instead of the absence of the "nm.h" file, to determine of the
1306 configuration non-native.
1307 * configure: Regenerate.
1309 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
1311 From Brian Ford <ford@vss.fsi.com>
1313 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
1314 conditionalize tui_active test.
1315 (lookup_cmd_1): Ditto.
1317 2003-02-14 Mark Kettenis <kettenis@gnu.org>
1319 * configure.in: Add check for _etext.
1320 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
1322 * config.in, configure: regenerated.
1324 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
1326 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
1328 2003-02-14 Andrew Cagney <ac131313@redhat.com>
1330 * main.c (tui_version): Delete variable.
1331 (captured_main): When --tui, set interpreter_p to "tui" instead of
1332 enabling tui_version.
1333 * printcmd.c (display_command) [TUI]: Test tui_active instead of
1335 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
1336 * cli/cli-cmds.c (disassemble_command): Ditto.
1337 * defs.h (tui_version): Delete declaration.
1338 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
1339 (tui-interp.o): Add rules.
1340 (SUBDIR_TUI_OBS): Add "tui-interp.o".
1342 2003-02-14 Christopher Faylor <cgf@redhat.com>
1344 * win32-nat.c (register_loaded_dll): Correctly set address range for
1347 2003-02-12 Jason Molenda (jmolenda@apple.com)
1349 * symmisc.c (print_objfile_statistics): Include information about
1350 the number of psymtabs and symtabs in each object file.
1352 2003-02-13 Keith R Seitz <keiths@redhat.com>
1354 * main.h (struct captured_main_args): Add interpreter_p.
1355 * main.c (captured_main): Initialize interpreter_p from context.
1356 * gdb.c (main): Set interpreter_p argument.
1357 * Makefile.in (gdb.o): Add dependency for interps.h.
1359 2003-02-12 Andrew Cagney <ac131313@redhat.com>
1361 * event-top.c (cli_command_loop): Delete declaration.
1362 (_initialize_event_loop): Delete function setting event_loop_hook.
1363 * event-top.h (cli_command_loop): Declare. Update copyright.
1364 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
1365 * interps.c (current_interp_command_loop): When event_loop_p, call
1368 2003-02-12 Andrew Cagney <ac131313@redhat.com>
1370 * interps.h (interp_command_loop_ftype): Change return type to
1373 2003-02-12 Michal Ludvig <mludvig@suse.cz>
1375 * x86-64-tdep.c (x86_64_extract_return_value)
1376 (x86_64_store_return_value): Use regcache instead of regbuf.
1377 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
1378 * x86-64-linux-nat.c (fill_gregset): Use regcache.
1380 2003-02-11 Andrew Cagney <ac131313@redhat.com>
1382 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
1383 * aclocal.m4: Regenerate.
1384 * configure: Regenerate.
1386 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
1387 TCL_LD_SEARCH_FLAGS.
1389 2003-02-10 Michal Ludvig <mludvig@suse.cz>
1391 * dwarf2cfi.c: Reindented.
1393 2003-02-09 Andrew Cagney <ac131313@redhat.com>
1395 * interps.c (clear_interpreter_hooks): Convert function definition
1398 2003-02-07 David Carlton <carlton@math.stanford.edu>
1400 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
1402 2003-02-07 Kevin Buettner <kevinb@redhat.com>
1404 * gdbtypes.h (struct main_type): Move ``length'' field from here...
1405 (struct type): ...to here.
1406 (TYPE_LENGTH): Adjust to reflect different location of ``length''
1408 * gdbtypes.c (make_qualified_type): Set length on newly created type.
1409 (replace_type): Set length on all type variants for a given type.
1411 2003-02-07 Andrew Cagney <ac131313@redhat.com>
1413 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
1415 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
1417 2003-02-06 Andrew Cagney <ac131313@redhat.com>
1419 * Makefile.in (symm-nat.o): Update dependencies.
1420 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
1421 (lynx-nat.o, ia64-linux-nat.): Ditto.
1422 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
1423 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
1424 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
1426 * Makefile.in (inflow_h): Define.
1427 (procfs.o, inflow.o, procfs.o): Update dependencies.
1428 * inftarg.c (child_stop): Delete extern declaration of
1429 inferior_process_group. Include "inflow.h".
1430 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
1431 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
1432 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
1433 (our_process_group, inferior_process_group): Extern declarations.
1435 * procfs.c: Include "gdb_assert.h".
1437 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
1438 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
1439 * jv-typeprint.c (java_type_print_base): Ditto.
1440 * typeprint.c (typedef_print): Eliminate STREQ.
1441 * cli/cli-script.c (define_command, define_command): Ditto.
1442 * main.c (captured_main): Ditto.
1443 * values.c (lookup_internalvar): Ditto.
1444 * utils.c (safe_strerror, parse_escape): Eliminate assignment
1445 within `if' conditional.
1446 * linespec.c (decode_line_2): Ditto.
1447 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
1448 (bfd_openw_with_cleanup): Ditto.
1450 2003-02-07 Mark Kettenis <kettenis@gnu.org>
1452 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
1453 legacy_extract_return_value and store_return_value to
1454 legacy_return_value.
1456 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
1458 * win32-nat.c (get_relocated_section_addrs): New function. Find
1459 section load addresses for symbol handling in relocated DLLs.
1460 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
1462 2003-02-05 Fred Fish <fnf@intrinsity.com>
1464 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
1466 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
1468 (angel_RDI_info): Ditto.
1469 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
1471 (threads_continue_all_with_signals): Ditto.
1473 2003-02-05 Jim Ingham <jingham@apple.com>
1474 Keith Seitz <keiths@redhat.com>
1475 Elena Zannoni <ezannoni@redhat.com>
1476 Andrew Cagney <ac131313@redhat.com>
1478 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
1479 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
1480 (SUBDIR_MI_OBS): Add "mi-interp.o".
1481 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
1482 (SFILES): Add "interps.c".
1483 (COMMON_OBS): Add "interps.o".
1484 (interps_h, mi_main_h): Define.
1485 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
1486 (mi-main.o, main.o, event-top.o): Update dependencies.
1487 * cli/cli-interp.c: New file.
1488 * interps.h, interps.c: New files.
1489 * top.c: (gdb_init): Don't install the default interpreter, handed
1491 * main.c: Include "interps.h".
1492 (interpreter_p): Note that it should malloc'ed.
1493 (captured_command_loop): Call current_interp_command_loop.
1494 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
1495 xfree and xstrdup when updating interpreter_p. Install the
1496 default interpreter. Add hack to stop mi1's copyright notice
1498 * event-top.h (gdb_setup_readline): Declare.
1499 (gdb_disable_readline): Declare.
1500 * event-top.c: Include "interps.h".
1501 (display_gdb_prompt): Call current_interp_display_prompt_p.
1502 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
1503 gdb_stdlog, and gdb_stdtarg.
1504 (_initialize_event_loop): Don't call gdb_setup_readline.
1505 * cli-out.c (cli_out_set_stream): New function.
1506 * cli-out.h (cli_out_set_stream): Declare.
1508 2003-02-06 Mark Kettenis <kettenis@gnu.org>
1510 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
1511 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
1512 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
1513 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
1514 config/i386/i386v42mp.mt: Removed.
1516 2003-02-05 Mark Kettenis <kettenis@gnu.org>
1518 * configure.tgt (*-*-solaris*): Set gdb_osabi to
1521 2003-02-05 Michael Chastain <mec@shout.net>
1523 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
1524 2.12.1 and earlier versions.
1526 2003-02-05 Andrew Cagney <ac131313@redhat.com>
1528 Remove orphaned hosts, targets and files.
1529 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
1530 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
1531 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
1532 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
1533 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
1534 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
1535 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
1536 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
1537 * config/sparc/tm-sp64sim.h: Delete.
1538 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
1540 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
1541 mips*-dec-mach3* targets.
1543 2003-02-04 Michael Chastain <mec@shout.net>
1545 * NEWS: Fix typo: sepcifying -> specifying.
1547 2003-02-04 Michael Chastain <mec@shout.net>
1549 * dwarfread.c: Add documentation on the state of dwarf-1,
1550 looking towards obsoletion.
1552 2003-02-03 Michael Chastain <mec@shout.net>
1554 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
1555 gdb/testsuite/gdb.c++/pr-1023.exp.
1557 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1559 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
1560 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
1562 * utils.c (init_page_info): Delete reference to MPW in comments.
1563 * main.c (captured_main): Delete #ifdef MPW.
1565 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1567 * NEWS: Note that the m32r-*-elf* is obsolete.
1568 * monitor.c (monitor_expect): Obsolete reference to m32r.
1569 * configure.tgt: Mark m32r-*-elf* as obsolete.
1570 * MAINTAINERS: Mark m32k as obsolete.
1571 * m32r-rom.c: Obsolete file.
1572 * config/m32r/m32r.mt: Obsolete file.
1573 * config/m32r/tm-m32r.h: Obsolete file.
1574 * m32r-stub.c: Obsolete file.
1575 * m32r-tdep.c: Obsolete file.
1577 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1579 * NEWS: Mention that the z8k-zilog-none is obsolete.
1580 * MAINTAINERS: Mark z8k as obsolete.
1581 * configure.tgt: Obsolete the z8k-*-coff* target.
1582 * config/z8k/z8k.mt: Obsolete file.
1583 * config/z8k/tm-z8k.h: Obsolete file.
1584 * z8k-tdep.c: Obsolete file.
1586 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1588 * NEWS: Mention that the mn10200-elf is obsolete.
1589 * configure.tgt: Obsolete mn10200-*-* target.
1590 * breakpoint.c (update_breakpoints_after_exec): Update comment to
1591 mention that the mn10200 is obsolete.
1592 * breakpoint.h: Ditto.
1593 * MAINTAINERS: Mark the mn10200-elf as obsolete.
1594 * config/mn10200/mn10200.mt: Obsolete file.
1595 * config/mn10200/tm-mn10200.h: Obsolete file.
1596 * mn10200-tdep.c: Obsolete file.
1598 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1600 * MAINTAINERS: Mark h8500 as obsolete.
1601 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
1602 * findvar.c (value_from_register): Ditto.
1603 * h8500-tdep.c: Mark file as obsolete.
1604 * config/h8500/h8500.mt: Ditto.
1605 * config/h8500/tm-h8500.h: Ditto.
1606 * NEWS: Mention that h8500 is obsolete.
1608 2003-02-04 David Carlton <carlton@math.stanford.edu>
1610 * objfiles.c (allocate_objfile): Always set name. Add comment at
1612 * jv-lang.c (get_dynamics_objfile): Add comment.
1614 2003-02-04 David Carlton <carlton@math.stanford.edu>
1616 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
1617 * printcmd.c (build_address_symbolic): Replace uses of
1618 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
1619 SYMBOL_NAME, and asm_demangle.
1622 2003-02-04 David Carlton <carlton@math.stanford.edu>
1624 * linespec.c (decode_compound): Extract code into
1626 (lookup_prefix_sym): New function.
1628 2003-02-04 David Carlton <carlton@math.stanford.edu>
1630 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
1631 FLOAT_COERCION_BADNESS.
1632 * gdbtypes.c (rank_one_type): Replace all uses of
1633 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
1635 2003-02-04 Jim Blandy <jimb@redhat.com>
1637 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
1638 section, let dwarf_macinfo_section point to it, not
1641 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
1643 Pointed out by Anton Blanchard <anton@samba.org>.
1644 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
1645 (ppc_linux_at_sigtramp_return_path): Use it.
1647 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
1649 * defs.h (streq): Add prototype.
1650 * utils.c (streq): New function.
1652 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
1653 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
1654 * mdebugread.c (new_symbol): Likewise.
1655 * stabsread.c (define_symbol): Likewise.
1656 * coffread.c (process_coff_symbol): Likewise.
1657 * dwarfread.c (new_symbol): Likewise.
1659 * minsyms.c (prim_record_minimal_symbol_and_info): Use
1660 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
1662 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
1663 SYMBOL_INIT_DEMANGLED_NAME.
1664 * objfiles.c: Include "hashtab.h".
1665 (allocate_objfile): Call htab_set_functions_ex for the
1666 demangled_names_hash.
1667 (free_objfile): Call htab_delete for the demangled_names_hash.
1668 * objfiles.h (struct htab): Add declaration.
1669 (struct objfile): Add demangled_names_hash.
1670 * symfile.c: Include "hashtab.h".
1671 (reread_symbols): Call htab_delete for the demangled_names_hash.
1672 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
1673 SYMBOL_NAME in the bcache.
1674 * symtab.c: Include "hashtab.h". Update comments.
1675 (create_demangled_names_hash, symbol_set_names): New functions.
1676 (symbol_find_demangled_name): New function, broken out from
1677 symbol_init_demangled_names.
1678 (symbol_init_demangled_names): Use it.
1679 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
1680 (SYMBOL_SET_NAMES): New macro.
1681 (symbol_set_names): Add prototype.
1683 2003-02-03 Jim Blandy <jimb@redhat.com>
1685 Use a single, consistent representation for an empty minimal
1686 symbol table in an objfile.
1687 * objfiles.c (terminate_minimal_symbol_table): New function.
1688 (allocate_objfile): Call it.
1689 * objfiles.h (terminate_minimal_symbol_table): New declaration.
1690 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
1692 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
1693 objfile has minimal symbols, compare minimal_symbol_count to zero,
1694 instead of comparing msymbols with NULL.
1695 * objfiles.c (have_minimal_symbols): Same.
1696 * solib-sunos.c (solib_add_common_symbols): Call
1697 terminate_minimal_symbol_table.
1698 * symfile.c (reread_symbols): Same.
1700 2003-02-03 Kevin Buettner <kevinb@redhat.com>
1702 * s390-tdep.c (s390_address_class_type_flags)
1703 (s390_address_class_type_flags_to_name)
1704 (s390_address_class_name_to_type_flags): New functions.
1705 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
1706 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
1708 2003-02-03 Michael Snyder <msnyder@redhat.com>
1710 * arm-tdep.c: Fix spell-o in comment.
1712 2003-02-03 Michal Ludvig <mludvig@suse.cz>
1714 * dwarf2cfi.c (pointer_encoding): Added new parameter.
1715 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
1716 error messages to contain BFD filename.
1718 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
1720 Fix PR gdb/742 gdb/743 gdb/877
1721 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
1722 (do_mixed_source_and_assembly): Use
1723 make_cleanup_ui_out_tuple_begin_end and
1724 make_cleanup_ui_out_tuple_begin_end.
1725 (do_mixed_source_and_assembly): Ditto.
1726 * thread.c (do_captured_list_thread_ids): Ditto.
1727 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
1728 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
1729 ui_out_tuple_end): Delete prototypes.
1730 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
1731 ui_out_list_end, ui_out_tuple_end): Delete.
1733 From Kevin Buettner <kevinb@redhat.com>:
1734 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
1735 * ui-out.c (make_cleanup_ui_out_table_begin_end)
1736 (do_cleanup_table_end): New functions.
1737 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
1738 Use cleanups to invoke_ui_out_tuple_end().
1739 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
1740 * cli/cli-setshow.c (cmd_show_list): Use
1741 make_cleanup_ui_out_tuple_begin_end.
1743 2003-02-02 Andrew Cagney <ac131313@redhat.com>
1745 * frame.c (frame_unwind_register): New function.
1746 (frame_unwind_unsigned_register): Use.
1747 (frame_unwind_signed_register): Use.
1748 (frame_read_register): New function.
1749 * frame.h (frame_unwind_register): Declare.
1750 (frame_read_register): Declare.
1752 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
1753 and frame_unwind_register instead of read_memory, write_register
1754 and deprecated_write_register_bytes.
1756 2003-02-02 Andrew Cagney <ac131313@redhat.com>
1758 * frame.h: Note that namelen can be negative.
1759 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
1762 * NEWS: Mention that the d10v's `regs' command is deprecated.
1763 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
1764 (d10v_print_registers_info): New function.
1765 (show_regs): Call d10v_print_registers_info.
1766 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
1768 2003-02-02 Mark Kettenis <kettenis@gnu.org>
1770 * stack.c (print_frame_info): Restore call to annotate_frame_begin
1771 lost in the previous patch.
1773 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1775 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
1776 * stack.c (print_frame_info_base): Output complete FRAME tuple
1777 for synthesized frames.
1779 2003-02-02 Andrew Cagney <ac131313@redhat.com>
1781 * mips-nat.c (zerobuf): Delete.
1782 (fetch_inferior_registers): Alloc local zerobuf.
1783 (fetch_core_registers): Alloc local zerobuf.
1784 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
1785 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
1786 * thread-db.c (thread_db_store_registers): Ditto.
1787 * sh-tdep.c (sh_do_register): Ditto.
1788 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1789 * remote-sim.c (gdbsim_store_register): Ditto.
1790 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1791 * remote-e7000.c (fetch_regs_from_dump): Ditto.
1792 * monitor.c (monitor_supply_register): Ditto.
1793 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
1794 * mips-nat.c (fetch_inferior_registers): Ditto.
1795 * m68klinux-nat.c (fetch_register): Ditto.
1796 * lynx-nat.c (fetch_inferior_registers): Ditto.
1797 (fetch_inferior_registers): Ditto.
1798 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
1799 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
1800 (hpux_thread_store_registers): Ditto.
1801 * hppah-nat.c (fetch_register): Ditto.
1802 * hppab-nat.c (fetch_register): Ditto.
1803 * hppa-tdep.c (pa_register_look_aside): Ditto.
1804 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
1805 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
1807 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1809 * gdbarch.sh: Explictly specify all method levels. When a
1810 variable with an empty level, provide a non-multi-arch default.
1811 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
1812 * gdbarch.h: Re-generate.
1813 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
1814 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
1816 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1818 * defs.h (host_pointer_to_address): Delete declaration.
1819 (address_to_host_pointer): Delete declaration.
1820 * utils.c (host_pointer_to_address): Delete function.
1821 (address_to_host_pointer): Delete function.
1822 * procfs.c (procfs_address_to_host_pointer): New function.
1823 * procfs.c (proc_set_watchpoint): Use.
1824 (procfs_can_use_hw_breakpoint): Update comments.
1825 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
1826 (som_solib_add): Use.
1827 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
1828 * hppa-tdep.c (unwind_command): Use.
1830 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1832 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
1835 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
1836 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
1837 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
1838 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
1839 (define_symbol): Update.
1840 * symfile.c (generic_load): Remove references to nindy.
1841 * symtab.c: Remove references to nindy.
1843 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1845 * infcmd.c (print_float_info): Delete code conditional on
1847 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
1848 * config/m68k/nm-apollo68b.h: Ditto.
1849 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
1850 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
1851 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
1853 2003-02-01 Mark Kettenis <kettenis@gnu.org>
1855 * config/i386/tm-i386os9k.h: Removed.
1857 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
1858 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
1859 they're identical to i[3456]86-*-sysv* now.
1860 * config/i386/i386v32.mh: Removed.
1861 * config/i386/xm-i386v32.h: Removed.
1862 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
1864 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
1866 * config/i386/i386dgux.mh: Removed.
1867 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
1869 * configure.in: Fix typo.
1870 * configure: Regenerated.
1872 2003-01-31 David Carlton <carlton@math.stanford.edu>
1874 * dwarf2read.c (dwarf2_locate_sections): Set
1875 dwarf_ranges_section.
1877 2003-01-31 Andrew Cagney <ac131313@redhat.com>
1879 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
1880 * utils.c: Update comments documenting legitimate uses of PTR.
1882 * utils.c: Re-indent.
1884 * config/djgpp/fnchange.lst: Delete nindy files.
1885 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
1886 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
1887 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
1888 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
1889 * nindy-share/README, nindy-share/Onindy.c: Delete files.
1890 * nindy-tdep.c, nindy-share/Makefile: Delete files.
1891 * Makefile.in (init.c): Remove nindy references.
1892 (saber_gdb): Delete rule.
1893 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
1894 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
1896 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
1897 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
1898 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
1899 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
1901 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
1902 * saber.suppress: Delete file.
1904 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
1906 * dbxread.c (stabs_data): New static variable.
1907 (fill_symbuf): Support an in-memory buffer for stabs data.
1908 (stabs_seek): New function.
1909 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
1910 (read_ofile_symtab): Use stabs_seek.
1911 (elfstab_build_psymtabs): Take an asection* instead of
1912 an offset and size. Relocate the stabs data if necessary.
1913 Save the section* for dbx_psymtab_to_symtab.
1914 * dwarf2read.c: Add section variables for each debug section.
1915 (dwarf2_locate_sections): Fill them in.
1916 (dwarf2_read_section): Take an asection* argument.
1917 Relocate the section contents if necessary.
1918 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
1919 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
1920 it to dwarf2_read_section.
1921 (dwarf2_build_frame_info): Update callers.
1922 * elfread.c (elf_symfile_read): Update call to
1923 elfstab_build_psymtabs.
1924 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
1925 (DBX_STAB_SECTION): New macro.
1926 * stabsread.h (elfstab_build_psymtabs): Update prototype.
1927 * symfile.c (symfile_dummy_outputs): New function.
1928 (symfile_relocate_debug_section): New function.
1929 * symfile.h (symfile_relocate_debug_section): Add prototype.
1931 2003-01-31 Richard Henderson <rth@redhat.com>
1933 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
1934 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
1935 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
1936 * alpha-tdep.c (alpha_register_name): Add "unique".
1937 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
1938 (ALPHA_UNIQUE_REGNUM): New.
1939 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
1941 2003-01-31 Andrew Cagney <ac131313@redhat.com>
1943 * README: Remove reference to Ericsson 1800 monitor.
1944 * Makefile.in (remote-es.o): Delete rule.
1945 (ALLDEPFILES): Delete remote-es.c.
1946 * remote-es.c: Delete file.
1947 * config/m68k/es1800.mt: Delete file.
1948 * config/djgpp/fnchange.lst: Update.
1949 * configure.tgt: Delete m68*-ericsson-* target.
1951 2003-01-31 Adam Fedor <fedor@gnu.org>
1953 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
1954 Remove duplicate/shadowing variable of same name.
1956 2003-01-30 Jim Blandy <jimb@redhat.com>
1958 * symfile.c (find_separate_debug_file): Assert that the objfile's
1959 directory name we compute ends with a slash, and then assume that
1960 that's so everywhere we use it.
1962 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
1964 * valops.c (value_assign): Flush frame cache after stores to memory
1967 2003-01-30 Andrew Cagney <ac131313@redhat.com>
1969 * Makefile.in (mon960-rom.o): Delete rule.
1970 * mon960-rom.c: Delete file.
1972 2003-01-30 Andrew Cagney <ac131313@redhat.com>
1974 * d10v-tdep.c: Include "frame-unwind.h".
1975 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
1977 (next_addr, uses_frame): Delete.
1978 (struct d10v_unwind_cache): Define.
1979 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
1980 Use info instead of next_addr and uses_frame globals.
1981 (d10v_frame_init_saved_regs): Delete function.
1982 (d10v_init_extra_frame_info): Delete function.
1983 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
1984 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
1985 init_frame_pc or frame_saved_pc.
1986 (d10v_pop_frame): Delete function.
1987 (do_d10v_pop_frame): Delete function.
1988 (d10v_frame_chain): Delete function.
1989 (d10v_frame_chain_valid): Delete function.
1990 (d10v_frame_pc_unwind): New function.
1991 (d10v_frame_id_unwind): New function.
1992 (saved_regs_unwinder): New function.
1993 (d10v_frame_register_unwind): New function.
1994 (d10v_frame_pop): New function.
1995 (d10v_frame_unwind): New variable.
1996 (d10v_frame_p): New function.
1997 (d10v_frame_saved_pc): Delete function.
1998 * Makefile.in (d10v-tdep.o): Update dependencies.
2000 2003-01-30 J. Brobecker <brobecker@gnat.com>
2002 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
2003 causing some regressions due to a change in the default value
2006 2003-01-29 Richard Henderson <rth@redhat.com>
2007 Elena Zannoni <ezannoni@redhat.com>
2008 Daniel Jacobowitz <drow@mvista.com>
2011 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
2013 (RANGES_SECTION): New.
2014 (dwarf_ranges_buffer): New variable.
2015 (struct comp_unit_head): Add member "die".
2016 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
2017 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
2018 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
2019 (dwarf2_locate_sections): Likewise.
2020 (dwarf2_build_psymtabs): Read .debug_ranges.
2021 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
2022 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
2023 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
2024 Look for DW_AT_ranges and return the bounding box.
2026 2003-01-29 Brian Ford <ford@vss.fsi.com>
2028 * win32-nat.c (cygwin_pid): Removed as unused.
2029 (child_attach): Try fall back to Cygwin pid.
2031 2003-01-29 Jim Blandy <jimb@redhat.com>
2033 * objfiles.h (struct objfile): Doc fix.
2035 2003-01-29 Andrew Cagney <ac131313@redhat.com>
2037 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
2038 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
2039 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
2040 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
2041 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
2042 (FRAME_SAVED_PC): Change to a function with predicate.
2043 * gdbarch.h, gdbarch.c: Re-generate.
2045 2003-01-28 Andrew Cagney <ac131313@redhat.com>
2047 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
2049 * complaints.c (complain): Delete function.
2050 * complaints.h (struct deprecated_complaint): Delete definition.
2051 (complain): Delete declaration.
2053 2003-01-28 Kevin Buettner <kevinb@redhat.com>
2055 * mips-tdep.c (mips_init_extra_frame_info): Return early for
2058 2003-01-27 Andrew Cagney <ac131313@redhat.com>
2060 * sentinel-frame.h, sentinel-frame.c: New files.
2061 * Makefile.in (frame.o): Update dependencies.
2062 (SFILES): Add sentinel-frame.c.
2063 (sentinel_frame_h): Define.
2064 (COMMON_OBS): Add sentinel-frame.o.
2065 (sentinel-frame.o): Specify dependencies.
2066 * frame.c: Include "sentinel-frame.h".
2067 (frame_register_unwind): Rewrite assuming that there is always a a
2069 (frame_register, generic_unwind_get_saved_register): Ditto.
2070 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
2071 (create_sentinel_frame, unwind_to_current_frame): New functions.
2072 (get_current_frame): Rewrite using create_sentinel_frame and
2073 unwind_to_current_frame. When possible, always create a frame.
2074 (create_new_frame): Set next to the sentinel frame.
2075 (get_next_frame): Rewrite. Don't go below the level 0 frame.
2076 (deprecated_update_frame_pc_hack): Update the next frame's PC and
2077 ID cache when necessary.
2078 (frame_saved_regs_id_unwind): Use frame_relative_level.
2079 (deprecated_generic_get_saved_register): Use frame_relative_level,
2080 get_frame_saved_regs, get_frame_pc, get_frame_base and
2082 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
2085 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
2087 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
2089 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
2091 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
2092 (maintenance_set_profile_cmd): Use error () instead of warning ().
2094 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
2096 * configure.in: Check that -pg works if using --enable-profiling.
2097 Check for monstartup and _mcleanup regardless of --enable-profiling.
2098 * maint.c: Check for monstartup and _mcleanup before using them.
2099 * config.in: Regenerated.
2100 * configure: Regenerated.
2102 2003-01-24 Nick Clifton <nickc@redhat.com>
2106 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
2108 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
2109 (sh2e_show_regs): New.
2110 (sh_gdbarch_init): Handle bfd_mach_sh2e.
2111 * config/sh/tm-sh.h: Added sh2e to comments.
2113 2003-01-23 Jim Blandy <jimb@redhat.com>
2115 * symfile.c (syms_from_objfile): Don't print the "(no debugging
2116 symbols found)" message here; we haven't checked for a separate
2117 debug info file yet, so we don't know yet.
2118 (symbol_file_add_with_addrs_or_offsets): Print it here, after
2119 we've looked everywhere. Also, there's no need to print a special
2120 message when we're loading the separate debug info file: the one
2121 symbol_file_add prints is fine.
2123 2003-01-23 Alexander Larsson <alexl@redhat.com>
2124 Jim Blandy <jimb@redhat.com>
2126 Add support for executables whose debug info has been separated
2127 out into a separate file, leaving only a link behind.
2128 * objfiles.h (struct objfile): New fields: separate_debug_objfile
2129 and separate_debug_objfile_backlink.
2130 (put_objfile_before): New declaration.
2131 * symfile.c: #include "filenames.h".
2132 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
2133 debug info in a separate file, read that, too. Save the addrs
2134 argument, so we can use it again to read the separated debug info;
2135 syms_from_objfile modifies the table we pass it.
2136 (reread_symbols): After re-reading an objfile, call
2137 reread_separate_symbols to refresh its separate debug info
2138 objfile, if it has one.
2139 (reread_separate_symbols, find_separate_debug_file,
2140 get_debug_link_info, separate_debug_file_exists): New functions.
2141 (debug_file_directory): New global var.
2142 (_initialize_symfile): Initialize debug_file_directory, and
2143 provide the new `set debug-file-directory' command to let the user
2145 * objfiles.c (free_objfile): If this objfile has its debug info in
2146 a separate objfile, free that one too. If this is itself a
2147 separate debug info objfile, clear our parent's backlink.
2148 (put_objfile_before): New function.
2149 * utils.c (gnu_debuglink_crc32): New function.
2150 * defs.h (gnu_debuglink_crc32): New declaration.
2151 * Makefile.in (symfile.o): Note dependency on "filenames.h".
2152 * configure.in: Handle --with-separate-debug-dir config option.
2153 * acinclude.m4 (AC_DEFINE_DIR): New macro.
2154 * acconfig.h (DEBUGDIR): New macro.
2155 * configure, aclocal.m4, config.in: Regenerated.
2157 2003-01-22 Jim Blandy <jimb@redhat.com>
2159 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
2160 like the old symbol_file_add, but taking new arguments: you can
2161 now pass in either a `struct section_addr_info' list to say where
2162 each section is loaded, or a `struct section_offsets' table. Pass
2163 these new arguments through to syms_from_objfile as appropriate.
2164 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
2165 with the appropriate quiescent values for the new arguments.
2167 * symfile.c: #include "gdb_assert.h".
2168 (syms_from_objfile): Add the ability to pass in a section offset
2169 table directly, as an alternative to the section_addr_info table.
2170 Document arguments better.
2171 (symbol_file_add): Pass extra arguments to syms_from_objfile.
2172 * symfile.h (syms_from_objfile): Update declaration.
2173 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
2175 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
2177 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
2179 Original patch by Tom Tromey <tromey@cygnus.com> and
2180 Jason Molenda <jmolenda@apple.com>.
2181 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
2182 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
2183 * NEWS: Mention profiling.
2184 * configure.in (--enable-gdbtk): Fix typo.
2185 (--enable-profiling): New. Set PROFILE_CFLAGS.
2186 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
2188 (profiling_state): New variable.
2189 (mcleanup_wrapper): New function.
2190 (_initialize_maint): Remove NOTYET, fix call to
2191 add_setshow_boolean_cmd for "maint set profile".
2192 * configure: Regenerated.
2194 2003-01-21 Martin M. Hunt <hunt@redhat.com>
2196 * Makefile.in (install-gdbtk): Install PNG images too.
2198 2003-01-21 Andrew Cagney <ac131313@redhat.com>
2200 * exec.c (text_start): Delete global variable.
2201 (exec_file_attach): Make text_start local to the function.
2202 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
2203 * valops.c (hand_function_call): Delete code that handles
2204 BEFORE_TEXT_END and AFTER_TEXT_END.
2205 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
2206 of CALL_DUMMY_LOCATION.
2207 * gdbarch.c: Regenerate.
2208 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
2209 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
2210 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2211 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
2212 (text_end): Delete extern declaration.
2214 2003-01-21 Andrew Cagney <ac131313@redhat.com>
2216 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
2217 * blockframe.c (backtrace_below_main): Move to "frame.c".
2218 (frame_chain_valid): Delete check for backtrace_below_main.
2219 (_initialize_blockframe): Delete initialization, move ``set
2220 backtrace-below-main'' command to "frame.c".
2221 (do_flush_frames_sfunc): Delete function.
2222 * frame.c: Include "command.h" and "gdbcmd.h".
2223 (frame_type_from_pc): New function.
2224 (create_new_frame): Use frame_type_from_pc.
2225 (legacy_get_prev_frame): New function.
2226 (get_prev_frame): Rewrite. When an old style frame, call
2227 legacy_get_prev_frame. Otherwize, unwind the PC first.
2228 (_initialize_frame): Add ``set backtrace-below-main'' command.
2229 * Makefile.in (frame.o): Update dependencies.
2231 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2233 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
2234 DEPRECATED_REGISTERS_INFO.
2236 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2238 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
2239 Maintainers'. Update `Various Maintainers'.
2241 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2243 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
2244 * gdbarch.sh (POP_FRAME): Change to function with predicate.
2245 Suppress actual parameters when `-'.
2246 * gdbarch.h, gdbarch.c: Regenerate.
2248 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2250 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
2251 code handling dummy frames.
2253 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2255 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
2256 (struct frame_unwind): Add field pop.
2257 * frame.h (frame_pop): Declare.
2258 * frame.c (frame_saved_regs_pop): New function.
2259 (trad_frame_unwinder): Add frame_saved_regs_pop.
2260 (frame_pop): New function.
2261 * dummy-frame.c (dummy_frame_pop): New function.
2262 (discard_innermost_dummy): New function.
2263 (generic_pop_dummy_frame): Use discard_innermost_dummy.
2264 (dummy_frame_unwind): Add dummy_frame_pop.
2265 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
2266 * valops.c (hand_function_call): Ditto.
2267 * stack.c (return_command): Ditto.
2269 2003-01-18 Andrew Cagney <ac131313@redhat.com>
2271 * cris-tdep.c: Fix function declaration indentation.
2272 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
2273 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
2274 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
2275 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
2276 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
2277 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
2279 2003-01-18 Michael Chastain <mec@shout.net>
2281 * README (Unpacking and Installation -- quick overview):
2282 Warn against ".../gdb-5.3/gdb/configure".
2284 2003-01-18 Andrew Cagney <ac131313@redhat.com>
2286 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
2287 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2288 (struct frame_unwind): Declare opaque.
2289 (dummy_frame_p): Declare function.
2290 * dummy-frame.c (dummy_frame_id_unwind): Make static.
2291 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2292 * dummy-frame.c: Include "frame-unwind.h".
2293 (dummy_frame_p): New function.
2294 (dummy_frame_unwind): New variable.
2295 * frame.c: Include "frame-unwind.h".
2296 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
2297 to use the new unwind field.
2298 (set_unwind_by_pc): Delete function.
2299 (create_new_frame, get_prev_frame): Set unwind field using
2300 frame_unwind_find_by_pc.
2301 (trad_frame_unwind, trad_frame_unwinder): New variables.
2302 * frame.h (trad_frame_unwind): Declare variable.
2303 (frame_id_unwind_ftype): Delete declaration.
2304 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
2305 (struct frame_unwind): Declare opaque.
2306 (struct frame_info): Replace the fields id_unwind, pc_unwind and
2307 register_unwind with a single unwind pointer.
2308 * frame-unwind.h, frame-unwind.c: New files.
2309 * Makefile.in (SFILES): Add frame-unwind.c.
2310 (frame_unwind_h): Define.
2311 (COMMON_OBS): Add frame-unwind.o.
2312 (frame-unwind.o): Specify dependencies.
2313 (frame.o, dummy-frame.o): Update dependencies.
2315 2003-01-18 Andrew Cagney <ac131313@redhat.com>
2317 * ada-valprint.c: Eliminate PTR.
2318 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
2319 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
2320 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
2321 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
2322 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
2323 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
2324 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
2326 2003-01-17 Andrew Cagney <ac131313@redhat.com>
2328 * main.c (captured_main): Don't use PTR.
2329 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
2330 * gdbtypes.c (lookup_primitive_typename): Ditto.
2331 (lookup_struct_elt_type): Ditto.
2332 * f-valprint.c (info_common_command): Ditto.
2333 (list_all_visible_commons): Ditto.
2334 * jv-typeprint.c (java_type_print_base): Ditto.
2336 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
2337 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
2338 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
2339 i386-interix-nat.c and i386-interix-tdep.c. Rename
2340 m68klinux-nat.c and m68klinux-tdep.c. Rename
2341 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
2342 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
2343 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
2344 * main.c (captured_main): Use xfree, not free.
2346 2003-01-16 Andrew Cagney <ac131313@redhat.com>
2348 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
2349 ID back using a parameter.
2350 * frame.c (frame_id_unwind): Update call.
2351 (frame_saved_regs_id_unwind): Update.
2352 * dummy-frame.c (dummy_frame_id_unwind): Update function.
2353 * dummy-frame.h (struct frame_id): Add opaque declaration.
2354 (dummy_frame_id_unwind): Update declaration.
2356 2003-01-15 Andrew Cagney <ac131313@redhat.com>
2358 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
2360 2003-01-15 Stephen P. Smith <ischis2@cox.net>
2362 * MAINTAINERS (Stephen P. Smith): Updated email address.
2364 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
2367 * breakpoint.c (until_break_command): Add new argument. Use it to
2368 decide whether to stop only at the current frame or not.
2369 * breakpoint.h (until_break_command): Update prototype.
2370 * infcmd.c (until_command): Add new argument to until_break_command
2372 (advance_command): New function.
2373 (_initialize_infcmd): Update help string for 'until' command.
2374 Add new 'advance' command.
2376 2003-01-14 David Carlton <carlton@math.stanford.edu>
2378 * linespec.c (decode_line_1): Normalize comments.
2380 (locate_first_half): Ditto.
2381 (decode_compound): Ditto.
2382 (symtab_from_filename): Ditto.
2383 (decode_all_digits): Ditto.
2384 (decode_dollar): Ditto.
2385 (find_methods): Ditto.
2386 (find_toplevel_char): Ditto.
2388 2003-01-13 Andrew Cagney <ac131313@redhat.com>
2390 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
2391 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
2392 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
2393 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
2394 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
2395 * language.c, language.h, m32r-tdep.c: Update copyright.
2396 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
2397 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
2398 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
2399 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
2400 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
2401 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
2403 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
2405 * stabsread.h (process_later, resolve_cfront_continuation):
2407 Update copyright years.
2408 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
2409 Update copyright year.
2410 * dbxread.c(struct cont_elem): Obsolete.
2411 (process_later, process_now): Obsolete functions.
2412 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
2413 Update copyright year.
2414 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
2415 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
2416 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
2417 (parse_partial_symbols): Obsolete cfront support.
2419 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
2421 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
2422 read_cfront_baseclasses, read_cfront_member_functions,
2423 resolve_cfront_continuation,read_cfront_static_fields,
2424 copy_cfront_struct_fields): Obsolete functions.
2425 (define_symbol, read_one_struct_field): Obsolete cfront support.
2426 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
2427 Update Copyright year.
2429 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
2431 * stack.c (print_frame_info, print_stack_frame_base_stub,
2432 print_stack_frame_base, show_and_print_stack_frame_stub,
2433 show_and_print_stack_frame, print_only_stack_frame_stub,
2434 print_only_stack_frame): Delete functions.
2435 (print_stack_frame_stub): Call print_frame_info instead of
2436 print_frame_info_base.
2437 (print_frame_info_base): Rename to print_frame_info.
2438 (backtrace_command_1): Call print_frame_info, instead of
2439 print_frame_info_base.
2440 (current_frame_command): Call print_stack_frame, instead of
2441 print_only_stack_frame.
2442 (frame_command): Call print_stack_frame, instead of
2443 show_and_print_stack_frame.
2444 (up_command): Ditto.
2445 (down_command): Ditto.
2446 * frame.h (print_only_stack_frame): Delete prototype.
2447 * infrun.c (normal_stop): Call print_stack_frame, instead of
2448 show_and_print_stack_frame.
2449 * thread.c (info_threads_command): Call print_stack_frame, instead
2450 of print_only_stack_frame.
2452 2003-01-13 Andrew Cagney <ac131313@redhat.com>
2454 * README (Graphical interface to GDB): Update URL. Point at
2457 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
2460 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2462 * symtab.c (find_pc_sect_line): Don't consider end-of-function
2465 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2467 * thread-db.c (attach_thread): Prototype.
2468 (struct private_thread_info): Remove lwpid. Add thread handle (th),
2469 thread information (ti), and valid flags (th_valid, ti_valid).
2470 (attach_thread): Move target_pid_to_str call to after the thread
2471 is added to GDB's list. Initialize the cache.
2472 (thread_get_info_callback, thread_db_map_id2thr)
2473 (thread_db_get_info): New functions.
2474 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
2475 (thread_db_store_registers, thread_db_thread_alive)
2476 (thread_db_get_thread_local_address): Use them.
2477 (thread_db_pid_to_str): Likewise. Return "Missing" instead
2478 of calling error() for threads in unknown state.
2480 (clear_lwpid_callback): New function.
2481 (thread_db_resume): Use it to clear the cache.
2483 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2485 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
2486 (resume_callback): Remove dead code.
2488 2003-01-13 Andrew Cagney <ac131313@redhat.com>
2490 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
2492 * gdbarch.h, gdbarch.c: Regenerate.
2493 * stack.c (frame_info): Only initialize the saved registers when
2494 FRAME_INIT_SAVED_REGS_P.
2495 * frame.c (frame_saved_regs_register_unwind): Assert
2496 FRAME_INIT_SAVED_REGS_P.
2497 (deprecated_generic_get_saved_register): Ditto.
2499 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2501 * source.c (openp): Squelch warning about "filename".
2503 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2505 * source.c (openp): If the file does not exist don't necessarily
2508 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2511 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
2512 (integer_types_same_name_p): New function.
2513 (rank_one_type): Use it.
2514 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
2516 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2518 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
2520 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
2521 * configure.in: Add --with-sysroot.
2522 * configure: Regenerated.
2523 * main.c (gdb_sysroot): New variable.
2524 (captured_main): Initialize gdb_sysroot.
2525 * defs.h (gdb_sysroot): New extern declaration.
2526 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
2528 2003-01-12 Michael Chastain <mec@shout.net>
2530 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
2532 2003-01-12 Michael Chastain <mec@shout.net>
2534 * top.c (print_gdb_version): Bump copyright year to 2003.
2536 2003-01-12 David Carlton <carlton@bactrian.org>
2538 * linespec.c (symtab_from_filename): Rename variable 's' to
2541 2003-01-12 Andrew Cagney <ac131313@redhat.com>
2543 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
2545 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
2547 2003-01-12 Andrew Cagney <ac131313@redhat.com>
2549 * d10v-tdep.c: Include "gdb_assert.h".
2550 (d10v_store_return_value): Rewrite to match current interface.
2551 (d10v_extract_struct_value_address): Ditto.
2552 (d10v_extract_return_value): Ditto.
2553 (d10v_gdbarch_init): Set store_restore_value,
2554 extract_struct_value_address and extract_return_value.
2556 2003-01-12 J. Brobecker <brobecker@gnat.com>
2558 * hpread.c (set_namestring): New procedure replacing the
2559 SET_NAMESTRING macro.
2560 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
2561 by calls to set_namestring.
2563 2003-01-11 J. Brobecker <brobecker@gnat.com>
2565 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
2566 a compilation warning.
2567 (hpread_process_one_debug_symbol): Likewise.
2569 2003-01-10 David Carlton <carlton@math.stanford.edu>
2571 * linespec.c (decode_line_1): Rename variable 's' to
2573 (decode_all_digits): Rename argument 's' to 'file_symtab'.
2574 (decode_dollar): Ditto.
2575 (decode_variable): Ditto.
2576 (symbol_found): Ditto.
2578 2003-01-09 Michael Chastain <mec@shout.net>
2580 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
2582 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
2584 * win32-nat.c (set_process_privilege): New function.
2585 (child_attach): Call set_process_privilege() to enable the
2586 SE_DEBUG_NAME user privilege if available in process token.
2588 2003-01-10 J. Brobecker <brobecker@gnat.com>
2590 * hpread.c (hpread_process_one_debug_symbol): Fix a small
2591 compilation error in the previous revision.
2593 2003-01-09 David Carlton <carlton@math.stanford.edu>
2595 * linespec.c: Update copyright.
2597 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
2599 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
2601 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
2603 2003-01-09 Andrew Cagney <ac131313@redhat.com>
2605 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
2607 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
2608 (frame_saved_regs_zalloc): Update.
2609 (frame_saved_regs_register_unwind): Update.
2610 (create_new_frame): Update.
2611 (get_prev_frame): Update.
2612 (frame_extra_info_zalloc): Update.
2613 (deprecated_get_frame_saved_regs): Update.
2614 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
2615 * cris-tdep.c: Update comment.
2617 * somsolib.h: Fix function indentation.
2618 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
2619 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
2620 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
2621 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
2622 * somsolib.c, inftarg.c: Remove assignment in if conditional.
2624 * infrun.c (follow_fork): Use ISO C definition.
2625 * expprint.c (print_subexp): Use xfree instead of free.
2626 * charset.c: Include "gdb_string.h" instead of <string.h>.
2627 (register_iconv_charsets): Use ISO C definition.
2628 (host_charset, target_charset): Ditto.
2629 * Makefile.in (charset.o): Update dependencies.
2630 (mi-cmd-env.o): Update dependencies.
2632 2003-01-08 Andrew Cagney <cagney@redhat.com>
2634 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
2637 2003-01-08 Andrew Cagney <ac131313@redhat.com>
2639 * gdb_mbuild.sh: Add --keep option. When specified, keep the
2640 build directories. Save edited gdb output in Mbuild.log. If a
2641 build fails, remove any final GDB executable.
2643 2003-01-08 Andrew Cagney <ac131313@redhat.com>
2645 * gdb_mbuild.sh: Edit the output of `maint print architecture'
2646 replacing hex constants with function names and stripping leading
2647 file name directory prefixes.
2649 2003-01-08 Andrew Cagney <cagney@redhat.com>
2651 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
2654 2003-01-08 David Carlton <carlton@math.stanford.edu>
2656 * linespec.c (decode_line_1): Move code into decode_variable.
2657 (decode_variable): New function.
2659 2003-01-08 Andrew Cagney <ac131313@redhat.com>
2661 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
2663 2003-01-08 Andrew Cagney <cagney@redhat.com>
2665 * cris-tdep.c (cris_frame_init_saved_regs): Use
2666 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
2668 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
2669 (sh64_nofp_frame_init_saved_regs): Ditto.
2670 (sh_fp_frame_init_saved_regs): Ditto.
2671 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
2672 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2673 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2674 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2676 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
2678 * minsyms.c (lookup_minimal_symbol): Update comment.
2679 (lookup_minimal_symbol_text): Update comment. Use the hash table.
2680 (lookup_minimal_symbol_solib_trampoline): Likewise.
2682 2003-01-08 Andrew Cagney <cagney@redhat.com>
2684 * d10v-tdep.c (d10v_init_extra_frame_info): Use
2685 frame_relative_level.
2687 * alpha-tdep.c: Use get_frame_extra_info.
2688 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2689 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
2690 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2691 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
2693 * alpha-tdep.c: Use get_next_frame.
2694 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2695 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
2696 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
2697 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
2698 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
2699 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
2700 * xstormy16-tdep.c: Ditto.
2702 2003-01-07 Andrew Cagney <cagney@redhat.com>
2704 * alpha-tdep.c: Use get_frame_base.
2705 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2706 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
2707 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
2708 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2709 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
2710 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
2711 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
2712 * config/sparc/tm-sparc.h: Ditto.
2714 2003-01-07 Andrew Cagney <cagney@redhat.com>
2716 * frame.c (deprecated_get_frame_context): New function.
2717 (deprecated_set_frame_context): New function.
2718 * frame.h (deprecated_get_frame_context): Declare.
2719 (deprecated_set_frame_context): Declare.
2720 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
2721 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
2723 2003-01-07 Andrew Cagney <cagney@redhat.com>
2725 * frame.c (deprecated_set_frame_next_hack): New function.
2726 (deprecated_set_frame_prev_hack): New function.
2727 * frame.h (deprecated_set_frame_next_hack): Declare.
2728 (deprecated_set_frame_prev_hack): Declare.
2729 * mcore-tdep.c (analyze_dummy_frame): Use
2730 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
2731 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2733 2003-01-07 David Carlton <carlton@math.stanford.edu>
2735 * linespec.c (decode_line_1): Move code into decode_dollar.
2736 (decode_dollar): New function.
2738 2003-01-07 Andrew Cagney <cagney@redhat.com>
2740 * arm-tdep.c (arm_init_extra_frame_info): Use
2741 deprecated_update_frame_base_hack.
2742 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
2743 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2744 (fix_frame_pointer): Ditto.
2745 (mn10300_analyze_prologue): Ditto.
2747 2003-01-07 Andrew Cagney <cagney@redhat.com>
2749 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
2750 extra_info using frame_extra_info_zalloc.
2751 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
2752 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
2753 (sh64_init_extra_frame_info): Ditto.
2754 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
2755 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
2756 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2757 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
2758 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
2759 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
2760 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
2761 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
2762 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
2763 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
2764 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
2765 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
2767 * mn10300-tdep.c (analyze_dummy_frame): Use
2768 deprecated_set_frame_extra_info_hack.
2769 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2771 2003-01-07 J. Brobecker <brobecker@gnat.com>
2773 * mdebugread.c (parse_symbol): Skip stProc entries which storage
2774 class is not scText. These do not define "real" procedures.
2775 (parse_partial_symbols): Likewise.
2777 2003-01-06 Michael Snyder <msnyder@redhat.com>
2779 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
2781 2003-01-06 Andrew Cagney <ac131313@redhat.com>
2783 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
2784 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
2785 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
2786 deprecated_frame_xmalloc_with_cleanup.
2787 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
2788 deprecated_frame_xmalloc.
2789 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
2790 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
2792 2003-01-06 Andrew Cagney <cagney@redhat.com>
2794 * x86-64-linux-tdep.c: Include "osabi.h".
2795 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
2797 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
2799 2003-01-06 Andrew Cagney <cagney@redhat.com>
2801 * MAINTAINERS (Target Instruction Set Architectures): Update
2802 arm-elf. Can be built with -Werror, has been multiarched.
2804 * value.h (unpack_long): Make buffer parameter constant.
2805 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
2806 * scm-lang.h (scm_parse): Ditto.
2807 * defs.h (extract_typed_address, extract_address): Ditto.
2808 (extract_long_unsigned_integer): Ditto.
2809 * inferior.h (unsigned_pointer_to_address): Ditto.
2810 (signed_pointer_to_address): Ditto.
2811 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
2812 * gdbarch.h, gdbarch.c: Regenerate.
2813 * findvar.c (extract_long_unsigned_integer): Update.
2814 (extract_address): Update.
2815 (extract_typed_address): Update.
2816 (unsigned_pointer_to_address): Update.
2817 * values.c (unpack_long): Update.
2818 (unpack_double): Update.
2819 (unpack_pointer): Update.
2820 (unpack_field_as_long): Update.
2821 * d10v-tdep.c (d10v_pointer_to_address): Update.
2822 * avr-tdep.c (avr_pointer_to_address): Update.
2823 * scm-lang.c (scm_unpack): Update.
2824 * findvar.c (signed_pointer_to_address): Update.
2826 2003-01-06 Michal Ludvig <mludvig@suse.cz>
2828 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
2829 since it is in i386-tdep.c.
2831 2003-01-06 J. Brobecker <brobecker@gnat.com>
2833 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
2834 failure introduced in the previous change.
2836 2003-01-05 Michael Chastain <mec@shout.net>
2838 * README: Remove references to deleted remote-*.c files:
2839 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
2840 remote-nrom.c, remote-os9k.c, remote-udi.c.
2842 2003-01-05 Mark Kettenis <kettenis@gnu.org>
2844 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
2845 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
2846 i386_get_longjmp_target.
2848 2003-01-05 Andrew Cagney <ac131313@redhat.com>
2850 * arm-tdep.c (prologue_cache): Change to a pointer.
2851 (_initialize_arm_tdep): Allocate prologue_cache.
2852 (check_prologue_cache): Update.
2853 (save_prologue_cache): Update.
2854 (arm_gdbarch_init): Update.
2856 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2858 * stabsread.c (update_method_name_from_physname): Call complaint()
2861 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2863 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
2864 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
2865 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
2867 * blockframe.c: Include "gdbcmd.h" and "command.h".
2868 (backtrace_below_main): New variable.
2869 (file_frame_chain_valid, func_frame_chain_valid)
2870 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
2871 (generic_func_frame_chain_valid): Remove functions.
2872 (frame_chain_valid, do_flush_frames_sfunc): New functions.
2873 (_initialize_blockframe): New function.
2874 * Makefile.in (blockframe.o): Update dependencies.
2875 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
2876 comment. Call frame_chain_valid ().
2877 * frame.h: Remove old prototypes. Add prototype for
2878 frame_chain_valid and update comments to match.
2879 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
2881 * gdbarch.h: Regenerated.
2882 * gdbarch.c: Regenerated.
2884 * alpha-tdep.c (alpha_gdbarch_init): Don't call
2885 set_gdbarch_frame_chain_valid.
2886 * avr-tdep.c (avr_gdbarch_init): Likewise.
2887 * cris-tdep.c (cris_gdbarch_init): Likewise.
2888 * frv-tdep.c (frv_gdbarch_init): Likewise.
2889 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2890 * i386-tdep.c (i386_svr4_init_abi): Likewise.
2891 (i386_nw_init_abi): Likewise.
2892 (i386_gdbarch_init): Likewise.
2893 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2894 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2895 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2896 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2897 * mips-tdep.c (mips_gdbarch_init): Likewise.
2898 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2899 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
2900 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
2901 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2902 * s390-tdep.c (s390_gdbarch_init): Likewise.
2903 * sh-tdep.c (sh_gdbarch_init): Likewise.
2904 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2905 * v850-tdep.c (v850_gdbarch_init): Likewise.
2906 * vax-tdep.c (vax_gdbarch_init): Likewise.
2907 * x86-64-tdep.c (x86_64_init_abi): Likewise.
2909 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
2910 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
2911 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
2912 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
2913 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
2914 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
2915 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
2916 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
2918 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
2920 * Makefile.in (acconfig_h): Remove incorrect macro.
2922 (osabi.o): Update dependencies.
2923 * configure.tgt: Set gdb_osabi based on target triplet.
2924 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
2925 * configure: Regenerated.
2926 * config.in: Regenerated.
2927 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
2928 (GDB_OSABI_DEFAULT): Define if not already defined.
2929 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
2930 (set_osabi_string): New variables.
2931 (gdbarch_register_osabi): Add new OS ABI to
2932 gdb_osabi_available_names.
2933 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
2934 (set_osabi, show_osabi): New functions.
2935 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
2937 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2939 * arch-utils.c (gdbarch_info_init): Set osabi to
2940 GDB_OSABI_UNINITIALIZED.
2941 * gdbarch.sh: Add osabi to struct gdbarch and to struct
2942 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
2943 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
2944 * gdbarch.c: Regenerated.
2945 * gdbarch.h: Regenerated.
2946 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
2948 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
2949 * osabi.h (enum gdb_osabi): Move to defs.h.
2950 (gdbarch_init_osabi): Update prototype.
2951 * defs.h (enum gdb_osabi): Moved here.
2952 * Makefile.in: Update dependencies.
2954 * alpha-tdep.h: Don't include "osabi.h".
2955 (struct gdbarch_tdep): Remove osabi member.
2956 * alpha-tdep.c: Include "osabi.h".
2957 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2958 iterate over arches. Update call to gdbarch_init_osabi.
2959 (alpha_dump_tdep): Don't dump osabi.
2960 * alpha-linux-tdep.c: Include "osabi.h".
2961 * alpha-osf1-tdep.c: Include "osabi.h".
2962 * alphafbsd-tdep.c: Include "osabi.h".
2963 * alphanbsd-tdep.c: Include "osabi.h".
2965 * arm-tdep.h: Don't include "osabi.h".
2966 (struct gdbarch_tdep): Remove osabi member.
2967 * arm-tdep.c: Include "osabi.h".
2968 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2969 iterate over arches. Update call to gdbarch_init_osabi.
2970 (arm_dump_tdep): Don't dump osabi.
2971 * arm-linux-tdep.c: Include "osabi.h".
2972 * armnbsd-tdep.c: Include "osabi.h".
2974 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
2975 Update call to gdbarch_init_osabi.
2977 * i386-tdep.h: Don't include "osabi.h".
2978 (struct gdbarch_tdep): Remove osabi member.
2979 * i386-tdep.c: Include "osabi.h".
2980 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2981 iterate over arches. Update call to gdbarch_init_osabi.
2982 (i386_dump_tdep): Don't dump osabi.
2983 * i386-linux-tdep.c: Include "osabi.h".
2984 * i386-sol2-tdep.c: Include "osabi.h".
2985 * i386bsd-tdep.c: Include "osabi.h".
2986 * i386gnu-tdep.c: Include "osabi.h".
2987 * i386ly-tdep.c: Include "osabi.h".
2988 * i386nbsd-tdep.c: Include "osabi.h".
2989 * i386obsd-tdep.c: Include "osabi.h".
2991 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
2992 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2993 check osabi when iterating over arches. Update call to
2995 (mips_dump_tdep): Don't dump osabi.
2997 * ns32k-tdep.h: Don't include "osabi.h".
2998 (struct gdbarch_tdep): Remove.
2999 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
3000 gdbarch_lookup_osabi. Don't iterate over arches. Don't
3001 allocate tdep. Update call to gdbarch_init_osabi.
3002 (ns32k_dump_tdep): Remove.
3003 (_initialize_ns32k_tdep): Update call to gdbarch_register.
3004 * ns32knbsd-tdep.c: Include "osabi.h".
3006 * ppc-tdep.h: Don't include "osabi.h".
3007 (struct gdbarch_tdep): Remove osabi member.
3008 * rs6000-tdep.c: Include "osabi.h".
3009 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
3010 osabi when iterating over arches. Update call to
3012 (rs6000_dump_tdep): Don't dump osabi.
3013 * ppc-linux-tdep.c: Include "osabi.h".
3014 * ppcnbsd-tdep.c: Include "osabi.h".
3016 * sh-tdep.h: Don't include "osabi.h".
3017 (struct gdbarch_tdep): Remove osabi member.
3018 * sh-tdep.c: Include "osabi.h".
3019 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3020 iterate over arches. Update call to gdbarch_init_osabi.
3021 (sh_dump_tdep): Don't dump osabi.
3022 * shnbsd-tdep.c: Include "osabi.h".
3024 * sparc-tdep.c: Include "osabi.h".
3025 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3026 iterate over arches. Update call to gdbarch_init_osabi.
3027 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
3030 * vax-tdep.h: Don't include "osabi.h".
3031 (struct gdbarch_tdep): Remove.
3032 * vax-tdep.c: Include "osabi.h".
3033 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3034 iterate over arches. Don't allocate tdep. Update call
3035 to gdbarch_init_osabi.
3036 (vax_dump_tdep): Remove.
3037 (_initialize_vax_tdep): Update call to gdbarch_register.
3039 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3041 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
3043 (breakpoint_re_set_one): Don't fetch the value for a disabled
3046 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3048 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
3049 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
3050 (COERCE_FLOAT_TO_DOUBLE): Remove.
3051 * gdbarch.c: Regenerate.
3052 * gdbarch.h: Regenerate.
3053 * Makefile.in: Remove value_h from gdbarch_h.
3054 * valops.c (coerce_float_to_double): New variable.
3055 (default_coerce_float_to_double): Remove.
3056 (standard_coerce_float_to_double): Remove.
3057 (value_arg_coerce): Use coerce_float_to_double.
3058 (_initialize_valops): Add "set coerce-float-to-double".
3059 * value.h (default_coerce_float_to_double): Remove prototype.
3060 (standard_coerce_float_to_double): Remove prototype.
3062 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
3064 * mdebugread.c (parse_symbol): Likewise.
3065 * stabsread.c (define_symbol): Mark all functions as prototyped.
3067 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
3068 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
3069 set_gdbarch_coerce_float_to_double.
3070 * arm-tdep.c (arm_gdbarch_init): Likewise.
3071 * frv-tdep.c (frv_gdbarch_init): Likewise.
3072 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
3073 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
3074 * mips-tdep.c (mips_gdbarch_init): Likewise.
3075 (mips_coerce_float_to_double): Remove.
3076 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3077 (rs6000_coerce_float_to_double): Remove.
3078 * s390-tdep.c (s390_gdbarch_init): Likewise.
3079 * sh-tdep.c (sh_gdbarch_init): Likewise.
3080 (sh_coerce_float_to_double): Remove.
3081 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3082 (sparc_coerce_float_to_double): Remove.
3083 * v850-tdep.c (v850_gdbarch_init): Likewise.
3084 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3085 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3086 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
3087 (hppa_coerce_float_to_double): Remove prototype.
3088 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3090 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3092 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
3094 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3096 Suggested by Stewart Brown <sb24@avaya.com>:
3097 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
3098 in recursive calls. Handle TYPE_CODE_TYPEDEF.
3099 (c_type_print_varspec_suffix): Likewise.
3101 2003-01-04 Mark Kettenis <kettenis@gnu.org>
3103 * configure.in: Don't set and AC_SUBST SUBDIRS.
3104 * configure: Regenerated.
3106 * configure.in: Remove code dealing with shared libraries.
3107 * Makefile.in: Remove HLDFLAGS and HLDENV.
3108 * configure: Regenerated.
3110 2003-01-04 Andrew Cagney <ac131313@redhat.com>
3112 * frame.c (deprecated_frame_xmalloc): New function.
3113 (deprecated_set_frame_saved_regs_hack): New function.
3114 (deprecated_set_frame_extra_info_hack): New function.
3115 * frame.h (deprecated_frame_xmalloc): Declare.
3116 (deprecated_set_frame_saved_regs_hack): Declare.
3117 (deprecated_set_frame_extra_info_hack): Declare.
3119 2003-01-04 Mark Kettenis <kettenis@gnu.org>
3121 * configure.in: Move code that provides the --enable-gdbtk option
3122 right after the code that handles the --enable-tui option, and
3124 * configure: Regenerated.
3126 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
3127 AC_CHECK_FUNCS and remove the old check for pread64.
3128 * acinclude.m4 (AC_GNU_SOURCE): New macro.
3129 * acconfig.h (_GNU_SOURCE): Add.
3130 (HAVE_PREAD64): Remove.
3131 * configure, aclocal.m4, config.in: Regenerated.
3133 2003-01-03 Andrew Cagney <ac131313@redhat.com>
3135 * alpha-tdep.c: Use get_frame_saved_regs.
3136 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3137 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3138 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
3139 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
3140 * vax-tdep.c, xstormy16-tdep.c: Ditto.
3142 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3144 * configure.in: Remove all use of the SUBDIRS variable; add
3145 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
3146 code providing the --enable-multi-ice option, and move it right in
3147 front of the code that checks whether gdbserver is supported.
3149 * configure: Regenerated.
3150 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
3153 2003-01-03 Andrew Cagney <cagney@redhat.com>
3155 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
3156 * avr-tdep.c, cris-tdep.c: Ditto.
3157 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3158 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3160 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3162 * configure.in: Remove --enable-netrom option.
3163 * configure: Regenerated.
3165 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3167 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
3168 declaration for `struct re_pattern_buffer' instead.
3169 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
3171 2003-01-03 J. Brobecker <brobecker@gnat.com>
3173 * mdebugread.c (parse_symbol): Count until the stEnd matching
3176 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3178 * configure.in: Remove --with-cpu option.
3179 subscripts. Remove evil changequotes here.
3180 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
3181 * config.in, configure: Regenerated.
3183 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
3184 * configure.in: Cleanup section that sources GDB and BFD configure
3185 subscripts. Remove evil changequotes here.
3186 * config.in, configure: Regenerated.
3188 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3190 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
3191 frame accessor methods.
3192 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3193 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3194 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
3195 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
3196 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3197 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3198 * z8k-tdep.c: Ditto.
3200 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3202 * configure.in: Remove UI_OUT configuration code.
3203 * ada-lang.c: Update assuming UI_OUT is always true.
3204 * Makefile.in (UIOUT_CFLAGS): Remove.
3205 * configure: Regenerated.
3206 * TODO: Remove blurb about elimination of -DUI_OUT.
3208 * configure.in: Move code that provides the --enable-gdbcli,
3209 --enable-gdbmi options right before the code that handles the
3210 --enable-tui option. Polish a bit.
3211 * configure: Regenerated.
3213 * configure.in: Rewrite check for GNU regex and the
3214 --without-included regex option, and move it into the "Checks for
3215 library functions" section. This makes us use the system regex
3216 again by default on systems with version 2 of the GNU C library.
3217 This was apparently broken.
3218 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
3219 * acconfig.h (USE_INCLUDED_REGEX): Remove.
3220 * config.in, configure: Regenerated.
3222 * configure.in: Move code that provides the --enable-tui option
3223 before the "Checks for libraries" section. Polish the code
3224 somewhat and set need_curses to yes if we build the TUI. Rewrite
3225 code that looks for a library providing termcap functionality to
3226 match more closely what's done in the Readline library, and move
3227 it into to the "Checks for libraries" section.
3228 * configure: Regenerated.
3229 * Makefile.in (TERMCAP): Remove variable.
3230 * config/i386/go32.mh (TERMCAP): Remove variable.
3232 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3234 * MAINTAINERS: Mention gdb_mbuild.sh.
3235 * gdb_mbuild.sh: Rewrite.
3237 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3239 * configure.in: Fix typo in last change.
3240 * config.in, configure: Regenerated.
3242 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3244 * valarith.c (value_binop): Delete obsolete code and comments.
3245 * configure.host: Ditto.
3246 * buildsym.h (make_blockvector): Ditto.
3247 * buildsym.c (make_blockvector): Ditto.
3248 * defs.h (enum language): Ditto.
3249 (chill_demangle): Ditto.
3250 * elfread.c (elf_symtab_read): Ditto.
3251 * dwarfread.c (CHILL_PRODUCER): Ditto.
3252 (set_cu_language): Ditto.
3253 (handle_producer): Ditto.
3254 * expprint.c (print_subexp): Ditto.
3255 * gdbtypes.c (chill_varying_type): Ditto.
3256 * gdbtypes.h (builtin_type_chill_bool): Ditto.
3257 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
3258 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
3259 (chill_varying_type): Ditto.
3260 * language.h (_LANG_chill): Ditto.
3261 * language.c (binop_result_type, integral_type): Ditto.
3262 (character_type, string_type, structured_type): Ditto.
3263 (lang_bool_type, binop_type_check): Ditto.
3264 * stabsread.h (os9k_stabs): Ditto.
3265 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
3266 (define_symbol, read_type, read_struct_fields): Ditto.
3267 (read_array_type, read_enum_type, read_huge_number): Ditto.
3268 (read_range_type, start_stabs): Ditto.
3269 * symfile.c (init_filename_language_table): Ditto.
3270 (add_psymbol_with_dem_name_to_list): Ditto.
3271 * symtab.c (symbol_init_language_specific): Ditto.
3272 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
3273 * symtab.h (struct general_symbol_info): Ditto.
3274 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3275 * typeprint.c (typedef_print): Ditto.
3276 * utils.c (fprintf_symbol_filtered): Ditto.
3277 * valops.c (value_cast, search_struct_field, value_slice): Delete
3279 (varying_to_slice): Delete function.
3280 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
3281 (varying_to_slice): Delete declaration.
3282 * MAINTAINERS: Update.
3284 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3286 * configure.in: Reorganize "Checks for library functions section"
3287 a bit. Remove check for `btowc' and `isascii' functions.
3288 * configure: Regenerated.
3290 * acconfig.h (_MSE_INT_H): Remove.
3291 * configure.in: Create "Checks for header files" section, and move
3292 appropriate tests there. Don't check for objlist.h, wchar.h,
3293 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
3294 misdetection fix. Also add "Checks for types", "Checks for
3295 compiler characteristics" and "Checks for library functions"
3297 * config.in, configure: Regenerated.
3299 * configure.in: Create "Checks for programs" section, and move
3300 appropriate tests there.
3302 2003-01-01 Mark Kettenis <kettenis@gnu.org>
3304 * configure.in: Create "Checks for libraries" section, and move
3305 appropriate tests there. Cleanup check for wctype in libw. Use
3306 AC_SEARCH_LIBS to see whether we need libsocket.
3307 * configure: Regenerated.
3309 For older changes see ChangeLog-2002
3315 version-control: never