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