1 2003-04-09 Andrew Cagney <cagney@redhat.com>
3 * NEWS: Mention that the "Sequent family" is obsolete.
4 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
5 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8 * config/i386/tm-ptx4.h: Obsolete file.
9 * config/i386/tm-ptx.h: Obsolete file.
10 * symm-tdep.c: Obsolete file.
11 * config/i386/symmetry.mt: Obsolete file.
12 * config/i386/tm-symmetry.h: Obsolete file.
13 * symm-nat.c: Obsolete file.
14 * config/i386/nm-symmetry.h: Obsolete file.
15 * config/i386/xm-symmetry.h: Obsolete file.
16 * config/i386/symmetry.mh: Obsolete file.
17 * config/i386/nm-ptx4.h: Obsolete file.
18 * config/i386/ptx4.mh: Obsolete file.
19 * config/i386/ptx.mt: Obsolete file.
20 * config/i386/ptx.mh: Obsolete file.
21 * config/i386/xm-ptx4.h: Obsolete file.
22 * config/i386/xm-ptx.h: Obsolete file.
24 2003-04-09 Andrew Cagney <cagney@redhat.com>
26 Obsolete mips*-*-mach3*.
27 * NEWS: Mention that mips*-*-mach3* is obsolete.
28 * m3-nat.c: Obsolete file.
29 * config/nm-m3.h: Obsolete file.
30 * config/mips/tm-mipsm3.h: Obsolete file.
31 * config/mips/mipsm3.mt: Obsolete file.
32 * config/mips/mipsm3.mh: Obsolete file.
33 * config/mips/xm-mipsm3.h: Obsolete file.
34 * mipsm3-nat.c: Obsolete file.
35 * configure.host: Obsolete mips-dec-mach3*.
36 * configure.tgt: Obsolete mips*-*-mach3*.
38 2003-04-09 Andrew Cagney <cagney@redhat.com>
40 * doublest.h: Update copyright.
41 (deprecated_store_floating, deprecated_extract_floating): Rename
42 store_floating and extract_floating. Update comments.
43 * doublest.c: Update copyright.
44 (extract_floating_by_length): Replace extract_floating.
45 (store_floating_by_length): Replace store_floating.
46 (deprecated_extract_floating): New function.
47 (deprecated_store_floating): New function.
48 (extract_typed_floating): Call extract_floating_by_length.
49 (store_typed_floating): Call store_floating_by_length.
50 * x86-64-tdep.c (x86_64_store_return_value): Update.
51 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
52 (sh64_extract_return_value): Update.
53 (sh_sh4_register_convert_to_virtual): Update.
54 (sh_sh64_register_convert_to_virtual): Update.
55 (sh_sh4_register_convert_to_raw): Update.
56 (sh_sh64_register_convert_to_raw): Update.
57 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
58 (rs6000_register_convert_to_raw): Update.
59 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
60 (ia64_register_convert_to_raw): Update.
61 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
62 (REGISTER_CONVERT_TO_VIRTUAL): Update.
63 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
64 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
65 (alpha_register_convert_to_raw): Update.
67 2003-04-08 Andrew Cagney <cagney@redhat.com>
69 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
70 * gdbarch.h, gdbarch.c: Re-generate.
71 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
72 (d10v_gdbarch_init): Do not set saved_pc_after_call.
73 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
74 conditionally, use frame_pc_unwind as an alternative. Add
76 * arch-utils.c (init_frame_pc_default): Only call
77 SAVED_PC_AFTER_CALL when available.
79 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
81 * infrun.c (stop_soon): Rename from stop_soon_quietly.
82 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
83 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
84 (start_remote): Ditto.
85 (handle_inferior_event): Ditto.
86 (save_inferior_status): Ditto.
87 (restore_inferior_status): Ditto.
88 * infcmd.c (attach_command): Ditto.
89 * fork-child.c (startup_inferior): Ditto.
90 * inferior.h (stop_soon): Rename from stop_soon_quietly.
91 * alpha-tdep.c (heuristic_proc_start): Ditto.
92 * mips-tdep.c (heuristic_proc_start): Ditto.
93 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
94 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
95 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
96 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
97 * remote-vx.c (vx_create_inferior): Ditto.
99 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
101 * infrun.c (stop_soon_quietly): Make it an enum, to better
102 override the default behavior of handle_inferior_event.
103 (clear_proceed_status): Update uses of stop_soon_quietly to
104 reflect that it is now an enum.
105 (start_remote): Ditto.
106 (handle_inferior_event): Change logic a bit if stop_soon_quietly
107 is set to handle the new GNU/Linux kernel behavior for
108 attach/sigstop. Update uses of stop_soon_quietly.
109 * inferior.h (enum stop_kind): New enum.
110 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
111 Reset normal handle_inferior_event behavior, afterwards.
112 * fork-child.c (startup_inferior): Update.
113 * alpha-tdep.c (heuristic_proc_start): Update.
114 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
115 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
116 * solib-osf.c (osf_solib_create_inferior_hook): Update.
117 * solib-irix.c (irix_solib_create_inferior_hook): Update.
118 * remote-vx.c (vx_create_inferior): Update.
119 * mips-tdep.c (heuristic_proc_start): Update.
121 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
123 * disasm.c (dump_insns): Move variables inside loop, or they will
124 be freed more than once, causing wild memory corruptions.
125 (gdb_disassembly): Look for the substring "-thread",
126 instead of "-threads" in the target name, to make sure to find
127 the 'multi-thread' target. Also, make sure we do the right thing
128 with the "core" target.
130 2003-04-07 Kevin Buettner <kevinb@redhat.com>
132 * mips-tdep.c (mips_print_fp_register): New function, created from
133 do_fp_register_row(). Registers are now (also) printed as hex.
134 Only one register is printed per row.
135 (mips_print_register, do_fp_register_row): Print floating point
136 registers with mips_print_fp_register().
138 2003-04-06 Andrew Cagney <cagney@redhat.com>
140 * valprint.h (inspect_it): Add extern declaration.
141 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
142 (selectors_info, classes_info): Ditto.
143 (find_objc_msgcall): Fix indentation.
144 (objc_printstr): Delete extern declarations.
146 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
148 2003-04-06 Andrew Cagney <cagney@redhat.com>
150 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
152 * frame.c (legacy_saved_regs_this_id): Update.
153 (legacy_get_prev_frame): Update.
154 * xstormy16-tdep.c: Update comment.
155 * sparc-tdep.c (sparc_frame_chain): Update comment.
156 * blockframe.c (legacy_frame_chain_valid): Update.
158 2003-04-06 Andrew Cagney <cagney@redhat.com>
160 * valprint.c (val_print_type_code_int): Delete #ifdef
161 PRINT_TYPELESS_INTEGER code.
163 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
164 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
165 multi-arch definition.
166 * gdbarch.h: Re-generate.
168 2003-04-05 Andrew Cagney <cagney@redhat.com>
170 Eliminate FRAME_FIND_SAVED_REGS.
171 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
172 Change FSR parameter to a pointer.
173 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
174 Assume FSR parameter is a pointer.
175 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
177 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
178 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
179 saved_regs a pointer.
180 (hppa_frame_saved_pc): Ditto.
181 (find_dummy_frame_regs): Make frame_saved_regs a pointer
182 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
184 (restore_pc_queue): Make fsr a pointer.
185 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
186 (hppa_frame_chain): Make saved_regs a pointer, call
187 hppa_frame_init_saved_regs.
188 * sparc-tdep.c: Include "gdb_assert.h".
189 (sparc_frame_find_saved_regs): Replace internal_error with
191 * remote-vxsparc.c (vx_read_register): Delete reference to
192 FRAME_FIND_SAVED_REGS.
193 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
194 * gdbarch.h: Regenerate.
195 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
196 (deprecated_get_frame_saved_regs): Delete declaration.
197 (struct frame_saved_regs): Delete definition.
198 * frame.c (deprecated_get_frame_saved_regs): Delete function.
199 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
200 (hppa_frame_find_saved_regs): Delete declaration.
201 (FRAME_FIND_SAVED_REGS): Delete macro.
202 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
203 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
204 FRAME_FIND_SAVED_REGS in comment.
206 2003-04-05 Andrew Cagney <cagney@redhat.com>
208 * frame.c (frame_func_unwind, get_frame_func): New functions.
209 * frame.h (get_frame_func, frame_func_unwind): Declare.
210 (struct frame_info): Add field "prev_func" for caching the
211 previous frame's function address.
212 * arm-tdep.c (arm_frameless_function_invocation): Combine
213 get_pc_function_start and get_frame_pc into get_frame_func.
214 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
215 (sh64_nofp_frame_init_saved_regs): Ditto.
216 * s390-tdep.c (s390_function_start): Ditto.
217 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
218 (rs6000_frameless_function_invocation): Ditto.
219 (rs6000_frame_saved_pc): Ditto.
220 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
221 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
222 * i386-tdep.c (i386_frameless_signal_p): Ditto.
223 (i386_frame_init_saved_regs): Ditto.
224 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
225 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
226 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
227 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
228 * blockframe.c (frameless_look_for_prologue): Ditto.
230 2003-04-05 Andrew Cagney <cagney@redhat.com>
232 * frame.c (legacy_get_prev_frame): Link prev to next at the
233 function start. Update comments.
235 2003-04-05 Andrew Cagney <cagney@redhat.com>
237 * frame.c (get_frame_id): Update comment.
238 (legacy_get_prev_frame): Update comment.
239 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
240 * gdbarch.h: Regenerate.
241 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
242 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
244 2003-04-05 Andrew Cagney <cagney@redhat.com>
246 * stack.c (print_frame_info): Use get_frame_pc.
248 2003-04-04 Andrew Cagney <cagney@redhat.com>
250 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
251 the frame's type from the unwinder.
252 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
253 (create_new_frame, legacy_get_prev_frame): When the unwinder's
254 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
255 (get_frame_base_address): Use get_frame_type.
256 (get_frame_locals_address, get_frame_args_address): Ditto.
257 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
258 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
259 (struct frame_info): Add comment explaining why the frame contains
261 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
262 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
263 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
265 * frame-unwind.h: Include "frame.h".
266 (struct frame_unwind): Add "type" field.
267 * Makefile.in (frame_unwind_h): Add $(frame_h).
269 2003-04-04 Andrew Cagney <cagney@redhat.com>
271 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
272 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
273 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
275 (d10v_unwind_dummy_id): Use frame_id_build.
276 * frame.c (find_frame_sal): Use get_frame_pc.
277 (create_new_frame): Use deprecated_update_frame_pc_hack and
278 deprecated_update_frame_base_hack.
279 (create_sentinel_frame): Add comment about ->pc going away.
280 (get_prev_frame): Add comment about ->pc going away.
281 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
282 frame_id_build, deprecated_update_frame_pc_hack and
283 deprecated_update_frame_base_hack.
284 (select_frame): Use get_frame_pc.
285 (legacy_saved_regs_this_id): Use frame_id_build.
287 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
289 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
291 (classify_argument): Handle enumerations and references.
293 2003-04-04 Andrew Cagney <cagney@redhat.com>
295 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
298 2003-04-01 Adam Fedor <fedor@gnu.org>
300 * gdb/objc-lang.c (selectors_info): Replace calls to
301 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
303 (classes_info, find_methods): Likewise.
305 2003-04-03 Kevin Buettner <kevinb@redhat.com>
307 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
308 ``mach'' to the value determined by bfd_default_set_arch_mach().
310 2003-04-02 Bob Rossi <bob_rossi@cox.net>
312 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
313 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
314 (mi-cmd-file.o): Update dependencies.
316 2003-04-01 Kevin Buettner <kevinb@redhat.com>
318 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
319 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
321 2003-04-01 Adam Fedor <fedor@gnu.org>
323 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
324 * language.h (struct language_defn): Add la_demangle.
325 (language_demangle): Declare.
326 * language.c (language_demangle): New function.
327 (unk_lang_demangle): Likewise.
328 (unknown_language_defn, auto_language_defn, local_language_defn):
329 Add ukn_lang_demangle.
330 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
331 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
332 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
333 (cplus_language_defn): Add cplus_demangle for la_demangle element.
334 * jv-lang.c (java_demangle): New function
335 (java_language_defn): Use it for la_demangle element.
336 * objc-lang.c (objc_demangle): Add options argument
337 (objc_language_defn): Use objc_demangle for la_demangle element.
338 * maint.c (maintenance_demangle): Replace switch with
339 call to language_demangle.
340 * utils.c (fprintf_symbol_filtered): Likewise.
342 2003-04-01 Andrew Cagney <cagney@redhat.com>
344 * printcmd.c (print_frame_nameless_args): Delete #ifdef
345 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
346 PRINT_TYPELESS_INTEGER.
347 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
350 2003-04-01 Andrew Cagney <cagney@redhat.com>
352 * Makefile.in (d10v-tdep.o): Update dependencies.
353 * d10v-tdep.c: Include "frame-base.h".
354 (d10v_frame_unwind): Make constant.
355 (d10v_frame_base_address): New function.
356 (d10v_frame_base): New variable.
357 (d10v_gdbarch_init): Set frame_base default.
358 (struct d10v_unwind_cache): Add the field "prev_sp". Update
360 (d10v_frame_unwind_cache): Set and use "prev_sp".
361 (d10v_frame_this_id): Use the previous frame's inner most stack
362 address and this frame's func address for the frame ID. Use
363 frame_id_build. Don't analyze beyond the current instruction.
365 2003-04-01 Andrew Cagney <cagney@redhat.com>
367 * frame.h (get_frame_locals_address, get_frame_args_address):
368 Refer to the base address, instead of the address of the first
371 2003-04-01 Andrew Cagney <cagney@redhat.com>
373 Add frame debug info addresses:
374 * frame-base.c: New file.
375 * frame-base.h: New file.
376 * frame.h (struct frame_base): Add opaque declaration.
377 (get_frame_base): Update comment.
378 (get_frame_base_address): Declare.
379 (get_frame_locals_address): Declare.
380 (get_frame_args_address): Declare.
381 (struct frame_info): Add "base" and "base_cache". Update
382 comments on the unwinder.
383 * frame.c: Include "frame-base.h".
384 (get_frame_locals_address): New function.
385 (get_frame_base_address): New function.
386 (get_frame_args_address): New function.
387 * findvar.c (read_var_value): Use get_frame_locals_address and
388 get_frame_args_address.
389 * stack.c (frame_info): Use get_frame_locals_address and
390 get_frame_args_address.
391 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
392 moved to "frame-base.c".
393 * printcmd.c (print_frame_nameless_args): Ditto.
394 * symtab.h (address_class): Update comments.
395 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
396 get_frame_base_address.
397 * dwarf2expr.c (execute_stack_op): Ditto.
398 * Makefile.in (frame_base_h): Define.
399 (frame.o): Update dependencies.
400 (frame-base.o): Add dependencies.
401 (SFILES): Add frame-base.c.
402 (COMMON_OBS): Add frame-base.o.
404 2003-04-01 Andrew Cagney <cagney@redhat.com>
406 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
407 CALL_DUMMY_LENGTH): Ditto.
408 * gdbarch.c: Re-generate.
409 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
410 (CALL_DUMMY_LENGTH): Delete macro.
411 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
412 * arm-tdep.c (arm_gdbarch_init): Ditto.
413 * avr-tdep.c (avr_gdbarch_init): Ditto.
414 * cris-tdep.c (cris_gdbarch_init): Ditto.
415 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
416 * frv-tdep.c (frv_gdbarch_init): Ditto.
417 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
418 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
419 * i386-tdep.c (i386_gdbarch_init): Ditto.
420 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
421 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
422 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
423 * mips-tdep.c (mips_gdbarch_init): Ditto.
424 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
425 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
426 * s390-tdep.c (s390_gdbarch_init): Ditto.
427 * sh-tdep.c (sh_gdbarch_init): Ditto.
428 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
429 * v850-tdep.c (v850_gdbarch_init): Ditto.
430 * vax-tdep.c (vax_gdbarch_init): Ditto.
431 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
433 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
435 * frame.c (get_prev_frame): Disable call to inside_entry_file().
437 2003-04-01 Andrew Cagney <cagney@redhat.com>
439 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
440 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
441 * gdbarch.h, gdbarch.c: Re-generate.
442 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
443 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
444 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
445 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
446 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
447 * infcmd.c (run_stack_dummy): Simplify assuming
448 CALL_DUMMY_BREAKPOINT_OFFSET_P.
449 * infrun.c (handle_inferior_event): Ditto.
450 * alpha-tdep.c (alpha_gdbarch_init): Do not set
451 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
452 * arm-tdep.c (arm_gdbarch_init): Ditto.
453 * avr-tdep.c (avr_gdbarch_init): Ditto.
454 * cris-tdep.c (cris_gdbarch_init): Ditto.
455 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
456 * frv-tdep.c (frv_gdbarch_init): Ditto.
457 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
458 * i386-tdep.c (i386_gdbarch_init): Ditto.
459 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
460 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
461 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
462 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
463 * mips-tdep.c (mips_gdbarch_init): Ditto.
464 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
465 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
466 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
467 * s390-tdep.c (s390_gdbarch_init): Ditto.
468 * sh-tdep.c (sh_gdbarch_init): Ditto.
469 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
470 * v850-tdep.c (v850_gdbarch_init): Ditto.
471 * vax-tdep.c (vax_gdbarch_init): Ditto.
472 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
474 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
476 * symfile.c (symfile_relocate_debug_section): Update call to
477 bfd_simple_get_relocated_section_contents.
479 2003-03-31 Andrew Cagney <cagney@redhat.com>
481 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
482 * gdbarch.h, gdbarch.c: Regenerate.
483 * inferior.h (FIX_CALL_DUMMY): Delete macro.
484 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
486 * frame.h (generic_fix_call_dummy): Delete declaration.
487 * dummy-frame.h: Update comment.
488 * dummy-frame.c (generic_fix_call_dummy): Delete function.
489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
491 * sh-tdep.c (sh_gdbarch_init): Ditto.
492 * s390-tdep.c (s390_gdbarch_init): Ditto.
493 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
494 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
495 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
496 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
497 * i386-tdep.c (i386_gdbarch_init): Ditto.
498 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
499 * frv-tdep.c (frv_gdbarch_init): Ditto.
500 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
501 * cris-tdep.c (cris_gdbarch_init): Ditto.
502 * avr-tdep.c (avr_gdbarch_init): Ditto.
503 * arm-tdep.c (arm_gdbarch_init): Ditto.
505 2003-03-31 J. Brobecker <brobecker@gnat.com>
507 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
508 (INIT_FRAME_AP): Likewise.
509 (EXTRA_FRAME_INFO): Likewise.
511 2003-03-31 Andrew Cagney <cagney@redhat.com>
513 * gdbarch.sh: Include "symfile.h".
514 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
515 * gdbarch.h, gdbarch.c: Re-generate.
516 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
517 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
518 call_dummy_address, the default is at entry_point_address.
519 * v850-tdep.c (v850_gdbarch_init): Ditto.
520 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
521 * sh-tdep.c (sh_gdbarch_init): Ditto.
522 * s390-tdep.c (s390_gdbarch_init): Ditto.
523 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
524 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
525 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
526 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
527 * i386-tdep.c (i386_gdbarch_init): Ditto.
528 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
529 * frv-tdep.c (frv_gdbarch_init): Ditto.
530 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
531 * cris-tdep.c (cris_gdbarch_init): Ditto.
532 * arm-tdep.c (arm_gdbarch_init): Ditto.
534 2003-03-31 Andrew Cagney <cagney@redhat.com>
536 * gdbarch.sh (CALL_DUMMY_P): Delete.
537 * gdbarch.h, gdbarch.c: Re-generate.
538 * inferior.h (CALL_DUMMY_P): Delete macro.
539 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
540 * vax-tdep.c (vax_gdbarch_init): Update.
541 * v850-tdep.c (v850_gdbarch_init): Update.
542 * sparc-tdep.c (sparc_gdbarch_init): Update.
543 * sh-tdep.c (sh_gdbarch_init): Update.
544 * s390-tdep.c (s390_gdbarch_init): Update.
545 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
546 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
547 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
548 * mips-tdep.c (mips_gdbarch_init): Update.
549 * mcore-tdep.c (mcore_gdbarch_init): Update.
550 * m68k-tdep.c (m68k_gdbarch_init): Update.
551 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
552 * ia64-tdep.c (ia64_gdbarch_init): Update.
553 * i386-tdep.c (i386_gdbarch_init): Update.
554 * h8300-tdep.c (h8300_gdbarch_init): Update.
555 * frv-tdep.c (frv_gdbarch_init): Update.
556 * d10v-tdep.c (d10v_gdbarch_init): Update.
557 * cris-tdep.c (cris_gdbarch_init): Update.
558 * breakpoint.c (deprecated_frame_in_dummy): Update.
559 * avr-tdep.c (avr_gdbarch_init): Update.
560 * alpha-tdep.c (alpha_gdbarch_init): Update.
561 * arm-tdep.c (arm_gdbarch_init): Update.
562 * dummy-frame.c (dummy_frame_this_id): Update comments.
563 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
564 * frame.c (legacy_get_prev_frame): Ditto.
565 * valops.c (call_function_by_hand): Delete function.
566 (hand_function_call): Rename to call_function_by_hand
568 2003-03-30 Andrew Cagney <cagney@redhat.com>
570 2002-11-10 Klee Dienes <kdienes@apple.com>
571 * value.h (struct value): Update comment.
573 2003-03-30 Andrew Cagney <cagney@redhat.com>
575 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
577 (d10v_gdbarch_init): Do not set fp_regnum.
579 * frame.c (get_frame_base): Force ID initialization.
580 (get_prev_frame): Move computation of the frame ID from here ...
581 (get_frame_id): ... to here.
582 (legacy_get_prev_frame): Mark the frame ID as valid.
583 * frame.h (struct frame_info): Add field "id_p".
585 2003-03-30 Mark Kettenis <kettenis@gnu.org>
587 * i386-tdep.c (i386_store_struct_return): Removed.
588 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
590 2003-03-30 Andrew Cagney <cagney@redhat.com>
592 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
593 * gdbarch.h, gdbarch.c: Regenerate.
594 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
595 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
596 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
597 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
598 * i386-tdep.c (i386_gdbarch_init): Ditto.
599 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
600 * cris-tdep.c (cris_gdbarch_init): Ditto.
601 * vax-tdep.c (vax_gdbarch_init): Ditto.
602 * s390-tdep.c (s390_gdbarch_init): Ditto.
603 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
604 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
605 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
606 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
607 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
608 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
609 * sparc-tdep.c (sparc_gdbarch_init): Update.
610 * sh-tdep.c (sh_gdbarch_init): Update.
611 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
612 * mips-tdep.c (mips_gdbarch_init): Update.
613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
614 * ia64-tdep.c (ia64_gdbarch_init): Update.
615 * frv-tdep.c (frv_gdbarch_init): Update.
616 * avr-tdep.c (avr_gdbarch_init): Update.
617 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
618 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
619 instead of when push_dummy_call is not available.
621 2003-03-30 Andrew Cagney <cagney@redhat.com>
623 * infttrace.c: Include "gdbthread.h".
624 (parent_attach_all): Fix function signature.
625 (call_ptrace): Update call.
626 * Makefile.in (infttrace.o): Update dependencies.
628 2003-03-30 Andrew Cagney <cagney@redhat.com>
630 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
632 * gdbarch.h, gdbarch.c: Regenerate.
633 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
634 * x86-64-tdep.c (x86_64_init_abi): Update.
635 * v850-tdep.c (v850_gdbarch_init): Update.
636 * sparc-tdep.c (sparc_gdbarch_init): Update.
637 * sh-tdep.c (sh_gdbarch_init): Update.
638 * s390-tdep.c (s390_gdbarch_init): Update.
639 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
640 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
641 * mips-tdep.c (mips_gdbarch_init): Update.
642 * mcore-tdep.c (mcore_gdbarch_init): Update.
643 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
644 * ia64-tdep.c (ia64_gdbarch_init): Update.
645 * i386-tdep.c (i386_gdbarch_init): Update.
646 * h8300-tdep.c (h8300_gdbarch_init): Update.
647 * frv-tdep.c (frv_gdbarch_init): Update.
648 * cris-tdep.c (cris_gdbarch_init): Update.
649 * avr-tdep.c (avr_gdbarch_init): Update.
650 * arm-tdep.c (arm_gdbarch_init): Update.
651 * valops.c (hand_function_call): Update.
653 2003-03-29 Andrew Cagney <cagney@redhat.com>
655 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
656 sizeof_call_dummy_words.
657 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
659 * gdbarch.h: Regenerate.
661 2003-03-29 Andrew Cagney <cagney@redhat.com>
663 * infttrace.h: New file.
664 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
665 (hpread_get_textlow): Detect an uninitialized dn_bufp.
666 (hpread_read_doc_function_type): Detect an initialized type1.
667 (hpread_quick_traverse): Initialize mod_name_string.
668 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
669 (som_solib_get_solib_by_pc): Declare.
670 (so_lib_thread_start_addr): Declare.
671 (no_shared_libraries): Declare.
672 * somread.c (init_import_symbols): Make static. Add forward
674 * config/pa/nm-hppah.h: Include "infttrace.h" for
676 (hppa_insert_hw_watchpoint): Declare.
677 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
678 * hppah-nat.c: Include "gdb_string.h".
679 (parent_attach_all): Delete extern declaration, moved to
681 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
683 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
684 * Makefile.in (infttrace_h): Define.
685 (hpread.o): Update dependencies.
686 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
687 * hppa-hpux-tdep.c: Include "gdb_string.h".
688 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
689 * infrun.c (handle_inferior_event): Always initialize
690 stepped_after_stopped_by_watchpoint. Add default and remove
691 fallthrough in switch statement.
692 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
694 (hppa_remove_hw_watchpoint): Ditto.
696 2003-03-29 Andrew Cagney <cagney@redhat.com>
698 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
701 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
703 * arm-tdep.c (arm_push_arguments): Delete.
704 (struct stack_item): New type.
705 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
706 (arm_store_struct_return): Delte.
707 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
708 arm_push_arguments or arm_store_struct_return.
710 2003-03-28 Andrew Cagney <cagney@redhat.com>
712 * Makefile.in (d10v-tdep.o): Update dependencies.
713 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
714 * d10v-tdep.c: Include "remote.h".
715 (target_resume_hook): Delete extern declaration.
716 (target_wait_loop_hook): Ditto.
717 (tdisassemble_command): Eliminate assignment in "if" conditional.
718 (d10v_ts2_register_sim_regno): Eliminate call to
719 legacy_register_sim_regno.
720 (d10v_ts3_register_sim_regno): Ditto.
722 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
724 * thread.c: Reindented.
726 * linux-proc.c: Ditto.
728 2003-03-28 Bob Rossi <bob_rossi@cox.net>
730 * MAINTAINERS (write after approval): Add myself.
732 2003-03-27 Theodore A. Roth <troth@openavr.org>
734 * objc-exp.y: Add missing semi-colons.
736 2003-03-27 Andrew Cagney <cagney@redhat.com>
738 * regcache.c (write_sp): Delete function and references.
739 * inferior.h (write_sp): Delete declaration.
740 * valops.c (hand_function_call): Replace write_sp with
742 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
743 (sparc_pop_frame): Ditto.
745 2003-03-27 Andrew Cagney <cagney@redhat.com>
747 * NEWS: Mention removal of support for hppa*-*-bsd* and
748 hppa*-*-osf* natives, and hppa*-*-pro* target.
749 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
750 * config/pa/xm-pa.h: Obsolete file.
751 * config/pa/xm-hppab.h: Obsolete file.
752 * config/pa/nm-hppab.h: Obsolete file.
753 * config/pa/tm-hppab.h: Obsolete file.
754 * config/pa/tm-hppao.h: Obsolete file.
755 * config/pa/nm-hppao.h: Obsolete file.
756 * config/pa/tm-pro.h: Obsolete file.
757 * config/pa/hppaosf.mt: Obsolete file.
758 * config/pa/hppaosf.mh: Obsolete file.
759 * config/pa/hppapro.mt: Obsolete file.
760 * config/pa/hppabsd.mt: Obsolete file.
761 * config/pa/hppabsd.mh: Obsolete file.
762 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
763 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
766 2003-03-27 Andrew Cagney <cagney@redhat.com>
768 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
769 push_arguments. Don't set push_return_address or write_sp.
770 (d10v_push_dummy_call): Replace d10v_push_arguments.
771 (d10v_push_return_address, d10v_write_sp): Delete function,
772 handled by push_dummy_call.
774 2003-03-26 Andrew Cagney <cagney@redhat.com>
776 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
777 (push_dummy_call): New pure multi-arch replacement with gdbarch,
778 regcache and dummy_addr parameters.
779 * gdbarch.h, gdbarch.c: Re-generate.
780 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
781 available; assume it will handle stack alignment and return
782 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
783 legacy_push_arguments.
784 (legacy_push_arguments): Rename default_push_arguments.
785 * value.h (legacy_push_arguments): Rename default_push_arguments.
786 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
787 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
788 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
789 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
790 * config/i386/tm-symmetry.h: Update.
791 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
792 * x86-64-tdep.c (x86_64_init_abi): Update.
793 * v850-tdep.c (v850_gdbarch_init): Update.
794 * sparc-tdep.c (sparc_gdbarch_init): Update.
795 * sh-tdep.c (sh_gdbarch_init): Update.
796 * s390-tdep.c (s390_gdbarch_init): Update.
797 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
798 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
799 * mips-tdep.c (mips_gdbarch_init): Update.
800 * mcore-tdep.c (mcore_gdbarch_init): Update.
801 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
802 * ia64-tdep.c (ia64_gdbarch_init): Update.
803 * i386-tdep.c (i386_gdbarch_init): Update.
804 * hppa-tdep.c (hppa_gdbarch_init): Update.
805 * h8300-tdep.c (h8300_gdbarch_init): Update.
806 * frv-tdep.c (frv_gdbarch_init): Update.
807 * d10v-tdep.c (d10v_gdbarch_init): Update.
808 * cris-tdep.c (cris_gdbarch_init): Update.
809 * avr-tdep.c (avr_gdbarch_init): Update.
810 * arm-tdep.c (arm_gdbarch_init): Update.
811 * arm-linux-tdep.c (arm_linux_init_abi): Update.
812 * alpha-tdep.c (alpha_gdbarch_init): Update.
814 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
816 * signals/signals.c (do_target_signal_to_host): Correct realtime
819 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
821 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
822 (struct sal_chain, map_catch_names): Remove.
823 (catch_exception_command_1): Don't call
824 handle_gnu_4_16_catch_command.
826 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
828 From Mark Dettinger <dettinge@de.ibm.com>:
829 * dwarf2cfi.c (read_2u): Increment pointer by two.
831 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
833 * signals/signals.c: Fix typos in last change.
835 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
837 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
838 not already defined. Use __SIGRTMIN if available.
839 (target_signal_from_host): Remove SIGRTMIN block.
840 (do_target_signal_to_host): Remove SIGRTMIN block; check that
841 the signal is within the realtime range.
843 2003-03-25 Adam Fedor <fedor@gnu.org>
845 * Makefile.in (infrun.o): Add $(language_h)
846 * infrun.c (handle_inferior_event): Use skip_language_trampoline
847 for language specific trampolines.
848 * language.h (struct language_defn): Add skip_trampoline.
849 (skip_language_trampoline): Declare.
850 * language.c (unk_lang_trampoline, skip_language_trampoline):
852 (unknown_language_defn, auto_language_defn, local_language_defn):
853 Add ukn_lang_trampoline.
854 * ada-lang.c (ada_language_defn): Add NULL for language
855 specific skip_trampoline.
856 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
857 scm-lang.c: Likewise.
858 * objc-lang.c (objc_skip_trampoline): New function.
859 (objc_language_defn): Add objc_skip_trampoline.
861 2003-03-25 Andrew Cagney <cagney@redhat.com>
863 * frame.c (get_prev_frame): Delay validating a frame's ID -
864 non-NULL, didn't go backwards - until an attempt to unwind it to
867 2003-03-25 Andrew Cagney <cagney@redhat.com>
869 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
870 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
871 * gdbarch.h, gdbarch.c: Re-generate.
872 * config/sparc/tm-sparc.h
873 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
874 * sparc-tdep.c (sparc_gdbarch_init): Set
875 deprecated_extra_stack_alignment_needed.
876 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
877 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
878 extra_stack_alignment_needed.
879 * v850-tdep.c (v850_gdbarch_init): Ditto.
880 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
881 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
882 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
883 * cris-tdep.c (cris_gdbarch_init): Ditto.
884 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
885 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
887 2003-03-25 Andrew Cagney <cagney@redhat.com>
889 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
891 * gdbarch.h, gdbarch.c: Regenerate.
892 * d10v-tdep.c (d10v_store_struct_return): Delete function.
893 (d10v_push_arguments): Set the struct return register.
894 (d10v_gdbarch_init): Update.
895 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
896 * x86-64-tdep.c (x86_64_init_abi): Update.
897 * vax-tdep.c (vax_gdbarch_init): Update.
898 * v850-tdep.c (v850_gdbarch_init): Update.
899 * sparc-tdep.c (sparc_gdbarch_init): Update.
900 * sh-tdep.c (sh_gdbarch_init): Update.
901 * s390-tdep.c (s390_gdbarch_init): Update.
902 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
903 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
904 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
905 * mips-tdep.c (mips_gdbarch_init): Update.
906 * mcore-tdep.c (mcore_gdbarch_init): Update.
907 * m68k-tdep.c (m68k_gdbarch_init): Update.
908 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
909 * ia64-tdep.c (ia64_gdbarch_init): Update.
910 * i386-tdep.c (i386_gdbarch_init): Update.
911 * hppa-tdep.c (hppa_gdbarch_init): Update.
912 * h8300-tdep.c (h8300_gdbarch_init): Update.
913 * frv-tdep.c (frv_gdbarch_init): Update.
914 * cris-tdep.c (cris_gdbarch_init): Update.
915 * avr-tdep.c (avr_gdbarch_init): Update.
916 * arm-tdep.c (arm_gdbarch_init): Update.
917 * alpha-tdep.c (alpha_gdbarch_init): Update.
919 2003-03-25 Andrew Cagney <cagney@redhat.com>
921 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
922 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
923 CALL_DUMMY_STACK_ADJUST with a predicate variable.
924 * gdbarch.h, gdbarch.c: Regenerate.
925 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
926 call_dummy_stack_adjust_p.
927 * vax-tdep.c (vax_gdbarch_init): Ditto.
928 * v850-tdep.c (v850_gdbarch_init): Ditto.
929 * sh-tdep.c (sh_gdbarch_init): Ditto.
930 * s390-tdep.c (s390_gdbarch_init): Ditto.
931 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
932 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
933 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
934 * mips-tdep.c (mips_gdbarch_init): Ditto.
935 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
936 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
937 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
938 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
939 * i386-tdep.c (i386_gdbarch_init): Ditto.
940 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
941 * frv-tdep.c (frv_gdbarch_init): Ditto.
942 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
943 * cris-tdep.c (cris_gdbarch_init): Ditto.
944 * avr-tdep.c (avr_gdbarch_init): Ditto.
945 * arm-tdep.c (arm_gdbarch_init): Ditto.
946 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
947 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
948 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
949 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
950 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
951 call_dummy_stack_adjust_p.
952 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
953 (CALL_DUMMY_STACK_ADJUST): Delete macro.
954 * sparc-tdep.c (sparc32_push_arguments): Update.
955 * valops.c (hand_function_call): Update.
957 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
959 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
960 set_gdbarch_char_signed.
962 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
965 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
967 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
969 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
970 (_initialize_arm_tdep): Don't set tm_print_insn.
972 2003-03-24 Adam Fedor <fedor@gnu.org>
974 * Makefile.in (YYOBJ): Add objc-exp.tab.o
975 * objc-lang.h: Add multiple inclusion protection.
976 (start_msglist, add_msglist, end_msglist): Additional declarations.
978 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
980 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
981 value was renamed to ARM_FLOAT_SOFT_FPA.
983 2003-03-23 Andrew Cagney <cagney@redhat.com>
985 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
986 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
987 * gdbarch.h, gdbarch.c: Regenerate.
988 * valops.c (hand_function_call): Update.
989 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
990 * frame.c (legacy_saved_regs_this_id): Update.
991 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
992 * dummy-frame.h: Update.
993 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
994 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
995 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
996 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
997 * config/m68k/tm-sun3.h: Update.
998 * blockframe.c (inside_main_func, frame_chain_valid): Update.
999 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1000 * x86-64-tdep.c (x86_64_init_abi): Update.
1001 * vax-tdep.c (vax_gdbarch_init): Update.
1002 * v850-tdep.c (v850_gdbarch_init): Update.
1003 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
1004 * sh-tdep.c (sh_gdbarch_init): Update.
1005 * s390-tdep.c (s390_gdbarch_init): Update.
1006 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1007 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
1008 (frame_get_saved_regs): Update.
1009 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1010 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1011 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1012 * mips-tdep.c (mips_gdbarch_init): Update.
1013 * mcore-tdep.c (mcore_gdbarch_init): Update.
1014 * m68k-tdep.c (m68k_gdbarch_init): Update.
1015 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1016 * ia64-tdep.c (ia64_gdbarch_init): Update.
1017 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
1018 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1019 (i386_interix_back_one_frame): Update.
1020 * hppa-tdep.c (hppa_gdbarch_init): Update.
1021 (hppa_init_extra_frame_info): Update.
1022 * h8300-tdep.c (h8300_gdbarch_init): Update.
1023 * frv-tdep.c (frv_gdbarch_init): Update.
1024 * cris-tdep.c (cris_gdbarch_init): Update.
1025 * avr-tdep.c (avr_gdbarch_init): Update.
1026 * arm-tdep.c (arm_gdbarch_init): Update.
1027 * alpha-tdep.c (alpha_gdbarch_init): Update.
1029 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1031 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
1032 (arm_get_fp_model): Declare.
1033 * arm-tdep.c (fp_model_strings): New string array.
1034 (arm_fp_model, current_fp_model): New variables.
1035 (arm_get_fp_model): New function.
1036 (arm_set_fp): New function.
1037 (set_fp_model_sfunc): New function.
1038 (show_fp_model): New function.
1039 (_initialize_arm_tdep): Add new command to set/show the FPU.
1040 (arm_extract_return_value): Use arm_get_fp_model.
1041 (arm_store_return_value): Likewise.
1042 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
1043 to initialize the floating-point data types.
1044 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
1047 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1049 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
1050 the current setting of each value.
1051 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
1052 new_set and new_show. Use add_setshow_cmd_full and
1053 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
1054 commands and add new version as subcommands of "set/show arm".
1056 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1058 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
1059 (set_arm_command, show_arm_command): New functions.
1060 (_initialize_arm_tdep): Add them.
1061 (num_disassembly_options): Renamed from num_flavor_options.
1062 (valid_disassembly_styles): Renamed from valid_flavors.
1063 (disassembly_style): Renamed from disassembly_flavor.
1064 (set_disassembly_style_sfunc): Renamed from
1065 set_disassembly_flavor_sfunc.
1066 (set_disassembly_style): Renamed from set_disassembly_flavor.
1067 (arm_othernames): Updated.
1068 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
1069 command. Add "set/show arm disassembly" commands. Deprecate
1070 "othernames" command.
1072 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1074 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
1075 (arm-tdep.o): Depend on elf_arm_h.
1077 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1079 * Makefile.in (coff_internal_h): Define.
1080 (arm-tdep.o): Update dependencies.
1082 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1084 * arm-tdep.c (prologue_cache): Delete.
1085 (check_prologue_cache, save_prologue_cache): Delete.
1086 (arm_scan_prologue): Don't check or update the prologue_cache.
1087 (arm_gdb_arch_init): Don't initialize it.
1088 (_initialize_arm_tdep): Likewise.
1090 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
1092 * MAINTAINERS (tui): Maintainer of tui code.
1094 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
1096 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
1097 (i386-cygwin-tdep.o): Add dependencies.
1098 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
1099 * i386-cygwin-tdep.c: New file.
1100 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
1101 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
1103 2003-03-20 Andrew Cagney <cagney@redhat.com>
1105 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
1106 (handle_inferior_event): Remove code calling
1107 DYNAMIC_TRAMPOLINE_NEXTPC.
1109 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
1110 already has a full path.
1112 * main.c (gdb_main): Return 1.
1113 (captured_main): Call error to report an invalid interpreter.
1115 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
1116 * alpha-osf1-tdep.c: Include "gdb_string.h".
1118 2003-03-19 J. Brobecker <brobecker@gnat.com>
1120 Continuing work to convert the hppa targets to multiarch partial.
1122 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
1123 method, now that hppa_push_dummy_frame has a conformant prototype.
1124 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
1125 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
1126 for the switch to multiarch partial.
1128 2003-03-19 Kevin Buettner <kevinb@redhat.com>
1130 * mdebugread.c (parse_symbol): For stEnd, we're done counting
1131 when iss is issNull.
1133 2003-03-18 Kevin Buettner <kevinb@redhat.com>
1135 * mips-tdep.c (mips_register_name): Fix fencepost error involving
1136 NUM_REGS bounds check.
1138 2003-03-18 Kevin Buettner <kevinb@redhat.com>
1140 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
1141 * mips-tdep.c (gdb_assert.h): Include.
1142 (mips_generic_reg_names, mips_processor_reg_names): Make static.
1143 (mips_register_name): Handle integer registers explicitly. Add
1145 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
1146 (mips_lsi33k_reg_names): Don't list integer registers; they're
1147 handled by mips_register_name() now.
1148 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
1149 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
1150 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
1151 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
1152 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
1154 2003-03-18 Andrew Cagney <cagney@redhat.com>
1156 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
1158 * gdbtypes.h (print_scalar_formatted): Update declaration.
1159 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
1161 2003-03-18 J. Brobecker <brobecker@gnat.com>
1163 * infrun.c (observer.h): Add #include.
1164 (normal_stop): Add call to observer_notify_normal_stop.
1165 * Makefile.in (infrun.o): Add dependency on observer.h.
1167 2003-03-18 J. Brobecker <brobecker@gnat.com>
1169 Continuing work to convert the hppa targets to multiarch partial.
1170 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
1171 parameter. Reformat comment.
1172 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
1173 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
1174 to match new profile.
1176 2003-03-18 J. Brobecker <brobecker@gnat.com>
1178 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
1179 appear to be working in any case.
1181 2003-03-18 J. Brobecker <brobecker@gnat.com>
1183 * observer.c (observer_test_first_observer): New static variable.
1184 (observer_test_second_observer): Likewise.
1185 (observer_test_third_observer): Likewise.
1186 (observer_test_first_notification_function): New static function.
1187 (observer_test_second_notification_function): Likewise.
1188 (observer_test_third_notification_function): Likewise.
1190 2003-03-17 J. Brobecker <brobecker@gnat.com>
1192 * hppa-tdep.c (gdb_assert.h): Add missing #include.
1193 * somsolib.c (gdb_assert.h): Likewise.
1194 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
1195 (somsolib.o): Likewise.
1197 2003-03-17 Andrew Cagney <cagney@redhat.com>
1199 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
1200 BFD. Simplify setting of di.endian.
1202 2003-03-17 Andrew Cagney <cagney@redhat.com>
1204 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
1205 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
1207 From Elena Zannoni <ezannoni@redhat.com>
1208 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
1209 vector and floating-point parameters.
1210 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
1212 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
1214 2003-03-17 Fernando Nasser <fnasser@redhat.com>
1216 * MAINTAINERS: Remove my name from several maintainership roles.
1218 2003-03-17 Andrew Cagney <cagney@redhat.com>
1220 Fix frame off-by-one bug.
1221 * frame-unwind.h (frame_this_id_ftype): Replace
1222 frame_unwind_id_ftype.
1223 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
1224 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
1225 with "prev_register".
1226 * frame-unwind.c (frame_unwind_find_by_pc): Return
1227 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
1229 * dummy-frame.c (cached_find_dummy_frame): Delete function.
1230 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
1231 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
1232 (dummy_frame_unwind): Update.
1233 * sentinel-frame.c (sentinel_frame_prev_register): Replace
1234 sentinel_frame_register_unwind.
1235 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
1236 (sentinel_frame_unwinder): Update.
1237 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1238 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
1239 * frame.c (create_sentinel_frame): Update. Initialize
1240 "prologue_cache" instead of "unwind_cache".
1241 (frame_register_unwind): Call this frame's prev_register with the
1242 next frame and this frame's prologue cache.
1243 (get_prev_frame): Simplify. Always call prev frame's this_id with
1244 this frame and prev frame's prologue cache. Document that this
1245 call is shifted one to the left when compared to the
1246 frame_register_unwind call.
1247 (legacy_saved_regs_prev_register): Replace
1248 frame_saved_regs_register_unwind.
1249 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
1250 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
1251 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1252 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
1253 (d10v_frame_unwind): Update.
1254 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
1255 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
1256 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
1257 "saved_regs" with "this_saved_regs".
1259 2003-03-16 Andrew Cagney <cagney@redhat.com>
1261 * frame.c (frame_pop): Don't call target_store_registers. Fix
1262 problem reported by Mark Kettenis.
1264 2003-03-16 Mark Kettenis <kettenis@gnu.org>
1266 * i386-tdep.c (i386_register_type): Renamed from
1267 i386_register_virtual_type. Adjust function signature.
1268 (i386_gdbarch_init): Set register_type instead of
1269 deprecated_max_register_raw_size,
1270 deprecated_max_register_virtual_size and register_virtual_type.
1272 2003-03-14 Andrew Cagney <cagney@redhat.com>
1274 * frame.c (get_prev_frame): When a legacy frame, always call
1275 legacy_get_prev_frame. Simplify unwind code using assumption that
1276 the unwinder is new.
1277 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
1278 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
1279 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
1281 2003-03-14 Andrew Cagney <cagney@redhat.com>
1283 * frame.c (get_saved_register): Delete function.
1284 * frame.h (get_saved_register): Delete declaration.
1285 * xstormy16-tdep.c: Update comment.
1286 * regcache.h: Update comments.
1287 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
1288 get_saved_register and extract_address, use
1289 frame_read_unsigned_register.
1290 (sparc_frame_saved_pc): Ditto.
1291 (sparc_get_saved_register): Instead of get_saved_register, use
1293 (sparc_pop_frame): Ditto.
1294 * findvar.c: Update comments.
1295 (value_of_register): Call frame_register instead of
1297 (value_from_register): Ditto.
1298 * config/sparc/tm-sparc.h: Update comment.
1299 * breakpoint.c: Update comment.
1301 2003-03-14 Andrew Cagney <cagney@redhat.com>
1303 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
1305 * gdbarch.h, gdbarch.c: Re-generate.
1306 * frame.h: Update comments.
1307 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1308 * x86-64-tdep.c (x86_64_init_abi): Update.
1309 * sparc-tdep.c (sparc_gdbarch_init): Update.
1310 * sh-tdep.c (sh_gdbarch_init): Update.
1311 * mips-tdep.c (mips_gdbarch_init): Update.
1312 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1313 * cris-tdep.c (cris_gdbarch_init): Update.
1314 * ia64-tdep.c (ia64_gdbarch_init): Update.
1315 * frame.c (frame_register): Update.
1316 (get_saved_register): Update.
1317 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
1319 2003-03-13 Andrew Cagney <cagney@redhat.com>
1321 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
1322 * gdbarch.h, gdbarch.c: Regenerate.
1323 * valops.c (hand_function_call): Update comment.
1324 * stack.c (return_command): Update comment.
1325 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
1326 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
1327 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1328 * x86-64-tdep.c (x86_64_init_abi): Update.
1329 * vax-tdep.c (vax_gdbarch_init): Update.
1330 * v850-tdep.c (v850_gdbarch_init): Update.
1331 * sparc-tdep.c (sparc_gdbarch_init): Update.
1332 * sh-tdep.c (sh_gdbarch_init): Update.
1333 * s390-tdep.c (s390_gdbarch_init): Update.
1334 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1335 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1336 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1337 * mips-tdep.c (mips_gdbarch_init): Update.
1338 * mcore-tdep.c (mcore_gdbarch_init): Update.
1339 * m68k-tdep.c (m68k_gdbarch_init): Update.
1340 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1341 * ia64-tdep.c (ia64_gdbarch_init): Update.
1342 * i386-tdep.c (i386_gdbarch_init): Update.
1343 * hppa-tdep.c (hppa_gdbarch_init): Update.
1344 * h8300-tdep.c (h8300_gdbarch_init): Update.
1345 * frv-tdep.c (frv_gdbarch_init): Update.
1346 * cris-tdep.c (cris_gdbarch_init): Update.
1347 * avr-tdep.c (avr_gdbarch_init): Update.
1348 * arm-tdep.c (arm_gdbarch_init): Update.
1349 * alpha-tdep.c (alpha_gdbarch_init): Update.
1351 2003-03-13 Andrew Cagney <cagney@redhat.com>
1353 * frame.c (legacy_frame_p): New function.
1354 (get_prev_frame): Use legacy_frame_p.
1355 * frame.h (legacy_frame_p): Declare.
1357 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1359 * MAINTAINERS (write after approval): Alphabetically
1362 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1364 * MAINTAINERS (write after approval): Add myself.
1366 2003-03-12 Andrew Cagney <cagney@redhat.com>
1368 * frame.c (get_prev_frame): Rename the frame parameter to
1370 (get_next_frame, legacy_get_prev_frame): Ditto.
1372 2003-03-12 Andrew Cagney <cagney@redhat.com>
1374 * frame.c (get_current_frame): Check target_has_registers before
1375 checking target_has_stack.
1376 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
1377 instead of deprecated_selected_frame.
1378 * findvar.c (value_of_register): Pass "frame", not
1379 deprecated_selected_frame, to value_of_builtin_reg.
1381 2003-03-12 Andrew Cagney <cagney@redhat.com>
1383 * regcache.c (regcache_cooked_write_signed): New function.
1384 (regcache_cooked_write_unsigned): New function.
1385 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
1386 (regcache_cooked_read_signed): Fix regnum in range assertion.
1387 * regcache.h (regcache_cooked_write_signed): Declare.
1388 (regcache_cooked_write_unsigned): Declare.
1390 2003-03-12 Andrew Cagney <cagney@redhat.com>
1392 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1393 * gdbarch.h, gdbarch.c: Re-generate.
1394 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1395 * x86-64-tdep.h: Update.
1396 * x86-64-tdep.c (x86_64_init_abi): Update.
1397 * v850-tdep.c (v850_gdbarch_init): Update.
1398 * sparc-tdep.c (sparc_gdbarch_init): Update.
1399 * sh-tdep.c (sh_gdbarch_init): Update.
1400 * s390-tdep.c (s390_gdbarch_init): Update.
1401 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1402 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1403 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1404 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1405 * mips-tdep.c (mips_gdbarch_init): Update.
1406 * mcore-tdep.c (mcore_gdbarch_init): Update.
1407 * m68k-tdep.c (m68k_gdbarch_init): Update.
1408 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1409 * ia64-tdep.c (ia64_gdbarch_init): Update.
1410 * i386-tdep.c (i386_gdbarch_init): Update.
1411 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1412 * hppa-tdep.c (hppa_gdbarch_init): Update.
1413 * h8300-tdep.c (h8300_gdbarch_init): Update.
1414 * frv-tdep.c (frv_gdbarch_init): Update.
1415 * cris-tdep.c (cris_gdbarch_init): Update.
1416 * avr-tdep.c (avr_gdbarch_init): Update.
1417 * arm-tdep.c (arm_gdbarch_init): Update.
1418 * alpha-tdep.c (alpha_gdbarch_init): Update.
1419 * sh-tdep.c (sh_init_extra_frame_info): Update.
1420 (sh64_init_extra_frame_info): Update.
1421 * ns32knbsd-nat.c (frame_num_args): Update.
1422 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1423 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1424 (xstormy16_frame_chain_valid): Update.
1425 * vax-tdep.c (vax_saved_pc_after_call): Update.
1426 * v850-tdep.c (v850_frame_chain): Update.
1427 (v850_pop_frame): Update.
1428 (v850_init_extra_frame_info): Update.
1429 * sparc-tdep.c (setup_arbitrary_frame): Update.
1430 * ns32k-tdep.c (umax_frame_num_args): Update.
1431 * s390-tdep.c (s390_pop_frame_regular): Update.
1432 * mn10300-tdep.c (mn10300_frame_chain): Update.
1433 (mn10300_pop_frame_regular): Update.
1434 (mn10300_init_extra_frame_info): Update.
1435 * mips-tdep.c (mips_init_frame_pc_first): Update.
1436 (mips_frame_chain): Update.
1437 (mips_pop_frame): Update.
1438 * mcore-tdep.c (mcore_frame_chain): Update.
1439 (mcore_pop_frame): Update.
1440 (mcore_init_extra_frame_info): Update.
1441 * arch-utils.c (init_frame_pc_default): Update.
1442 * m68k-tdep.c (isi_frame_num_args): Update.
1443 (delta68_frame_num_args): Update.
1444 (news_frame_num_args): Update.
1445 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1446 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1447 (alpha_frame_chain): Update.
1448 (alpha_pop_frame): Update.
1449 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1450 (hppa_init_extra_frame_info): Update.
1451 (hppa_frame_chain): Update.
1452 (hppa_frame_chain_valid): Update.
1453 * cris-tdep.c (cris_init_extra_frame_info): Update.
1454 * avr-tdep.c (avr_init_extra_frame_info): Update.
1455 * arm-tdep.c (arm_frame_chain_valid): Update.
1456 (arm_init_extra_frame_info): Update.
1457 (arm_pop_frame): Update.
1458 * frame.c (frame_pc_unwind): Update.
1459 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1460 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1461 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1462 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1463 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1464 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1466 2003-03-12 Andrew Cagney <cagney@redhat.com>
1468 Eliminate the need for POP_FRAME.
1469 * frame.c (do_frame_unwind_register): New function.
1470 (frame_pop): When no POP_FRAME, pop the frame using register
1471 unwind and a scratch regcache.
1472 (frame_saved_regs_pop): Delete function.
1473 (trad_frame_unwinder): Update.
1474 * d10v-tdep.c (d10v_frame_pop): Delete function.
1475 (d10v_frame_unwind): Update.
1476 * sentinel-frame.c (sentinel_frame_pop): Delete function.
1477 (sentinel_frame_unwinder): Update.
1478 * dummy-frame.c (dummy_frame_pop): Delete function.
1479 (dummy_frame_unwind): Update.
1480 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
1481 (struct frame_unwind): Update.
1483 2003-03-11 Kevin Buettner <kevinb@redhat.com>
1485 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
1486 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
1487 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
1488 Do range checks on register number obtained from debugging info.
1489 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
1490 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
1491 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
1493 (do_fp_register_row): Fix typo which caused double type to be
1494 used when attempting to unpack a float.
1496 2003-03-11 J. Brobecker <brobecker@gnat.com>
1498 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
1500 2003-03-11 Andrew Cagney <cagney@redhat.com>
1502 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
1503 frame. Problem found by Corinna Vinschen.
1505 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
1507 * doublest.c (floatformat_from_length): Accept also
1508 the real size of 'long double' type.
1510 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
1512 From Klee Dienes <kdienes@apple.com>:
1513 * breakpoint.c (bpstat_copy): Copy the command lines as well
1514 as the old value, to match what is freed in bpstat_clear.
1516 2003-03-10 David Carlton <carlton@math.stanford.edu>
1518 * minsyms.c (add_minsym_to_hash_table): Replace
1519 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1520 (compare_minimal_symbols, compact_minimal_symbols)
1521 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
1522 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
1523 of DEPRECATED_SYMBOL_MATCHES_NAME.
1524 (lookup_minimal_symbol_solib_trampoline): Ditto.
1526 2003-03-10 Andrew Cagney <cagney@redhat.com>
1528 * regcache.h (regcache_cooked_read_ftype): Define.
1529 (regcache_save, regcache_restore): Add a cooked_read parameter.
1530 * regcache.c (regcache_save, regcache_restore): Update.
1531 (do_cooked_read): New function.
1532 (regcache_cpy): Pass do_cooked_read to regcache_save and
1535 2003-03-10 Andrew Cagney <cagney@redhat.com>
1537 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1538 * gdbarch.h, gdbarch.c: Re-generate.
1539 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1540 * x86-64-tdep.h: Update.
1541 * x86-64-tdep.c (x86_64_init_abi): Update.
1542 * v850-tdep.c (v850_gdbarch_init): Update.
1543 * sparc-tdep.c (sparc_gdbarch_init): Update.
1544 * sh-tdep.c (sh_gdbarch_init): Update.
1545 * s390-tdep.c (s390_gdbarch_init): Update.
1546 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1547 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1548 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1549 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1550 * mips-tdep.c (mips_gdbarch_init): Update.
1551 * mcore-tdep.c (mcore_gdbarch_init): Update.
1552 * m68k-tdep.c (m68k_gdbarch_init): Update.
1553 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1554 * ia64-tdep.c (ia64_gdbarch_init): Update.
1555 * i386-tdep.c (i386_gdbarch_init): Update.
1556 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1557 * hppa-tdep.c (hppa_gdbarch_init): Update.
1558 * h8300-tdep.c (h8300_gdbarch_init): Update.
1559 * frv-tdep.c (frv_gdbarch_init): Update.
1560 * cris-tdep.c (cris_gdbarch_init): Update.
1561 * avr-tdep.c (avr_gdbarch_init): Update.
1562 * arm-tdep.c (arm_gdbarch_init): Update.
1563 * alpha-tdep.c (alpha_gdbarch_init): Update.
1564 * sh-tdep.c (sh_init_extra_frame_info): Update.
1565 (sh64_init_extra_frame_info): Update.
1566 * ns32knbsd-nat.c (frame_num_args): Update.
1567 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1568 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1569 (xstormy16_frame_chain_valid): Update.
1570 * vax-tdep.c (vax_saved_pc_after_call): Update.
1571 * v850-tdep.c (v850_frame_chain): Update.
1572 (v850_pop_frame): Update.
1573 (v850_init_extra_frame_info): Update.
1574 * sparc-tdep.c (setup_arbitrary_frame): Update.
1575 * ns32k-tdep.c (umax_frame_num_args): Update.
1576 * s390-tdep.c (s390_pop_frame_regular): Update.
1577 * mn10300-tdep.c (mn10300_frame_chain): Update.
1578 (mn10300_pop_frame_regular): Update.
1579 (mn10300_init_extra_frame_info): Update.
1580 * mips-tdep.c (mips_init_frame_pc_first): Update.
1581 (mips_frame_chain): Update.
1582 (mips_pop_frame): Update.
1583 * mcore-tdep.c (mcore_frame_chain): Update.
1584 (mcore_pop_frame): Update.
1585 (mcore_init_extra_frame_info): Update.
1586 * arch-utils.c (init_frame_pc_default): Update.
1587 * m68k-tdep.c (isi_frame_num_args): Update.
1588 (delta68_frame_num_args): Update.
1589 (news_frame_num_args): Update.
1590 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1591 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1592 (alpha_frame_chain): Update.
1593 (alpha_pop_frame): Update.
1594 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1595 (hppa_init_extra_frame_info): Update.
1596 (hppa_frame_chain): Update.
1597 (hppa_frame_chain_valid): Update.
1598 * cris-tdep.c (cris_init_extra_frame_info): Update.
1599 * avr-tdep.c (avr_init_extra_frame_info): Update.
1600 * arm-tdep.c (arm_frame_chain_valid): Update.
1601 (arm_init_extra_frame_info): Update.
1602 (arm_pop_frame): Update.
1603 * frame.c (frame_pc_unwind): Update.
1604 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1605 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1606 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1607 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1608 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1609 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1611 2003-03-10 Andrew Cagney <cagney@redhat.com>
1613 * gdbarch.sh (gdbarch_unwind_pc): New method.
1614 * gdbarch.h, gdbarch.c: Regenerate.
1615 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
1616 but use read_pc and FRAME_SAVED_PC as fall backs.
1617 (frame_saved_regs_pc_unwind): Delete function.
1618 (trad_frame_unwinder): Update.
1619 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
1620 (struct frame_unwind): Update.
1621 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
1622 (dummy_frame_unwind): Update.
1623 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
1624 (sentinel_frame_unwinder): Update.
1625 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
1626 (d10v_frame_unwind): Update.
1627 (d10v_unwind_pc): New function.
1628 (d10v_gdbarch_init): Set unwind_pc.
1630 2003-03-10 Andrew Cagney <cagney@redhat.com>
1632 * gdbarch.h: Re-generate.
1634 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
1636 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
1639 2003-03-08 Mark Kettenis <kettenis@gnu.org>
1641 * gdbarch.sh (save_dummy_frame_tos): Add comment.
1643 2003-03-08 Andrew Cagney <cagney@redhat.com>
1645 * cli-out.c: Update copyright.
1646 (cli_out_data): Define typedef. Use instead of ui_out_data.
1648 2003-03-08 Andrew Cagney <cagney@redhat.com>
1650 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
1653 2003-03-07 Andrew Cagney <cagney@redhat.com>
1655 * gdbarch.sh: Don't generate two macro definitions when an
1656 undefined macro taking no arguments.
1657 * gdbarch.h: Regenerate.
1659 2002-03-07 Michal Ludvig <mludvig@suse.cz>
1661 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
1662 (x86_64_unwind_dummy_id): New functions.
1663 (x86_64_init_abi): Register these two new functions.
1665 2003-03-07 Michal Ludvig <mludvig@suse.cz>
1667 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
1668 (x86_64_skip_prologue): Move prologue detection to
1670 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
1672 2003-03-05 Andrew Cagney <cagney@redhat.com>
1674 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
1675 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
1676 * frame.c (get_prev_frame): Restructure the frame ID unwind code
1677 to use unwind_dummy_id when a dummy frame.
1678 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
1680 * gdbarch.h, gdbarch.c: Regneerate.
1682 2003-03-05 Andrew Cagney <cagney@redhat.com>
1684 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
1685 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
1686 Do not use d10v_read_sp or d10v_read_fp when obtaining register
1689 2003-03-05 Andrew Cagney <cagney@redhat.com>
1691 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
1692 (struct d10v_unwind_cache): Delete field "frameless". Replace
1693 "next_addr" with "sp_offset". Add "r11_offset".
1694 (d10v_frame_unwind_cache): Update.
1695 (prologue_find_regs): Update. When "mv r11, sp", save the
1696 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
1697 RN was saved in r11_offset.
1699 2003-03-05 Andrew Cagney <cagney@redhat.com>
1701 * frame.c (deprecated_update_frame_pc_hack): Also update the the
1702 cached PC value in the next frame.
1704 2003-03-05 Andrew Cagney <cagney@redhat.com>
1706 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
1707 "id_unwind_cache" with "id".
1708 (frame_id_unwind): Delete declaration.
1709 * frame.c (frame_id_unwind): Delete function.
1710 (get_prev_frame): Call the frame id unwind method directly. Store
1711 the returned next frame's ID value in NEXT_FRAME. Note that there
1712 is a problem with the wrong unwind ID being called with the wrong
1715 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
1717 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
1719 2003-03-05 James Ingham <jingham@apple.com>
1720 Daniel Jacobowitz <drow@mvista.com>
1722 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
1723 (auto_cp_abi): New variable.
1724 (current_cp_abi, num_cp_abis): Make static.
1725 (CP_ABI_MAX): Define.
1726 (cp_abis): Turn into an array.
1727 (value_virtual_fn_field): Fix formatting.
1728 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
1730 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
1731 (list_cp_abis, _initialize_cp_abi): New functions.
1732 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
1733 declarations for cp_abis, num_cp_abis, current_cp_abi, and
1734 switch_to_cp_abi. Update prototype for register_cp_abi.
1735 * Makefile.in (cp-abi.o): Update dependencies.
1736 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
1737 instead of switch_to_cp_abi.
1738 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
1740 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
1742 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
1744 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
1746 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
1747 * dwarf2loc.c: Include "regcache.h".
1748 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
1750 * Makefile.in (dwarf2loc.o): Update dependencies.
1752 2003-03-04 Theodore A. Roth <troth@openavr.org>
1754 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
1755 number of io registers reported by remote target is not a multiple of
1758 2003-03-04 David Carlton <carlton@math.stanford.edu>
1760 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
1761 (lookup_symbol_aux_psymtabs): Update call to
1762 lookup_partial_symbol.
1763 (lookup_transparent_type, find_main_psymtab)
1764 (make_symbol_overload_list): Ditto.
1766 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
1768 * MAINTAINERS (Write after approval): Update my email address.
1770 2003-03-03 Andrew Cagney <cagney@redhat.com>
1772 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
1773 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
1774 predicate. Replace MAX_REGISTER_RAW_SIZE.
1775 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
1776 MAX_REGISTER_VIRTUAL_SIZE.
1777 * regcache.c (legacy_max_register_raw_size): New function.
1778 (legacy_max_register_virtual_size): New function.
1779 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
1780 (MAX_REGISTER_RAW_SIZE): Define.
1781 (legacy_max_register_raw_size): Declare.
1782 (legacy_max_register_virtual_size): Declare.
1783 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1784 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
1785 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1786 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1787 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1788 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1789 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1790 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1791 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1792 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1793 * vax-tdep.c (vax_gdbarch_init): Update.
1794 * v850-tdep.c (v850_gdbarch_init): Update.
1795 * sparc-tdep.c (sparc_gdbarch_init): Update.
1796 * sh-tdep.c (sh_gdbarch_init): Update.
1797 * s390-tdep.c (s390_gdbarch_init): Update.
1798 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1799 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1800 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1801 * mips-tdep.c (mips_gdbarch_init): Update.
1802 * mcore-tdep.c (mcore_gdbarch_init): Update.
1803 * m68k-tdep.c (m68k_gdbarch_init): Update.
1804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1805 * ia64-tdep.c (ia64_gdbarch_init): Update.
1806 * i386-tdep.c (i386_gdbarch_init): Update.
1807 * hppa-tdep.c (hppa_gdbarch_init): Update.
1808 * h8300-tdep.c (h8300_gdbarch_init): Update.
1809 * frv-tdep.c (frv_gdbarch_init): Update.
1810 * cris-tdep.c (cris_gdbarch_init): Update.
1811 * avr-tdep.c (avr_gdbarch_init): Update.
1812 * arm-tdep.c (arm_gdbarch_init): Update.
1813 * alpha-tdep.c (alpha_gdbarch_init): Update.
1814 * d10v-tdep.c (d10v_gdbarch_init): Do not set
1815 max_register_raw_size or max_register_virtual_size.
1817 2003-03-03 David Carlton <carlton@math.stanford.edu>
1819 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
1820 SYMBOL_MATCHES_NAME, add comment.
1821 (SYMBOL_MATCHES_NATURAL_NAME): New.
1822 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
1823 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
1824 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
1825 * symtab.c (lookup_partial_symbol): Use
1826 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
1828 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
1829 SYMBOL_MATCHES_NAME.
1832 2003-03-03 David Carlton <carlton@math.stanford.edu>
1834 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
1835 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
1836 by regexp matching against SYMBOL_NATURAL_NAME.
1838 2003-03-03 David Carlton <carlton@math.stanford.edu>
1840 * linespec.c (find_method): Extract code into collect_methods.
1841 (collect_methods): New.
1843 2003-03-02 Mark Kettenis <kettenis@gnu.org>
1845 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
1848 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
1849 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1851 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
1853 * arch-utils.c (generic_register_byte): Fix to use the loop index
1854 and not regnum when summing the size of all registers up to regnum.
1856 2003-03-01 Andrew Cagney <cagney@redhat.com>
1858 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
1859 FRAME_INIT_SAVED_REGS.
1860 * gdbarch.h, gdbarch.c: Regenerate.
1861 * stack.c (frame_info): Update.
1862 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
1863 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
1864 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
1865 * ns32k-tdep.c (ns32k_pop_frame): Update.
1866 * mips-tdep.c (mips_pop_frame): Update.
1867 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
1868 * ia64-tdep.c (ia64_frame_chain): Update.
1869 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
1870 (ia64_frameless_function_invocation): Update.
1871 (ia64_init_extra_frame_info): Update.
1872 (ia64_pop_frame_regular): Update.
1873 * frame.h (struct frame_info): Update comment.
1874 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
1875 * frame.c (frame_saved_regs_register_unwind): Update.
1876 (frame_saved_regs_register_unwind): Update.
1877 (deprecated_generic_get_saved_register): Update.
1878 * cris-tdep.c: Update comment.
1879 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
1881 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1882 * x86-64-tdep.c (x86_64_init_abi): Update.
1883 * vax-tdep.c (vax_gdbarch_init): Update.
1884 * v850-tdep.c (v850_gdbarch_init): Update.
1885 * sparc-tdep.c (sparc_gdbarch_init): Update.
1886 * sh-tdep.c (sh_gdbarch_init): Update.
1887 * s390-tdep.c (s390_gdbarch_init): Update.
1888 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1889 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1890 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1891 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1892 * mips-tdep.c (mips_gdbarch_init): Update.
1893 * mcore-tdep.c (mcore_gdbarch_init): Update.
1894 * m68k-tdep.c (m68k_gdbarch_init): Update.
1895 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1896 * ia64-tdep.c (ia64_gdbarch_init): Update.
1897 * i386-tdep.c (i386_gdbarch_init): Update.
1898 * frv-tdep.c (frv_gdbarch_init): Update.
1899 * avr-tdep.c (avr_gdbarch_init): Update.
1900 * arm-tdep.c (arm_gdbarch_init): Update.
1901 * alpha-tdep.c (alpha_gdbarch_init): Update.
1903 2003-03-01 Andrew Cagney <cagney@redhat.com>
1905 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
1906 option enum and switch. When no windows, set the interpreter to
1909 2003-03-01 Andrew Cagney <cagney@redhat.com>
1911 * main.c (captured_main): Replace magic option characters with an
1914 2003-03-01 Andrew Cagney <cagney@redhat.com>
1916 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
1917 INIT_EXTRA_FRAME_INFO.
1918 * gdbarch.h, gdbarch.c: Regenerate.
1919 * arm-tdep.c: Update comments.
1920 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
1921 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
1922 * frame.h, avr-tdep.c: Ditto.
1923 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
1924 (create_new_frame, legacy_get_prev_frame): Ditto.
1925 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1926 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1927 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
1928 deprecated_init_extra_frame_info instead of init_extra_frame_info.
1929 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1930 * v850-tdep.c (v850_gdbarch_init): Ditto.
1931 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1932 * sh-tdep.c (sh_gdbarch_init): Ditto.
1933 * s390-tdep.c (s390_gdbarch_init): Ditto.
1934 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1935 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1936 * mips-tdep.c (mips_gdbarch_init): Ditto.
1937 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1938 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1939 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1940 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1941 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1942 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1943 * frv-tdep.c (frv_gdbarch_init): Ditto.
1944 * cris-tdep.c (cris_gdbarch_init): Ditto.
1945 * avr-tdep.c (avr_gdbarch_init): Ditto.
1946 * arm-tdep.c (arm_gdbarch_init): Ditto.
1947 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1948 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1950 2003-03-01 Andrew Cagney <cagney@redhat.com>
1952 * gdbarch.sh (register_type): New function with predicate.
1953 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
1954 * gdbarch.h, gdbarch.c: Re-generate.
1955 * arch-utils.c (generic_register_byte): Use generic_register_size.
1956 (generic_register_size): When available, use
1957 gdbarch_register_type.
1958 * regcache.c (init_regcache_descr): When available, initialize the
1959 register type array using gdbarch_register_type. If the
1960 architecture supplies gdbarch_register_type, do not use the legacy
1962 * d10v-tdep.c (d10v_register_type): Replace
1963 d10v_register_virtual_type.
1964 (d10v_gdbarch_init): Set register_type instead of
1965 register_virtual_type.
1967 2003-03-01 Andrew Cagney <cagney@redhat.com>
1969 * Makefile.in (ax-gdb.o): Update dependencies.
1970 * ax-gdb.c: Include "regcache.h".
1971 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
1972 * findvar.c (value_of_register): Ditto.
1973 * infcmd.c (default_print_registers_info): Ditto.
1975 2003-03-01 Mark Kettenis <kettenis@gnu.org>
1977 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
1978 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1980 2003-03-01 Mark Kettenis <kettenis@gnu.org>
1982 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
1985 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
1987 * Makefile.in (dwarf2loc.o): Update dependencies.
1988 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
1989 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
1990 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
1991 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
1992 (locexpr_tracepoint_var_ref): New function.
1993 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
1995 2003-02-28 Andrew Cagney <cagney@redhat.com>
1997 * regcache.c (register_size): New function.
1998 * regcache.h (register_size): Declare
1999 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
2000 max_register_size instead of MAX_REGISTER_RAW_SIZE.
2002 2003-02-28 David Carlton <carlton@math.stanford.edu>
2004 * linespec.c (decode_compound): Extract code into find_method.
2007 2003-02-28 J. Brobecker <brobecker@gnat.com>
2009 * Makefile.in: Add rules to build and link in observer.o.
2011 2003-02-27 J. Brobecker <brobecker@gnat.com>
2013 * observer.c: Minor comments edits.
2015 2003-02-27 J. Brobecker <brobecker@gnat.com>
2017 * observer.h, observer.c: New file.
2019 2003-02-27 Andrew Cagney <cagney@redhat.com>
2021 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
2023 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
2025 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
2026 (M6812_OP_STS_EXT): Likewise.
2027 (m6811_prologue): Use the above to recognize prologue.
2028 (m6812_prologue): Likewise.
2030 2003-02-27 David Carlton <carlton@math.stanford.edu>
2032 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
2034 (compare_psymbols): Ditto.
2035 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
2037 2003-02-27 Michael Snyder <msnyder@redhat.com>
2039 * f-lang.c (build_fortran_types): New function.
2040 (_initialize_f_language): Gdbarch-register built-in fortran types.
2041 * doublest.c (extract_floating): Fix warning text.
2043 2003-02-27 Andrew Cagney <cagney@redhat.com>
2045 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
2046 predicate. Replaces PUSH_DUMMY_FRAME.
2047 * gdbarch.h, gdbarch.c: Regnerate.
2048 * valops.c (hand_function_call): Update. Call
2049 generic_push_dummy_frame directly.
2050 * vax-tdep.c (vax_gdbarch_init): Update.
2051 * sparc-tdep.c (sparc_gdbarch_init): Update.
2052 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2053 * m68k-tdep.c (m68k_gdbarch_init): Update.
2054 * hppa-tdep.c (hppa_gdbarch_init): Update.
2055 * alpha-tdep.c (alpha_gdbarch_init): Update.
2056 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2057 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2058 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
2059 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
2060 push_dummy_frame to generic_push_dummy_frame.
2061 * v850-tdep.c (v850_gdbarch_init): Ditto.
2062 * sh-tdep.c (sh_gdbarch_init): Ditto.
2063 * s390-tdep.c (s390_gdbarch_init): Ditto.
2064 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2065 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2066 * mips-tdep.c (mips_gdbarch_init): Ditto.
2067 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2068 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2069 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2070 * i386-tdep.c (i386_gdbarch_init): Ditto.
2071 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2072 * frv-tdep.c (frv_gdbarch_init): Ditto.
2073 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2074 * cris-tdep.c (cris_gdbarch_init): Ditto.
2075 * avr-tdep.c (avr_gdbarch_init): Ditto.
2076 * arm-tdep.c (arm_gdbarch_init): Ditto.
2078 2003-02-26 Kevin Buettner <kevinb@redhat.com>
2080 * mips-tdep.c (show_mips_abi): New function.
2081 (_initialize_mips_tdep): Use show_mips_abi() to implement the
2082 command ``show mips abi''.
2084 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
2086 From Elena Zannoni <ezannoni@redhat.com>
2087 * dbxread.c (process_one_symbol): Only record line 0 if one or
2088 more sline entries have been seen for the function.
2090 2003-02-26 Michael Chastain <mec@shout.net>
2092 * configure: Regenerate with autoconf 000227.
2094 2003-02-26 Michael Chastain <mec@shout.net>
2097 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
2098 for old libc5/glibc.
2099 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
2101 2003-02-26 Kris Warkentin <kewarken@qnx.com>
2103 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
2104 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
2106 2003-02-26 Michael Chastain <mec@shout.net>
2108 * configure.in: New variable HAVE_UINTPTR_T.
2109 * configure, config.in: Regenerated.
2111 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
2114 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
2116 2003-02-25 Andrew Cagney <cagney@redhat.com>
2118 * frame.c (get_prev_frame): Add comment on check for
2119 inside_entry_func. Only check for inside_entry_file when not a
2120 dummy and not a sentinel. Check that the new frame is not inner
2123 2003-02-25 Andrew Cagney <cagney@redhat.com>
2125 * frame.c (frame_debug): New variable.
2126 (_initialize_frame): Add "set/show debug frame" command.
2127 (get_prev_frame): When frame_debug, print reason why unwind
2130 2003-02-25 Michael Chastain <mec@shout.net>
2132 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
2133 to avoid uintptr_t definition problems.
2135 2003-02-25 David Carlton <carlton@math.stanford.edu>
2137 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
2138 (SYMBOL_LINKAGE_NAME): Ditto.
2139 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
2140 SYMBOL_LINKAGE_NAME.
2141 (struct general_symbol_info): Expand comment.
2142 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
2143 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
2144 (SYMBOL_MATCHES_REGEXP): Ditto.
2145 * symtab.c (symbol_natural_name): New function.
2146 * objfiles.h: Replace all uses of SYMBOL_NAME by
2147 DEPRECATED_SYMBOL_NAME.
2148 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
2149 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
2150 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
2151 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
2152 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
2153 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
2154 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
2155 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
2156 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
2157 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
2159 * ada-exp.y: Update copyright.
2160 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
2161 * cp-valprint.c: Ditto.
2163 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
2165 * infptrace.c (detach): Do not flag error if ptrace detach fails
2166 and errno is set to ESRCH.
2168 2003-02-24 Andrew Cagney <cagney@redhat.com>
2170 * infptrace.c (udot_info): Change type of udot_off to long. Use
2171 paddr when printing udot_off's value.
2173 2003-02-24 David Carlton <carlton@math.stanford.edu>
2175 * symtab.c (make_symbol_overload_list): Only read in partial
2176 symtabs containing a matching partial symbol.
2178 2003-02-24 David Carlton <carlton@math.stanford.edu>
2180 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
2181 do the comparison, not strcmp.
2182 * symfile.c (compare_psymbols): Ditto.
2183 * defs.h: Declare strcmp_iw_ordered.
2184 * utils.c (strcmp_iw_ordered): New function.
2186 2003-02-24 Jim Blandy <jimb@redhat.com>
2188 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
2189 support, shared libs): Remove my name from here, to better reflect
2192 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2194 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
2195 (target_ops): Add to_have_continuable_watchpoint.
2196 * target.c (update_current_target): Add INHERIT line for
2197 to_have_continuable_watchpoint.
2198 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
2199 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
2200 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
2201 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
2203 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
2205 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
2208 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2210 * solib.c (solib_open): Call target defined search function after
2211 failing with solib-search-path.
2212 * solist.h (target_so_ops): Add find_and_open_solib function hook and
2213 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2215 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2217 * MAINTAINERS: Add myself to Write After section.
2219 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
2221 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
2223 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
2225 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
2226 (m68hc11_add_reggroups): New function.
2227 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
2228 (m68hc11_gdbarch_init): Install the reggroups.
2229 (_initialize_m68hc11_tdep): Initialize them.
2231 2003-02-21 James E Wilson <wilson@tuliptree.org>
2233 * MAINTAINERS: Update my email address.
2235 2003-02-21 David Carlton <carlton@math.stanford.edu>
2237 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
2239 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
2241 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
2242 * symtab.h: Add opaque declarations of struct axs_value and
2244 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
2245 (struct location_funcs): New type.
2246 (struct symbol): Add "loc" to aux_value.
2247 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
2248 * dwarf2read.c: Include "dwarf2expr.h".
2249 (dwarf2_symbol_mark_computed): New function.
2250 (read_func_scope): Use it.
2251 (var_decode_location): New function.
2252 (new_symbol): Use it.
2253 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
2255 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
2256 (dwarf2expr_h, dwarf2loc_h): New variables.
2257 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
2258 (dwarf2expr.o, dwarf2loc.o): New rules.
2259 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
2260 * buildsym.c (finish_block): Handle LOC_COMPUTED and
2262 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2263 * m2-exp.y (yylex): Likewise.
2264 * printcmd.c (address_info, print_frame_args): Likewise.
2265 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
2266 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2267 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
2268 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
2269 * symtab.c (lookup_block_symbol): Likewise.
2271 2003-02-20 Adam Fedor <fedor@gnu.org>
2273 * symtab.h: Remove objc_specific struct
2274 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
2275 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
2276 Have language_objc use cplus_specific struct.
2278 2003-02-20 Tom Tromey <tromey@redhat.com>
2280 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
2281 TYPE_NAME, when printing a String value. PR java/1075.
2283 2003-02-20 Adam Fedor <fedor@gnu.org>
2285 * objc-lang.h (find_methods): Remove declaration.
2286 * objc-lang.c (find_methods): Make static.
2288 2003-02-20 Christopher Faylor <cgf@redhat.com>
2290 * win32-nat.c (get_image_name): Check return value from
2292 (child_xfer_memory): Ditto.
2294 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2296 * configure.in (TARGET_SYSTEM_ROOT): Set default to
2297 ${exec_prefix}/${target_alias}/sys-root. Match explicit
2298 '${exec_prefix}' (in addition to the expansion thereof) as
2300 * configure: Rebuilt.
2302 2003-02-20 David Carlton <carlton@math.stanford.edu>
2304 * symtab.c (search_symbols): Revert the search_symbols part of my
2305 2002-12-23 patch. Add comment.
2307 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2309 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
2310 * dbxread.c (elfstab_build_psymtabs): Don't call
2311 install_minimal_symbols.
2312 (stabsect_build_psymtabs): Likewise.
2313 * elfread.c (elf_symfile_read): Call install_minimal_symbols
2315 * somread.c (som_symfile_read): Call install_minimal_symbols
2316 and do_cleanups earlier.
2317 * nlmread.c (nlm_symfile_read): Likewise.
2318 * mdebugread.c (elfmdebug_build_psymtabs): Call
2319 install_minimal_symbols and make appropriate cleanups.
2321 2003-02-20 Kevin Buettner <kevinb@redhat.com>
2323 * solib.c (reload_shared_libraries): New function.
2324 (_initialize_solib): Add callbacks for ``set solib-search-path''
2325 and ``set solib-absolute-prefix''.
2327 2003-02-20 David Carlton <carlton@math.stanford.edu>
2329 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
2331 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
2332 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
2333 * ada-typeprint.c (ada_typedef_print): Ditto.
2334 * ax-gdb.c (gen_var_ref): Ditto.
2335 * breakpoint.c (print_one_breakpoint): Ditto.
2336 * buildsym.c (finish_block): Ditto.
2337 * c-valprint.c (c_val_print): Ditto.
2338 * expprint.c (print_subexp): Ditto.
2339 * findvar.c (locate_var_value): Ditto.
2340 * infcmd.c (jump_command): Ditto.
2341 * linespec.c (decode_line_2, decode_compound): Ditto.
2342 * maint.c (maintenance_translate_address): Ditto.
2343 * objc-lang.c (compare_selectors, compare_classes): Ditto.
2344 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
2346 * p-valprint.c (pascal_val_print): Ditto.
2347 * stabsread.c (define_symbol): Ditto.
2348 * stack.c (print_frame, frame_info, print_block_frame_locals)
2349 (print_frame_arg_vars, return_command): Ditto.
2350 * symfile.c (compare_symbols, compare_psymbols): Ditto.
2351 * symmisc.c (print_symbol): Ditto.
2352 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
2353 (compare_search_syms, print_symbol_info, print_msymbol_info)
2354 (rbreak_command): Ditto.
2355 * tracepoint.c (tracepoints_info): Ditto.
2356 * typeprint.c (typedef_print): Ditto.
2357 * valops.c (value_of_variable, hand_function_call): Ditto.
2358 * cli/cli-cmds.c (edit_command, list_command): Ditto.
2359 * ada-typeprint.c: Update Copyright.
2360 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
2361 * tracepoint.c, cli/cli-cmds.c: Ditto.
2363 2003-02-20 Kevin Buettner <kevinb@redhat.com>
2365 * frame.c (generic_unwind_get_saved_register): Make non-static.
2366 * frame.h (generic_unwind_get_saved_register): Declare.
2367 * mips-tdep.c (read_next_frame_reg): Fetch register from
2368 current regcache when frame is NULL.
2369 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
2371 (mips_get_saved_register): Call generic_unwind_get_saved_register()
2372 instead of frame_register_unwind().
2374 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2376 * remote-sim.c (gdbsim_insert_breakpoint)
2377 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
2380 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2382 * remote.c (_initialize_remote): Add commands "set/show remote
2383 hardware-watchpoint-limit" and "set/show remote
2384 hardware-breakpoint-limit".
2385 (remote_hw_watchpoint_limit): Initialize to -1.
2386 (remote_hw_breakpoint_limit): Ditto.
2387 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
2389 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
2391 * coff-pe-read.c: New file - support reading of minimal symbols from a
2392 portable executable using the export table.
2393 * coff-pe-read.h: New file.
2394 * coffread.c: Include coff-pe-read.h.
2395 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
2396 debugging symbols found.
2397 * Makefile.in (SFILES): Add coff-pe-read.o.
2398 (coff_pe_read_h): Define.
2399 (COMMON_OBS): Add coff-pe-read.o.
2400 (coffread.o): Add coff_pe_read_h dependency.
2401 (coff-pe-read.o): New target.
2403 2003-02-19 David Carlton <carlton@math.stanford.edu>
2405 * Makefile.in (SFILES): Add block.c.
2407 (COMMON_OBS): Add block.o.
2409 (x86-64-tdep.o): Add $(block_h).
2410 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
2411 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
2412 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
2413 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
2414 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
2415 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
2416 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
2417 * value.h: Add opaque declaration for struct block.
2418 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
2419 * ada-lang.h: Ditto.
2420 * x86-64-tdep.c: #include "block.h"
2421 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
2422 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
2423 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
2424 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
2425 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
2426 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
2427 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
2428 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
2429 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
2430 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
2431 * symtab.c (block_function): Ditto.
2432 (contained_in): Ditto.
2433 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
2434 block.h. Add opaque declaration for struct block.
2435 * symtab.h: Move block_function and contained_in declarations to
2436 block.h. Add opaque declarations for struct block, struct
2438 (struct block): Move to block.h.
2439 (struct blockvector): Ditto.
2440 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
2441 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
2442 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
2443 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
2444 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
2446 * block.c: New file.
2447 * block.h: New file.
2449 2003-02-19 Theodore A. Roth <troth@openavr.org>
2451 * avr-tdep.c (avr_extract_return_value): Remove function.
2452 (avr_store_return_value): Remove function.
2453 (avr_extract_struct_value_address): Remove function.
2454 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
2456 2003-02-19 Andrew Cagney <ac131313@redhat.com>
2458 * rs6000-tdep.c: Include "gdb_assert.h".
2459 (registers_e500): Add "acc" and "spefscr".
2460 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
2461 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
2462 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
2464 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
2466 2003-02-18 Keith Seitz <keiths@redhat.com>
2468 * Makefile.in: Add gdbtk-interps.c.
2470 2003-02-18 Kevin Buettner <kevinb@redhat.com>
2472 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
2473 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
2475 2003-02-18 Andrew Cagney <cagney@redhat.com>
2477 * symtab.h (struct objfile): Add opaque declaration.
2479 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
2481 From Jim Ingham <jingham@apple.com>:
2482 * dbxread.c (process_one_symbol): Use last_function_start rather
2483 than function_start_offset to find the real beginning of the
2484 current function. The latter is just the text section offset on
2485 some systems, the former is always the real function start.
2487 2003-02-17 Andrew Cagney <cagney@redhat.com>
2489 * configure.in: Revert ${target} != ${host}.
2491 2003-02-17 Andrew Cagney <ac131313@redhat.com>
2493 * configure.in (Makefile): Use the test ${target} != ${host},
2494 instead of the absence of the "nm.h" file, to determine of the
2495 configuration non-native.
2496 * configure: Regenerate.
2498 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
2500 From Brian Ford <ford@vss.fsi.com>
2502 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
2503 conditionalize tui_active test.
2504 (lookup_cmd_1): Ditto.
2506 2003-02-14 Mark Kettenis <kettenis@gnu.org>
2508 * configure.in: Add check for _etext.
2509 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
2511 * config.in, configure: regenerated.
2513 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
2515 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
2517 2003-02-14 Andrew Cagney <ac131313@redhat.com>
2519 * main.c (tui_version): Delete variable.
2520 (captured_main): When --tui, set interpreter_p to "tui" instead of
2521 enabling tui_version.
2522 * printcmd.c (display_command) [TUI]: Test tui_active instead of
2524 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
2525 * cli/cli-cmds.c (disassemble_command): Ditto.
2526 * defs.h (tui_version): Delete declaration.
2527 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
2528 (tui-interp.o): Add rules.
2529 (SUBDIR_TUI_OBS): Add "tui-interp.o".
2531 2003-02-14 Christopher Faylor <cgf@redhat.com>
2533 * win32-nat.c (register_loaded_dll): Correctly set address range for
2536 2003-02-12 Jason Molenda (jmolenda@apple.com)
2538 * symmisc.c (print_objfile_statistics): Include information about
2539 the number of psymtabs and symtabs in each object file.
2541 2003-02-13 Keith R Seitz <keiths@redhat.com>
2543 * main.h (struct captured_main_args): Add interpreter_p.
2544 * main.c (captured_main): Initialize interpreter_p from context.
2545 * gdb.c (main): Set interpreter_p argument.
2546 * Makefile.in (gdb.o): Add dependency for interps.h.
2548 2003-02-12 Andrew Cagney <ac131313@redhat.com>
2550 * event-top.c (cli_command_loop): Delete declaration.
2551 (_initialize_event_loop): Delete function setting event_loop_hook.
2552 * event-top.h (cli_command_loop): Declare. Update copyright.
2553 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
2554 * interps.c (current_interp_command_loop): When event_loop_p, call
2557 2003-02-12 Andrew Cagney <ac131313@redhat.com>
2559 * interps.h (interp_command_loop_ftype): Change return type to
2562 2003-02-12 Michal Ludvig <mludvig@suse.cz>
2564 * x86-64-tdep.c (x86_64_extract_return_value)
2565 (x86_64_store_return_value): Use regcache instead of regbuf.
2566 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
2567 * x86-64-linux-nat.c (fill_gregset): Use regcache.
2569 2003-02-11 Andrew Cagney <ac131313@redhat.com>
2571 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
2572 * aclocal.m4: Regenerate.
2573 * configure: Regenerate.
2575 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
2576 TCL_LD_SEARCH_FLAGS.
2578 2003-02-10 Michal Ludvig <mludvig@suse.cz>
2580 * dwarf2cfi.c: Reindented.
2582 2003-02-09 Andrew Cagney <ac131313@redhat.com>
2584 * interps.c (clear_interpreter_hooks): Convert function definition
2587 2003-02-07 David Carlton <carlton@math.stanford.edu>
2589 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
2591 2003-02-07 Kevin Buettner <kevinb@redhat.com>
2593 * gdbtypes.h (struct main_type): Move ``length'' field from here...
2594 (struct type): ...to here.
2595 (TYPE_LENGTH): Adjust to reflect different location of ``length''
2597 * gdbtypes.c (make_qualified_type): Set length on newly created type.
2598 (replace_type): Set length on all type variants for a given type.
2600 2003-02-07 Andrew Cagney <ac131313@redhat.com>
2602 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
2604 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
2606 2003-02-06 Andrew Cagney <ac131313@redhat.com>
2608 * Makefile.in (symm-nat.o): Update dependencies.
2609 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
2610 (lynx-nat.o, ia64-linux-nat.): Ditto.
2611 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
2612 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
2613 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
2615 * Makefile.in (inflow_h): Define.
2616 (procfs.o, inflow.o, procfs.o): Update dependencies.
2617 * inftarg.c (child_stop): Delete extern declaration of
2618 inferior_process_group. Include "inflow.h".
2619 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
2620 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
2621 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
2622 (our_process_group, inferior_process_group): Extern declarations.
2624 * procfs.c: Include "gdb_assert.h".
2626 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2627 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
2628 * jv-typeprint.c (java_type_print_base): Ditto.
2629 * typeprint.c (typedef_print): Eliminate STREQ.
2630 * cli/cli-script.c (define_command, define_command): Ditto.
2631 * main.c (captured_main): Ditto.
2632 * values.c (lookup_internalvar): Ditto.
2633 * utils.c (safe_strerror, parse_escape): Eliminate assignment
2634 within `if' conditional.
2635 * linespec.c (decode_line_2): Ditto.
2636 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
2637 (bfd_openw_with_cleanup): Ditto.
2639 2003-02-07 Mark Kettenis <kettenis@gnu.org>
2641 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
2642 legacy_extract_return_value and store_return_value to
2643 legacy_return_value.
2645 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
2647 * win32-nat.c (get_relocated_section_addrs): New function. Find
2648 section load addresses for symbol handling in relocated DLLs.
2649 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
2651 2003-02-05 Fred Fish <fnf@intrinsity.com>
2653 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
2655 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
2657 (angel_RDI_info): Ditto.
2658 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
2660 (threads_continue_all_with_signals): Ditto.
2662 2003-02-05 Jim Ingham <jingham@apple.com>
2663 Keith Seitz <keiths@redhat.com>
2664 Elena Zannoni <ezannoni@redhat.com>
2665 Andrew Cagney <ac131313@redhat.com>
2667 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
2668 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
2669 (SUBDIR_MI_OBS): Add "mi-interp.o".
2670 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
2671 (SFILES): Add "interps.c".
2672 (COMMON_OBS): Add "interps.o".
2673 (interps_h, mi_main_h): Define.
2674 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
2675 (mi-main.o, main.o, event-top.o): Update dependencies.
2676 * cli/cli-interp.c: New file.
2677 * interps.h, interps.c: New files.
2678 * top.c: (gdb_init): Don't install the default interpreter, handed
2680 * main.c: Include "interps.h".
2681 (interpreter_p): Note that it should malloc'ed.
2682 (captured_command_loop): Call current_interp_command_loop.
2683 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
2684 xfree and xstrdup when updating interpreter_p. Install the
2685 default interpreter. Add hack to stop mi1's copyright notice
2687 * event-top.h (gdb_setup_readline): Declare.
2688 (gdb_disable_readline): Declare.
2689 * event-top.c: Include "interps.h".
2690 (display_gdb_prompt): Call current_interp_display_prompt_p.
2691 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
2692 gdb_stdlog, and gdb_stdtarg.
2693 (_initialize_event_loop): Don't call gdb_setup_readline.
2694 * cli-out.c (cli_out_set_stream): New function.
2695 * cli-out.h (cli_out_set_stream): Declare.
2697 2003-02-06 Mark Kettenis <kettenis@gnu.org>
2699 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
2700 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
2701 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
2702 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
2703 config/i386/i386v42mp.mt: Removed.
2705 2003-02-05 Mark Kettenis <kettenis@gnu.org>
2707 * configure.tgt (*-*-solaris*): Set gdb_osabi to
2710 2003-02-05 Michael Chastain <mec@shout.net>
2712 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
2713 2.12.1 and earlier versions.
2715 2003-02-05 Andrew Cagney <ac131313@redhat.com>
2717 Remove orphaned hosts, targets and files.
2718 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
2719 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
2720 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
2721 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
2722 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
2723 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
2724 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
2725 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
2726 * config/sparc/tm-sp64sim.h: Delete.
2727 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
2729 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
2730 mips*-dec-mach3* targets.
2732 2003-02-04 Michael Chastain <mec@shout.net>
2734 * NEWS: Fix typo: sepcifying -> specifying.
2736 2003-02-04 Michael Chastain <mec@shout.net>
2738 * dwarfread.c: Add documentation on the state of dwarf-1,
2739 looking towards obsoletion.
2741 2003-02-03 Michael Chastain <mec@shout.net>
2743 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
2744 gdb/testsuite/gdb.c++/pr-1023.exp.
2746 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2748 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
2749 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
2751 * utils.c (init_page_info): Delete reference to MPW in comments.
2752 * main.c (captured_main): Delete #ifdef MPW.
2754 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2756 * NEWS: Note that the m32r-*-elf* is obsolete.
2757 * monitor.c (monitor_expect): Obsolete reference to m32r.
2758 * configure.tgt: Mark m32r-*-elf* as obsolete.
2759 * MAINTAINERS: Mark m32k as obsolete.
2760 * m32r-rom.c: Obsolete file.
2761 * config/m32r/m32r.mt: Obsolete file.
2762 * config/m32r/tm-m32r.h: Obsolete file.
2763 * m32r-stub.c: Obsolete file.
2764 * m32r-tdep.c: Obsolete file.
2766 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2768 * NEWS: Mention that the z8k-zilog-none is obsolete.
2769 * MAINTAINERS: Mark z8k as obsolete.
2770 * configure.tgt: Obsolete the z8k-*-coff* target.
2771 * config/z8k/z8k.mt: Obsolete file.
2772 * config/z8k/tm-z8k.h: Obsolete file.
2773 * z8k-tdep.c: Obsolete file.
2775 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2777 * NEWS: Mention that the mn10200-elf is obsolete.
2778 * configure.tgt: Obsolete mn10200-*-* target.
2779 * breakpoint.c (update_breakpoints_after_exec): Update comment to
2780 mention that the mn10200 is obsolete.
2781 * breakpoint.h: Ditto.
2782 * MAINTAINERS: Mark the mn10200-elf as obsolete.
2783 * config/mn10200/mn10200.mt: Obsolete file.
2784 * config/mn10200/tm-mn10200.h: Obsolete file.
2785 * mn10200-tdep.c: Obsolete file.
2787 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2789 * MAINTAINERS: Mark h8500 as obsolete.
2790 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
2791 * findvar.c (value_from_register): Ditto.
2792 * h8500-tdep.c: Mark file as obsolete.
2793 * config/h8500/h8500.mt: Ditto.
2794 * config/h8500/tm-h8500.h: Ditto.
2795 * NEWS: Mention that h8500 is obsolete.
2797 2003-02-04 David Carlton <carlton@math.stanford.edu>
2799 * objfiles.c (allocate_objfile): Always set name. Add comment at
2801 * jv-lang.c (get_dynamics_objfile): Add comment.
2803 2003-02-04 David Carlton <carlton@math.stanford.edu>
2805 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
2806 * printcmd.c (build_address_symbolic): Replace uses of
2807 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
2808 SYMBOL_NAME, and asm_demangle.
2811 2003-02-04 David Carlton <carlton@math.stanford.edu>
2813 * linespec.c (decode_compound): Extract code into
2815 (lookup_prefix_sym): New function.
2817 2003-02-04 David Carlton <carlton@math.stanford.edu>
2819 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
2820 FLOAT_COERCION_BADNESS.
2821 * gdbtypes.c (rank_one_type): Replace all uses of
2822 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
2824 2003-02-04 Jim Blandy <jimb@redhat.com>
2826 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
2827 section, let dwarf_macinfo_section point to it, not
2830 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
2832 Pointed out by Anton Blanchard <anton@samba.org>.
2833 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
2834 (ppc_linux_at_sigtramp_return_path): Use it.
2836 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
2838 * defs.h (streq): Add prototype.
2839 * utils.c (streq): New function.
2841 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
2842 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
2843 * mdebugread.c (new_symbol): Likewise.
2844 * stabsread.c (define_symbol): Likewise.
2845 * coffread.c (process_coff_symbol): Likewise.
2846 * dwarfread.c (new_symbol): Likewise.
2848 * minsyms.c (prim_record_minimal_symbol_and_info): Use
2849 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
2851 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
2852 SYMBOL_INIT_DEMANGLED_NAME.
2853 * objfiles.c: Include "hashtab.h".
2854 (allocate_objfile): Call htab_set_functions_ex for the
2855 demangled_names_hash.
2856 (free_objfile): Call htab_delete for the demangled_names_hash.
2857 * objfiles.h (struct htab): Add declaration.
2858 (struct objfile): Add demangled_names_hash.
2859 * symfile.c: Include "hashtab.h".
2860 (reread_symbols): Call htab_delete for the demangled_names_hash.
2861 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
2862 SYMBOL_NAME in the bcache.
2863 * symtab.c: Include "hashtab.h". Update comments.
2864 (create_demangled_names_hash, symbol_set_names): New functions.
2865 (symbol_find_demangled_name): New function, broken out from
2866 symbol_init_demangled_names.
2867 (symbol_init_demangled_names): Use it.
2868 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
2869 (SYMBOL_SET_NAMES): New macro.
2870 (symbol_set_names): Add prototype.
2872 2003-02-03 Jim Blandy <jimb@redhat.com>
2874 Use a single, consistent representation for an empty minimal
2875 symbol table in an objfile.
2876 * objfiles.c (terminate_minimal_symbol_table): New function.
2877 (allocate_objfile): Call it.
2878 * objfiles.h (terminate_minimal_symbol_table): New declaration.
2879 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
2881 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
2882 objfile has minimal symbols, compare minimal_symbol_count to zero,
2883 instead of comparing msymbols with NULL.
2884 * objfiles.c (have_minimal_symbols): Same.
2885 * solib-sunos.c (solib_add_common_symbols): Call
2886 terminate_minimal_symbol_table.
2887 * symfile.c (reread_symbols): Same.
2889 2003-02-03 Kevin Buettner <kevinb@redhat.com>
2891 * s390-tdep.c (s390_address_class_type_flags)
2892 (s390_address_class_type_flags_to_name)
2893 (s390_address_class_name_to_type_flags): New functions.
2894 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
2895 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
2897 2003-02-03 Michael Snyder <msnyder@redhat.com>
2899 * arm-tdep.c: Fix spell-o in comment.
2901 2003-02-03 Michal Ludvig <mludvig@suse.cz>
2903 * dwarf2cfi.c (pointer_encoding): Added new parameter.
2904 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
2905 error messages to contain BFD filename.
2907 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
2909 Fix PR gdb/742 gdb/743 gdb/877
2910 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
2911 (do_mixed_source_and_assembly): Use
2912 make_cleanup_ui_out_tuple_begin_end and
2913 make_cleanup_ui_out_tuple_begin_end.
2914 (do_mixed_source_and_assembly): Ditto.
2915 * thread.c (do_captured_list_thread_ids): Ditto.
2916 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
2917 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
2918 ui_out_tuple_end): Delete prototypes.
2919 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
2920 ui_out_list_end, ui_out_tuple_end): Delete.
2922 From Kevin Buettner <kevinb@redhat.com>:
2923 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
2924 * ui-out.c (make_cleanup_ui_out_table_begin_end)
2925 (do_cleanup_table_end): New functions.
2926 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
2927 Use cleanups to invoke_ui_out_tuple_end().
2928 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
2929 * cli/cli-setshow.c (cmd_show_list): Use
2930 make_cleanup_ui_out_tuple_begin_end.
2932 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2934 * frame.c (frame_unwind_register): New function.
2935 (frame_unwind_unsigned_register): Use.
2936 (frame_unwind_signed_register): Use.
2937 (frame_read_register): New function.
2938 * frame.h (frame_unwind_register): Declare.
2939 (frame_read_register): Declare.
2941 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
2942 and frame_unwind_register instead of read_memory, write_register
2943 and deprecated_write_register_bytes.
2945 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2947 * frame.h: Note that namelen can be negative.
2948 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
2951 * NEWS: Mention that the d10v's `regs' command is deprecated.
2952 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
2953 (d10v_print_registers_info): New function.
2954 (show_regs): Call d10v_print_registers_info.
2955 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
2957 2003-02-02 Mark Kettenis <kettenis@gnu.org>
2959 * stack.c (print_frame_info): Restore call to annotate_frame_begin
2960 lost in the previous patch.
2962 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2964 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
2965 * stack.c (print_frame_info_base): Output complete FRAME tuple
2966 for synthesized frames.
2968 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2970 * mips-nat.c (zerobuf): Delete.
2971 (fetch_inferior_registers): Alloc local zerobuf.
2972 (fetch_core_registers): Alloc local zerobuf.
2973 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
2974 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
2975 * thread-db.c (thread_db_store_registers): Ditto.
2976 * sh-tdep.c (sh_do_register): Ditto.
2977 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2978 * remote-sim.c (gdbsim_store_register): Ditto.
2979 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2980 * remote-e7000.c (fetch_regs_from_dump): Ditto.
2981 * monitor.c (monitor_supply_register): Ditto.
2982 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
2983 * mips-nat.c (fetch_inferior_registers): Ditto.
2984 * m68klinux-nat.c (fetch_register): Ditto.
2985 * lynx-nat.c (fetch_inferior_registers): Ditto.
2986 (fetch_inferior_registers): Ditto.
2987 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
2988 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
2989 (hpux_thread_store_registers): Ditto.
2990 * hppah-nat.c (fetch_register): Ditto.
2991 * hppab-nat.c (fetch_register): Ditto.
2992 * hppa-tdep.c (pa_register_look_aside): Ditto.
2993 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
2994 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
2996 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2998 * gdbarch.sh: Explictly specify all method levels. When a
2999 variable with an empty level, provide a non-multi-arch default.
3000 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
3001 * gdbarch.h: Re-generate.
3002 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
3003 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
3005 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3007 * defs.h (host_pointer_to_address): Delete declaration.
3008 (address_to_host_pointer): Delete declaration.
3009 * utils.c (host_pointer_to_address): Delete function.
3010 (address_to_host_pointer): Delete function.
3011 * procfs.c (procfs_address_to_host_pointer): New function.
3012 * procfs.c (proc_set_watchpoint): Use.
3013 (procfs_can_use_hw_breakpoint): Update comments.
3014 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
3015 (som_solib_add): Use.
3016 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
3017 * hppa-tdep.c (unwind_command): Use.
3019 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3021 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
3024 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
3025 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
3026 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
3027 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
3028 (define_symbol): Update.
3029 * symfile.c (generic_load): Remove references to nindy.
3030 * symtab.c: Remove references to nindy.
3032 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3034 * infcmd.c (print_float_info): Delete code conditional on
3036 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
3037 * config/m68k/nm-apollo68b.h: Ditto.
3038 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
3039 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
3040 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
3042 2003-02-01 Mark Kettenis <kettenis@gnu.org>
3044 * config/i386/tm-i386os9k.h: Removed.
3046 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
3047 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
3048 they're identical to i[3456]86-*-sysv* now.
3049 * config/i386/i386v32.mh: Removed.
3050 * config/i386/xm-i386v32.h: Removed.
3051 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
3053 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
3055 * config/i386/i386dgux.mh: Removed.
3056 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
3058 * configure.in: Fix typo.
3059 * configure: Regenerated.
3061 2003-01-31 David Carlton <carlton@math.stanford.edu>
3063 * dwarf2read.c (dwarf2_locate_sections): Set
3064 dwarf_ranges_section.
3066 2003-01-31 Andrew Cagney <ac131313@redhat.com>
3068 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
3069 * utils.c: Update comments documenting legitimate uses of PTR.
3071 * utils.c: Re-indent.
3073 * config/djgpp/fnchange.lst: Delete nindy files.
3074 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
3075 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
3076 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
3077 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
3078 * nindy-share/README, nindy-share/Onindy.c: Delete files.
3079 * nindy-tdep.c, nindy-share/Makefile: Delete files.
3080 * Makefile.in (init.c): Remove nindy references.
3081 (saber_gdb): Delete rule.
3082 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
3083 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
3085 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
3086 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
3087 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
3088 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
3090 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
3091 * saber.suppress: Delete file.
3093 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
3095 * dbxread.c (stabs_data): New static variable.
3096 (fill_symbuf): Support an in-memory buffer for stabs data.
3097 (stabs_seek): New function.
3098 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
3099 (read_ofile_symtab): Use stabs_seek.
3100 (elfstab_build_psymtabs): Take an asection* instead of
3101 an offset and size. Relocate the stabs data if necessary.
3102 Save the section* for dbx_psymtab_to_symtab.
3103 * dwarf2read.c: Add section variables for each debug section.
3104 (dwarf2_locate_sections): Fill them in.
3105 (dwarf2_read_section): Take an asection* argument.
3106 Relocate the section contents if necessary.
3107 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
3108 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
3109 it to dwarf2_read_section.
3110 (dwarf2_build_frame_info): Update callers.
3111 * elfread.c (elf_symfile_read): Update call to
3112 elfstab_build_psymtabs.
3113 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
3114 (DBX_STAB_SECTION): New macro.
3115 * stabsread.h (elfstab_build_psymtabs): Update prototype.
3116 * symfile.c (symfile_dummy_outputs): New function.
3117 (symfile_relocate_debug_section): New function.
3118 * symfile.h (symfile_relocate_debug_section): Add prototype.
3120 2003-01-31 Richard Henderson <rth@redhat.com>
3122 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
3123 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
3124 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
3125 * alpha-tdep.c (alpha_register_name): Add "unique".
3126 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
3127 (ALPHA_UNIQUE_REGNUM): New.
3128 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
3130 2003-01-31 Andrew Cagney <ac131313@redhat.com>
3132 * README: Remove reference to Ericsson 1800 monitor.
3133 * Makefile.in (remote-es.o): Delete rule.
3134 (ALLDEPFILES): Delete remote-es.c.
3135 * remote-es.c: Delete file.
3136 * config/m68k/es1800.mt: Delete file.
3137 * config/djgpp/fnchange.lst: Update.
3138 * configure.tgt: Delete m68*-ericsson-* target.
3140 2003-01-31 Adam Fedor <fedor@gnu.org>
3142 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
3143 Remove duplicate/shadowing variable of same name.
3145 2003-01-30 Jim Blandy <jimb@redhat.com>
3147 * symfile.c (find_separate_debug_file): Assert that the objfile's
3148 directory name we compute ends with a slash, and then assume that
3149 that's so everywhere we use it.
3151 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
3153 * valops.c (value_assign): Flush frame cache after stores to memory
3156 2003-01-30 Andrew Cagney <ac131313@redhat.com>
3158 * Makefile.in (mon960-rom.o): Delete rule.
3159 * mon960-rom.c: Delete file.
3161 2003-01-30 Andrew Cagney <ac131313@redhat.com>
3163 * d10v-tdep.c: Include "frame-unwind.h".
3164 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
3166 (next_addr, uses_frame): Delete.
3167 (struct d10v_unwind_cache): Define.
3168 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
3169 Use info instead of next_addr and uses_frame globals.
3170 (d10v_frame_init_saved_regs): Delete function.
3171 (d10v_init_extra_frame_info): Delete function.
3172 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
3173 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
3174 init_frame_pc or frame_saved_pc.
3175 (d10v_pop_frame): Delete function.
3176 (do_d10v_pop_frame): Delete function.
3177 (d10v_frame_chain): Delete function.
3178 (d10v_frame_chain_valid): Delete function.
3179 (d10v_frame_pc_unwind): New function.
3180 (d10v_frame_id_unwind): New function.
3181 (saved_regs_unwinder): New function.
3182 (d10v_frame_register_unwind): New function.
3183 (d10v_frame_pop): New function.
3184 (d10v_frame_unwind): New variable.
3185 (d10v_frame_p): New function.
3186 (d10v_frame_saved_pc): Delete function.
3187 * Makefile.in (d10v-tdep.o): Update dependencies.
3189 2003-01-30 J. Brobecker <brobecker@gnat.com>
3191 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
3192 causing some regressions due to a change in the default value
3195 2003-01-29 Richard Henderson <rth@redhat.com>
3196 Elena Zannoni <ezannoni@redhat.com>
3197 Daniel Jacobowitz <drow@mvista.com>
3200 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
3202 (RANGES_SECTION): New.
3203 (dwarf_ranges_buffer): New variable.
3204 (struct comp_unit_head): Add member "die".
3205 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
3206 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
3207 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
3208 (dwarf2_locate_sections): Likewise.
3209 (dwarf2_build_psymtabs): Read .debug_ranges.
3210 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
3211 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
3212 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
3213 Look for DW_AT_ranges and return the bounding box.
3215 2003-01-29 Brian Ford <ford@vss.fsi.com>
3217 * win32-nat.c (cygwin_pid): Removed as unused.
3218 (child_attach): Try fall back to Cygwin pid.
3220 2003-01-29 Jim Blandy <jimb@redhat.com>
3222 * objfiles.h (struct objfile): Doc fix.
3224 2003-01-29 Andrew Cagney <ac131313@redhat.com>
3226 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
3227 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
3228 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
3229 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
3230 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
3231 (FRAME_SAVED_PC): Change to a function with predicate.
3232 * gdbarch.h, gdbarch.c: Re-generate.
3234 2003-01-28 Andrew Cagney <ac131313@redhat.com>
3236 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
3238 * complaints.c (complain): Delete function.
3239 * complaints.h (struct deprecated_complaint): Delete definition.
3240 (complain): Delete declaration.
3242 2003-01-28 Kevin Buettner <kevinb@redhat.com>
3244 * mips-tdep.c (mips_init_extra_frame_info): Return early for
3247 2003-01-27 Andrew Cagney <ac131313@redhat.com>
3249 * sentinel-frame.h, sentinel-frame.c: New files.
3250 * Makefile.in (frame.o): Update dependencies.
3251 (SFILES): Add sentinel-frame.c.
3252 (sentinel_frame_h): Define.
3253 (COMMON_OBS): Add sentinel-frame.o.
3254 (sentinel-frame.o): Specify dependencies.
3255 * frame.c: Include "sentinel-frame.h".
3256 (frame_register_unwind): Rewrite assuming that there is always a a
3258 (frame_register, generic_unwind_get_saved_register): Ditto.
3259 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
3260 (create_sentinel_frame, unwind_to_current_frame): New functions.
3261 (get_current_frame): Rewrite using create_sentinel_frame and
3262 unwind_to_current_frame. When possible, always create a frame.
3263 (create_new_frame): Set next to the sentinel frame.
3264 (get_next_frame): Rewrite. Don't go below the level 0 frame.
3265 (deprecated_update_frame_pc_hack): Update the next frame's PC and
3266 ID cache when necessary.
3267 (frame_saved_regs_id_unwind): Use frame_relative_level.
3268 (deprecated_generic_get_saved_register): Use frame_relative_level,
3269 get_frame_saved_regs, get_frame_pc, get_frame_base and
3271 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
3274 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3276 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
3278 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3280 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
3281 (maintenance_set_profile_cmd): Use error () instead of warning ().
3283 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3285 * configure.in: Check that -pg works if using --enable-profiling.
3286 Check for monstartup and _mcleanup regardless of --enable-profiling.
3287 * maint.c: Check for monstartup and _mcleanup before using them.
3288 * config.in: Regenerated.
3289 * configure: Regenerated.
3291 2003-01-24 Nick Clifton <nickc@redhat.com>
3295 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
3297 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
3298 (sh2e_show_regs): New.
3299 (sh_gdbarch_init): Handle bfd_mach_sh2e.
3300 * config/sh/tm-sh.h: Added sh2e to comments.
3302 2003-01-23 Jim Blandy <jimb@redhat.com>
3304 * symfile.c (syms_from_objfile): Don't print the "(no debugging
3305 symbols found)" message here; we haven't checked for a separate
3306 debug info file yet, so we don't know yet.
3307 (symbol_file_add_with_addrs_or_offsets): Print it here, after
3308 we've looked everywhere. Also, there's no need to print a special
3309 message when we're loading the separate debug info file: the one
3310 symbol_file_add prints is fine.
3312 2003-01-23 Alexander Larsson <alexl@redhat.com>
3313 Jim Blandy <jimb@redhat.com>
3315 Add support for executables whose debug info has been separated
3316 out into a separate file, leaving only a link behind.
3317 * objfiles.h (struct objfile): New fields: separate_debug_objfile
3318 and separate_debug_objfile_backlink.
3319 (put_objfile_before): New declaration.
3320 * symfile.c: #include "filenames.h".
3321 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
3322 debug info in a separate file, read that, too. Save the addrs
3323 argument, so we can use it again to read the separated debug info;
3324 syms_from_objfile modifies the table we pass it.
3325 (reread_symbols): After re-reading an objfile, call
3326 reread_separate_symbols to refresh its separate debug info
3327 objfile, if it has one.
3328 (reread_separate_symbols, find_separate_debug_file,
3329 get_debug_link_info, separate_debug_file_exists): New functions.
3330 (debug_file_directory): New global var.
3331 (_initialize_symfile): Initialize debug_file_directory, and
3332 provide the new `set debug-file-directory' command to let the user
3334 * objfiles.c (free_objfile): If this objfile has its debug info in
3335 a separate objfile, free that one too. If this is itself a
3336 separate debug info objfile, clear our parent's backlink.
3337 (put_objfile_before): New function.
3338 * utils.c (gnu_debuglink_crc32): New function.
3339 * defs.h (gnu_debuglink_crc32): New declaration.
3340 * Makefile.in (symfile.o): Note dependency on "filenames.h".
3341 * configure.in: Handle --with-separate-debug-dir config option.
3342 * acinclude.m4 (AC_DEFINE_DIR): New macro.
3343 * acconfig.h (DEBUGDIR): New macro.
3344 * configure, aclocal.m4, config.in: Regenerated.
3346 2003-01-22 Jim Blandy <jimb@redhat.com>
3348 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
3349 like the old symbol_file_add, but taking new arguments: you can
3350 now pass in either a `struct section_addr_info' list to say where
3351 each section is loaded, or a `struct section_offsets' table. Pass
3352 these new arguments through to syms_from_objfile as appropriate.
3353 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
3354 with the appropriate quiescent values for the new arguments.
3356 * symfile.c: #include "gdb_assert.h".
3357 (syms_from_objfile): Add the ability to pass in a section offset
3358 table directly, as an alternative to the section_addr_info table.
3359 Document arguments better.
3360 (symbol_file_add): Pass extra arguments to syms_from_objfile.
3361 * symfile.h (syms_from_objfile): Update declaration.
3362 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
3364 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
3366 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
3368 Original patch by Tom Tromey <tromey@cygnus.com> and
3369 Jason Molenda <jmolenda@apple.com>.
3370 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
3371 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
3372 * NEWS: Mention profiling.
3373 * configure.in (--enable-gdbtk): Fix typo.
3374 (--enable-profiling): New. Set PROFILE_CFLAGS.
3375 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
3377 (profiling_state): New variable.
3378 (mcleanup_wrapper): New function.
3379 (_initialize_maint): Remove NOTYET, fix call to
3380 add_setshow_boolean_cmd for "maint set profile".
3381 * configure: Regenerated.
3383 2003-01-21 Martin M. Hunt <hunt@redhat.com>
3385 * Makefile.in (install-gdbtk): Install PNG images too.
3387 2003-01-21 Andrew Cagney <ac131313@redhat.com>
3389 * exec.c (text_start): Delete global variable.
3390 (exec_file_attach): Make text_start local to the function.
3391 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
3392 * valops.c (hand_function_call): Delete code that handles
3393 BEFORE_TEXT_END and AFTER_TEXT_END.
3394 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
3395 of CALL_DUMMY_LOCATION.
3396 * gdbarch.c: Regenerate.
3397 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
3398 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
3399 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
3400 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
3401 (text_end): Delete extern declaration.
3403 2003-01-21 Andrew Cagney <ac131313@redhat.com>
3405 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
3406 * blockframe.c (backtrace_below_main): Move to "frame.c".
3407 (frame_chain_valid): Delete check for backtrace_below_main.
3408 (_initialize_blockframe): Delete initialization, move ``set
3409 backtrace-below-main'' command to "frame.c".
3410 (do_flush_frames_sfunc): Delete function.
3411 * frame.c: Include "command.h" and "gdbcmd.h".
3412 (frame_type_from_pc): New function.
3413 (create_new_frame): Use frame_type_from_pc.
3414 (legacy_get_prev_frame): New function.
3415 (get_prev_frame): Rewrite. When an old style frame, call
3416 legacy_get_prev_frame. Otherwize, unwind the PC first.
3417 (_initialize_frame): Add ``set backtrace-below-main'' command.
3418 * Makefile.in (frame.o): Update dependencies.
3420 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3422 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
3423 DEPRECATED_REGISTERS_INFO.
3425 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3427 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
3428 Maintainers'. Update `Various Maintainers'.
3430 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3432 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
3433 * gdbarch.sh (POP_FRAME): Change to function with predicate.
3434 Suppress actual parameters when `-'.
3435 * gdbarch.h, gdbarch.c: Regenerate.
3437 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3439 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
3440 code handling dummy frames.
3442 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3444 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
3445 (struct frame_unwind): Add field pop.
3446 * frame.h (frame_pop): Declare.
3447 * frame.c (frame_saved_regs_pop): New function.
3448 (trad_frame_unwinder): Add frame_saved_regs_pop.
3449 (frame_pop): New function.
3450 * dummy-frame.c (dummy_frame_pop): New function.
3451 (discard_innermost_dummy): New function.
3452 (generic_pop_dummy_frame): Use discard_innermost_dummy.
3453 (dummy_frame_unwind): Add dummy_frame_pop.
3454 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
3455 * valops.c (hand_function_call): Ditto.
3456 * stack.c (return_command): Ditto.
3458 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3460 * cris-tdep.c: Fix function declaration indentation.
3461 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
3462 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
3463 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
3464 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
3465 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
3466 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
3468 2003-01-18 Michael Chastain <mec@shout.net>
3470 * README (Unpacking and Installation -- quick overview):
3471 Warn against ".../gdb-5.3/gdb/configure".
3473 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3475 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
3476 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3477 (struct frame_unwind): Declare opaque.
3478 (dummy_frame_p): Declare function.
3479 * dummy-frame.c (dummy_frame_id_unwind): Make static.
3480 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3481 * dummy-frame.c: Include "frame-unwind.h".
3482 (dummy_frame_p): New function.
3483 (dummy_frame_unwind): New variable.
3484 * frame.c: Include "frame-unwind.h".
3485 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
3486 to use the new unwind field.
3487 (set_unwind_by_pc): Delete function.
3488 (create_new_frame, get_prev_frame): Set unwind field using
3489 frame_unwind_find_by_pc.
3490 (trad_frame_unwind, trad_frame_unwinder): New variables.
3491 * frame.h (trad_frame_unwind): Declare variable.
3492 (frame_id_unwind_ftype): Delete declaration.
3493 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
3494 (struct frame_unwind): Declare opaque.
3495 (struct frame_info): Replace the fields id_unwind, pc_unwind and
3496 register_unwind with a single unwind pointer.
3497 * frame-unwind.h, frame-unwind.c: New files.
3498 * Makefile.in (SFILES): Add frame-unwind.c.
3499 (frame_unwind_h): Define.
3500 (COMMON_OBS): Add frame-unwind.o.
3501 (frame-unwind.o): Specify dependencies.
3502 (frame.o, dummy-frame.o): Update dependencies.
3504 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3506 * ada-valprint.c: Eliminate PTR.
3507 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
3508 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
3509 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
3510 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
3511 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
3512 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
3513 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
3515 2003-01-17 Andrew Cagney <ac131313@redhat.com>
3517 * main.c (captured_main): Don't use PTR.
3518 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
3519 * gdbtypes.c (lookup_primitive_typename): Ditto.
3520 (lookup_struct_elt_type): Ditto.
3521 * f-valprint.c (info_common_command): Ditto.
3522 (list_all_visible_commons): Ditto.
3523 * jv-typeprint.c (java_type_print_base): Ditto.
3525 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
3526 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
3527 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
3528 i386-interix-nat.c and i386-interix-tdep.c. Rename
3529 m68klinux-nat.c and m68klinux-tdep.c. Rename
3530 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
3531 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
3532 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
3533 * main.c (captured_main): Use xfree, not free.
3535 2003-01-16 Andrew Cagney <ac131313@redhat.com>
3537 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
3538 ID back using a parameter.
3539 * frame.c (frame_id_unwind): Update call.
3540 (frame_saved_regs_id_unwind): Update.
3541 * dummy-frame.c (dummy_frame_id_unwind): Update function.
3542 * dummy-frame.h (struct frame_id): Add opaque declaration.
3543 (dummy_frame_id_unwind): Update declaration.
3545 2003-01-15 Andrew Cagney <ac131313@redhat.com>
3547 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
3549 2003-01-15 Stephen P. Smith <ischis2@cox.net>
3551 * MAINTAINERS (Stephen P. Smith): Updated email address.
3553 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
3556 * breakpoint.c (until_break_command): Add new argument. Use it to
3557 decide whether to stop only at the current frame or not.
3558 * breakpoint.h (until_break_command): Update prototype.
3559 * infcmd.c (until_command): Add new argument to until_break_command
3561 (advance_command): New function.
3562 (_initialize_infcmd): Update help string for 'until' command.
3563 Add new 'advance' command.
3565 2003-01-14 David Carlton <carlton@math.stanford.edu>
3567 * linespec.c (decode_line_1): Normalize comments.
3569 (locate_first_half): Ditto.
3570 (decode_compound): Ditto.
3571 (symtab_from_filename): Ditto.
3572 (decode_all_digits): Ditto.
3573 (decode_dollar): Ditto.
3574 (find_methods): Ditto.
3575 (find_toplevel_char): Ditto.
3577 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3579 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
3580 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
3581 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
3582 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
3583 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
3584 * language.c, language.h, m32r-tdep.c: Update copyright.
3585 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
3586 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
3587 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
3588 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
3589 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
3590 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
3592 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3594 * stabsread.h (process_later, resolve_cfront_continuation):
3596 Update copyright years.
3597 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
3598 Update copyright year.
3599 * dbxread.c(struct cont_elem): Obsolete.
3600 (process_later, process_now): Obsolete functions.
3601 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
3602 Update copyright year.
3603 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
3604 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
3605 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
3606 (parse_partial_symbols): Obsolete cfront support.
3608 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
3610 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
3611 read_cfront_baseclasses, read_cfront_member_functions,
3612 resolve_cfront_continuation,read_cfront_static_fields,
3613 copy_cfront_struct_fields): Obsolete functions.
3614 (define_symbol, read_one_struct_field): Obsolete cfront support.
3615 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
3616 Update Copyright year.
3618 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3620 * stack.c (print_frame_info, print_stack_frame_base_stub,
3621 print_stack_frame_base, show_and_print_stack_frame_stub,
3622 show_and_print_stack_frame, print_only_stack_frame_stub,
3623 print_only_stack_frame): Delete functions.
3624 (print_stack_frame_stub): Call print_frame_info instead of
3625 print_frame_info_base.
3626 (print_frame_info_base): Rename to print_frame_info.
3627 (backtrace_command_1): Call print_frame_info, instead of
3628 print_frame_info_base.
3629 (current_frame_command): Call print_stack_frame, instead of
3630 print_only_stack_frame.
3631 (frame_command): Call print_stack_frame, instead of
3632 show_and_print_stack_frame.
3633 (up_command): Ditto.
3634 (down_command): Ditto.
3635 * frame.h (print_only_stack_frame): Delete prototype.
3636 * infrun.c (normal_stop): Call print_stack_frame, instead of
3637 show_and_print_stack_frame.
3638 * thread.c (info_threads_command): Call print_stack_frame, instead
3639 of print_only_stack_frame.
3641 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3643 * README (Graphical interface to GDB): Update URL. Point at
3646 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
3649 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3651 * symtab.c (find_pc_sect_line): Don't consider end-of-function
3654 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3656 * thread-db.c (attach_thread): Prototype.
3657 (struct private_thread_info): Remove lwpid. Add thread handle (th),
3658 thread information (ti), and valid flags (th_valid, ti_valid).
3659 (attach_thread): Move target_pid_to_str call to after the thread
3660 is added to GDB's list. Initialize the cache.
3661 (thread_get_info_callback, thread_db_map_id2thr)
3662 (thread_db_get_info): New functions.
3663 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
3664 (thread_db_store_registers, thread_db_thread_alive)
3665 (thread_db_get_thread_local_address): Use them.
3666 (thread_db_pid_to_str): Likewise. Return "Missing" instead
3667 of calling error() for threads in unknown state.
3669 (clear_lwpid_callback): New function.
3670 (thread_db_resume): Use it to clear the cache.
3672 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3674 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
3675 (resume_callback): Remove dead code.
3677 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3679 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
3681 * gdbarch.h, gdbarch.c: Regenerate.
3682 * stack.c (frame_info): Only initialize the saved registers when
3683 FRAME_INIT_SAVED_REGS_P.
3684 * frame.c (frame_saved_regs_register_unwind): Assert
3685 FRAME_INIT_SAVED_REGS_P.
3686 (deprecated_generic_get_saved_register): Ditto.
3688 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3690 * source.c (openp): Squelch warning about "filename".
3692 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3694 * source.c (openp): If the file does not exist don't necessarily
3697 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3700 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
3701 (integer_types_same_name_p): New function.
3702 (rank_one_type): Use it.
3703 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
3705 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3707 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
3709 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
3710 * configure.in: Add --with-sysroot.
3711 * configure: Regenerated.
3712 * main.c (gdb_sysroot): New variable.
3713 (captured_main): Initialize gdb_sysroot.
3714 * defs.h (gdb_sysroot): New extern declaration.
3715 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
3717 2003-01-12 Michael Chastain <mec@shout.net>
3719 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
3721 2003-01-12 Michael Chastain <mec@shout.net>
3723 * top.c (print_gdb_version): Bump copyright year to 2003.
3725 2003-01-12 David Carlton <carlton@bactrian.org>
3727 * linespec.c (symtab_from_filename): Rename variable 's' to
3730 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3732 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
3734 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
3736 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3738 * d10v-tdep.c: Include "gdb_assert.h".
3739 (d10v_store_return_value): Rewrite to match current interface.
3740 (d10v_extract_struct_value_address): Ditto.
3741 (d10v_extract_return_value): Ditto.
3742 (d10v_gdbarch_init): Set store_restore_value,
3743 extract_struct_value_address and extract_return_value.
3745 2003-01-12 J. Brobecker <brobecker@gnat.com>
3747 * hpread.c (set_namestring): New procedure replacing the
3748 SET_NAMESTRING macro.
3749 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
3750 by calls to set_namestring.
3752 2003-01-11 J. Brobecker <brobecker@gnat.com>
3754 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
3755 a compilation warning.
3756 (hpread_process_one_debug_symbol): Likewise.
3758 2003-01-10 David Carlton <carlton@math.stanford.edu>
3760 * linespec.c (decode_line_1): Rename variable 's' to
3762 (decode_all_digits): Rename argument 's' to 'file_symtab'.
3763 (decode_dollar): Ditto.
3764 (decode_variable): Ditto.
3765 (symbol_found): Ditto.
3767 2003-01-09 Michael Chastain <mec@shout.net>
3769 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
3771 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
3773 * win32-nat.c (set_process_privilege): New function.
3774 (child_attach): Call set_process_privilege() to enable the
3775 SE_DEBUG_NAME user privilege if available in process token.
3777 2003-01-10 J. Brobecker <brobecker@gnat.com>
3779 * hpread.c (hpread_process_one_debug_symbol): Fix a small
3780 compilation error in the previous revision.
3782 2003-01-09 David Carlton <carlton@math.stanford.edu>
3784 * linespec.c: Update copyright.
3786 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
3788 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
3790 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
3792 2003-01-09 Andrew Cagney <ac131313@redhat.com>
3794 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
3796 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
3797 (frame_saved_regs_zalloc): Update.
3798 (frame_saved_regs_register_unwind): Update.
3799 (create_new_frame): Update.
3800 (get_prev_frame): Update.
3801 (frame_extra_info_zalloc): Update.
3802 (deprecated_get_frame_saved_regs): Update.
3803 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
3804 * cris-tdep.c: Update comment.
3806 * somsolib.h: Fix function indentation.
3807 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
3808 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
3809 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
3810 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
3811 * somsolib.c, inftarg.c: Remove assignment in if conditional.
3813 * infrun.c (follow_fork): Use ISO C definition.
3814 * expprint.c (print_subexp): Use xfree instead of free.
3815 * charset.c: Include "gdb_string.h" instead of <string.h>.
3816 (register_iconv_charsets): Use ISO C definition.
3817 (host_charset, target_charset): Ditto.
3818 * Makefile.in (charset.o): Update dependencies.
3819 (mi-cmd-env.o): Update dependencies.
3821 2003-01-08 Andrew Cagney <cagney@redhat.com>
3823 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
3826 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3828 * gdb_mbuild.sh: Add --keep option. When specified, keep the
3829 build directories. Save edited gdb output in Mbuild.log. If a
3830 build fails, remove any final GDB executable.
3832 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3834 * gdb_mbuild.sh: Edit the output of `maint print architecture'
3835 replacing hex constants with function names and stripping leading
3836 file name directory prefixes.
3838 2003-01-08 Andrew Cagney <cagney@redhat.com>
3840 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
3843 2003-01-08 David Carlton <carlton@math.stanford.edu>
3845 * linespec.c (decode_line_1): Move code into decode_variable.
3846 (decode_variable): New function.
3848 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3850 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
3852 2003-01-08 Andrew Cagney <cagney@redhat.com>
3854 * cris-tdep.c (cris_frame_init_saved_regs): Use
3855 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
3857 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
3858 (sh64_nofp_frame_init_saved_regs): Ditto.
3859 (sh_fp_frame_init_saved_regs): Ditto.
3860 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
3861 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3862 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3863 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3865 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
3867 * minsyms.c (lookup_minimal_symbol): Update comment.
3868 (lookup_minimal_symbol_text): Update comment. Use the hash table.
3869 (lookup_minimal_symbol_solib_trampoline): Likewise.
3871 2003-01-08 Andrew Cagney <cagney@redhat.com>
3873 * d10v-tdep.c (d10v_init_extra_frame_info): Use
3874 frame_relative_level.
3876 * alpha-tdep.c: Use get_frame_extra_info.
3877 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3878 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
3879 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3880 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
3882 * alpha-tdep.c: Use get_next_frame.
3883 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3884 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3885 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
3886 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
3887 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
3888 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
3889 * xstormy16-tdep.c: Ditto.
3891 2003-01-07 Andrew Cagney <cagney@redhat.com>
3893 * alpha-tdep.c: Use get_frame_base.
3894 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3895 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3896 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3897 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3898 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
3899 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3900 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
3901 * config/sparc/tm-sparc.h: Ditto.
3903 2003-01-07 Andrew Cagney <cagney@redhat.com>
3905 * frame.c (deprecated_get_frame_context): New function.
3906 (deprecated_set_frame_context): New function.
3907 * frame.h (deprecated_get_frame_context): Declare.
3908 (deprecated_set_frame_context): Declare.
3909 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
3910 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
3912 2003-01-07 Andrew Cagney <cagney@redhat.com>
3914 * frame.c (deprecated_set_frame_next_hack): New function.
3915 (deprecated_set_frame_prev_hack): New function.
3916 * frame.h (deprecated_set_frame_next_hack): Declare.
3917 (deprecated_set_frame_prev_hack): Declare.
3918 * mcore-tdep.c (analyze_dummy_frame): Use
3919 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
3920 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3922 2003-01-07 David Carlton <carlton@math.stanford.edu>
3924 * linespec.c (decode_line_1): Move code into decode_dollar.
3925 (decode_dollar): New function.
3927 2003-01-07 Andrew Cagney <cagney@redhat.com>
3929 * arm-tdep.c (arm_init_extra_frame_info): Use
3930 deprecated_update_frame_base_hack.
3931 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
3932 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3933 (fix_frame_pointer): Ditto.
3934 (mn10300_analyze_prologue): Ditto.
3936 2003-01-07 Andrew Cagney <cagney@redhat.com>
3938 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
3939 extra_info using frame_extra_info_zalloc.
3940 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
3941 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
3942 (sh64_init_extra_frame_info): Ditto.
3943 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
3944 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
3945 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3946 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
3947 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
3948 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
3949 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
3950 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
3951 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
3952 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
3953 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
3954 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
3956 * mn10300-tdep.c (analyze_dummy_frame): Use
3957 deprecated_set_frame_extra_info_hack.
3958 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3960 2003-01-07 J. Brobecker <brobecker@gnat.com>
3962 * mdebugread.c (parse_symbol): Skip stProc entries which storage
3963 class is not scText. These do not define "real" procedures.
3964 (parse_partial_symbols): Likewise.
3966 2003-01-06 Michael Snyder <msnyder@redhat.com>
3968 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
3970 2003-01-06 Andrew Cagney <ac131313@redhat.com>
3972 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
3973 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
3974 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
3975 deprecated_frame_xmalloc_with_cleanup.
3976 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
3977 deprecated_frame_xmalloc.
3978 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
3979 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
3981 2003-01-06 Andrew Cagney <cagney@redhat.com>
3983 * x86-64-linux-tdep.c: Include "osabi.h".
3984 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
3986 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
3988 2003-01-06 Andrew Cagney <cagney@redhat.com>
3990 * MAINTAINERS (Target Instruction Set Architectures): Update
3991 arm-elf. Can be built with -Werror, has been multiarched.
3993 * value.h (unpack_long): Make buffer parameter constant.
3994 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
3995 * scm-lang.h (scm_parse): Ditto.
3996 * defs.h (extract_typed_address, extract_address): Ditto.
3997 (extract_long_unsigned_integer): Ditto.
3998 * inferior.h (unsigned_pointer_to_address): Ditto.
3999 (signed_pointer_to_address): Ditto.
4000 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
4001 * gdbarch.h, gdbarch.c: Regenerate.
4002 * findvar.c (extract_long_unsigned_integer): Update.
4003 (extract_address): Update.
4004 (extract_typed_address): Update.
4005 (unsigned_pointer_to_address): Update.
4006 * values.c (unpack_long): Update.
4007 (unpack_double): Update.
4008 (unpack_pointer): Update.
4009 (unpack_field_as_long): Update.
4010 * d10v-tdep.c (d10v_pointer_to_address): Update.
4011 * avr-tdep.c (avr_pointer_to_address): Update.
4012 * scm-lang.c (scm_unpack): Update.
4013 * findvar.c (signed_pointer_to_address): Update.
4015 2003-01-06 Michal Ludvig <mludvig@suse.cz>
4017 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
4018 since it is in i386-tdep.c.
4020 2003-01-06 J. Brobecker <brobecker@gnat.com>
4022 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
4023 failure introduced in the previous change.
4025 2003-01-05 Michael Chastain <mec@shout.net>
4027 * README: Remove references to deleted remote-*.c files:
4028 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
4029 remote-nrom.c, remote-os9k.c, remote-udi.c.
4031 2003-01-05 Mark Kettenis <kettenis@gnu.org>
4033 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
4034 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
4035 i386_get_longjmp_target.
4037 2003-01-05 Andrew Cagney <ac131313@redhat.com>
4039 * arm-tdep.c (prologue_cache): Change to a pointer.
4040 (_initialize_arm_tdep): Allocate prologue_cache.
4041 (check_prologue_cache): Update.
4042 (save_prologue_cache): Update.
4043 (arm_gdbarch_init): Update.
4045 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4047 * stabsread.c (update_method_name_from_physname): Call complaint()
4050 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4052 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
4053 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
4054 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
4056 * blockframe.c: Include "gdbcmd.h" and "command.h".
4057 (backtrace_below_main): New variable.
4058 (file_frame_chain_valid, func_frame_chain_valid)
4059 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
4060 (generic_func_frame_chain_valid): Remove functions.
4061 (frame_chain_valid, do_flush_frames_sfunc): New functions.
4062 (_initialize_blockframe): New function.
4063 * Makefile.in (blockframe.o): Update dependencies.
4064 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
4065 comment. Call frame_chain_valid ().
4066 * frame.h: Remove old prototypes. Add prototype for
4067 frame_chain_valid and update comments to match.
4068 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
4070 * gdbarch.h: Regenerated.
4071 * gdbarch.c: Regenerated.
4073 * alpha-tdep.c (alpha_gdbarch_init): Don't call
4074 set_gdbarch_frame_chain_valid.
4075 * avr-tdep.c (avr_gdbarch_init): Likewise.
4076 * cris-tdep.c (cris_gdbarch_init): Likewise.
4077 * frv-tdep.c (frv_gdbarch_init): Likewise.
4078 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4079 * i386-tdep.c (i386_svr4_init_abi): Likewise.
4080 (i386_nw_init_abi): Likewise.
4081 (i386_gdbarch_init): Likewise.
4082 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4083 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4084 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4085 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
4086 * mips-tdep.c (mips_gdbarch_init): Likewise.
4087 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4088 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
4089 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
4090 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4091 * s390-tdep.c (s390_gdbarch_init): Likewise.
4092 * sh-tdep.c (sh_gdbarch_init): Likewise.
4093 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4094 * v850-tdep.c (v850_gdbarch_init): Likewise.
4095 * vax-tdep.c (vax_gdbarch_init): Likewise.
4096 * x86-64-tdep.c (x86_64_init_abi): Likewise.
4098 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
4099 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
4100 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
4101 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
4102 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
4103 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
4104 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
4105 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
4107 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4109 * Makefile.in (acconfig_h): Remove incorrect macro.
4111 (osabi.o): Update dependencies.
4112 * configure.tgt: Set gdb_osabi based on target triplet.
4113 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
4114 * configure: Regenerated.
4115 * config.in: Regenerated.
4116 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
4117 (GDB_OSABI_DEFAULT): Define if not already defined.
4118 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
4119 (set_osabi_string): New variables.
4120 (gdbarch_register_osabi): Add new OS ABI to
4121 gdb_osabi_available_names.
4122 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
4123 (set_osabi, show_osabi): New functions.
4124 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
4126 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4128 * arch-utils.c (gdbarch_info_init): Set osabi to
4129 GDB_OSABI_UNINITIALIZED.
4130 * gdbarch.sh: Add osabi to struct gdbarch and to struct
4131 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
4132 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
4133 * gdbarch.c: Regenerated.
4134 * gdbarch.h: Regenerated.
4135 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
4137 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
4138 * osabi.h (enum gdb_osabi): Move to defs.h.
4139 (gdbarch_init_osabi): Update prototype.
4140 * defs.h (enum gdb_osabi): Moved here.
4141 * Makefile.in: Update dependencies.
4143 * alpha-tdep.h: Don't include "osabi.h".
4144 (struct gdbarch_tdep): Remove osabi member.
4145 * alpha-tdep.c: Include "osabi.h".
4146 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4147 iterate over arches. Update call to gdbarch_init_osabi.
4148 (alpha_dump_tdep): Don't dump osabi.
4149 * alpha-linux-tdep.c: Include "osabi.h".
4150 * alpha-osf1-tdep.c: Include "osabi.h".
4151 * alphafbsd-tdep.c: Include "osabi.h".
4152 * alphanbsd-tdep.c: Include "osabi.h".
4154 * arm-tdep.h: Don't include "osabi.h".
4155 (struct gdbarch_tdep): Remove osabi member.
4156 * arm-tdep.c: Include "osabi.h".
4157 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4158 iterate over arches. Update call to gdbarch_init_osabi.
4159 (arm_dump_tdep): Don't dump osabi.
4160 * arm-linux-tdep.c: Include "osabi.h".
4161 * armnbsd-tdep.c: Include "osabi.h".
4163 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
4164 Update call to gdbarch_init_osabi.
4166 * i386-tdep.h: Don't include "osabi.h".
4167 (struct gdbarch_tdep): Remove osabi member.
4168 * i386-tdep.c: Include "osabi.h".
4169 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4170 iterate over arches. Update call to gdbarch_init_osabi.
4171 (i386_dump_tdep): Don't dump osabi.
4172 * i386-linux-tdep.c: Include "osabi.h".
4173 * i386-sol2-tdep.c: Include "osabi.h".
4174 * i386bsd-tdep.c: Include "osabi.h".
4175 * i386gnu-tdep.c: Include "osabi.h".
4176 * i386ly-tdep.c: Include "osabi.h".
4177 * i386nbsd-tdep.c: Include "osabi.h".
4178 * i386obsd-tdep.c: Include "osabi.h".
4180 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
4181 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4182 check osabi when iterating over arches. Update call to
4184 (mips_dump_tdep): Don't dump osabi.
4186 * ns32k-tdep.h: Don't include "osabi.h".
4187 (struct gdbarch_tdep): Remove.
4188 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
4189 gdbarch_lookup_osabi. Don't iterate over arches. Don't
4190 allocate tdep. Update call to gdbarch_init_osabi.
4191 (ns32k_dump_tdep): Remove.
4192 (_initialize_ns32k_tdep): Update call to gdbarch_register.
4193 * ns32knbsd-tdep.c: Include "osabi.h".
4195 * ppc-tdep.h: Don't include "osabi.h".
4196 (struct gdbarch_tdep): Remove osabi member.
4197 * rs6000-tdep.c: Include "osabi.h".
4198 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
4199 osabi when iterating over arches. Update call to
4201 (rs6000_dump_tdep): Don't dump osabi.
4202 * ppc-linux-tdep.c: Include "osabi.h".
4203 * ppcnbsd-tdep.c: Include "osabi.h".
4205 * sh-tdep.h: Don't include "osabi.h".
4206 (struct gdbarch_tdep): Remove osabi member.
4207 * sh-tdep.c: Include "osabi.h".
4208 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4209 iterate over arches. Update call to gdbarch_init_osabi.
4210 (sh_dump_tdep): Don't dump osabi.
4211 * shnbsd-tdep.c: Include "osabi.h".
4213 * sparc-tdep.c: Include "osabi.h".
4214 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4215 iterate over arches. Update call to gdbarch_init_osabi.
4216 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
4219 * vax-tdep.h: Don't include "osabi.h".
4220 (struct gdbarch_tdep): Remove.
4221 * vax-tdep.c: Include "osabi.h".
4222 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4223 iterate over arches. Don't allocate tdep. Update call
4224 to gdbarch_init_osabi.
4225 (vax_dump_tdep): Remove.
4226 (_initialize_vax_tdep): Update call to gdbarch_register.
4228 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4230 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
4232 (breakpoint_re_set_one): Don't fetch the value for a disabled
4235 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4237 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
4238 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
4239 (COERCE_FLOAT_TO_DOUBLE): Remove.
4240 * gdbarch.c: Regenerate.
4241 * gdbarch.h: Regenerate.
4242 * Makefile.in: Remove value_h from gdbarch_h.
4243 * valops.c (coerce_float_to_double): New variable.
4244 (default_coerce_float_to_double): Remove.
4245 (standard_coerce_float_to_double): Remove.
4246 (value_arg_coerce): Use coerce_float_to_double.
4247 (_initialize_valops): Add "set coerce-float-to-double".
4248 * value.h (default_coerce_float_to_double): Remove prototype.
4249 (standard_coerce_float_to_double): Remove prototype.
4251 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
4253 * mdebugread.c (parse_symbol): Likewise.
4254 * stabsread.c (define_symbol): Mark all functions as prototyped.
4256 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
4257 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
4258 set_gdbarch_coerce_float_to_double.
4259 * arm-tdep.c (arm_gdbarch_init): Likewise.
4260 * frv-tdep.c (frv_gdbarch_init): Likewise.
4261 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
4262 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
4263 * mips-tdep.c (mips_gdbarch_init): Likewise.
4264 (mips_coerce_float_to_double): Remove.
4265 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4266 (rs6000_coerce_float_to_double): Remove.
4267 * s390-tdep.c (s390_gdbarch_init): Likewise.
4268 * sh-tdep.c (sh_gdbarch_init): Likewise.
4269 (sh_coerce_float_to_double): Remove.
4270 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4271 (sparc_coerce_float_to_double): Remove.
4272 * v850-tdep.c (v850_gdbarch_init): Likewise.
4273 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4274 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4275 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
4276 (hppa_coerce_float_to_double): Remove prototype.
4277 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4279 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4281 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
4283 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4285 Suggested by Stewart Brown <sb24@avaya.com>:
4286 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
4287 in recursive calls. Handle TYPE_CODE_TYPEDEF.
4288 (c_type_print_varspec_suffix): Likewise.
4290 2003-01-04 Mark Kettenis <kettenis@gnu.org>
4292 * configure.in: Don't set and AC_SUBST SUBDIRS.
4293 * configure: Regenerated.
4295 * configure.in: Remove code dealing with shared libraries.
4296 * Makefile.in: Remove HLDFLAGS and HLDENV.
4297 * configure: Regenerated.
4299 2003-01-04 Andrew Cagney <ac131313@redhat.com>
4301 * frame.c (deprecated_frame_xmalloc): New function.
4302 (deprecated_set_frame_saved_regs_hack): New function.
4303 (deprecated_set_frame_extra_info_hack): New function.
4304 * frame.h (deprecated_frame_xmalloc): Declare.
4305 (deprecated_set_frame_saved_regs_hack): Declare.
4306 (deprecated_set_frame_extra_info_hack): Declare.
4308 2003-01-04 Mark Kettenis <kettenis@gnu.org>
4310 * configure.in: Move code that provides the --enable-gdbtk option
4311 right after the code that handles the --enable-tui option, and
4313 * configure: Regenerated.
4315 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
4316 AC_CHECK_FUNCS and remove the old check for pread64.
4317 * acinclude.m4 (AC_GNU_SOURCE): New macro.
4318 * acconfig.h (_GNU_SOURCE): Add.
4319 (HAVE_PREAD64): Remove.
4320 * configure, aclocal.m4, config.in: Regenerated.
4322 2003-01-03 Andrew Cagney <ac131313@redhat.com>
4324 * alpha-tdep.c: Use get_frame_saved_regs.
4325 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4326 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
4327 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
4328 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
4329 * vax-tdep.c, xstormy16-tdep.c: Ditto.
4331 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4333 * configure.in: Remove all use of the SUBDIRS variable; add
4334 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
4335 code providing the --enable-multi-ice option, and move it right in
4336 front of the code that checks whether gdbserver is supported.
4338 * configure: Regenerated.
4339 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
4342 2003-01-03 Andrew Cagney <cagney@redhat.com>
4344 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
4345 * avr-tdep.c, cris-tdep.c: Ditto.
4346 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
4347 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4349 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4351 * configure.in: Remove --enable-netrom option.
4352 * configure: Regenerated.
4354 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4356 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
4357 declaration for `struct re_pattern_buffer' instead.
4358 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
4360 2003-01-03 J. Brobecker <brobecker@gnat.com>
4362 * mdebugread.c (parse_symbol): Count until the stEnd matching
4365 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4367 * configure.in: Remove --with-cpu option.
4368 subscripts. Remove evil changequotes here.
4369 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
4370 * config.in, configure: Regenerated.
4372 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
4373 * configure.in: Cleanup section that sources GDB and BFD configure
4374 subscripts. Remove evil changequotes here.
4375 * config.in, configure: Regenerated.
4377 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4379 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
4380 frame accessor methods.
4381 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4382 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
4383 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
4384 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
4385 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4386 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
4387 * z8k-tdep.c: Ditto.
4389 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4391 * configure.in: Remove UI_OUT configuration code.
4392 * ada-lang.c: Update assuming UI_OUT is always true.
4393 * Makefile.in (UIOUT_CFLAGS): Remove.
4394 * configure: Regenerated.
4395 * TODO: Remove blurb about elimination of -DUI_OUT.
4397 * configure.in: Move code that provides the --enable-gdbcli,
4398 --enable-gdbmi options right before the code that handles the
4399 --enable-tui option. Polish a bit.
4400 * configure: Regenerated.
4402 * configure.in: Rewrite check for GNU regex and the
4403 --without-included regex option, and move it into the "Checks for
4404 library functions" section. This makes us use the system regex
4405 again by default on systems with version 2 of the GNU C library.
4406 This was apparently broken.
4407 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
4408 * acconfig.h (USE_INCLUDED_REGEX): Remove.
4409 * config.in, configure: Regenerated.
4411 * configure.in: Move code that provides the --enable-tui option
4412 before the "Checks for libraries" section. Polish the code
4413 somewhat and set need_curses to yes if we build the TUI. Rewrite
4414 code that looks for a library providing termcap functionality to
4415 match more closely what's done in the Readline library, and move
4416 it into to the "Checks for libraries" section.
4417 * configure: Regenerated.
4418 * Makefile.in (TERMCAP): Remove variable.
4419 * config/i386/go32.mh (TERMCAP): Remove variable.
4421 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4423 * MAINTAINERS: Mention gdb_mbuild.sh.
4424 * gdb_mbuild.sh: Rewrite.
4426 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4428 * configure.in: Fix typo in last change.
4429 * config.in, configure: Regenerated.
4431 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4433 * valarith.c (value_binop): Delete obsolete code and comments.
4434 * configure.host: Ditto.
4435 * buildsym.h (make_blockvector): Ditto.
4436 * buildsym.c (make_blockvector): Ditto.
4437 * defs.h (enum language): Ditto.
4438 (chill_demangle): Ditto.
4439 * elfread.c (elf_symtab_read): Ditto.
4440 * dwarfread.c (CHILL_PRODUCER): Ditto.
4441 (set_cu_language): Ditto.
4442 (handle_producer): Ditto.
4443 * expprint.c (print_subexp): Ditto.
4444 * gdbtypes.c (chill_varying_type): Ditto.
4445 * gdbtypes.h (builtin_type_chill_bool): Ditto.
4446 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
4447 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
4448 (chill_varying_type): Ditto.
4449 * language.h (_LANG_chill): Ditto.
4450 * language.c (binop_result_type, integral_type): Ditto.
4451 (character_type, string_type, structured_type): Ditto.
4452 (lang_bool_type, binop_type_check): Ditto.
4453 * stabsread.h (os9k_stabs): Ditto.
4454 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
4455 (define_symbol, read_type, read_struct_fields): Ditto.
4456 (read_array_type, read_enum_type, read_huge_number): Ditto.
4457 (read_range_type, start_stabs): Ditto.
4458 * symfile.c (init_filename_language_table): Ditto.
4459 (add_psymbol_with_dem_name_to_list): Ditto.
4460 * symtab.c (symbol_init_language_specific): Ditto.
4461 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
4462 * symtab.h (struct general_symbol_info): Ditto.
4463 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4464 * typeprint.c (typedef_print): Ditto.
4465 * utils.c (fprintf_symbol_filtered): Ditto.
4466 * valops.c (value_cast, search_struct_field, value_slice): Delete
4468 (varying_to_slice): Delete function.
4469 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
4470 (varying_to_slice): Delete declaration.
4471 * MAINTAINERS: Update.
4473 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4475 * configure.in: Reorganize "Checks for library functions section"
4476 a bit. Remove check for `btowc' and `isascii' functions.
4477 * configure: Regenerated.
4479 * acconfig.h (_MSE_INT_H): Remove.
4480 * configure.in: Create "Checks for header files" section, and move
4481 appropriate tests there. Don't check for objlist.h, wchar.h,
4482 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
4483 misdetection fix. Also add "Checks for types", "Checks for
4484 compiler characteristics" and "Checks for library functions"
4486 * config.in, configure: Regenerated.
4488 * configure.in: Create "Checks for programs" section, and move
4489 appropriate tests there.
4491 2003-01-01 Mark Kettenis <kettenis@gnu.org>
4493 * configure.in: Create "Checks for libraries" section, and move
4494 appropriate tests there. Cleanup check for wctype in libw. Use
4495 AC_SEARCH_LIBS to see whether we need libsocket.
4496 * configure: Regenerated.
4498 For older changes see ChangeLog-2002
4504 version-control: never