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