1 2003-03-18 J. Brobecker <brobecker@gnat.com>
3 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
4 appear to be working in any case.
6 2003-03-18 J. Brobecker <brobecker@gnat.com>
8 * observer.c (observer_test_first_observer): New static variable.
9 (observer_test_second_observer): Likewise.
10 (observer_test_third_observer): Likewise.
11 (observer_test_first_notification_function): New static function.
12 (observer_test_second_notification_function): Likewise.
13 (observer_test_third_notification_function): Likewise.
15 2003-03-17 J. Brobecker <brobecker@gnat.com>
17 * hppa-tdep.c (gdb_assert.h): Add missing #include.
18 * somsolib.c (gdb_assert.h): Likewise.
19 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
20 (somsolib.o): Likewise.
22 2003-03-17 Andrew Cagney <cagney@redhat.com>
24 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
25 BFD. Simplify setting of di.endian.
27 2003-03-17 Andrew Cagney <cagney@redhat.com>
29 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
30 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
32 From Elena Zannoni <ezannoni@redhat.com>
33 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
34 vector and floating-point parameters.
35 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
37 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
39 2003-03-17 Fernando Nasser <fnasser@redhat.com>
41 * MAINTAINERS: Remove my name from several maintainership roles.
43 2003-03-17 Andrew Cagney <cagney@redhat.com>
45 Fix frame off-by-one bug.
46 * frame-unwind.h (frame_this_id_ftype): Replace
47 frame_unwind_id_ftype.
48 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
49 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
51 * frame-unwind.c (frame_unwind_find_by_pc): Return
52 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
54 * dummy-frame.c (cached_find_dummy_frame): Delete function.
55 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
56 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
57 (dummy_frame_unwind): Update.
58 * sentinel-frame.c (sentinel_frame_prev_register): Replace
59 sentinel_frame_register_unwind.
60 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
61 (sentinel_frame_unwinder): Update.
62 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
63 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
64 * frame.c (create_sentinel_frame): Update. Initialize
65 "prologue_cache" instead of "unwind_cache".
66 (frame_register_unwind): Call this frame's prev_register with the
67 next frame and this frame's prologue cache.
68 (get_prev_frame): Simplify. Always call prev frame's this_id with
69 this frame and prev frame's prologue cache. Document that this
70 call is shifted one to the left when compared to the
71 frame_register_unwind call.
72 (legacy_saved_regs_prev_register): Replace
73 frame_saved_regs_register_unwind.
74 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
75 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
76 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
77 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
78 (d10v_frame_unwind): Update.
79 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
80 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
81 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
82 "saved_regs" with "this_saved_regs".
84 2003-03-16 Andrew Cagney <cagney@redhat.com>
86 * frame.c (frame_pop): Don't call target_store_registers. Fix
87 problem reported by Mark Kettenis.
89 2003-03-16 Mark Kettenis <kettenis@gnu.org>
91 * i386-tdep.c (i386_register_type): Renamed from
92 i386_register_virtual_type. Adjust function signature.
93 (i386_gdbarch_init): Set register_type instead of
94 deprecated_max_register_raw_size,
95 deprecated_max_register_virtual_size and register_virtual_type.
97 2003-03-14 Andrew Cagney <cagney@redhat.com>
99 * frame.c (get_prev_frame): When a legacy frame, always call
100 legacy_get_prev_frame. Simplify unwind code using assumption that
102 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
103 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
104 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
106 2003-03-14 Andrew Cagney <cagney@redhat.com>
108 * frame.c (get_saved_register): Delete function.
109 * frame.h (get_saved_register): Delete declaration.
110 * xstormy16-tdep.c: Update comment.
111 * regcache.h: Update comments.
112 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
113 get_saved_register and extract_address, use
114 frame_read_unsigned_register.
115 (sparc_frame_saved_pc): Ditto.
116 (sparc_get_saved_register): Instead of get_saved_register, use
118 (sparc_pop_frame): Ditto.
119 * findvar.c: Update comments.
120 (value_of_register): Call frame_register instead of
122 (value_from_register): Ditto.
123 * config/sparc/tm-sparc.h: Update comment.
124 * breakpoint.c: Update comment.
126 2003-03-14 Andrew Cagney <cagney@redhat.com>
128 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
130 * gdbarch.h, gdbarch.c: Re-generate.
131 * frame.h: Update comments.
132 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
133 * x86-64-tdep.c (x86_64_init_abi): Update.
134 * sparc-tdep.c (sparc_gdbarch_init): Update.
135 * sh-tdep.c (sh_gdbarch_init): Update.
136 * mips-tdep.c (mips_gdbarch_init): Update.
137 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
138 * cris-tdep.c (cris_gdbarch_init): Update.
139 * ia64-tdep.c (ia64_gdbarch_init): Update.
140 * frame.c (frame_register): Update.
141 (get_saved_register): Update.
142 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
144 2003-03-13 Andrew Cagney <cagney@redhat.com>
146 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
147 * gdbarch.h, gdbarch.c: Regenerate.
148 * valops.c (hand_function_call): Update comment.
149 * stack.c (return_command): Update comment.
150 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
151 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
152 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
153 * x86-64-tdep.c (x86_64_init_abi): Update.
154 * vax-tdep.c (vax_gdbarch_init): Update.
155 * v850-tdep.c (v850_gdbarch_init): Update.
156 * sparc-tdep.c (sparc_gdbarch_init): Update.
157 * sh-tdep.c (sh_gdbarch_init): Update.
158 * s390-tdep.c (s390_gdbarch_init): Update.
159 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
160 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
161 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
162 * mips-tdep.c (mips_gdbarch_init): Update.
163 * mcore-tdep.c (mcore_gdbarch_init): Update.
164 * m68k-tdep.c (m68k_gdbarch_init): Update.
165 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
166 * ia64-tdep.c (ia64_gdbarch_init): Update.
167 * i386-tdep.c (i386_gdbarch_init): Update.
168 * hppa-tdep.c (hppa_gdbarch_init): Update.
169 * h8300-tdep.c (h8300_gdbarch_init): Update.
170 * frv-tdep.c (frv_gdbarch_init): Update.
171 * cris-tdep.c (cris_gdbarch_init): Update.
172 * avr-tdep.c (avr_gdbarch_init): Update.
173 * arm-tdep.c (arm_gdbarch_init): Update.
174 * alpha-tdep.c (alpha_gdbarch_init): Update.
176 2003-03-13 Andrew Cagney <cagney@redhat.com>
178 * frame.c (legacy_frame_p): New function.
179 (get_prev_frame): Use legacy_frame_p.
180 * frame.h (legacy_frame_p): Declare.
182 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
184 * MAINTAINERS (write after approval): Alphabetically
187 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
189 * MAINTAINERS (write after approval): Add myself.
191 2003-03-12 Andrew Cagney <cagney@redhat.com>
193 * frame.c (get_prev_frame): Rename the frame parameter to
195 (get_next_frame, legacy_get_prev_frame): Ditto.
197 2003-03-12 Andrew Cagney <cagney@redhat.com>
199 * frame.c (get_current_frame): Check target_has_registers before
200 checking target_has_stack.
201 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
202 instead of deprecated_selected_frame.
203 * findvar.c (value_of_register): Pass "frame", not
204 deprecated_selected_frame, to value_of_builtin_reg.
206 2003-03-12 Andrew Cagney <cagney@redhat.com>
208 * regcache.c (regcache_cooked_write_signed): New function.
209 (regcache_cooked_write_unsigned): New function.
210 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
211 (regcache_cooked_read_signed): Fix regnum in range assertion.
212 * regcache.h (regcache_cooked_write_signed): Declare.
213 (regcache_cooked_write_unsigned): Declare.
215 2003-03-12 Andrew Cagney <cagney@redhat.com>
217 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
218 * gdbarch.h, gdbarch.c: Re-generate.
219 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
220 * x86-64-tdep.h: Update.
221 * x86-64-tdep.c (x86_64_init_abi): Update.
222 * v850-tdep.c (v850_gdbarch_init): Update.
223 * sparc-tdep.c (sparc_gdbarch_init): Update.
224 * sh-tdep.c (sh_gdbarch_init): Update.
225 * s390-tdep.c (s390_gdbarch_init): Update.
226 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
227 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
228 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
229 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
230 * mips-tdep.c (mips_gdbarch_init): Update.
231 * mcore-tdep.c (mcore_gdbarch_init): Update.
232 * m68k-tdep.c (m68k_gdbarch_init): Update.
233 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
234 * ia64-tdep.c (ia64_gdbarch_init): Update.
235 * i386-tdep.c (i386_gdbarch_init): Update.
236 * i386-interix-tdep.c (i386_interix_init_abi): Update.
237 * hppa-tdep.c (hppa_gdbarch_init): Update.
238 * h8300-tdep.c (h8300_gdbarch_init): Update.
239 * frv-tdep.c (frv_gdbarch_init): Update.
240 * cris-tdep.c (cris_gdbarch_init): Update.
241 * avr-tdep.c (avr_gdbarch_init): Update.
242 * arm-tdep.c (arm_gdbarch_init): Update.
243 * alpha-tdep.c (alpha_gdbarch_init): Update.
244 * sh-tdep.c (sh_init_extra_frame_info): Update.
245 (sh64_init_extra_frame_info): Update.
246 * ns32knbsd-nat.c (frame_num_args): Update.
247 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
248 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
249 (xstormy16_frame_chain_valid): Update.
250 * vax-tdep.c (vax_saved_pc_after_call): Update.
251 * v850-tdep.c (v850_frame_chain): Update.
252 (v850_pop_frame): Update.
253 (v850_init_extra_frame_info): Update.
254 * sparc-tdep.c (setup_arbitrary_frame): Update.
255 * ns32k-tdep.c (umax_frame_num_args): Update.
256 * s390-tdep.c (s390_pop_frame_regular): Update.
257 * mn10300-tdep.c (mn10300_frame_chain): Update.
258 (mn10300_pop_frame_regular): Update.
259 (mn10300_init_extra_frame_info): Update.
260 * mips-tdep.c (mips_init_frame_pc_first): Update.
261 (mips_frame_chain): Update.
262 (mips_pop_frame): Update.
263 * mcore-tdep.c (mcore_frame_chain): Update.
264 (mcore_pop_frame): Update.
265 (mcore_init_extra_frame_info): Update.
266 * arch-utils.c (init_frame_pc_default): Update.
267 * m68k-tdep.c (isi_frame_num_args): Update.
268 (delta68_frame_num_args): Update.
269 (news_frame_num_args): Update.
270 * ia64-tdep.c (ia64_pop_frame_regular): Update.
271 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
272 (alpha_frame_chain): Update.
273 (alpha_pop_frame): Update.
274 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
275 (hppa_init_extra_frame_info): Update.
276 (hppa_frame_chain): Update.
277 (hppa_frame_chain_valid): Update.
278 * cris-tdep.c (cris_init_extra_frame_info): Update.
279 * avr-tdep.c (avr_init_extra_frame_info): Update.
280 * arm-tdep.c (arm_frame_chain_valid): Update.
281 (arm_init_extra_frame_info): Update.
282 (arm_pop_frame): Update.
283 * frame.c (frame_pc_unwind): Update.
284 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
285 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
286 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
287 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
288 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
289 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
291 2003-03-12 Andrew Cagney <cagney@redhat.com>
293 Eliminate the need for POP_FRAME.
294 * frame.c (do_frame_unwind_register): New function.
295 (frame_pop): When no POP_FRAME, pop the frame using register
296 unwind and a scratch regcache.
297 (frame_saved_regs_pop): Delete function.
298 (trad_frame_unwinder): Update.
299 * d10v-tdep.c (d10v_frame_pop): Delete function.
300 (d10v_frame_unwind): Update.
301 * sentinel-frame.c (sentinel_frame_pop): Delete function.
302 (sentinel_frame_unwinder): Update.
303 * dummy-frame.c (dummy_frame_pop): Delete function.
304 (dummy_frame_unwind): Update.
305 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
306 (struct frame_unwind): Update.
308 2003-03-11 Kevin Buettner <kevinb@redhat.com>
310 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
311 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
312 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
313 Do range checks on register number obtained from debugging info.
314 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
315 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
316 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
318 (do_fp_register_row): Fix typo which caused double type to be
319 used when attempting to unpack a float.
321 2003-03-11 J. Brobecker <brobecker@gnat.com>
323 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
325 2003-03-11 Andrew Cagney <cagney@redhat.com>
327 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
328 frame. Problem found by Corinna Vinschen.
330 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
332 * doublest.c (floatformat_from_length): Accept also
333 the real size of 'long double' type.
335 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
337 From Klee Dienes <kdienes@apple.com>:
338 * breakpoint.c (bpstat_copy): Copy the command lines as well
339 as the old value, to match what is freed in bpstat_clear.
341 2003-03-10 David Carlton <carlton@math.stanford.edu>
343 * minsyms.c (add_minsym_to_hash_table): Replace
344 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
345 (compare_minimal_symbols, compact_minimal_symbols)
346 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
347 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
348 of DEPRECATED_SYMBOL_MATCHES_NAME.
349 (lookup_minimal_symbol_solib_trampoline): Ditto.
351 2003-03-10 Andrew Cagney <cagney@redhat.com>
353 * regcache.h (regcache_cooked_read_ftype): Define.
354 (regcache_save, regcache_restore): Add a cooked_read parameter.
355 * regcache.c (regcache_save, regcache_restore): Update.
356 (do_cooked_read): New function.
357 (regcache_cpy): Pass do_cooked_read to regcache_save and
360 2003-03-10 Andrew Cagney <cagney@redhat.com>
362 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
363 * gdbarch.h, gdbarch.c: Re-generate.
364 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
365 * x86-64-tdep.h: Update.
366 * x86-64-tdep.c (x86_64_init_abi): Update.
367 * v850-tdep.c (v850_gdbarch_init): Update.
368 * sparc-tdep.c (sparc_gdbarch_init): Update.
369 * sh-tdep.c (sh_gdbarch_init): Update.
370 * s390-tdep.c (s390_gdbarch_init): Update.
371 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
372 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
373 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
374 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
375 * mips-tdep.c (mips_gdbarch_init): Update.
376 * mcore-tdep.c (mcore_gdbarch_init): Update.
377 * m68k-tdep.c (m68k_gdbarch_init): Update.
378 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
379 * ia64-tdep.c (ia64_gdbarch_init): Update.
380 * i386-tdep.c (i386_gdbarch_init): Update.
381 * i386-interix-tdep.c (i386_interix_init_abi): Update.
382 * hppa-tdep.c (hppa_gdbarch_init): Update.
383 * h8300-tdep.c (h8300_gdbarch_init): Update.
384 * frv-tdep.c (frv_gdbarch_init): Update.
385 * cris-tdep.c (cris_gdbarch_init): Update.
386 * avr-tdep.c (avr_gdbarch_init): Update.
387 * arm-tdep.c (arm_gdbarch_init): Update.
388 * alpha-tdep.c (alpha_gdbarch_init): Update.
389 * sh-tdep.c (sh_init_extra_frame_info): Update.
390 (sh64_init_extra_frame_info): Update.
391 * ns32knbsd-nat.c (frame_num_args): Update.
392 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
393 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
394 (xstormy16_frame_chain_valid): Update.
395 * vax-tdep.c (vax_saved_pc_after_call): Update.
396 * v850-tdep.c (v850_frame_chain): Update.
397 (v850_pop_frame): Update.
398 (v850_init_extra_frame_info): Update.
399 * sparc-tdep.c (setup_arbitrary_frame): Update.
400 * ns32k-tdep.c (umax_frame_num_args): Update.
401 * s390-tdep.c (s390_pop_frame_regular): Update.
402 * mn10300-tdep.c (mn10300_frame_chain): Update.
403 (mn10300_pop_frame_regular): Update.
404 (mn10300_init_extra_frame_info): Update.
405 * mips-tdep.c (mips_init_frame_pc_first): Update.
406 (mips_frame_chain): Update.
407 (mips_pop_frame): Update.
408 * mcore-tdep.c (mcore_frame_chain): Update.
409 (mcore_pop_frame): Update.
410 (mcore_init_extra_frame_info): Update.
411 * arch-utils.c (init_frame_pc_default): Update.
412 * m68k-tdep.c (isi_frame_num_args): Update.
413 (delta68_frame_num_args): Update.
414 (news_frame_num_args): Update.
415 * ia64-tdep.c (ia64_pop_frame_regular): Update.
416 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
417 (alpha_frame_chain): Update.
418 (alpha_pop_frame): Update.
419 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
420 (hppa_init_extra_frame_info): Update.
421 (hppa_frame_chain): Update.
422 (hppa_frame_chain_valid): Update.
423 * cris-tdep.c (cris_init_extra_frame_info): Update.
424 * avr-tdep.c (avr_init_extra_frame_info): Update.
425 * arm-tdep.c (arm_frame_chain_valid): Update.
426 (arm_init_extra_frame_info): Update.
427 (arm_pop_frame): Update.
428 * frame.c (frame_pc_unwind): Update.
429 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
430 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
431 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
432 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
433 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
434 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
436 2003-03-10 Andrew Cagney <cagney@redhat.com>
438 * gdbarch.sh (gdbarch_unwind_pc): New method.
439 * gdbarch.h, gdbarch.c: Regenerate.
440 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
441 but use read_pc and FRAME_SAVED_PC as fall backs.
442 (frame_saved_regs_pc_unwind): Delete function.
443 (trad_frame_unwinder): Update.
444 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
445 (struct frame_unwind): Update.
446 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
447 (dummy_frame_unwind): Update.
448 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
449 (sentinel_frame_unwinder): Update.
450 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
451 (d10v_frame_unwind): Update.
452 (d10v_unwind_pc): New function.
453 (d10v_gdbarch_init): Set unwind_pc.
455 2003-03-10 Andrew Cagney <cagney@redhat.com>
457 * gdbarch.h: Re-generate.
459 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
461 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
464 2003-03-08 Mark Kettenis <kettenis@gnu.org>
466 * gdbarch.sh (save_dummy_frame_tos): Add comment.
468 2003-03-08 Andrew Cagney <cagney@redhat.com>
470 * cli-out.c: Update copyright.
471 (cli_out_data): Define typedef. Use instead of ui_out_data.
473 2003-03-08 Andrew Cagney <cagney@redhat.com>
475 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
478 2003-03-07 Andrew Cagney <cagney@redhat.com>
480 * gdbarch.sh: Don't generate two macro definitions when an
481 undefined macro taking no arguments.
482 * gdbarch.h: Regenerate.
484 2002-03-07 Michal Ludvig <mludvig@suse.cz>
486 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
487 (x86_64_unwind_dummy_id): New functions.
488 (x86_64_init_abi): Register these two new functions.
490 2003-03-07 Michal Ludvig <mludvig@suse.cz>
492 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
493 (x86_64_skip_prologue): Move prologue detection to
495 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
497 2003-03-05 Andrew Cagney <cagney@redhat.com>
499 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
500 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
501 * frame.c (get_prev_frame): Restructure the frame ID unwind code
502 to use unwind_dummy_id when a dummy frame.
503 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
505 * gdbarch.h, gdbarch.c: Regneerate.
507 2003-03-05 Andrew Cagney <cagney@redhat.com>
509 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
510 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
511 Do not use d10v_read_sp or d10v_read_fp when obtaining register
514 2003-03-05 Andrew Cagney <cagney@redhat.com>
516 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
517 (struct d10v_unwind_cache): Delete field "frameless". Replace
518 "next_addr" with "sp_offset". Add "r11_offset".
519 (d10v_frame_unwind_cache): Update.
520 (prologue_find_regs): Update. When "mv r11, sp", save the
521 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
522 RN was saved in r11_offset.
524 2003-03-05 Andrew Cagney <cagney@redhat.com>
526 * frame.c (deprecated_update_frame_pc_hack): Also update the the
527 cached PC value in the next frame.
529 2003-03-05 Andrew Cagney <cagney@redhat.com>
531 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
532 "id_unwind_cache" with "id".
533 (frame_id_unwind): Delete declaration.
534 * frame.c (frame_id_unwind): Delete function.
535 (get_prev_frame): Call the frame id unwind method directly. Store
536 the returned next frame's ID value in NEXT_FRAME. Note that there
537 is a problem with the wrong unwind ID being called with the wrong
540 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
542 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
544 2003-03-05 James Ingham <jingham@apple.com>
545 Daniel Jacobowitz <drow@mvista.com>
547 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
548 (auto_cp_abi): New variable.
549 (current_cp_abi, num_cp_abis): Make static.
550 (CP_ABI_MAX): Define.
551 (cp_abis): Turn into an array.
552 (value_virtual_fn_field): Fix formatting.
553 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
555 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
556 (list_cp_abis, _initialize_cp_abi): New functions.
557 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
558 declarations for cp_abis, num_cp_abis, current_cp_abi, and
559 switch_to_cp_abi. Update prototype for register_cp_abi.
560 * Makefile.in (cp-abi.o): Update dependencies.
561 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
562 instead of switch_to_cp_abi.
563 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
565 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
567 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
569 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
571 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
572 * dwarf2loc.c: Include "regcache.h".
573 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
575 * Makefile.in (dwarf2loc.o): Update dependencies.
577 2003-03-04 Theodore A. Roth <troth@openavr.org>
579 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
580 number of io registers reported by remote target is not a multiple of
583 2003-03-04 David Carlton <carlton@math.stanford.edu>
585 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
586 (lookup_symbol_aux_psymtabs): Update call to
587 lookup_partial_symbol.
588 (lookup_transparent_type, find_main_psymtab)
589 (make_symbol_overload_list): Ditto.
591 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
593 * MAINTAINERS (Write after approval): Update my email address.
595 2003-03-03 Andrew Cagney <cagney@redhat.com>
597 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
598 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
599 predicate. Replace MAX_REGISTER_RAW_SIZE.
600 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
601 MAX_REGISTER_VIRTUAL_SIZE.
602 * regcache.c (legacy_max_register_raw_size): New function.
603 (legacy_max_register_virtual_size): New function.
604 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
605 (MAX_REGISTER_RAW_SIZE): Define.
606 (legacy_max_register_raw_size): Declare.
607 (legacy_max_register_virtual_size): Declare.
608 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
609 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
610 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
611 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
612 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
613 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
614 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
615 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
616 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
617 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
618 * vax-tdep.c (vax_gdbarch_init): Update.
619 * v850-tdep.c (v850_gdbarch_init): Update.
620 * sparc-tdep.c (sparc_gdbarch_init): Update.
621 * sh-tdep.c (sh_gdbarch_init): Update.
622 * s390-tdep.c (s390_gdbarch_init): Update.
623 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
624 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
625 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
626 * mips-tdep.c (mips_gdbarch_init): Update.
627 * mcore-tdep.c (mcore_gdbarch_init): Update.
628 * m68k-tdep.c (m68k_gdbarch_init): Update.
629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
630 * ia64-tdep.c (ia64_gdbarch_init): Update.
631 * i386-tdep.c (i386_gdbarch_init): Update.
632 * hppa-tdep.c (hppa_gdbarch_init): Update.
633 * h8300-tdep.c (h8300_gdbarch_init): Update.
634 * frv-tdep.c (frv_gdbarch_init): Update.
635 * cris-tdep.c (cris_gdbarch_init): Update.
636 * avr-tdep.c (avr_gdbarch_init): Update.
637 * arm-tdep.c (arm_gdbarch_init): Update.
638 * alpha-tdep.c (alpha_gdbarch_init): Update.
639 * d10v-tdep.c (d10v_gdbarch_init): Do not set
640 max_register_raw_size or max_register_virtual_size.
642 2003-03-03 David Carlton <carlton@math.stanford.edu>
644 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
645 SYMBOL_MATCHES_NAME, add comment.
646 (SYMBOL_MATCHES_NATURAL_NAME): New.
647 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
648 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
649 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
650 * symtab.c (lookup_partial_symbol): Use
651 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
653 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
657 2003-03-03 David Carlton <carlton@math.stanford.edu>
659 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
660 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
661 by regexp matching against SYMBOL_NATURAL_NAME.
663 2003-03-03 David Carlton <carlton@math.stanford.edu>
665 * linespec.c (find_method): Extract code into collect_methods.
666 (collect_methods): New.
668 2003-03-02 Mark Kettenis <kettenis@gnu.org>
670 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
673 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
674 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
676 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
678 * arch-utils.c (generic_register_byte): Fix to use the loop index
679 and not regnum when summing the size of all registers up to regnum.
681 2003-03-01 Andrew Cagney <cagney@redhat.com>
683 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
684 FRAME_INIT_SAVED_REGS.
685 * gdbarch.h, gdbarch.c: Regenerate.
686 * stack.c (frame_info): Update.
687 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
688 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
689 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
690 * ns32k-tdep.c (ns32k_pop_frame): Update.
691 * mips-tdep.c (mips_pop_frame): Update.
692 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
693 * ia64-tdep.c (ia64_frame_chain): Update.
694 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
695 (ia64_frameless_function_invocation): Update.
696 (ia64_init_extra_frame_info): Update.
697 (ia64_pop_frame_regular): Update.
698 * frame.h (struct frame_info): Update comment.
699 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
700 * frame.c (frame_saved_regs_register_unwind): Update.
701 (frame_saved_regs_register_unwind): Update.
702 (deprecated_generic_get_saved_register): Update.
703 * cris-tdep.c: Update comment.
704 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
706 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
707 * x86-64-tdep.c (x86_64_init_abi): Update.
708 * vax-tdep.c (vax_gdbarch_init): Update.
709 * v850-tdep.c (v850_gdbarch_init): Update.
710 * sparc-tdep.c (sparc_gdbarch_init): Update.
711 * sh-tdep.c (sh_gdbarch_init): Update.
712 * s390-tdep.c (s390_gdbarch_init): Update.
713 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
714 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
715 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
716 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
717 * mips-tdep.c (mips_gdbarch_init): Update.
718 * mcore-tdep.c (mcore_gdbarch_init): Update.
719 * m68k-tdep.c (m68k_gdbarch_init): Update.
720 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
721 * ia64-tdep.c (ia64_gdbarch_init): Update.
722 * i386-tdep.c (i386_gdbarch_init): Update.
723 * frv-tdep.c (frv_gdbarch_init): Update.
724 * avr-tdep.c (avr_gdbarch_init): Update.
725 * arm-tdep.c (arm_gdbarch_init): Update.
726 * alpha-tdep.c (alpha_gdbarch_init): Update.
728 2003-03-01 Andrew Cagney <cagney@redhat.com>
730 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
731 option enum and switch. When no windows, set the interpreter to
734 2003-03-01 Andrew Cagney <cagney@redhat.com>
736 * main.c (captured_main): Replace magic option characters with an
739 2003-03-01 Andrew Cagney <cagney@redhat.com>
741 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
742 INIT_EXTRA_FRAME_INFO.
743 * gdbarch.h, gdbarch.c: Regenerate.
744 * arm-tdep.c: Update comments.
745 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
746 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
747 * frame.h, avr-tdep.c: Ditto.
748 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
749 (create_new_frame, legacy_get_prev_frame): Ditto.
750 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
751 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
752 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
753 deprecated_init_extra_frame_info instead of init_extra_frame_info.
754 * x86-64-tdep.c (x86_64_init_abi): Ditto.
755 * v850-tdep.c (v850_gdbarch_init): Ditto.
756 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
757 * sh-tdep.c (sh_gdbarch_init): Ditto.
758 * s390-tdep.c (s390_gdbarch_init): Ditto.
759 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
760 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
761 * mips-tdep.c (mips_gdbarch_init): Ditto.
762 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
763 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
764 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
765 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
766 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
767 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
768 * frv-tdep.c (frv_gdbarch_init): Ditto.
769 * cris-tdep.c (cris_gdbarch_init): Ditto.
770 * avr-tdep.c (avr_gdbarch_init): Ditto.
771 * arm-tdep.c (arm_gdbarch_init): Ditto.
772 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
773 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
775 2003-03-01 Andrew Cagney <cagney@redhat.com>
777 * gdbarch.sh (register_type): New function with predicate.
778 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
779 * gdbarch.h, gdbarch.c: Re-generate.
780 * arch-utils.c (generic_register_byte): Use generic_register_size.
781 (generic_register_size): When available, use
782 gdbarch_register_type.
783 * regcache.c (init_regcache_descr): When available, initialize the
784 register type array using gdbarch_register_type. If the
785 architecture supplies gdbarch_register_type, do not use the legacy
787 * d10v-tdep.c (d10v_register_type): Replace
788 d10v_register_virtual_type.
789 (d10v_gdbarch_init): Set register_type instead of
790 register_virtual_type.
792 2003-03-01 Andrew Cagney <cagney@redhat.com>
794 * Makefile.in (ax-gdb.o): Update dependencies.
795 * ax-gdb.c: Include "regcache.h".
796 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
797 * findvar.c (value_of_register): Ditto.
798 * infcmd.c (default_print_registers_info): Ditto.
800 2003-03-01 Mark Kettenis <kettenis@gnu.org>
802 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
803 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
805 2003-03-01 Mark Kettenis <kettenis@gnu.org>
807 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
810 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
812 * Makefile.in (dwarf2loc.o): Update dependencies.
813 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
814 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
815 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
816 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
817 (locexpr_tracepoint_var_ref): New function.
818 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
820 2003-02-28 Andrew Cagney <cagney@redhat.com>
822 * regcache.c (register_size): New function.
823 * regcache.h (register_size): Declare
824 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
825 max_register_size instead of MAX_REGISTER_RAW_SIZE.
827 2003-02-28 David Carlton <carlton@math.stanford.edu>
829 * linespec.c (decode_compound): Extract code into find_method.
832 2003-02-28 J. Brobecker <brobecker@gnat.com>
834 * Makefile.in: Add rules to build and link in observer.o.
836 2003-02-27 J. Brobecker <brobecker@gnat.com>
838 * observer.c: Minor comments edits.
840 2003-02-27 J. Brobecker <brobecker@gnat.com>
842 * observer.h, observer.c: New file.
844 2003-02-27 Andrew Cagney <cagney@redhat.com>
846 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
848 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
850 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
851 (M6812_OP_STS_EXT): Likewise.
852 (m6811_prologue): Use the above to recognize prologue.
853 (m6812_prologue): Likewise.
855 2003-02-27 David Carlton <carlton@math.stanford.edu>
857 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
859 (compare_psymbols): Ditto.
860 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
862 2003-02-27 Michael Snyder <msnyder@redhat.com>
864 * f-lang.c (build_fortran_types): New function.
865 (_initialize_f_language): Gdbarch-register built-in fortran types.
866 * doublest.c (extract_floating): Fix warning text.
868 2003-02-27 Andrew Cagney <cagney@redhat.com>
870 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
871 predicate. Replaces PUSH_DUMMY_FRAME.
872 * gdbarch.h, gdbarch.c: Regnerate.
873 * valops.c (hand_function_call): Update. Call
874 generic_push_dummy_frame directly.
875 * vax-tdep.c (vax_gdbarch_init): Update.
876 * sparc-tdep.c (sparc_gdbarch_init): Update.
877 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
878 * m68k-tdep.c (m68k_gdbarch_init): Update.
879 * hppa-tdep.c (hppa_gdbarch_init): Update.
880 * alpha-tdep.c (alpha_gdbarch_init): Update.
881 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
882 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
883 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
884 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
885 push_dummy_frame to generic_push_dummy_frame.
886 * v850-tdep.c (v850_gdbarch_init): Ditto.
887 * sh-tdep.c (sh_gdbarch_init): Ditto.
888 * s390-tdep.c (s390_gdbarch_init): Ditto.
889 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
890 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
891 * mips-tdep.c (mips_gdbarch_init): Ditto.
892 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
894 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
895 * i386-tdep.c (i386_gdbarch_init): Ditto.
896 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
897 * frv-tdep.c (frv_gdbarch_init): Ditto.
898 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
899 * cris-tdep.c (cris_gdbarch_init): Ditto.
900 * avr-tdep.c (avr_gdbarch_init): Ditto.
901 * arm-tdep.c (arm_gdbarch_init): Ditto.
903 2003-02-26 Kevin Buettner <kevinb@redhat.com>
905 * mips-tdep.c (show_mips_abi): New function.
906 (_initialize_mips_tdep): Use show_mips_abi() to implement the
907 command ``show mips abi''.
909 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
911 From Elena Zannoni <ezannoni@redhat.com>
912 * dbxread.c (process_one_symbol): Only record line 0 if one or
913 more sline entries have been seen for the function.
915 2003-02-26 Michael Chastain <mec@shout.net>
917 * configure: Regenerate with autoconf 000227.
919 2003-02-26 Michael Chastain <mec@shout.net>
922 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
924 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
926 2003-02-26 Kris Warkentin <kewarken@qnx.com>
928 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
929 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
931 2003-02-26 Michael Chastain <mec@shout.net>
933 * configure.in: New variable HAVE_UINTPTR_T.
934 * configure, config.in: Regenerated.
936 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
939 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
941 2003-02-25 Andrew Cagney <cagney@redhat.com>
943 * frame.c (get_prev_frame): Add comment on check for
944 inside_entry_func. Only check for inside_entry_file when not a
945 dummy and not a sentinel. Check that the new frame is not inner
948 2003-02-25 Andrew Cagney <cagney@redhat.com>
950 * frame.c (frame_debug): New variable.
951 (_initialize_frame): Add "set/show debug frame" command.
952 (get_prev_frame): When frame_debug, print reason why unwind
955 2003-02-25 Michael Chastain <mec@shout.net>
957 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
958 to avoid uintptr_t definition problems.
960 2003-02-25 David Carlton <carlton@math.stanford.edu>
962 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
963 (SYMBOL_LINKAGE_NAME): Ditto.
964 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
966 (struct general_symbol_info): Expand comment.
967 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
968 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
969 (SYMBOL_MATCHES_REGEXP): Ditto.
970 * symtab.c (symbol_natural_name): New function.
971 * objfiles.h: Replace all uses of SYMBOL_NAME by
972 DEPRECATED_SYMBOL_NAME.
973 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
974 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
975 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
976 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
977 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
978 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
979 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
980 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
981 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
982 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
984 * ada-exp.y: Update copyright.
985 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
986 * cp-valprint.c: Ditto.
988 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
990 * infptrace.c (detach): Do not flag error if ptrace detach fails
991 and errno is set to ESRCH.
993 2003-02-24 Andrew Cagney <cagney@redhat.com>
995 * infptrace.c (udot_info): Change type of udot_off to long. Use
996 paddr when printing udot_off's value.
998 2003-02-24 David Carlton <carlton@math.stanford.edu>
1000 * symtab.c (make_symbol_overload_list): Only read in partial
1001 symtabs containing a matching partial symbol.
1003 2003-02-24 David Carlton <carlton@math.stanford.edu>
1005 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
1006 do the comparison, not strcmp.
1007 * symfile.c (compare_psymbols): Ditto.
1008 * defs.h: Declare strcmp_iw_ordered.
1009 * utils.c (strcmp_iw_ordered): New function.
1011 2003-02-24 Jim Blandy <jimb@redhat.com>
1013 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
1014 support, shared libs): Remove my name from here, to better reflect
1017 2003-02-24 Kris Warkentin <kewarken@qnx.com>
1019 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
1020 (target_ops): Add to_have_continuable_watchpoint.
1021 * target.c (update_current_target): Add INHERIT line for
1022 to_have_continuable_watchpoint.
1023 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
1024 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
1025 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
1026 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
1028 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
1030 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
1033 2003-02-24 Kris Warkentin <kewarken@qnx.com>
1035 * solib.c (solib_open): Call target defined search function after
1036 failing with solib-search-path.
1037 * solist.h (target_so_ops): Add find_and_open_solib function hook and
1038 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
1040 2003-02-24 Kris Warkentin <kewarken@qnx.com>
1042 * MAINTAINERS: Add myself to Write After section.
1044 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
1046 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
1048 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
1050 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
1051 (m68hc11_add_reggroups): New function.
1052 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
1053 (m68hc11_gdbarch_init): Install the reggroups.
1054 (_initialize_m68hc11_tdep): Initialize them.
1056 2003-02-21 James E Wilson <wilson@tuliptree.org>
1058 * MAINTAINERS: Update my email address.
1060 2003-02-21 David Carlton <carlton@math.stanford.edu>
1062 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
1064 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
1066 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
1067 * symtab.h: Add opaque declarations of struct axs_value and
1069 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
1070 (struct location_funcs): New type.
1071 (struct symbol): Add "loc" to aux_value.
1072 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
1073 * dwarf2read.c: Include "dwarf2expr.h".
1074 (dwarf2_symbol_mark_computed): New function.
1075 (read_func_scope): Use it.
1076 (var_decode_location): New function.
1077 (new_symbol): Use it.
1078 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
1080 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
1081 (dwarf2expr_h, dwarf2loc_h): New variables.
1082 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
1083 (dwarf2expr.o, dwarf2loc.o): New rules.
1084 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
1085 * buildsym.c (finish_block): Handle LOC_COMPUTED and
1087 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1088 * m2-exp.y (yylex): Likewise.
1089 * printcmd.c (address_info, print_frame_args): Likewise.
1090 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
1091 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1092 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
1093 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
1094 * symtab.c (lookup_block_symbol): Likewise.
1096 2003-02-20 Adam Fedor <fedor@gnu.org>
1098 * symtab.h: Remove objc_specific struct
1099 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
1100 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
1101 Have language_objc use cplus_specific struct.
1103 2003-02-20 Tom Tromey <tromey@redhat.com>
1105 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
1106 TYPE_NAME, when printing a String value. PR java/1075.
1108 2003-02-20 Adam Fedor <fedor@gnu.org>
1110 * objc-lang.h (find_methods): Remove declaration.
1111 * objc-lang.c (find_methods): Make static.
1113 2003-02-20 Christopher Faylor <cgf@redhat.com>
1115 * win32-nat.c (get_image_name): Check return value from
1117 (child_xfer_memory): Ditto.
1119 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
1121 * configure.in (TARGET_SYSTEM_ROOT): Set default to
1122 ${exec_prefix}/${target_alias}/sys-root. Match explicit
1123 '${exec_prefix}' (in addition to the expansion thereof) as
1125 * configure: Rebuilt.
1127 2003-02-20 David Carlton <carlton@math.stanford.edu>
1129 * symtab.c (search_symbols): Revert the search_symbols part of my
1130 2002-12-23 patch. Add comment.
1132 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1134 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
1135 * dbxread.c (elfstab_build_psymtabs): Don't call
1136 install_minimal_symbols.
1137 (stabsect_build_psymtabs): Likewise.
1138 * elfread.c (elf_symfile_read): Call install_minimal_symbols
1140 * somread.c (som_symfile_read): Call install_minimal_symbols
1141 and do_cleanups earlier.
1142 * nlmread.c (nlm_symfile_read): Likewise.
1143 * mdebugread.c (elfmdebug_build_psymtabs): Call
1144 install_minimal_symbols and make appropriate cleanups.
1146 2003-02-20 Kevin Buettner <kevinb@redhat.com>
1148 * solib.c (reload_shared_libraries): New function.
1149 (_initialize_solib): Add callbacks for ``set solib-search-path''
1150 and ``set solib-absolute-prefix''.
1152 2003-02-20 David Carlton <carlton@math.stanford.edu>
1154 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
1156 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
1157 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
1158 * ada-typeprint.c (ada_typedef_print): Ditto.
1159 * ax-gdb.c (gen_var_ref): Ditto.
1160 * breakpoint.c (print_one_breakpoint): Ditto.
1161 * buildsym.c (finish_block): Ditto.
1162 * c-valprint.c (c_val_print): Ditto.
1163 * expprint.c (print_subexp): Ditto.
1164 * findvar.c (locate_var_value): Ditto.
1165 * infcmd.c (jump_command): Ditto.
1166 * linespec.c (decode_line_2, decode_compound): Ditto.
1167 * maint.c (maintenance_translate_address): Ditto.
1168 * objc-lang.c (compare_selectors, compare_classes): Ditto.
1169 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
1171 * p-valprint.c (pascal_val_print): Ditto.
1172 * stabsread.c (define_symbol): Ditto.
1173 * stack.c (print_frame, frame_info, print_block_frame_locals)
1174 (print_frame_arg_vars, return_command): Ditto.
1175 * symfile.c (compare_symbols, compare_psymbols): Ditto.
1176 * symmisc.c (print_symbol): Ditto.
1177 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
1178 (compare_search_syms, print_symbol_info, print_msymbol_info)
1179 (rbreak_command): Ditto.
1180 * tracepoint.c (tracepoints_info): Ditto.
1181 * typeprint.c (typedef_print): Ditto.
1182 * valops.c (value_of_variable, hand_function_call): Ditto.
1183 * cli/cli-cmds.c (edit_command, list_command): Ditto.
1184 * ada-typeprint.c: Update Copyright.
1185 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
1186 * tracepoint.c, cli/cli-cmds.c: Ditto.
1188 2003-02-20 Kevin Buettner <kevinb@redhat.com>
1190 * frame.c (generic_unwind_get_saved_register): Make non-static.
1191 * frame.h (generic_unwind_get_saved_register): Declare.
1192 * mips-tdep.c (read_next_frame_reg): Fetch register from
1193 current regcache when frame is NULL.
1194 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
1196 (mips_get_saved_register): Call generic_unwind_get_saved_register()
1197 instead of frame_register_unwind().
1199 2003-02-20 Andrew Cagney <ac131313@redhat.com>
1201 * remote-sim.c (gdbsim_insert_breakpoint)
1202 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
1205 2003-02-20 Andrew Cagney <ac131313@redhat.com>
1207 * remote.c (_initialize_remote): Add commands "set/show remote
1208 hardware-watchpoint-limit" and "set/show remote
1209 hardware-breakpoint-limit".
1210 (remote_hw_watchpoint_limit): Initialize to -1.
1211 (remote_hw_breakpoint_limit): Ditto.
1212 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
1214 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
1216 * coff-pe-read.c: New file - support reading of minimal symbols from a
1217 portable executable using the export table.
1218 * coff-pe-read.h: New file.
1219 * coffread.c: Include coff-pe-read.h.
1220 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
1221 debugging symbols found.
1222 * Makefile.in (SFILES): Add coff-pe-read.o.
1223 (coff_pe_read_h): Define.
1224 (COMMON_OBS): Add coff-pe-read.o.
1225 (coffread.o): Add coff_pe_read_h dependency.
1226 (coff-pe-read.o): New target.
1228 2003-02-19 David Carlton <carlton@math.stanford.edu>
1230 * Makefile.in (SFILES): Add block.c.
1232 (COMMON_OBS): Add block.o.
1234 (x86-64-tdep.o): Add $(block_h).
1235 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
1236 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
1237 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
1238 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
1239 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
1240 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
1241 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
1242 * value.h: Add opaque declaration for struct block.
1243 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
1244 * ada-lang.h: Ditto.
1245 * x86-64-tdep.c: #include "block.h"
1246 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
1247 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
1248 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
1249 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
1250 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
1251 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
1252 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
1253 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
1254 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
1255 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
1256 * symtab.c (block_function): Ditto.
1257 (contained_in): Ditto.
1258 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
1259 block.h. Add opaque declaration for struct block.
1260 * symtab.h: Move block_function and contained_in declarations to
1261 block.h. Add opaque declarations for struct block, struct
1263 (struct block): Move to block.h.
1264 (struct blockvector): Ditto.
1265 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
1266 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
1267 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
1268 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
1269 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
1271 * block.c: New file.
1272 * block.h: New file.
1274 2003-02-19 Theodore A. Roth <troth@openavr.org>
1276 * avr-tdep.c (avr_extract_return_value): Remove function.
1277 (avr_store_return_value): Remove function.
1278 (avr_extract_struct_value_address): Remove function.
1279 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
1281 2003-02-19 Andrew Cagney <ac131313@redhat.com>
1283 * rs6000-tdep.c: Include "gdb_assert.h".
1284 (registers_e500): Add "acc" and "spefscr".
1285 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
1286 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
1287 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
1289 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
1291 2003-02-18 Keith Seitz <keiths@redhat.com>
1293 * Makefile.in: Add gdbtk-interps.c.
1295 2003-02-18 Kevin Buettner <kevinb@redhat.com>
1297 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
1298 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
1300 2003-02-18 Andrew Cagney <cagney@redhat.com>
1302 * symtab.h (struct objfile): Add opaque declaration.
1304 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
1306 From Jim Ingham <jingham@apple.com>:
1307 * dbxread.c (process_one_symbol): Use last_function_start rather
1308 than function_start_offset to find the real beginning of the
1309 current function. The latter is just the text section offset on
1310 some systems, the former is always the real function start.
1312 2003-02-17 Andrew Cagney <cagney@redhat.com>
1314 * configure.in: Revert ${target} != ${host}.
1316 2003-02-17 Andrew Cagney <ac131313@redhat.com>
1318 * configure.in (Makefile): Use the test ${target} != ${host},
1319 instead of the absence of the "nm.h" file, to determine of the
1320 configuration non-native.
1321 * configure: Regenerate.
1323 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
1325 From Brian Ford <ford@vss.fsi.com>
1327 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
1328 conditionalize tui_active test.
1329 (lookup_cmd_1): Ditto.
1331 2003-02-14 Mark Kettenis <kettenis@gnu.org>
1333 * configure.in: Add check for _etext.
1334 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
1336 * config.in, configure: regenerated.
1338 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
1340 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
1342 2003-02-14 Andrew Cagney <ac131313@redhat.com>
1344 * main.c (tui_version): Delete variable.
1345 (captured_main): When --tui, set interpreter_p to "tui" instead of
1346 enabling tui_version.
1347 * printcmd.c (display_command) [TUI]: Test tui_active instead of
1349 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
1350 * cli/cli-cmds.c (disassemble_command): Ditto.
1351 * defs.h (tui_version): Delete declaration.
1352 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
1353 (tui-interp.o): Add rules.
1354 (SUBDIR_TUI_OBS): Add "tui-interp.o".
1356 2003-02-14 Christopher Faylor <cgf@redhat.com>
1358 * win32-nat.c (register_loaded_dll): Correctly set address range for
1361 2003-02-12 Jason Molenda (jmolenda@apple.com)
1363 * symmisc.c (print_objfile_statistics): Include information about
1364 the number of psymtabs and symtabs in each object file.
1366 2003-02-13 Keith R Seitz <keiths@redhat.com>
1368 * main.h (struct captured_main_args): Add interpreter_p.
1369 * main.c (captured_main): Initialize interpreter_p from context.
1370 * gdb.c (main): Set interpreter_p argument.
1371 * Makefile.in (gdb.o): Add dependency for interps.h.
1373 2003-02-12 Andrew Cagney <ac131313@redhat.com>
1375 * event-top.c (cli_command_loop): Delete declaration.
1376 (_initialize_event_loop): Delete function setting event_loop_hook.
1377 * event-top.h (cli_command_loop): Declare. Update copyright.
1378 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
1379 * interps.c (current_interp_command_loop): When event_loop_p, call
1382 2003-02-12 Andrew Cagney <ac131313@redhat.com>
1384 * interps.h (interp_command_loop_ftype): Change return type to
1387 2003-02-12 Michal Ludvig <mludvig@suse.cz>
1389 * x86-64-tdep.c (x86_64_extract_return_value)
1390 (x86_64_store_return_value): Use regcache instead of regbuf.
1391 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
1392 * x86-64-linux-nat.c (fill_gregset): Use regcache.
1394 2003-02-11 Andrew Cagney <ac131313@redhat.com>
1396 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
1397 * aclocal.m4: Regenerate.
1398 * configure: Regenerate.
1400 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
1401 TCL_LD_SEARCH_FLAGS.
1403 2003-02-10 Michal Ludvig <mludvig@suse.cz>
1405 * dwarf2cfi.c: Reindented.
1407 2003-02-09 Andrew Cagney <ac131313@redhat.com>
1409 * interps.c (clear_interpreter_hooks): Convert function definition
1412 2003-02-07 David Carlton <carlton@math.stanford.edu>
1414 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
1416 2003-02-07 Kevin Buettner <kevinb@redhat.com>
1418 * gdbtypes.h (struct main_type): Move ``length'' field from here...
1419 (struct type): ...to here.
1420 (TYPE_LENGTH): Adjust to reflect different location of ``length''
1422 * gdbtypes.c (make_qualified_type): Set length on newly created type.
1423 (replace_type): Set length on all type variants for a given type.
1425 2003-02-07 Andrew Cagney <ac131313@redhat.com>
1427 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
1429 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
1431 2003-02-06 Andrew Cagney <ac131313@redhat.com>
1433 * Makefile.in (symm-nat.o): Update dependencies.
1434 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
1435 (lynx-nat.o, ia64-linux-nat.): Ditto.
1436 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
1437 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
1438 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
1440 * Makefile.in (inflow_h): Define.
1441 (procfs.o, inflow.o, procfs.o): Update dependencies.
1442 * inftarg.c (child_stop): Delete extern declaration of
1443 inferior_process_group. Include "inflow.h".
1444 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
1445 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
1446 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
1447 (our_process_group, inferior_process_group): Extern declarations.
1449 * procfs.c: Include "gdb_assert.h".
1451 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
1452 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
1453 * jv-typeprint.c (java_type_print_base): Ditto.
1454 * typeprint.c (typedef_print): Eliminate STREQ.
1455 * cli/cli-script.c (define_command, define_command): Ditto.
1456 * main.c (captured_main): Ditto.
1457 * values.c (lookup_internalvar): Ditto.
1458 * utils.c (safe_strerror, parse_escape): Eliminate assignment
1459 within `if' conditional.
1460 * linespec.c (decode_line_2): Ditto.
1461 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
1462 (bfd_openw_with_cleanup): Ditto.
1464 2003-02-07 Mark Kettenis <kettenis@gnu.org>
1466 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
1467 legacy_extract_return_value and store_return_value to
1468 legacy_return_value.
1470 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
1472 * win32-nat.c (get_relocated_section_addrs): New function. Find
1473 section load addresses for symbol handling in relocated DLLs.
1474 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
1476 2003-02-05 Fred Fish <fnf@intrinsity.com>
1478 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
1480 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
1482 (angel_RDI_info): Ditto.
1483 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
1485 (threads_continue_all_with_signals): Ditto.
1487 2003-02-05 Jim Ingham <jingham@apple.com>
1488 Keith Seitz <keiths@redhat.com>
1489 Elena Zannoni <ezannoni@redhat.com>
1490 Andrew Cagney <ac131313@redhat.com>
1492 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
1493 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
1494 (SUBDIR_MI_OBS): Add "mi-interp.o".
1495 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
1496 (SFILES): Add "interps.c".
1497 (COMMON_OBS): Add "interps.o".
1498 (interps_h, mi_main_h): Define.
1499 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
1500 (mi-main.o, main.o, event-top.o): Update dependencies.
1501 * cli/cli-interp.c: New file.
1502 * interps.h, interps.c: New files.
1503 * top.c: (gdb_init): Don't install the default interpreter, handed
1505 * main.c: Include "interps.h".
1506 (interpreter_p): Note that it should malloc'ed.
1507 (captured_command_loop): Call current_interp_command_loop.
1508 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
1509 xfree and xstrdup when updating interpreter_p. Install the
1510 default interpreter. Add hack to stop mi1's copyright notice
1512 * event-top.h (gdb_setup_readline): Declare.
1513 (gdb_disable_readline): Declare.
1514 * event-top.c: Include "interps.h".
1515 (display_gdb_prompt): Call current_interp_display_prompt_p.
1516 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
1517 gdb_stdlog, and gdb_stdtarg.
1518 (_initialize_event_loop): Don't call gdb_setup_readline.
1519 * cli-out.c (cli_out_set_stream): New function.
1520 * cli-out.h (cli_out_set_stream): Declare.
1522 2003-02-06 Mark Kettenis <kettenis@gnu.org>
1524 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
1525 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
1526 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
1527 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
1528 config/i386/i386v42mp.mt: Removed.
1530 2003-02-05 Mark Kettenis <kettenis@gnu.org>
1532 * configure.tgt (*-*-solaris*): Set gdb_osabi to
1535 2003-02-05 Michael Chastain <mec@shout.net>
1537 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
1538 2.12.1 and earlier versions.
1540 2003-02-05 Andrew Cagney <ac131313@redhat.com>
1542 Remove orphaned hosts, targets and files.
1543 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
1544 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
1545 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
1546 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
1547 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
1548 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
1549 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
1550 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
1551 * config/sparc/tm-sp64sim.h: Delete.
1552 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
1554 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
1555 mips*-dec-mach3* targets.
1557 2003-02-04 Michael Chastain <mec@shout.net>
1559 * NEWS: Fix typo: sepcifying -> specifying.
1561 2003-02-04 Michael Chastain <mec@shout.net>
1563 * dwarfread.c: Add documentation on the state of dwarf-1,
1564 looking towards obsoletion.
1566 2003-02-03 Michael Chastain <mec@shout.net>
1568 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
1569 gdb/testsuite/gdb.c++/pr-1023.exp.
1571 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1573 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
1574 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
1576 * utils.c (init_page_info): Delete reference to MPW in comments.
1577 * main.c (captured_main): Delete #ifdef MPW.
1579 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1581 * NEWS: Note that the m32r-*-elf* is obsolete.
1582 * monitor.c (monitor_expect): Obsolete reference to m32r.
1583 * configure.tgt: Mark m32r-*-elf* as obsolete.
1584 * MAINTAINERS: Mark m32k as obsolete.
1585 * m32r-rom.c: Obsolete file.
1586 * config/m32r/m32r.mt: Obsolete file.
1587 * config/m32r/tm-m32r.h: Obsolete file.
1588 * m32r-stub.c: Obsolete file.
1589 * m32r-tdep.c: Obsolete file.
1591 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1593 * NEWS: Mention that the z8k-zilog-none is obsolete.
1594 * MAINTAINERS: Mark z8k as obsolete.
1595 * configure.tgt: Obsolete the z8k-*-coff* target.
1596 * config/z8k/z8k.mt: Obsolete file.
1597 * config/z8k/tm-z8k.h: Obsolete file.
1598 * z8k-tdep.c: Obsolete file.
1600 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1602 * NEWS: Mention that the mn10200-elf is obsolete.
1603 * configure.tgt: Obsolete mn10200-*-* target.
1604 * breakpoint.c (update_breakpoints_after_exec): Update comment to
1605 mention that the mn10200 is obsolete.
1606 * breakpoint.h: Ditto.
1607 * MAINTAINERS: Mark the mn10200-elf as obsolete.
1608 * config/mn10200/mn10200.mt: Obsolete file.
1609 * config/mn10200/tm-mn10200.h: Obsolete file.
1610 * mn10200-tdep.c: Obsolete file.
1612 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1614 * MAINTAINERS: Mark h8500 as obsolete.
1615 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
1616 * findvar.c (value_from_register): Ditto.
1617 * h8500-tdep.c: Mark file as obsolete.
1618 * config/h8500/h8500.mt: Ditto.
1619 * config/h8500/tm-h8500.h: Ditto.
1620 * NEWS: Mention that h8500 is obsolete.
1622 2003-02-04 David Carlton <carlton@math.stanford.edu>
1624 * objfiles.c (allocate_objfile): Always set name. Add comment at
1626 * jv-lang.c (get_dynamics_objfile): Add comment.
1628 2003-02-04 David Carlton <carlton@math.stanford.edu>
1630 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
1631 * printcmd.c (build_address_symbolic): Replace uses of
1632 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
1633 SYMBOL_NAME, and asm_demangle.
1636 2003-02-04 David Carlton <carlton@math.stanford.edu>
1638 * linespec.c (decode_compound): Extract code into
1640 (lookup_prefix_sym): New function.
1642 2003-02-04 David Carlton <carlton@math.stanford.edu>
1644 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
1645 FLOAT_COERCION_BADNESS.
1646 * gdbtypes.c (rank_one_type): Replace all uses of
1647 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
1649 2003-02-04 Jim Blandy <jimb@redhat.com>
1651 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
1652 section, let dwarf_macinfo_section point to it, not
1655 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
1657 Pointed out by Anton Blanchard <anton@samba.org>.
1658 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
1659 (ppc_linux_at_sigtramp_return_path): Use it.
1661 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
1663 * defs.h (streq): Add prototype.
1664 * utils.c (streq): New function.
1666 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
1667 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
1668 * mdebugread.c (new_symbol): Likewise.
1669 * stabsread.c (define_symbol): Likewise.
1670 * coffread.c (process_coff_symbol): Likewise.
1671 * dwarfread.c (new_symbol): Likewise.
1673 * minsyms.c (prim_record_minimal_symbol_and_info): Use
1674 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
1676 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
1677 SYMBOL_INIT_DEMANGLED_NAME.
1678 * objfiles.c: Include "hashtab.h".
1679 (allocate_objfile): Call htab_set_functions_ex for the
1680 demangled_names_hash.
1681 (free_objfile): Call htab_delete for the demangled_names_hash.
1682 * objfiles.h (struct htab): Add declaration.
1683 (struct objfile): Add demangled_names_hash.
1684 * symfile.c: Include "hashtab.h".
1685 (reread_symbols): Call htab_delete for the demangled_names_hash.
1686 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
1687 SYMBOL_NAME in the bcache.
1688 * symtab.c: Include "hashtab.h". Update comments.
1689 (create_demangled_names_hash, symbol_set_names): New functions.
1690 (symbol_find_demangled_name): New function, broken out from
1691 symbol_init_demangled_names.
1692 (symbol_init_demangled_names): Use it.
1693 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
1694 (SYMBOL_SET_NAMES): New macro.
1695 (symbol_set_names): Add prototype.
1697 2003-02-03 Jim Blandy <jimb@redhat.com>
1699 Use a single, consistent representation for an empty minimal
1700 symbol table in an objfile.
1701 * objfiles.c (terminate_minimal_symbol_table): New function.
1702 (allocate_objfile): Call it.
1703 * objfiles.h (terminate_minimal_symbol_table): New declaration.
1704 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
1706 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
1707 objfile has minimal symbols, compare minimal_symbol_count to zero,
1708 instead of comparing msymbols with NULL.
1709 * objfiles.c (have_minimal_symbols): Same.
1710 * solib-sunos.c (solib_add_common_symbols): Call
1711 terminate_minimal_symbol_table.
1712 * symfile.c (reread_symbols): Same.
1714 2003-02-03 Kevin Buettner <kevinb@redhat.com>
1716 * s390-tdep.c (s390_address_class_type_flags)
1717 (s390_address_class_type_flags_to_name)
1718 (s390_address_class_name_to_type_flags): New functions.
1719 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
1720 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
1722 2003-02-03 Michael Snyder <msnyder@redhat.com>
1724 * arm-tdep.c: Fix spell-o in comment.
1726 2003-02-03 Michal Ludvig <mludvig@suse.cz>
1728 * dwarf2cfi.c (pointer_encoding): Added new parameter.
1729 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
1730 error messages to contain BFD filename.
1732 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
1734 Fix PR gdb/742 gdb/743 gdb/877
1735 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
1736 (do_mixed_source_and_assembly): Use
1737 make_cleanup_ui_out_tuple_begin_end and
1738 make_cleanup_ui_out_tuple_begin_end.
1739 (do_mixed_source_and_assembly): Ditto.
1740 * thread.c (do_captured_list_thread_ids): Ditto.
1741 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
1742 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
1743 ui_out_tuple_end): Delete prototypes.
1744 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
1745 ui_out_list_end, ui_out_tuple_end): Delete.
1747 From Kevin Buettner <kevinb@redhat.com>:
1748 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
1749 * ui-out.c (make_cleanup_ui_out_table_begin_end)
1750 (do_cleanup_table_end): New functions.
1751 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
1752 Use cleanups to invoke_ui_out_tuple_end().
1753 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
1754 * cli/cli-setshow.c (cmd_show_list): Use
1755 make_cleanup_ui_out_tuple_begin_end.
1757 2003-02-02 Andrew Cagney <ac131313@redhat.com>
1759 * frame.c (frame_unwind_register): New function.
1760 (frame_unwind_unsigned_register): Use.
1761 (frame_unwind_signed_register): Use.
1762 (frame_read_register): New function.
1763 * frame.h (frame_unwind_register): Declare.
1764 (frame_read_register): Declare.
1766 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
1767 and frame_unwind_register instead of read_memory, write_register
1768 and deprecated_write_register_bytes.
1770 2003-02-02 Andrew Cagney <ac131313@redhat.com>
1772 * frame.h: Note that namelen can be negative.
1773 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
1776 * NEWS: Mention that the d10v's `regs' command is deprecated.
1777 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
1778 (d10v_print_registers_info): New function.
1779 (show_regs): Call d10v_print_registers_info.
1780 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
1782 2003-02-02 Mark Kettenis <kettenis@gnu.org>
1784 * stack.c (print_frame_info): Restore call to annotate_frame_begin
1785 lost in the previous patch.
1787 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1789 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
1790 * stack.c (print_frame_info_base): Output complete FRAME tuple
1791 for synthesized frames.
1793 2003-02-02 Andrew Cagney <ac131313@redhat.com>
1795 * mips-nat.c (zerobuf): Delete.
1796 (fetch_inferior_registers): Alloc local zerobuf.
1797 (fetch_core_registers): Alloc local zerobuf.
1798 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
1799 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
1800 * thread-db.c (thread_db_store_registers): Ditto.
1801 * sh-tdep.c (sh_do_register): Ditto.
1802 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1803 * remote-sim.c (gdbsim_store_register): Ditto.
1804 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1805 * remote-e7000.c (fetch_regs_from_dump): Ditto.
1806 * monitor.c (monitor_supply_register): Ditto.
1807 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
1808 * mips-nat.c (fetch_inferior_registers): Ditto.
1809 * m68klinux-nat.c (fetch_register): Ditto.
1810 * lynx-nat.c (fetch_inferior_registers): Ditto.
1811 (fetch_inferior_registers): Ditto.
1812 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
1813 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
1814 (hpux_thread_store_registers): Ditto.
1815 * hppah-nat.c (fetch_register): Ditto.
1816 * hppab-nat.c (fetch_register): Ditto.
1817 * hppa-tdep.c (pa_register_look_aside): Ditto.
1818 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
1819 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
1821 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1823 * gdbarch.sh: Explictly specify all method levels. When a
1824 variable with an empty level, provide a non-multi-arch default.
1825 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
1826 * gdbarch.h: Re-generate.
1827 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
1828 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
1830 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1832 * defs.h (host_pointer_to_address): Delete declaration.
1833 (address_to_host_pointer): Delete declaration.
1834 * utils.c (host_pointer_to_address): Delete function.
1835 (address_to_host_pointer): Delete function.
1836 * procfs.c (procfs_address_to_host_pointer): New function.
1837 * procfs.c (proc_set_watchpoint): Use.
1838 (procfs_can_use_hw_breakpoint): Update comments.
1839 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
1840 (som_solib_add): Use.
1841 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
1842 * hppa-tdep.c (unwind_command): Use.
1844 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1846 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
1849 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
1850 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
1851 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
1852 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
1853 (define_symbol): Update.
1854 * symfile.c (generic_load): Remove references to nindy.
1855 * symtab.c: Remove references to nindy.
1857 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1859 * infcmd.c (print_float_info): Delete code conditional on
1861 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
1862 * config/m68k/nm-apollo68b.h: Ditto.
1863 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
1864 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
1865 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
1867 2003-02-01 Mark Kettenis <kettenis@gnu.org>
1869 * config/i386/tm-i386os9k.h: Removed.
1871 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
1872 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
1873 they're identical to i[3456]86-*-sysv* now.
1874 * config/i386/i386v32.mh: Removed.
1875 * config/i386/xm-i386v32.h: Removed.
1876 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
1878 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
1880 * config/i386/i386dgux.mh: Removed.
1881 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
1883 * configure.in: Fix typo.
1884 * configure: Regenerated.
1886 2003-01-31 David Carlton <carlton@math.stanford.edu>
1888 * dwarf2read.c (dwarf2_locate_sections): Set
1889 dwarf_ranges_section.
1891 2003-01-31 Andrew Cagney <ac131313@redhat.com>
1893 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
1894 * utils.c: Update comments documenting legitimate uses of PTR.
1896 * utils.c: Re-indent.
1898 * config/djgpp/fnchange.lst: Delete nindy files.
1899 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
1900 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
1901 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
1902 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
1903 * nindy-share/README, nindy-share/Onindy.c: Delete files.
1904 * nindy-tdep.c, nindy-share/Makefile: Delete files.
1905 * Makefile.in (init.c): Remove nindy references.
1906 (saber_gdb): Delete rule.
1907 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
1908 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
1910 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
1911 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
1912 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
1913 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
1915 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
1916 * saber.suppress: Delete file.
1918 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
1920 * dbxread.c (stabs_data): New static variable.
1921 (fill_symbuf): Support an in-memory buffer for stabs data.
1922 (stabs_seek): New function.
1923 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
1924 (read_ofile_symtab): Use stabs_seek.
1925 (elfstab_build_psymtabs): Take an asection* instead of
1926 an offset and size. Relocate the stabs data if necessary.
1927 Save the section* for dbx_psymtab_to_symtab.
1928 * dwarf2read.c: Add section variables for each debug section.
1929 (dwarf2_locate_sections): Fill them in.
1930 (dwarf2_read_section): Take an asection* argument.
1931 Relocate the section contents if necessary.
1932 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
1933 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
1934 it to dwarf2_read_section.
1935 (dwarf2_build_frame_info): Update callers.
1936 * elfread.c (elf_symfile_read): Update call to
1937 elfstab_build_psymtabs.
1938 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
1939 (DBX_STAB_SECTION): New macro.
1940 * stabsread.h (elfstab_build_psymtabs): Update prototype.
1941 * symfile.c (symfile_dummy_outputs): New function.
1942 (symfile_relocate_debug_section): New function.
1943 * symfile.h (symfile_relocate_debug_section): Add prototype.
1945 2003-01-31 Richard Henderson <rth@redhat.com>
1947 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
1948 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
1949 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
1950 * alpha-tdep.c (alpha_register_name): Add "unique".
1951 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
1952 (ALPHA_UNIQUE_REGNUM): New.
1953 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
1955 2003-01-31 Andrew Cagney <ac131313@redhat.com>
1957 * README: Remove reference to Ericsson 1800 monitor.
1958 * Makefile.in (remote-es.o): Delete rule.
1959 (ALLDEPFILES): Delete remote-es.c.
1960 * remote-es.c: Delete file.
1961 * config/m68k/es1800.mt: Delete file.
1962 * config/djgpp/fnchange.lst: Update.
1963 * configure.tgt: Delete m68*-ericsson-* target.
1965 2003-01-31 Adam Fedor <fedor@gnu.org>
1967 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
1968 Remove duplicate/shadowing variable of same name.
1970 2003-01-30 Jim Blandy <jimb@redhat.com>
1972 * symfile.c (find_separate_debug_file): Assert that the objfile's
1973 directory name we compute ends with a slash, and then assume that
1974 that's so everywhere we use it.
1976 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
1978 * valops.c (value_assign): Flush frame cache after stores to memory
1981 2003-01-30 Andrew Cagney <ac131313@redhat.com>
1983 * Makefile.in (mon960-rom.o): Delete rule.
1984 * mon960-rom.c: Delete file.
1986 2003-01-30 Andrew Cagney <ac131313@redhat.com>
1988 * d10v-tdep.c: Include "frame-unwind.h".
1989 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
1991 (next_addr, uses_frame): Delete.
1992 (struct d10v_unwind_cache): Define.
1993 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
1994 Use info instead of next_addr and uses_frame globals.
1995 (d10v_frame_init_saved_regs): Delete function.
1996 (d10v_init_extra_frame_info): Delete function.
1997 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
1998 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
1999 init_frame_pc or frame_saved_pc.
2000 (d10v_pop_frame): Delete function.
2001 (do_d10v_pop_frame): Delete function.
2002 (d10v_frame_chain): Delete function.
2003 (d10v_frame_chain_valid): Delete function.
2004 (d10v_frame_pc_unwind): New function.
2005 (d10v_frame_id_unwind): New function.
2006 (saved_regs_unwinder): New function.
2007 (d10v_frame_register_unwind): New function.
2008 (d10v_frame_pop): New function.
2009 (d10v_frame_unwind): New variable.
2010 (d10v_frame_p): New function.
2011 (d10v_frame_saved_pc): Delete function.
2012 * Makefile.in (d10v-tdep.o): Update dependencies.
2014 2003-01-30 J. Brobecker <brobecker@gnat.com>
2016 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
2017 causing some regressions due to a change in the default value
2020 2003-01-29 Richard Henderson <rth@redhat.com>
2021 Elena Zannoni <ezannoni@redhat.com>
2022 Daniel Jacobowitz <drow@mvista.com>
2025 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
2027 (RANGES_SECTION): New.
2028 (dwarf_ranges_buffer): New variable.
2029 (struct comp_unit_head): Add member "die".
2030 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
2031 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
2032 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
2033 (dwarf2_locate_sections): Likewise.
2034 (dwarf2_build_psymtabs): Read .debug_ranges.
2035 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
2036 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
2037 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
2038 Look for DW_AT_ranges and return the bounding box.
2040 2003-01-29 Brian Ford <ford@vss.fsi.com>
2042 * win32-nat.c (cygwin_pid): Removed as unused.
2043 (child_attach): Try fall back to Cygwin pid.
2045 2003-01-29 Jim Blandy <jimb@redhat.com>
2047 * objfiles.h (struct objfile): Doc fix.
2049 2003-01-29 Andrew Cagney <ac131313@redhat.com>
2051 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
2052 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
2053 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
2054 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
2055 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
2056 (FRAME_SAVED_PC): Change to a function with predicate.
2057 * gdbarch.h, gdbarch.c: Re-generate.
2059 2003-01-28 Andrew Cagney <ac131313@redhat.com>
2061 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
2063 * complaints.c (complain): Delete function.
2064 * complaints.h (struct deprecated_complaint): Delete definition.
2065 (complain): Delete declaration.
2067 2003-01-28 Kevin Buettner <kevinb@redhat.com>
2069 * mips-tdep.c (mips_init_extra_frame_info): Return early for
2072 2003-01-27 Andrew Cagney <ac131313@redhat.com>
2074 * sentinel-frame.h, sentinel-frame.c: New files.
2075 * Makefile.in (frame.o): Update dependencies.
2076 (SFILES): Add sentinel-frame.c.
2077 (sentinel_frame_h): Define.
2078 (COMMON_OBS): Add sentinel-frame.o.
2079 (sentinel-frame.o): Specify dependencies.
2080 * frame.c: Include "sentinel-frame.h".
2081 (frame_register_unwind): Rewrite assuming that there is always a a
2083 (frame_register, generic_unwind_get_saved_register): Ditto.
2084 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
2085 (create_sentinel_frame, unwind_to_current_frame): New functions.
2086 (get_current_frame): Rewrite using create_sentinel_frame and
2087 unwind_to_current_frame. When possible, always create a frame.
2088 (create_new_frame): Set next to the sentinel frame.
2089 (get_next_frame): Rewrite. Don't go below the level 0 frame.
2090 (deprecated_update_frame_pc_hack): Update the next frame's PC and
2091 ID cache when necessary.
2092 (frame_saved_regs_id_unwind): Use frame_relative_level.
2093 (deprecated_generic_get_saved_register): Use frame_relative_level,
2094 get_frame_saved_regs, get_frame_pc, get_frame_base and
2096 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
2099 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
2101 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
2103 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
2105 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
2106 (maintenance_set_profile_cmd): Use error () instead of warning ().
2108 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
2110 * configure.in: Check that -pg works if using --enable-profiling.
2111 Check for monstartup and _mcleanup regardless of --enable-profiling.
2112 * maint.c: Check for monstartup and _mcleanup before using them.
2113 * config.in: Regenerated.
2114 * configure: Regenerated.
2116 2003-01-24 Nick Clifton <nickc@redhat.com>
2120 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
2122 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
2123 (sh2e_show_regs): New.
2124 (sh_gdbarch_init): Handle bfd_mach_sh2e.
2125 * config/sh/tm-sh.h: Added sh2e to comments.
2127 2003-01-23 Jim Blandy <jimb@redhat.com>
2129 * symfile.c (syms_from_objfile): Don't print the "(no debugging
2130 symbols found)" message here; we haven't checked for a separate
2131 debug info file yet, so we don't know yet.
2132 (symbol_file_add_with_addrs_or_offsets): Print it here, after
2133 we've looked everywhere. Also, there's no need to print a special
2134 message when we're loading the separate debug info file: the one
2135 symbol_file_add prints is fine.
2137 2003-01-23 Alexander Larsson <alexl@redhat.com>
2138 Jim Blandy <jimb@redhat.com>
2140 Add support for executables whose debug info has been separated
2141 out into a separate file, leaving only a link behind.
2142 * objfiles.h (struct objfile): New fields: separate_debug_objfile
2143 and separate_debug_objfile_backlink.
2144 (put_objfile_before): New declaration.
2145 * symfile.c: #include "filenames.h".
2146 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
2147 debug info in a separate file, read that, too. Save the addrs
2148 argument, so we can use it again to read the separated debug info;
2149 syms_from_objfile modifies the table we pass it.
2150 (reread_symbols): After re-reading an objfile, call
2151 reread_separate_symbols to refresh its separate debug info
2152 objfile, if it has one.
2153 (reread_separate_symbols, find_separate_debug_file,
2154 get_debug_link_info, separate_debug_file_exists): New functions.
2155 (debug_file_directory): New global var.
2156 (_initialize_symfile): Initialize debug_file_directory, and
2157 provide the new `set debug-file-directory' command to let the user
2159 * objfiles.c (free_objfile): If this objfile has its debug info in
2160 a separate objfile, free that one too. If this is itself a
2161 separate debug info objfile, clear our parent's backlink.
2162 (put_objfile_before): New function.
2163 * utils.c (gnu_debuglink_crc32): New function.
2164 * defs.h (gnu_debuglink_crc32): New declaration.
2165 * Makefile.in (symfile.o): Note dependency on "filenames.h".
2166 * configure.in: Handle --with-separate-debug-dir config option.
2167 * acinclude.m4 (AC_DEFINE_DIR): New macro.
2168 * acconfig.h (DEBUGDIR): New macro.
2169 * configure, aclocal.m4, config.in: Regenerated.
2171 2003-01-22 Jim Blandy <jimb@redhat.com>
2173 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
2174 like the old symbol_file_add, but taking new arguments: you can
2175 now pass in either a `struct section_addr_info' list to say where
2176 each section is loaded, or a `struct section_offsets' table. Pass
2177 these new arguments through to syms_from_objfile as appropriate.
2178 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
2179 with the appropriate quiescent values for the new arguments.
2181 * symfile.c: #include "gdb_assert.h".
2182 (syms_from_objfile): Add the ability to pass in a section offset
2183 table directly, as an alternative to the section_addr_info table.
2184 Document arguments better.
2185 (symbol_file_add): Pass extra arguments to syms_from_objfile.
2186 * symfile.h (syms_from_objfile): Update declaration.
2187 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
2189 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
2191 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
2193 Original patch by Tom Tromey <tromey@cygnus.com> and
2194 Jason Molenda <jmolenda@apple.com>.
2195 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
2196 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
2197 * NEWS: Mention profiling.
2198 * configure.in (--enable-gdbtk): Fix typo.
2199 (--enable-profiling): New. Set PROFILE_CFLAGS.
2200 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
2202 (profiling_state): New variable.
2203 (mcleanup_wrapper): New function.
2204 (_initialize_maint): Remove NOTYET, fix call to
2205 add_setshow_boolean_cmd for "maint set profile".
2206 * configure: Regenerated.
2208 2003-01-21 Martin M. Hunt <hunt@redhat.com>
2210 * Makefile.in (install-gdbtk): Install PNG images too.
2212 2003-01-21 Andrew Cagney <ac131313@redhat.com>
2214 * exec.c (text_start): Delete global variable.
2215 (exec_file_attach): Make text_start local to the function.
2216 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
2217 * valops.c (hand_function_call): Delete code that handles
2218 BEFORE_TEXT_END and AFTER_TEXT_END.
2219 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
2220 of CALL_DUMMY_LOCATION.
2221 * gdbarch.c: Regenerate.
2222 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
2223 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
2224 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2225 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
2226 (text_end): Delete extern declaration.
2228 2003-01-21 Andrew Cagney <ac131313@redhat.com>
2230 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
2231 * blockframe.c (backtrace_below_main): Move to "frame.c".
2232 (frame_chain_valid): Delete check for backtrace_below_main.
2233 (_initialize_blockframe): Delete initialization, move ``set
2234 backtrace-below-main'' command to "frame.c".
2235 (do_flush_frames_sfunc): Delete function.
2236 * frame.c: Include "command.h" and "gdbcmd.h".
2237 (frame_type_from_pc): New function.
2238 (create_new_frame): Use frame_type_from_pc.
2239 (legacy_get_prev_frame): New function.
2240 (get_prev_frame): Rewrite. When an old style frame, call
2241 legacy_get_prev_frame. Otherwize, unwind the PC first.
2242 (_initialize_frame): Add ``set backtrace-below-main'' command.
2243 * Makefile.in (frame.o): Update dependencies.
2245 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2247 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
2248 DEPRECATED_REGISTERS_INFO.
2250 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2252 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
2253 Maintainers'. Update `Various Maintainers'.
2255 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2257 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
2258 * gdbarch.sh (POP_FRAME): Change to function with predicate.
2259 Suppress actual parameters when `-'.
2260 * gdbarch.h, gdbarch.c: Regenerate.
2262 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2264 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
2265 code handling dummy frames.
2267 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2269 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
2270 (struct frame_unwind): Add field pop.
2271 * frame.h (frame_pop): Declare.
2272 * frame.c (frame_saved_regs_pop): New function.
2273 (trad_frame_unwinder): Add frame_saved_regs_pop.
2274 (frame_pop): New function.
2275 * dummy-frame.c (dummy_frame_pop): New function.
2276 (discard_innermost_dummy): New function.
2277 (generic_pop_dummy_frame): Use discard_innermost_dummy.
2278 (dummy_frame_unwind): Add dummy_frame_pop.
2279 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
2280 * valops.c (hand_function_call): Ditto.
2281 * stack.c (return_command): Ditto.
2283 2003-01-18 Andrew Cagney <ac131313@redhat.com>
2285 * cris-tdep.c: Fix function declaration indentation.
2286 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
2287 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
2288 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
2289 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
2290 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
2291 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
2293 2003-01-18 Michael Chastain <mec@shout.net>
2295 * README (Unpacking and Installation -- quick overview):
2296 Warn against ".../gdb-5.3/gdb/configure".
2298 2003-01-18 Andrew Cagney <ac131313@redhat.com>
2300 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
2301 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2302 (struct frame_unwind): Declare opaque.
2303 (dummy_frame_p): Declare function.
2304 * dummy-frame.c (dummy_frame_id_unwind): Make static.
2305 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2306 * dummy-frame.c: Include "frame-unwind.h".
2307 (dummy_frame_p): New function.
2308 (dummy_frame_unwind): New variable.
2309 * frame.c: Include "frame-unwind.h".
2310 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
2311 to use the new unwind field.
2312 (set_unwind_by_pc): Delete function.
2313 (create_new_frame, get_prev_frame): Set unwind field using
2314 frame_unwind_find_by_pc.
2315 (trad_frame_unwind, trad_frame_unwinder): New variables.
2316 * frame.h (trad_frame_unwind): Declare variable.
2317 (frame_id_unwind_ftype): Delete declaration.
2318 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
2319 (struct frame_unwind): Declare opaque.
2320 (struct frame_info): Replace the fields id_unwind, pc_unwind and
2321 register_unwind with a single unwind pointer.
2322 * frame-unwind.h, frame-unwind.c: New files.
2323 * Makefile.in (SFILES): Add frame-unwind.c.
2324 (frame_unwind_h): Define.
2325 (COMMON_OBS): Add frame-unwind.o.
2326 (frame-unwind.o): Specify dependencies.
2327 (frame.o, dummy-frame.o): Update dependencies.
2329 2003-01-18 Andrew Cagney <ac131313@redhat.com>
2331 * ada-valprint.c: Eliminate PTR.
2332 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
2333 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
2334 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
2335 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
2336 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
2337 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
2338 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
2340 2003-01-17 Andrew Cagney <ac131313@redhat.com>
2342 * main.c (captured_main): Don't use PTR.
2343 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
2344 * gdbtypes.c (lookup_primitive_typename): Ditto.
2345 (lookup_struct_elt_type): Ditto.
2346 * f-valprint.c (info_common_command): Ditto.
2347 (list_all_visible_commons): Ditto.
2348 * jv-typeprint.c (java_type_print_base): Ditto.
2350 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
2351 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
2352 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
2353 i386-interix-nat.c and i386-interix-tdep.c. Rename
2354 m68klinux-nat.c and m68klinux-tdep.c. Rename
2355 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
2356 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
2357 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
2358 * main.c (captured_main): Use xfree, not free.
2360 2003-01-16 Andrew Cagney <ac131313@redhat.com>
2362 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
2363 ID back using a parameter.
2364 * frame.c (frame_id_unwind): Update call.
2365 (frame_saved_regs_id_unwind): Update.
2366 * dummy-frame.c (dummy_frame_id_unwind): Update function.
2367 * dummy-frame.h (struct frame_id): Add opaque declaration.
2368 (dummy_frame_id_unwind): Update declaration.
2370 2003-01-15 Andrew Cagney <ac131313@redhat.com>
2372 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
2374 2003-01-15 Stephen P. Smith <ischis2@cox.net>
2376 * MAINTAINERS (Stephen P. Smith): Updated email address.
2378 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
2381 * breakpoint.c (until_break_command): Add new argument. Use it to
2382 decide whether to stop only at the current frame or not.
2383 * breakpoint.h (until_break_command): Update prototype.
2384 * infcmd.c (until_command): Add new argument to until_break_command
2386 (advance_command): New function.
2387 (_initialize_infcmd): Update help string for 'until' command.
2388 Add new 'advance' command.
2390 2003-01-14 David Carlton <carlton@math.stanford.edu>
2392 * linespec.c (decode_line_1): Normalize comments.
2394 (locate_first_half): Ditto.
2395 (decode_compound): Ditto.
2396 (symtab_from_filename): Ditto.
2397 (decode_all_digits): Ditto.
2398 (decode_dollar): Ditto.
2399 (find_methods): Ditto.
2400 (find_toplevel_char): Ditto.
2402 2003-01-13 Andrew Cagney <ac131313@redhat.com>
2404 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
2405 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
2406 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
2407 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
2408 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
2409 * language.c, language.h, m32r-tdep.c: Update copyright.
2410 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
2411 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
2412 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
2413 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
2414 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
2415 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
2417 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
2419 * stabsread.h (process_later, resolve_cfront_continuation):
2421 Update copyright years.
2422 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
2423 Update copyright year.
2424 * dbxread.c(struct cont_elem): Obsolete.
2425 (process_later, process_now): Obsolete functions.
2426 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
2427 Update copyright year.
2428 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
2429 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
2430 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
2431 (parse_partial_symbols): Obsolete cfront support.
2433 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
2435 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
2436 read_cfront_baseclasses, read_cfront_member_functions,
2437 resolve_cfront_continuation,read_cfront_static_fields,
2438 copy_cfront_struct_fields): Obsolete functions.
2439 (define_symbol, read_one_struct_field): Obsolete cfront support.
2440 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
2441 Update Copyright year.
2443 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
2445 * stack.c (print_frame_info, print_stack_frame_base_stub,
2446 print_stack_frame_base, show_and_print_stack_frame_stub,
2447 show_and_print_stack_frame, print_only_stack_frame_stub,
2448 print_only_stack_frame): Delete functions.
2449 (print_stack_frame_stub): Call print_frame_info instead of
2450 print_frame_info_base.
2451 (print_frame_info_base): Rename to print_frame_info.
2452 (backtrace_command_1): Call print_frame_info, instead of
2453 print_frame_info_base.
2454 (current_frame_command): Call print_stack_frame, instead of
2455 print_only_stack_frame.
2456 (frame_command): Call print_stack_frame, instead of
2457 show_and_print_stack_frame.
2458 (up_command): Ditto.
2459 (down_command): Ditto.
2460 * frame.h (print_only_stack_frame): Delete prototype.
2461 * infrun.c (normal_stop): Call print_stack_frame, instead of
2462 show_and_print_stack_frame.
2463 * thread.c (info_threads_command): Call print_stack_frame, instead
2464 of print_only_stack_frame.
2466 2003-01-13 Andrew Cagney <ac131313@redhat.com>
2468 * README (Graphical interface to GDB): Update URL. Point at
2471 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
2474 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2476 * symtab.c (find_pc_sect_line): Don't consider end-of-function
2479 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2481 * thread-db.c (attach_thread): Prototype.
2482 (struct private_thread_info): Remove lwpid. Add thread handle (th),
2483 thread information (ti), and valid flags (th_valid, ti_valid).
2484 (attach_thread): Move target_pid_to_str call to after the thread
2485 is added to GDB's list. Initialize the cache.
2486 (thread_get_info_callback, thread_db_map_id2thr)
2487 (thread_db_get_info): New functions.
2488 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
2489 (thread_db_store_registers, thread_db_thread_alive)
2490 (thread_db_get_thread_local_address): Use them.
2491 (thread_db_pid_to_str): Likewise. Return "Missing" instead
2492 of calling error() for threads in unknown state.
2494 (clear_lwpid_callback): New function.
2495 (thread_db_resume): Use it to clear the cache.
2497 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2499 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
2500 (resume_callback): Remove dead code.
2502 2003-01-13 Andrew Cagney <ac131313@redhat.com>
2504 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
2506 * gdbarch.h, gdbarch.c: Regenerate.
2507 * stack.c (frame_info): Only initialize the saved registers when
2508 FRAME_INIT_SAVED_REGS_P.
2509 * frame.c (frame_saved_regs_register_unwind): Assert
2510 FRAME_INIT_SAVED_REGS_P.
2511 (deprecated_generic_get_saved_register): Ditto.
2513 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2515 * source.c (openp): Squelch warning about "filename".
2517 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2519 * source.c (openp): If the file does not exist don't necessarily
2522 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2525 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
2526 (integer_types_same_name_p): New function.
2527 (rank_one_type): Use it.
2528 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
2530 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
2532 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
2534 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
2535 * configure.in: Add --with-sysroot.
2536 * configure: Regenerated.
2537 * main.c (gdb_sysroot): New variable.
2538 (captured_main): Initialize gdb_sysroot.
2539 * defs.h (gdb_sysroot): New extern declaration.
2540 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
2542 2003-01-12 Michael Chastain <mec@shout.net>
2544 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
2546 2003-01-12 Michael Chastain <mec@shout.net>
2548 * top.c (print_gdb_version): Bump copyright year to 2003.
2550 2003-01-12 David Carlton <carlton@bactrian.org>
2552 * linespec.c (symtab_from_filename): Rename variable 's' to
2555 2003-01-12 Andrew Cagney <ac131313@redhat.com>
2557 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
2559 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
2561 2003-01-12 Andrew Cagney <ac131313@redhat.com>
2563 * d10v-tdep.c: Include "gdb_assert.h".
2564 (d10v_store_return_value): Rewrite to match current interface.
2565 (d10v_extract_struct_value_address): Ditto.
2566 (d10v_extract_return_value): Ditto.
2567 (d10v_gdbarch_init): Set store_restore_value,
2568 extract_struct_value_address and extract_return_value.
2570 2003-01-12 J. Brobecker <brobecker@gnat.com>
2572 * hpread.c (set_namestring): New procedure replacing the
2573 SET_NAMESTRING macro.
2574 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
2575 by calls to set_namestring.
2577 2003-01-11 J. Brobecker <brobecker@gnat.com>
2579 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
2580 a compilation warning.
2581 (hpread_process_one_debug_symbol): Likewise.
2583 2003-01-10 David Carlton <carlton@math.stanford.edu>
2585 * linespec.c (decode_line_1): Rename variable 's' to
2587 (decode_all_digits): Rename argument 's' to 'file_symtab'.
2588 (decode_dollar): Ditto.
2589 (decode_variable): Ditto.
2590 (symbol_found): Ditto.
2592 2003-01-09 Michael Chastain <mec@shout.net>
2594 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
2596 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
2598 * win32-nat.c (set_process_privilege): New function.
2599 (child_attach): Call set_process_privilege() to enable the
2600 SE_DEBUG_NAME user privilege if available in process token.
2602 2003-01-10 J. Brobecker <brobecker@gnat.com>
2604 * hpread.c (hpread_process_one_debug_symbol): Fix a small
2605 compilation error in the previous revision.
2607 2003-01-09 David Carlton <carlton@math.stanford.edu>
2609 * linespec.c: Update copyright.
2611 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
2613 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
2615 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
2617 2003-01-09 Andrew Cagney <ac131313@redhat.com>
2619 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
2621 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
2622 (frame_saved_regs_zalloc): Update.
2623 (frame_saved_regs_register_unwind): Update.
2624 (create_new_frame): Update.
2625 (get_prev_frame): Update.
2626 (frame_extra_info_zalloc): Update.
2627 (deprecated_get_frame_saved_regs): Update.
2628 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
2629 * cris-tdep.c: Update comment.
2631 * somsolib.h: Fix function indentation.
2632 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
2633 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
2634 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
2635 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
2636 * somsolib.c, inftarg.c: Remove assignment in if conditional.
2638 * infrun.c (follow_fork): Use ISO C definition.
2639 * expprint.c (print_subexp): Use xfree instead of free.
2640 * charset.c: Include "gdb_string.h" instead of <string.h>.
2641 (register_iconv_charsets): Use ISO C definition.
2642 (host_charset, target_charset): Ditto.
2643 * Makefile.in (charset.o): Update dependencies.
2644 (mi-cmd-env.o): Update dependencies.
2646 2003-01-08 Andrew Cagney <cagney@redhat.com>
2648 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
2651 2003-01-08 Andrew Cagney <ac131313@redhat.com>
2653 * gdb_mbuild.sh: Add --keep option. When specified, keep the
2654 build directories. Save edited gdb output in Mbuild.log. If a
2655 build fails, remove any final GDB executable.
2657 2003-01-08 Andrew Cagney <ac131313@redhat.com>
2659 * gdb_mbuild.sh: Edit the output of `maint print architecture'
2660 replacing hex constants with function names and stripping leading
2661 file name directory prefixes.
2663 2003-01-08 Andrew Cagney <cagney@redhat.com>
2665 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
2668 2003-01-08 David Carlton <carlton@math.stanford.edu>
2670 * linespec.c (decode_line_1): Move code into decode_variable.
2671 (decode_variable): New function.
2673 2003-01-08 Andrew Cagney <ac131313@redhat.com>
2675 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
2677 2003-01-08 Andrew Cagney <cagney@redhat.com>
2679 * cris-tdep.c (cris_frame_init_saved_regs): Use
2680 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
2682 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
2683 (sh64_nofp_frame_init_saved_regs): Ditto.
2684 (sh_fp_frame_init_saved_regs): Ditto.
2685 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
2686 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2687 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2688 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2690 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
2692 * minsyms.c (lookup_minimal_symbol): Update comment.
2693 (lookup_minimal_symbol_text): Update comment. Use the hash table.
2694 (lookup_minimal_symbol_solib_trampoline): Likewise.
2696 2003-01-08 Andrew Cagney <cagney@redhat.com>
2698 * d10v-tdep.c (d10v_init_extra_frame_info): Use
2699 frame_relative_level.
2701 * alpha-tdep.c: Use get_frame_extra_info.
2702 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2703 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
2704 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2705 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
2707 * alpha-tdep.c: Use get_next_frame.
2708 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2709 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
2710 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
2711 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
2712 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
2713 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
2714 * xstormy16-tdep.c: Ditto.
2716 2003-01-07 Andrew Cagney <cagney@redhat.com>
2718 * alpha-tdep.c: Use get_frame_base.
2719 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2720 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
2721 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
2722 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2723 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
2724 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
2725 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
2726 * config/sparc/tm-sparc.h: Ditto.
2728 2003-01-07 Andrew Cagney <cagney@redhat.com>
2730 * frame.c (deprecated_get_frame_context): New function.
2731 (deprecated_set_frame_context): New function.
2732 * frame.h (deprecated_get_frame_context): Declare.
2733 (deprecated_set_frame_context): Declare.
2734 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
2735 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
2737 2003-01-07 Andrew Cagney <cagney@redhat.com>
2739 * frame.c (deprecated_set_frame_next_hack): New function.
2740 (deprecated_set_frame_prev_hack): New function.
2741 * frame.h (deprecated_set_frame_next_hack): Declare.
2742 (deprecated_set_frame_prev_hack): Declare.
2743 * mcore-tdep.c (analyze_dummy_frame): Use
2744 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
2745 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2747 2003-01-07 David Carlton <carlton@math.stanford.edu>
2749 * linespec.c (decode_line_1): Move code into decode_dollar.
2750 (decode_dollar): New function.
2752 2003-01-07 Andrew Cagney <cagney@redhat.com>
2754 * arm-tdep.c (arm_init_extra_frame_info): Use
2755 deprecated_update_frame_base_hack.
2756 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
2757 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2758 (fix_frame_pointer): Ditto.
2759 (mn10300_analyze_prologue): Ditto.
2761 2003-01-07 Andrew Cagney <cagney@redhat.com>
2763 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
2764 extra_info using frame_extra_info_zalloc.
2765 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
2766 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
2767 (sh64_init_extra_frame_info): Ditto.
2768 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
2769 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
2770 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2771 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
2772 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
2773 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
2774 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
2775 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
2776 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
2777 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
2778 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
2779 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
2781 * mn10300-tdep.c (analyze_dummy_frame): Use
2782 deprecated_set_frame_extra_info_hack.
2783 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2785 2003-01-07 J. Brobecker <brobecker@gnat.com>
2787 * mdebugread.c (parse_symbol): Skip stProc entries which storage
2788 class is not scText. These do not define "real" procedures.
2789 (parse_partial_symbols): Likewise.
2791 2003-01-06 Michael Snyder <msnyder@redhat.com>
2793 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
2795 2003-01-06 Andrew Cagney <ac131313@redhat.com>
2797 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
2798 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
2799 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
2800 deprecated_frame_xmalloc_with_cleanup.
2801 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
2802 deprecated_frame_xmalloc.
2803 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
2804 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
2806 2003-01-06 Andrew Cagney <cagney@redhat.com>
2808 * x86-64-linux-tdep.c: Include "osabi.h".
2809 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
2811 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
2813 2003-01-06 Andrew Cagney <cagney@redhat.com>
2815 * MAINTAINERS (Target Instruction Set Architectures): Update
2816 arm-elf. Can be built with -Werror, has been multiarched.
2818 * value.h (unpack_long): Make buffer parameter constant.
2819 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
2820 * scm-lang.h (scm_parse): Ditto.
2821 * defs.h (extract_typed_address, extract_address): Ditto.
2822 (extract_long_unsigned_integer): Ditto.
2823 * inferior.h (unsigned_pointer_to_address): Ditto.
2824 (signed_pointer_to_address): Ditto.
2825 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
2826 * gdbarch.h, gdbarch.c: Regenerate.
2827 * findvar.c (extract_long_unsigned_integer): Update.
2828 (extract_address): Update.
2829 (extract_typed_address): Update.
2830 (unsigned_pointer_to_address): Update.
2831 * values.c (unpack_long): Update.
2832 (unpack_double): Update.
2833 (unpack_pointer): Update.
2834 (unpack_field_as_long): Update.
2835 * d10v-tdep.c (d10v_pointer_to_address): Update.
2836 * avr-tdep.c (avr_pointer_to_address): Update.
2837 * scm-lang.c (scm_unpack): Update.
2838 * findvar.c (signed_pointer_to_address): Update.
2840 2003-01-06 Michal Ludvig <mludvig@suse.cz>
2842 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
2843 since it is in i386-tdep.c.
2845 2003-01-06 J. Brobecker <brobecker@gnat.com>
2847 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
2848 failure introduced in the previous change.
2850 2003-01-05 Michael Chastain <mec@shout.net>
2852 * README: Remove references to deleted remote-*.c files:
2853 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
2854 remote-nrom.c, remote-os9k.c, remote-udi.c.
2856 2003-01-05 Mark Kettenis <kettenis@gnu.org>
2858 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
2859 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
2860 i386_get_longjmp_target.
2862 2003-01-05 Andrew Cagney <ac131313@redhat.com>
2864 * arm-tdep.c (prologue_cache): Change to a pointer.
2865 (_initialize_arm_tdep): Allocate prologue_cache.
2866 (check_prologue_cache): Update.
2867 (save_prologue_cache): Update.
2868 (arm_gdbarch_init): Update.
2870 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2872 * stabsread.c (update_method_name_from_physname): Call complaint()
2875 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2877 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
2878 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
2879 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
2881 * blockframe.c: Include "gdbcmd.h" and "command.h".
2882 (backtrace_below_main): New variable.
2883 (file_frame_chain_valid, func_frame_chain_valid)
2884 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
2885 (generic_func_frame_chain_valid): Remove functions.
2886 (frame_chain_valid, do_flush_frames_sfunc): New functions.
2887 (_initialize_blockframe): New function.
2888 * Makefile.in (blockframe.o): Update dependencies.
2889 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
2890 comment. Call frame_chain_valid ().
2891 * frame.h: Remove old prototypes. Add prototype for
2892 frame_chain_valid and update comments to match.
2893 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
2895 * gdbarch.h: Regenerated.
2896 * gdbarch.c: Regenerated.
2898 * alpha-tdep.c (alpha_gdbarch_init): Don't call
2899 set_gdbarch_frame_chain_valid.
2900 * avr-tdep.c (avr_gdbarch_init): Likewise.
2901 * cris-tdep.c (cris_gdbarch_init): Likewise.
2902 * frv-tdep.c (frv_gdbarch_init): Likewise.
2903 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2904 * i386-tdep.c (i386_svr4_init_abi): Likewise.
2905 (i386_nw_init_abi): Likewise.
2906 (i386_gdbarch_init): Likewise.
2907 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2908 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2909 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2910 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2911 * mips-tdep.c (mips_gdbarch_init): Likewise.
2912 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2913 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
2914 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
2915 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2916 * s390-tdep.c (s390_gdbarch_init): Likewise.
2917 * sh-tdep.c (sh_gdbarch_init): Likewise.
2918 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2919 * v850-tdep.c (v850_gdbarch_init): Likewise.
2920 * vax-tdep.c (vax_gdbarch_init): Likewise.
2921 * x86-64-tdep.c (x86_64_init_abi): Likewise.
2923 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
2924 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
2925 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
2926 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
2927 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
2928 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
2929 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
2930 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
2932 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
2934 * Makefile.in (acconfig_h): Remove incorrect macro.
2936 (osabi.o): Update dependencies.
2937 * configure.tgt: Set gdb_osabi based on target triplet.
2938 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
2939 * configure: Regenerated.
2940 * config.in: Regenerated.
2941 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
2942 (GDB_OSABI_DEFAULT): Define if not already defined.
2943 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
2944 (set_osabi_string): New variables.
2945 (gdbarch_register_osabi): Add new OS ABI to
2946 gdb_osabi_available_names.
2947 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
2948 (set_osabi, show_osabi): New functions.
2949 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
2951 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2953 * arch-utils.c (gdbarch_info_init): Set osabi to
2954 GDB_OSABI_UNINITIALIZED.
2955 * gdbarch.sh: Add osabi to struct gdbarch and to struct
2956 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
2957 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
2958 * gdbarch.c: Regenerated.
2959 * gdbarch.h: Regenerated.
2960 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
2962 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
2963 * osabi.h (enum gdb_osabi): Move to defs.h.
2964 (gdbarch_init_osabi): Update prototype.
2965 * defs.h (enum gdb_osabi): Moved here.
2966 * Makefile.in: Update dependencies.
2968 * alpha-tdep.h: Don't include "osabi.h".
2969 (struct gdbarch_tdep): Remove osabi member.
2970 * alpha-tdep.c: Include "osabi.h".
2971 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2972 iterate over arches. Update call to gdbarch_init_osabi.
2973 (alpha_dump_tdep): Don't dump osabi.
2974 * alpha-linux-tdep.c: Include "osabi.h".
2975 * alpha-osf1-tdep.c: Include "osabi.h".
2976 * alphafbsd-tdep.c: Include "osabi.h".
2977 * alphanbsd-tdep.c: Include "osabi.h".
2979 * arm-tdep.h: Don't include "osabi.h".
2980 (struct gdbarch_tdep): Remove osabi member.
2981 * arm-tdep.c: Include "osabi.h".
2982 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2983 iterate over arches. Update call to gdbarch_init_osabi.
2984 (arm_dump_tdep): Don't dump osabi.
2985 * arm-linux-tdep.c: Include "osabi.h".
2986 * armnbsd-tdep.c: Include "osabi.h".
2988 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
2989 Update call to gdbarch_init_osabi.
2991 * i386-tdep.h: Don't include "osabi.h".
2992 (struct gdbarch_tdep): Remove osabi member.
2993 * i386-tdep.c: Include "osabi.h".
2994 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2995 iterate over arches. Update call to gdbarch_init_osabi.
2996 (i386_dump_tdep): Don't dump osabi.
2997 * i386-linux-tdep.c: Include "osabi.h".
2998 * i386-sol2-tdep.c: Include "osabi.h".
2999 * i386bsd-tdep.c: Include "osabi.h".
3000 * i386gnu-tdep.c: Include "osabi.h".
3001 * i386ly-tdep.c: Include "osabi.h".
3002 * i386nbsd-tdep.c: Include "osabi.h".
3003 * i386obsd-tdep.c: Include "osabi.h".
3005 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
3006 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3007 check osabi when iterating over arches. Update call to
3009 (mips_dump_tdep): Don't dump osabi.
3011 * ns32k-tdep.h: Don't include "osabi.h".
3012 (struct gdbarch_tdep): Remove.
3013 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
3014 gdbarch_lookup_osabi. Don't iterate over arches. Don't
3015 allocate tdep. Update call to gdbarch_init_osabi.
3016 (ns32k_dump_tdep): Remove.
3017 (_initialize_ns32k_tdep): Update call to gdbarch_register.
3018 * ns32knbsd-tdep.c: Include "osabi.h".
3020 * ppc-tdep.h: Don't include "osabi.h".
3021 (struct gdbarch_tdep): Remove osabi member.
3022 * rs6000-tdep.c: Include "osabi.h".
3023 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
3024 osabi when iterating over arches. Update call to
3026 (rs6000_dump_tdep): Don't dump osabi.
3027 * ppc-linux-tdep.c: Include "osabi.h".
3028 * ppcnbsd-tdep.c: Include "osabi.h".
3030 * sh-tdep.h: Don't include "osabi.h".
3031 (struct gdbarch_tdep): Remove osabi member.
3032 * sh-tdep.c: Include "osabi.h".
3033 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3034 iterate over arches. Update call to gdbarch_init_osabi.
3035 (sh_dump_tdep): Don't dump osabi.
3036 * shnbsd-tdep.c: Include "osabi.h".
3038 * sparc-tdep.c: Include "osabi.h".
3039 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3040 iterate over arches. Update call to gdbarch_init_osabi.
3041 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
3044 * vax-tdep.h: Don't include "osabi.h".
3045 (struct gdbarch_tdep): Remove.
3046 * vax-tdep.c: Include "osabi.h".
3047 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3048 iterate over arches. Don't allocate tdep. Update call
3049 to gdbarch_init_osabi.
3050 (vax_dump_tdep): Remove.
3051 (_initialize_vax_tdep): Update call to gdbarch_register.
3053 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3055 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
3057 (breakpoint_re_set_one): Don't fetch the value for a disabled
3060 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3062 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
3063 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
3064 (COERCE_FLOAT_TO_DOUBLE): Remove.
3065 * gdbarch.c: Regenerate.
3066 * gdbarch.h: Regenerate.
3067 * Makefile.in: Remove value_h from gdbarch_h.
3068 * valops.c (coerce_float_to_double): New variable.
3069 (default_coerce_float_to_double): Remove.
3070 (standard_coerce_float_to_double): Remove.
3071 (value_arg_coerce): Use coerce_float_to_double.
3072 (_initialize_valops): Add "set coerce-float-to-double".
3073 * value.h (default_coerce_float_to_double): Remove prototype.
3074 (standard_coerce_float_to_double): Remove prototype.
3076 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
3078 * mdebugread.c (parse_symbol): Likewise.
3079 * stabsread.c (define_symbol): Mark all functions as prototyped.
3081 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
3082 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
3083 set_gdbarch_coerce_float_to_double.
3084 * arm-tdep.c (arm_gdbarch_init): Likewise.
3085 * frv-tdep.c (frv_gdbarch_init): Likewise.
3086 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
3087 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
3088 * mips-tdep.c (mips_gdbarch_init): Likewise.
3089 (mips_coerce_float_to_double): Remove.
3090 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3091 (rs6000_coerce_float_to_double): Remove.
3092 * s390-tdep.c (s390_gdbarch_init): Likewise.
3093 * sh-tdep.c (sh_gdbarch_init): Likewise.
3094 (sh_coerce_float_to_double): Remove.
3095 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3096 (sparc_coerce_float_to_double): Remove.
3097 * v850-tdep.c (v850_gdbarch_init): Likewise.
3098 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3099 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3100 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
3101 (hppa_coerce_float_to_double): Remove prototype.
3102 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3104 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3106 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
3108 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3110 Suggested by Stewart Brown <sb24@avaya.com>:
3111 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
3112 in recursive calls. Handle TYPE_CODE_TYPEDEF.
3113 (c_type_print_varspec_suffix): Likewise.
3115 2003-01-04 Mark Kettenis <kettenis@gnu.org>
3117 * configure.in: Don't set and AC_SUBST SUBDIRS.
3118 * configure: Regenerated.
3120 * configure.in: Remove code dealing with shared libraries.
3121 * Makefile.in: Remove HLDFLAGS and HLDENV.
3122 * configure: Regenerated.
3124 2003-01-04 Andrew Cagney <ac131313@redhat.com>
3126 * frame.c (deprecated_frame_xmalloc): New function.
3127 (deprecated_set_frame_saved_regs_hack): New function.
3128 (deprecated_set_frame_extra_info_hack): New function.
3129 * frame.h (deprecated_frame_xmalloc): Declare.
3130 (deprecated_set_frame_saved_regs_hack): Declare.
3131 (deprecated_set_frame_extra_info_hack): Declare.
3133 2003-01-04 Mark Kettenis <kettenis@gnu.org>
3135 * configure.in: Move code that provides the --enable-gdbtk option
3136 right after the code that handles the --enable-tui option, and
3138 * configure: Regenerated.
3140 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
3141 AC_CHECK_FUNCS and remove the old check for pread64.
3142 * acinclude.m4 (AC_GNU_SOURCE): New macro.
3143 * acconfig.h (_GNU_SOURCE): Add.
3144 (HAVE_PREAD64): Remove.
3145 * configure, aclocal.m4, config.in: Regenerated.
3147 2003-01-03 Andrew Cagney <ac131313@redhat.com>
3149 * alpha-tdep.c: Use get_frame_saved_regs.
3150 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3151 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3152 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
3153 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
3154 * vax-tdep.c, xstormy16-tdep.c: Ditto.
3156 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3158 * configure.in: Remove all use of the SUBDIRS variable; add
3159 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
3160 code providing the --enable-multi-ice option, and move it right in
3161 front of the code that checks whether gdbserver is supported.
3163 * configure: Regenerated.
3164 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
3167 2003-01-03 Andrew Cagney <cagney@redhat.com>
3169 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
3170 * avr-tdep.c, cris-tdep.c: Ditto.
3171 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3172 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3174 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3176 * configure.in: Remove --enable-netrom option.
3177 * configure: Regenerated.
3179 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3181 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
3182 declaration for `struct re_pattern_buffer' instead.
3183 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
3185 2003-01-03 J. Brobecker <brobecker@gnat.com>
3187 * mdebugread.c (parse_symbol): Count until the stEnd matching
3190 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3192 * configure.in: Remove --with-cpu option.
3193 subscripts. Remove evil changequotes here.
3194 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
3195 * config.in, configure: Regenerated.
3197 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
3198 * configure.in: Cleanup section that sources GDB and BFD configure
3199 subscripts. Remove evil changequotes here.
3200 * config.in, configure: Regenerated.
3202 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3204 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
3205 frame accessor methods.
3206 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3207 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3208 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
3209 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
3210 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3211 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3212 * z8k-tdep.c: Ditto.
3214 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3216 * configure.in: Remove UI_OUT configuration code.
3217 * ada-lang.c: Update assuming UI_OUT is always true.
3218 * Makefile.in (UIOUT_CFLAGS): Remove.
3219 * configure: Regenerated.
3220 * TODO: Remove blurb about elimination of -DUI_OUT.
3222 * configure.in: Move code that provides the --enable-gdbcli,
3223 --enable-gdbmi options right before the code that handles the
3224 --enable-tui option. Polish a bit.
3225 * configure: Regenerated.
3227 * configure.in: Rewrite check for GNU regex and the
3228 --without-included regex option, and move it into the "Checks for
3229 library functions" section. This makes us use the system regex
3230 again by default on systems with version 2 of the GNU C library.
3231 This was apparently broken.
3232 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
3233 * acconfig.h (USE_INCLUDED_REGEX): Remove.
3234 * config.in, configure: Regenerated.
3236 * configure.in: Move code that provides the --enable-tui option
3237 before the "Checks for libraries" section. Polish the code
3238 somewhat and set need_curses to yes if we build the TUI. Rewrite
3239 code that looks for a library providing termcap functionality to
3240 match more closely what's done in the Readline library, and move
3241 it into to the "Checks for libraries" section.
3242 * configure: Regenerated.
3243 * Makefile.in (TERMCAP): Remove variable.
3244 * config/i386/go32.mh (TERMCAP): Remove variable.
3246 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3248 * MAINTAINERS: Mention gdb_mbuild.sh.
3249 * gdb_mbuild.sh: Rewrite.
3251 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3253 * configure.in: Fix typo in last change.
3254 * config.in, configure: Regenerated.
3256 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3258 * valarith.c (value_binop): Delete obsolete code and comments.
3259 * configure.host: Ditto.
3260 * buildsym.h (make_blockvector): Ditto.
3261 * buildsym.c (make_blockvector): Ditto.
3262 * defs.h (enum language): Ditto.
3263 (chill_demangle): Ditto.
3264 * elfread.c (elf_symtab_read): Ditto.
3265 * dwarfread.c (CHILL_PRODUCER): Ditto.
3266 (set_cu_language): Ditto.
3267 (handle_producer): Ditto.
3268 * expprint.c (print_subexp): Ditto.
3269 * gdbtypes.c (chill_varying_type): Ditto.
3270 * gdbtypes.h (builtin_type_chill_bool): Ditto.
3271 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
3272 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
3273 (chill_varying_type): Ditto.
3274 * language.h (_LANG_chill): Ditto.
3275 * language.c (binop_result_type, integral_type): Ditto.
3276 (character_type, string_type, structured_type): Ditto.
3277 (lang_bool_type, binop_type_check): Ditto.
3278 * stabsread.h (os9k_stabs): Ditto.
3279 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
3280 (define_symbol, read_type, read_struct_fields): Ditto.
3281 (read_array_type, read_enum_type, read_huge_number): Ditto.
3282 (read_range_type, start_stabs): Ditto.
3283 * symfile.c (init_filename_language_table): Ditto.
3284 (add_psymbol_with_dem_name_to_list): Ditto.
3285 * symtab.c (symbol_init_language_specific): Ditto.
3286 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
3287 * symtab.h (struct general_symbol_info): Ditto.
3288 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3289 * typeprint.c (typedef_print): Ditto.
3290 * utils.c (fprintf_symbol_filtered): Ditto.
3291 * valops.c (value_cast, search_struct_field, value_slice): Delete
3293 (varying_to_slice): Delete function.
3294 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
3295 (varying_to_slice): Delete declaration.
3296 * MAINTAINERS: Update.
3298 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3300 * configure.in: Reorganize "Checks for library functions section"
3301 a bit. Remove check for `btowc' and `isascii' functions.
3302 * configure: Regenerated.
3304 * acconfig.h (_MSE_INT_H): Remove.
3305 * configure.in: Create "Checks for header files" section, and move
3306 appropriate tests there. Don't check for objlist.h, wchar.h,
3307 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
3308 misdetection fix. Also add "Checks for types", "Checks for
3309 compiler characteristics" and "Checks for library functions"
3311 * config.in, configure: Regenerated.
3313 * configure.in: Create "Checks for programs" section, and move
3314 appropriate tests there.
3316 2003-01-01 Mark Kettenis <kettenis@gnu.org>
3318 * configure.in: Create "Checks for libraries" section, and move
3319 appropriate tests there. Cleanup check for wctype in libw. Use
3320 AC_SEARCH_LIBS to see whether we need libsocket.
3321 * configure: Regenerated.
3323 For older changes see ChangeLog-2002
3329 version-control: never