1 2003-04-10 Andrew Cagney <cagney@redhat.com>
3 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
4 frame's function's address. Simplify.
5 (d10v_frame_unwind_cache): Check that the frame's function is
8 2003-04-10 Jim Blandy <jimb@redhat.com>
10 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
11 call to set_gdbarch_deprecated_push_arguments.
13 2003-04-10 Andrew Cagney <cagney@redhat.com>
15 * frame.c (fprint_frame_id): New function.
16 (fprint_frame_type, fprint_frame): New function.
17 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
18 (create_sentinel_frame, get_frame_id): Ditto.
19 (frame_id_p, frame_id_eq): Ditto.
20 (frame_id_inner, create_new_frame): Ditto.
21 (legacy_get_prev_frame, get_prev_frame): Ditto.
22 (deprecated_update_frame_pc_hack): Ditto.
23 (frame_register_unwind): Ditto.
24 (deprecated_update_frame_base_hack): Ditto.
26 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
28 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
29 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
31 * Makefile.in: Add dependencies due to above change.
33 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
35 * blockframe.c (legacy_frame_chain_valid): Move call to
36 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
39 2003-04-09 Andrew Cagney <cagney@redhat.com>
41 * frame.h (struct frame_id): Replace "pc" and "base" with
42 "stack_addr" and "code_addr". Update comments.
43 (frame_id_build): Update parameter names and comment.
44 (struct frame_info): Replace "id_p" and "id" with "this_id".
45 * dummy-frame.c (dummy_frame_this_id): Update.
46 * breakpoint.c (print_one_breakpoint): Update.
47 * frame.c (get_frame_id): Update.
48 (get_frame_base, frame_id_build): Update.
49 (create_sentinel_frame, legacy_get_prev_frame): Update.
50 (deprecated_update_frame_base_hack): Update.
51 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
52 (frame_id_inner): Ditto.
54 2003-04-09 Andrew Cagney <cagney@redhat.com>
56 * defs.h (gdb_print_host_address): Make "addr" parameter a
58 * utils.c (gdb_print_host_address): Update.
60 2003-04-09 Kevin Buettner <kevinb@redhat.com>
62 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
63 register number for R0 is 0.
65 2003-04-09 J. Brobecker <brobecker@gnat.com>
67 * frame.h (struct gdbarch): Add opaque structure definition
68 to avoid a compilation warning on LynxOS 4.0.
70 2003-04-09 Andrew Cagney <cagney@redhat.com>
72 * frame.h (struct frame_info): Delete field "pc". Replace
73 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
75 * frame.c (frame_pc_unwind): Update.
76 (create_sentinel_frame): Do not set "pc".
77 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
78 (get_frame_pc): Call frame_pc_unwind.
79 (deprecated_update_frame_pc_hack): Update.
80 (create_new_frame): Use "pc" not "->pc".
82 2003-04-09 Andrew Cagney <cagney@redhat.com>
84 * frame.c (get_frame_id): Eliminate code updating "frame".
85 (legacy_get_prev_frame): Ditto.
86 (get_frame_base): Return id.base directly.
87 (deprecated_update_frame_base_hack): Update "id.base".
88 * frame.h (struct frame_info): Delete field "frame".
90 2003-04-09 Andrew Cagney <cagney@redhat.com>
92 * NEWS: Mention that the "Sequent family" is obsolete.
93 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
94 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
95 * configure.host: Obsolete i[3456]86-sequent-bsd*,
96 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
97 * config/i386/tm-ptx4.h: Obsolete file.
98 * config/i386/tm-ptx.h: Obsolete file.
99 * symm-tdep.c: Obsolete file.
100 * config/i386/symmetry.mt: Obsolete file.
101 * config/i386/tm-symmetry.h: Obsolete file.
102 * symm-nat.c: Obsolete file.
103 * config/i386/nm-symmetry.h: Obsolete file.
104 * config/i386/xm-symmetry.h: Obsolete file.
105 * config/i386/symmetry.mh: Obsolete file.
106 * config/i386/nm-ptx4.h: Obsolete file.
107 * config/i386/ptx4.mh: Obsolete file.
108 * config/i386/ptx.mt: Obsolete file.
109 * config/i386/ptx.mh: Obsolete file.
110 * config/i386/xm-ptx4.h: Obsolete file.
111 * config/i386/xm-ptx.h: Obsolete file.
113 2003-04-09 Andrew Cagney <cagney@redhat.com>
115 Obsolete mips*-*-mach3*.
116 * NEWS: Mention that mips*-*-mach3* is obsolete.
117 * m3-nat.c: Obsolete file.
118 * config/nm-m3.h: Obsolete file.
119 * config/mips/tm-mipsm3.h: Obsolete file.
120 * config/mips/mipsm3.mt: Obsolete file.
121 * config/mips/mipsm3.mh: Obsolete file.
122 * config/mips/xm-mipsm3.h: Obsolete file.
123 * mipsm3-nat.c: Obsolete file.
124 * configure.host: Obsolete mips-dec-mach3*.
125 * configure.tgt: Obsolete mips*-*-mach3*.
127 2003-04-09 Andrew Cagney <cagney@redhat.com>
129 * doublest.h: Update copyright.
130 (deprecated_store_floating, deprecated_extract_floating): Rename
131 store_floating and extract_floating. Update comments.
132 * doublest.c: Update copyright.
133 (extract_floating_by_length): Replace extract_floating.
134 (store_floating_by_length): Replace store_floating.
135 (deprecated_extract_floating): New function.
136 (deprecated_store_floating): New function.
137 (extract_typed_floating): Call extract_floating_by_length.
138 (store_typed_floating): Call store_floating_by_length.
139 * x86-64-tdep.c (x86_64_store_return_value): Update.
140 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
141 (sh64_extract_return_value): Update.
142 (sh_sh4_register_convert_to_virtual): Update.
143 (sh_sh64_register_convert_to_virtual): Update.
144 (sh_sh4_register_convert_to_raw): Update.
145 (sh_sh64_register_convert_to_raw): Update.
146 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
147 (rs6000_register_convert_to_raw): Update.
148 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
149 (ia64_register_convert_to_raw): Update.
150 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
151 (REGISTER_CONVERT_TO_VIRTUAL): Update.
152 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
153 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
154 (alpha_register_convert_to_raw): Update.
156 2003-04-08 Andrew Cagney <cagney@redhat.com>
158 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
159 * gdbarch.h, gdbarch.c: Re-generate.
160 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
161 (d10v_gdbarch_init): Do not set saved_pc_after_call.
162 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
163 conditionally, use frame_pc_unwind as an alternative. Add
165 * arch-utils.c (init_frame_pc_default): Only call
166 SAVED_PC_AFTER_CALL when available.
168 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
170 * infrun.c (stop_soon): Rename from stop_soon_quietly.
171 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
172 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
173 (start_remote): Ditto.
174 (handle_inferior_event): Ditto.
175 (save_inferior_status): Ditto.
176 (restore_inferior_status): Ditto.
177 * infcmd.c (attach_command): Ditto.
178 * fork-child.c (startup_inferior): Ditto.
179 * inferior.h (stop_soon): Rename from stop_soon_quietly.
180 * alpha-tdep.c (heuristic_proc_start): Ditto.
181 * mips-tdep.c (heuristic_proc_start): Ditto.
182 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
183 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
184 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
185 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
186 * remote-vx.c (vx_create_inferior): Ditto.
188 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
190 * infrun.c (stop_soon_quietly): Make it an enum, to better
191 override the default behavior of handle_inferior_event.
192 (clear_proceed_status): Update uses of stop_soon_quietly to
193 reflect that it is now an enum.
194 (start_remote): Ditto.
195 (handle_inferior_event): Change logic a bit if stop_soon_quietly
196 is set to handle the new GNU/Linux kernel behavior for
197 attach/sigstop. Update uses of stop_soon_quietly.
198 * inferior.h (enum stop_kind): New enum.
199 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
200 Reset normal handle_inferior_event behavior, afterwards.
201 * fork-child.c (startup_inferior): Update.
202 * alpha-tdep.c (heuristic_proc_start): Update.
203 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
204 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
205 * solib-osf.c (osf_solib_create_inferior_hook): Update.
206 * solib-irix.c (irix_solib_create_inferior_hook): Update.
207 * remote-vx.c (vx_create_inferior): Update.
208 * mips-tdep.c (heuristic_proc_start): Update.
210 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
212 * disasm.c (dump_insns): Move variables inside loop, or they will
213 be freed more than once, causing wild memory corruptions.
214 (gdb_disassembly): Look for the substring "-thread",
215 instead of "-threads" in the target name, to make sure to find
216 the 'multi-thread' target. Also, make sure we do the right thing
217 with the "core" target.
219 2003-04-07 Kevin Buettner <kevinb@redhat.com>
221 * mips-tdep.c (mips_print_fp_register): New function, created from
222 do_fp_register_row(). Registers are now (also) printed as hex.
223 Only one register is printed per row.
224 (mips_print_register, do_fp_register_row): Print floating point
225 registers with mips_print_fp_register().
227 2003-04-06 Andrew Cagney <cagney@redhat.com>
229 * valprint.h (inspect_it): Add extern declaration.
230 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
231 (selectors_info, classes_info): Ditto.
232 (find_objc_msgcall): Fix indentation.
233 (objc_printstr): Delete extern declarations.
235 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
237 2003-04-06 Andrew Cagney <cagney@redhat.com>
239 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
241 * frame.c (legacy_saved_regs_this_id): Update.
242 (legacy_get_prev_frame): Update.
243 * xstormy16-tdep.c: Update comment.
244 * sparc-tdep.c (sparc_frame_chain): Update comment.
245 * blockframe.c (legacy_frame_chain_valid): Update.
247 2003-04-06 Andrew Cagney <cagney@redhat.com>
249 * valprint.c (val_print_type_code_int): Delete #ifdef
250 PRINT_TYPELESS_INTEGER code.
252 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
253 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
254 multi-arch definition.
255 * gdbarch.h: Re-generate.
257 2003-04-05 Andrew Cagney <cagney@redhat.com>
259 Eliminate FRAME_FIND_SAVED_REGS.
260 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
261 Change FSR parameter to a pointer.
262 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
263 Assume FSR parameter is a pointer.
264 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
266 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
267 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
268 saved_regs a pointer.
269 (hppa_frame_saved_pc): Ditto.
270 (find_dummy_frame_regs): Make frame_saved_regs a pointer
271 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
273 (restore_pc_queue): Make fsr a pointer.
274 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
275 (hppa_frame_chain): Make saved_regs a pointer, call
276 hppa_frame_init_saved_regs.
277 * sparc-tdep.c: Include "gdb_assert.h".
278 (sparc_frame_find_saved_regs): Replace internal_error with
280 * remote-vxsparc.c (vx_read_register): Delete reference to
281 FRAME_FIND_SAVED_REGS.
282 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
283 * gdbarch.h: Regenerate.
284 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
285 (deprecated_get_frame_saved_regs): Delete declaration.
286 (struct frame_saved_regs): Delete definition.
287 * frame.c (deprecated_get_frame_saved_regs): Delete function.
288 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
289 (hppa_frame_find_saved_regs): Delete declaration.
290 (FRAME_FIND_SAVED_REGS): Delete macro.
291 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
292 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
293 FRAME_FIND_SAVED_REGS in comment.
295 2003-04-05 Andrew Cagney <cagney@redhat.com>
297 * frame.c (frame_func_unwind, get_frame_func): New functions.
298 * frame.h (get_frame_func, frame_func_unwind): Declare.
299 (struct frame_info): Add field "prev_func" for caching the
300 previous frame's function address.
301 * arm-tdep.c (arm_frameless_function_invocation): Combine
302 get_pc_function_start and get_frame_pc into get_frame_func.
303 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
304 (sh64_nofp_frame_init_saved_regs): Ditto.
305 * s390-tdep.c (s390_function_start): Ditto.
306 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
307 (rs6000_frameless_function_invocation): Ditto.
308 (rs6000_frame_saved_pc): Ditto.
309 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
310 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
311 * i386-tdep.c (i386_frameless_signal_p): Ditto.
312 (i386_frame_init_saved_regs): Ditto.
313 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
314 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
315 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
316 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
317 * blockframe.c (frameless_look_for_prologue): Ditto.
319 2003-04-05 Andrew Cagney <cagney@redhat.com>
321 * frame.c (legacy_get_prev_frame): Link prev to next at the
322 function start. Update comments.
324 2003-04-05 Andrew Cagney <cagney@redhat.com>
326 * frame.c (get_frame_id): Update comment.
327 (legacy_get_prev_frame): Update comment.
328 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
329 * gdbarch.h: Regenerate.
330 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
331 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
333 2003-04-05 Andrew Cagney <cagney@redhat.com>
335 * stack.c (print_frame_info): Use get_frame_pc.
337 2003-04-04 Andrew Cagney <cagney@redhat.com>
339 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
340 the frame's type from the unwinder.
341 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
342 (create_new_frame, legacy_get_prev_frame): When the unwinder's
343 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
344 (get_frame_base_address): Use get_frame_type.
345 (get_frame_locals_address, get_frame_args_address): Ditto.
346 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
347 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
348 (struct frame_info): Add comment explaining why the frame contains
350 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
351 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
352 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
354 * frame-unwind.h: Include "frame.h".
355 (struct frame_unwind): Add "type" field.
356 * Makefile.in (frame_unwind_h): Add $(frame_h).
358 2003-04-04 Andrew Cagney <cagney@redhat.com>
360 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
361 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
362 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
364 (d10v_unwind_dummy_id): Use frame_id_build.
365 * frame.c (find_frame_sal): Use get_frame_pc.
366 (create_new_frame): Use deprecated_update_frame_pc_hack and
367 deprecated_update_frame_base_hack.
368 (create_sentinel_frame): Add comment about ->pc going away.
369 (get_prev_frame): Add comment about ->pc going away.
370 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
371 frame_id_build, deprecated_update_frame_pc_hack and
372 deprecated_update_frame_base_hack.
373 (select_frame): Use get_frame_pc.
374 (legacy_saved_regs_this_id): Use frame_id_build.
376 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
378 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
380 (classify_argument): Handle enumerations and references.
382 2003-04-04 Andrew Cagney <cagney@redhat.com>
384 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
387 2003-04-01 Adam Fedor <fedor@gnu.org>
389 * gdb/objc-lang.c (selectors_info): Replace calls to
390 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
392 (classes_info, find_methods): Likewise.
394 2003-04-03 Kevin Buettner <kevinb@redhat.com>
396 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
397 ``mach'' to the value determined by bfd_default_set_arch_mach().
399 2003-04-02 Bob Rossi <bob_rossi@cox.net>
401 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
402 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
403 (mi-cmd-file.o): Update dependencies.
405 2003-04-01 Kevin Buettner <kevinb@redhat.com>
407 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
408 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
410 2003-04-01 Adam Fedor <fedor@gnu.org>
412 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
413 * language.h (struct language_defn): Add la_demangle.
414 (language_demangle): Declare.
415 * language.c (language_demangle): New function.
416 (unk_lang_demangle): Likewise.
417 (unknown_language_defn, auto_language_defn, local_language_defn):
418 Add ukn_lang_demangle.
419 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
420 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
421 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
422 (cplus_language_defn): Add cplus_demangle for la_demangle element.
423 * jv-lang.c (java_demangle): New function
424 (java_language_defn): Use it for la_demangle element.
425 * objc-lang.c (objc_demangle): Add options argument
426 (objc_language_defn): Use objc_demangle for la_demangle element.
427 * maint.c (maintenance_demangle): Replace switch with
428 call to language_demangle.
429 * utils.c (fprintf_symbol_filtered): Likewise.
431 2003-04-01 Andrew Cagney <cagney@redhat.com>
433 * printcmd.c (print_frame_nameless_args): Delete #ifdef
434 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
435 PRINT_TYPELESS_INTEGER.
436 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
439 2003-04-01 Andrew Cagney <cagney@redhat.com>
441 * Makefile.in (d10v-tdep.o): Update dependencies.
442 * d10v-tdep.c: Include "frame-base.h".
443 (d10v_frame_unwind): Make constant.
444 (d10v_frame_base_address): New function.
445 (d10v_frame_base): New variable.
446 (d10v_gdbarch_init): Set frame_base default.
447 (struct d10v_unwind_cache): Add the field "prev_sp". Update
449 (d10v_frame_unwind_cache): Set and use "prev_sp".
450 (d10v_frame_this_id): Use the previous frame's inner most stack
451 address and this frame's func address for the frame ID. Use
452 frame_id_build. Don't analyze beyond the current instruction.
454 2003-04-01 Andrew Cagney <cagney@redhat.com>
456 * frame.h (get_frame_locals_address, get_frame_args_address):
457 Refer to the base address, instead of the address of the first
460 2003-04-01 Andrew Cagney <cagney@redhat.com>
462 Add frame debug info addresses:
463 * frame-base.c: New file.
464 * frame-base.h: New file.
465 * frame.h (struct frame_base): Add opaque declaration.
466 (get_frame_base): Update comment.
467 (get_frame_base_address): Declare.
468 (get_frame_locals_address): Declare.
469 (get_frame_args_address): Declare.
470 (struct frame_info): Add "base" and "base_cache". Update
471 comments on the unwinder.
472 * frame.c: Include "frame-base.h".
473 (get_frame_locals_address): New function.
474 (get_frame_base_address): New function.
475 (get_frame_args_address): New function.
476 * findvar.c (read_var_value): Use get_frame_locals_address and
477 get_frame_args_address.
478 * stack.c (frame_info): Use get_frame_locals_address and
479 get_frame_args_address.
480 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
481 moved to "frame-base.c".
482 * printcmd.c (print_frame_nameless_args): Ditto.
483 * symtab.h (address_class): Update comments.
484 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
485 get_frame_base_address.
486 * dwarf2expr.c (execute_stack_op): Ditto.
487 * Makefile.in (frame_base_h): Define.
488 (frame.o): Update dependencies.
489 (frame-base.o): Add dependencies.
490 (SFILES): Add frame-base.c.
491 (COMMON_OBS): Add frame-base.o.
493 2003-04-01 Andrew Cagney <cagney@redhat.com>
495 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
496 CALL_DUMMY_LENGTH): Ditto.
497 * gdbarch.c: Re-generate.
498 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
499 (CALL_DUMMY_LENGTH): Delete macro.
500 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
501 * arm-tdep.c (arm_gdbarch_init): Ditto.
502 * avr-tdep.c (avr_gdbarch_init): Ditto.
503 * cris-tdep.c (cris_gdbarch_init): Ditto.
504 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
505 * frv-tdep.c (frv_gdbarch_init): Ditto.
506 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
507 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
508 * i386-tdep.c (i386_gdbarch_init): Ditto.
509 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
511 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
512 * mips-tdep.c (mips_gdbarch_init): Ditto.
513 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
514 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
515 * s390-tdep.c (s390_gdbarch_init): Ditto.
516 * sh-tdep.c (sh_gdbarch_init): Ditto.
517 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
518 * v850-tdep.c (v850_gdbarch_init): Ditto.
519 * vax-tdep.c (vax_gdbarch_init): Ditto.
520 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
522 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
524 * frame.c (get_prev_frame): Disable call to inside_entry_file().
526 2003-04-01 Andrew Cagney <cagney@redhat.com>
528 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
529 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
530 * gdbarch.h, gdbarch.c: Re-generate.
531 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
532 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
533 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
534 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
535 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
536 * infcmd.c (run_stack_dummy): Simplify assuming
537 CALL_DUMMY_BREAKPOINT_OFFSET_P.
538 * infrun.c (handle_inferior_event): Ditto.
539 * alpha-tdep.c (alpha_gdbarch_init): Do not set
540 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
541 * arm-tdep.c (arm_gdbarch_init): Ditto.
542 * avr-tdep.c (avr_gdbarch_init): Ditto.
543 * cris-tdep.c (cris_gdbarch_init): Ditto.
544 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
545 * frv-tdep.c (frv_gdbarch_init): Ditto.
546 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
547 * i386-tdep.c (i386_gdbarch_init): Ditto.
548 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
549 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
550 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
551 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
552 * mips-tdep.c (mips_gdbarch_init): Ditto.
553 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
554 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
555 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
556 * s390-tdep.c (s390_gdbarch_init): Ditto.
557 * sh-tdep.c (sh_gdbarch_init): Ditto.
558 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
559 * v850-tdep.c (v850_gdbarch_init): Ditto.
560 * vax-tdep.c (vax_gdbarch_init): Ditto.
561 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
563 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
565 * symfile.c (symfile_relocate_debug_section): Update call to
566 bfd_simple_get_relocated_section_contents.
568 2003-03-31 Andrew Cagney <cagney@redhat.com>
570 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
571 * gdbarch.h, gdbarch.c: Regenerate.
572 * inferior.h (FIX_CALL_DUMMY): Delete macro.
573 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
575 * frame.h (generic_fix_call_dummy): Delete declaration.
576 * dummy-frame.h: Update comment.
577 * dummy-frame.c (generic_fix_call_dummy): Delete function.
578 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
580 * sh-tdep.c (sh_gdbarch_init): Ditto.
581 * s390-tdep.c (s390_gdbarch_init): Ditto.
582 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
583 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
584 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
585 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
586 * i386-tdep.c (i386_gdbarch_init): Ditto.
587 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
588 * frv-tdep.c (frv_gdbarch_init): Ditto.
589 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
590 * cris-tdep.c (cris_gdbarch_init): Ditto.
591 * avr-tdep.c (avr_gdbarch_init): Ditto.
592 * arm-tdep.c (arm_gdbarch_init): Ditto.
594 2003-03-31 J. Brobecker <brobecker@gnat.com>
596 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
597 (INIT_FRAME_AP): Likewise.
598 (EXTRA_FRAME_INFO): Likewise.
600 2003-03-31 Andrew Cagney <cagney@redhat.com>
602 * gdbarch.sh: Include "symfile.h".
603 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
604 * gdbarch.h, gdbarch.c: Re-generate.
605 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
606 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
607 call_dummy_address, the default is at entry_point_address.
608 * v850-tdep.c (v850_gdbarch_init): Ditto.
609 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
610 * sh-tdep.c (sh_gdbarch_init): Ditto.
611 * s390-tdep.c (s390_gdbarch_init): Ditto.
612 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
613 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
614 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
615 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
616 * i386-tdep.c (i386_gdbarch_init): Ditto.
617 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
618 * frv-tdep.c (frv_gdbarch_init): Ditto.
619 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
620 * cris-tdep.c (cris_gdbarch_init): Ditto.
621 * arm-tdep.c (arm_gdbarch_init): Ditto.
623 2003-03-31 Andrew Cagney <cagney@redhat.com>
625 * gdbarch.sh (CALL_DUMMY_P): Delete.
626 * gdbarch.h, gdbarch.c: Re-generate.
627 * inferior.h (CALL_DUMMY_P): Delete macro.
628 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
629 * vax-tdep.c (vax_gdbarch_init): Update.
630 * v850-tdep.c (v850_gdbarch_init): Update.
631 * sparc-tdep.c (sparc_gdbarch_init): Update.
632 * sh-tdep.c (sh_gdbarch_init): Update.
633 * s390-tdep.c (s390_gdbarch_init): Update.
634 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
635 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
636 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
637 * mips-tdep.c (mips_gdbarch_init): Update.
638 * mcore-tdep.c (mcore_gdbarch_init): Update.
639 * m68k-tdep.c (m68k_gdbarch_init): Update.
640 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
641 * ia64-tdep.c (ia64_gdbarch_init): Update.
642 * i386-tdep.c (i386_gdbarch_init): Update.
643 * h8300-tdep.c (h8300_gdbarch_init): Update.
644 * frv-tdep.c (frv_gdbarch_init): Update.
645 * d10v-tdep.c (d10v_gdbarch_init): Update.
646 * cris-tdep.c (cris_gdbarch_init): Update.
647 * breakpoint.c (deprecated_frame_in_dummy): Update.
648 * avr-tdep.c (avr_gdbarch_init): Update.
649 * alpha-tdep.c (alpha_gdbarch_init): Update.
650 * arm-tdep.c (arm_gdbarch_init): Update.
651 * dummy-frame.c (dummy_frame_this_id): Update comments.
652 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
653 * frame.c (legacy_get_prev_frame): Ditto.
654 * valops.c (call_function_by_hand): Delete function.
655 (hand_function_call): Rename to call_function_by_hand
657 2003-03-30 Andrew Cagney <cagney@redhat.com>
659 2002-11-10 Klee Dienes <kdienes@apple.com>
660 * value.h (struct value): Update comment.
662 2003-03-30 Andrew Cagney <cagney@redhat.com>
664 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
666 (d10v_gdbarch_init): Do not set fp_regnum.
668 * frame.c (get_frame_base): Force ID initialization.
669 (get_prev_frame): Move computation of the frame ID from here ...
670 (get_frame_id): ... to here.
671 (legacy_get_prev_frame): Mark the frame ID as valid.
672 * frame.h (struct frame_info): Add field "id_p".
674 2003-03-30 Mark Kettenis <kettenis@gnu.org>
676 * i386-tdep.c (i386_store_struct_return): Removed.
677 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
679 2003-03-30 Andrew Cagney <cagney@redhat.com>
681 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
682 * gdbarch.h, gdbarch.c: Regenerate.
683 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
684 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
685 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
686 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
687 * i386-tdep.c (i386_gdbarch_init): Ditto.
688 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
689 * cris-tdep.c (cris_gdbarch_init): Ditto.
690 * vax-tdep.c (vax_gdbarch_init): Ditto.
691 * s390-tdep.c (s390_gdbarch_init): Ditto.
692 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
693 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
694 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
695 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
696 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
697 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
698 * sparc-tdep.c (sparc_gdbarch_init): Update.
699 * sh-tdep.c (sh_gdbarch_init): Update.
700 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
701 * mips-tdep.c (mips_gdbarch_init): Update.
702 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
703 * ia64-tdep.c (ia64_gdbarch_init): Update.
704 * frv-tdep.c (frv_gdbarch_init): Update.
705 * avr-tdep.c (avr_gdbarch_init): Update.
706 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
707 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
708 instead of when push_dummy_call is not available.
710 2003-03-30 Andrew Cagney <cagney@redhat.com>
712 * infttrace.c: Include "gdbthread.h".
713 (parent_attach_all): Fix function signature.
714 (call_ptrace): Update call.
715 * Makefile.in (infttrace.o): Update dependencies.
717 2003-03-30 Andrew Cagney <cagney@redhat.com>
719 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
721 * gdbarch.h, gdbarch.c: Regenerate.
722 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
723 * x86-64-tdep.c (x86_64_init_abi): Update.
724 * v850-tdep.c (v850_gdbarch_init): Update.
725 * sparc-tdep.c (sparc_gdbarch_init): Update.
726 * sh-tdep.c (sh_gdbarch_init): Update.
727 * s390-tdep.c (s390_gdbarch_init): Update.
728 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
729 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
730 * mips-tdep.c (mips_gdbarch_init): Update.
731 * mcore-tdep.c (mcore_gdbarch_init): Update.
732 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
733 * ia64-tdep.c (ia64_gdbarch_init): Update.
734 * i386-tdep.c (i386_gdbarch_init): Update.
735 * h8300-tdep.c (h8300_gdbarch_init): Update.
736 * frv-tdep.c (frv_gdbarch_init): Update.
737 * cris-tdep.c (cris_gdbarch_init): Update.
738 * avr-tdep.c (avr_gdbarch_init): Update.
739 * arm-tdep.c (arm_gdbarch_init): Update.
740 * valops.c (hand_function_call): Update.
742 2003-03-29 Andrew Cagney <cagney@redhat.com>
744 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
745 sizeof_call_dummy_words.
746 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
748 * gdbarch.h: Regenerate.
750 2003-03-29 Andrew Cagney <cagney@redhat.com>
752 * infttrace.h: New file.
753 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
754 (hpread_get_textlow): Detect an uninitialized dn_bufp.
755 (hpread_read_doc_function_type): Detect an initialized type1.
756 (hpread_quick_traverse): Initialize mod_name_string.
757 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
758 (som_solib_get_solib_by_pc): Declare.
759 (so_lib_thread_start_addr): Declare.
760 (no_shared_libraries): Declare.
761 * somread.c (init_import_symbols): Make static. Add forward
763 * config/pa/nm-hppah.h: Include "infttrace.h" for
765 (hppa_insert_hw_watchpoint): Declare.
766 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
767 * hppah-nat.c: Include "gdb_string.h".
768 (parent_attach_all): Delete extern declaration, moved to
770 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
772 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
773 * Makefile.in (infttrace_h): Define.
774 (hpread.o): Update dependencies.
775 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
776 * hppa-hpux-tdep.c: Include "gdb_string.h".
777 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
778 * infrun.c (handle_inferior_event): Always initialize
779 stepped_after_stopped_by_watchpoint. Add default and remove
780 fallthrough in switch statement.
781 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
783 (hppa_remove_hw_watchpoint): Ditto.
785 2003-03-29 Andrew Cagney <cagney@redhat.com>
787 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
790 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
792 * arm-tdep.c (arm_push_arguments): Delete.
793 (struct stack_item): New type.
794 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
795 (arm_store_struct_return): Delte.
796 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
797 arm_push_arguments or arm_store_struct_return.
799 2003-03-28 Andrew Cagney <cagney@redhat.com>
801 * Makefile.in (d10v-tdep.o): Update dependencies.
802 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
803 * d10v-tdep.c: Include "remote.h".
804 (target_resume_hook): Delete extern declaration.
805 (target_wait_loop_hook): Ditto.
806 (tdisassemble_command): Eliminate assignment in "if" conditional.
807 (d10v_ts2_register_sim_regno): Eliminate call to
808 legacy_register_sim_regno.
809 (d10v_ts3_register_sim_regno): Ditto.
811 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
813 * thread.c: Reindented.
815 * linux-proc.c: Ditto.
817 2003-03-28 Bob Rossi <bob_rossi@cox.net>
819 * MAINTAINERS (write after approval): Add myself.
821 2003-03-27 Theodore A. Roth <troth@openavr.org>
823 * objc-exp.y: Add missing semi-colons.
825 2003-03-27 Andrew Cagney <cagney@redhat.com>
827 * regcache.c (write_sp): Delete function and references.
828 * inferior.h (write_sp): Delete declaration.
829 * valops.c (hand_function_call): Replace write_sp with
831 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
832 (sparc_pop_frame): Ditto.
834 2003-03-27 Andrew Cagney <cagney@redhat.com>
836 * NEWS: Mention removal of support for hppa*-*-bsd* and
837 hppa*-*-osf* natives, and hppa*-*-pro* target.
838 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
839 * config/pa/xm-pa.h: Obsolete file.
840 * config/pa/xm-hppab.h: Obsolete file.
841 * config/pa/nm-hppab.h: Obsolete file.
842 * config/pa/tm-hppab.h: Obsolete file.
843 * config/pa/tm-hppao.h: Obsolete file.
844 * config/pa/nm-hppao.h: Obsolete file.
845 * config/pa/tm-pro.h: Obsolete file.
846 * config/pa/hppaosf.mt: Obsolete file.
847 * config/pa/hppaosf.mh: Obsolete file.
848 * config/pa/hppapro.mt: Obsolete file.
849 * config/pa/hppabsd.mt: Obsolete file.
850 * config/pa/hppabsd.mh: Obsolete file.
851 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
852 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
855 2003-03-27 Andrew Cagney <cagney@redhat.com>
857 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
858 push_arguments. Don't set push_return_address or write_sp.
859 (d10v_push_dummy_call): Replace d10v_push_arguments.
860 (d10v_push_return_address, d10v_write_sp): Delete function,
861 handled by push_dummy_call.
863 2003-03-26 Andrew Cagney <cagney@redhat.com>
865 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
866 (push_dummy_call): New pure multi-arch replacement with gdbarch,
867 regcache and dummy_addr parameters.
868 * gdbarch.h, gdbarch.c: Re-generate.
869 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
870 available; assume it will handle stack alignment and return
871 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
872 legacy_push_arguments.
873 (legacy_push_arguments): Rename default_push_arguments.
874 * value.h (legacy_push_arguments): Rename default_push_arguments.
875 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
876 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
877 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
878 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
879 * config/i386/tm-symmetry.h: Update.
880 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
881 * x86-64-tdep.c (x86_64_init_abi): Update.
882 * v850-tdep.c (v850_gdbarch_init): Update.
883 * sparc-tdep.c (sparc_gdbarch_init): Update.
884 * sh-tdep.c (sh_gdbarch_init): Update.
885 * s390-tdep.c (s390_gdbarch_init): Update.
886 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
887 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
888 * mips-tdep.c (mips_gdbarch_init): Update.
889 * mcore-tdep.c (mcore_gdbarch_init): Update.
890 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
891 * ia64-tdep.c (ia64_gdbarch_init): Update.
892 * i386-tdep.c (i386_gdbarch_init): Update.
893 * hppa-tdep.c (hppa_gdbarch_init): Update.
894 * h8300-tdep.c (h8300_gdbarch_init): Update.
895 * frv-tdep.c (frv_gdbarch_init): Update.
896 * d10v-tdep.c (d10v_gdbarch_init): Update.
897 * cris-tdep.c (cris_gdbarch_init): Update.
898 * avr-tdep.c (avr_gdbarch_init): Update.
899 * arm-tdep.c (arm_gdbarch_init): Update.
900 * arm-linux-tdep.c (arm_linux_init_abi): Update.
901 * alpha-tdep.c (alpha_gdbarch_init): Update.
903 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
905 * signals/signals.c (do_target_signal_to_host): Correct realtime
908 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
910 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
911 (struct sal_chain, map_catch_names): Remove.
912 (catch_exception_command_1): Don't call
913 handle_gnu_4_16_catch_command.
915 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
917 From Mark Dettinger <dettinge@de.ibm.com>:
918 * dwarf2cfi.c (read_2u): Increment pointer by two.
920 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
922 * signals/signals.c: Fix typos in last change.
924 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
926 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
927 not already defined. Use __SIGRTMIN if available.
928 (target_signal_from_host): Remove SIGRTMIN block.
929 (do_target_signal_to_host): Remove SIGRTMIN block; check that
930 the signal is within the realtime range.
932 2003-03-25 Adam Fedor <fedor@gnu.org>
934 * Makefile.in (infrun.o): Add $(language_h)
935 * infrun.c (handle_inferior_event): Use skip_language_trampoline
936 for language specific trampolines.
937 * language.h (struct language_defn): Add skip_trampoline.
938 (skip_language_trampoline): Declare.
939 * language.c (unk_lang_trampoline, skip_language_trampoline):
941 (unknown_language_defn, auto_language_defn, local_language_defn):
942 Add ukn_lang_trampoline.
943 * ada-lang.c (ada_language_defn): Add NULL for language
944 specific skip_trampoline.
945 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
946 scm-lang.c: Likewise.
947 * objc-lang.c (objc_skip_trampoline): New function.
948 (objc_language_defn): Add objc_skip_trampoline.
950 2003-03-25 Andrew Cagney <cagney@redhat.com>
952 * frame.c (get_prev_frame): Delay validating a frame's ID -
953 non-NULL, didn't go backwards - until an attempt to unwind it to
956 2003-03-25 Andrew Cagney <cagney@redhat.com>
958 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
959 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
960 * gdbarch.h, gdbarch.c: Re-generate.
961 * config/sparc/tm-sparc.h
962 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
963 * sparc-tdep.c (sparc_gdbarch_init): Set
964 deprecated_extra_stack_alignment_needed.
965 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
966 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
967 extra_stack_alignment_needed.
968 * v850-tdep.c (v850_gdbarch_init): Ditto.
969 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
970 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
971 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
972 * cris-tdep.c (cris_gdbarch_init): Ditto.
973 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
974 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
976 2003-03-25 Andrew Cagney <cagney@redhat.com>
978 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
980 * gdbarch.h, gdbarch.c: Regenerate.
981 * d10v-tdep.c (d10v_store_struct_return): Delete function.
982 (d10v_push_arguments): Set the struct return register.
983 (d10v_gdbarch_init): Update.
984 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
985 * x86-64-tdep.c (x86_64_init_abi): Update.
986 * vax-tdep.c (vax_gdbarch_init): Update.
987 * v850-tdep.c (v850_gdbarch_init): Update.
988 * sparc-tdep.c (sparc_gdbarch_init): Update.
989 * sh-tdep.c (sh_gdbarch_init): Update.
990 * s390-tdep.c (s390_gdbarch_init): Update.
991 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
992 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
993 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
994 * mips-tdep.c (mips_gdbarch_init): Update.
995 * mcore-tdep.c (mcore_gdbarch_init): Update.
996 * m68k-tdep.c (m68k_gdbarch_init): Update.
997 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
998 * ia64-tdep.c (ia64_gdbarch_init): Update.
999 * i386-tdep.c (i386_gdbarch_init): Update.
1000 * hppa-tdep.c (hppa_gdbarch_init): Update.
1001 * h8300-tdep.c (h8300_gdbarch_init): Update.
1002 * frv-tdep.c (frv_gdbarch_init): Update.
1003 * cris-tdep.c (cris_gdbarch_init): Update.
1004 * avr-tdep.c (avr_gdbarch_init): Update.
1005 * arm-tdep.c (arm_gdbarch_init): Update.
1006 * alpha-tdep.c (alpha_gdbarch_init): Update.
1008 2003-03-25 Andrew Cagney <cagney@redhat.com>
1010 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
1011 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
1012 CALL_DUMMY_STACK_ADJUST with a predicate variable.
1013 * gdbarch.h, gdbarch.c: Regenerate.
1014 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1015 call_dummy_stack_adjust_p.
1016 * vax-tdep.c (vax_gdbarch_init): Ditto.
1017 * v850-tdep.c (v850_gdbarch_init): Ditto.
1018 * sh-tdep.c (sh_gdbarch_init): Ditto.
1019 * s390-tdep.c (s390_gdbarch_init): Ditto.
1020 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1021 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1022 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1023 * mips-tdep.c (mips_gdbarch_init): Ditto.
1024 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1025 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1026 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1027 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1028 * i386-tdep.c (i386_gdbarch_init): Ditto.
1029 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1030 * frv-tdep.c (frv_gdbarch_init): Ditto.
1031 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1032 * cris-tdep.c (cris_gdbarch_init): Ditto.
1033 * avr-tdep.c (avr_gdbarch_init): Ditto.
1034 * arm-tdep.c (arm_gdbarch_init): Ditto.
1035 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1036 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
1037 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
1038 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
1039 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
1040 call_dummy_stack_adjust_p.
1041 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
1042 (CALL_DUMMY_STACK_ADJUST): Delete macro.
1043 * sparc-tdep.c (sparc32_push_arguments): Update.
1044 * valops.c (hand_function_call): Update.
1046 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
1048 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
1049 set_gdbarch_char_signed.
1051 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
1054 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
1056 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
1058 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
1059 (_initialize_arm_tdep): Don't set tm_print_insn.
1061 2003-03-24 Adam Fedor <fedor@gnu.org>
1063 * Makefile.in (YYOBJ): Add objc-exp.tab.o
1064 * objc-lang.h: Add multiple inclusion protection.
1065 (start_msglist, add_msglist, end_msglist): Additional declarations.
1067 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
1069 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
1070 value was renamed to ARM_FLOAT_SOFT_FPA.
1072 2003-03-23 Andrew Cagney <cagney@redhat.com>
1074 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
1075 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
1076 * gdbarch.h, gdbarch.c: Regenerate.
1077 * valops.c (hand_function_call): Update.
1078 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
1079 * frame.c (legacy_saved_regs_this_id): Update.
1080 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
1081 * dummy-frame.h: Update.
1082 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
1083 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
1084 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
1085 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
1086 * config/m68k/tm-sun3.h: Update.
1087 * blockframe.c (inside_main_func, frame_chain_valid): Update.
1088 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1089 * x86-64-tdep.c (x86_64_init_abi): Update.
1090 * vax-tdep.c (vax_gdbarch_init): Update.
1091 * v850-tdep.c (v850_gdbarch_init): Update.
1092 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
1093 * sh-tdep.c (sh_gdbarch_init): Update.
1094 * s390-tdep.c (s390_gdbarch_init): Update.
1095 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1096 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
1097 (frame_get_saved_regs): Update.
1098 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1099 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1100 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1101 * mips-tdep.c (mips_gdbarch_init): Update.
1102 * mcore-tdep.c (mcore_gdbarch_init): Update.
1103 * m68k-tdep.c (m68k_gdbarch_init): Update.
1104 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1105 * ia64-tdep.c (ia64_gdbarch_init): Update.
1106 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
1107 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1108 (i386_interix_back_one_frame): Update.
1109 * hppa-tdep.c (hppa_gdbarch_init): Update.
1110 (hppa_init_extra_frame_info): Update.
1111 * h8300-tdep.c (h8300_gdbarch_init): Update.
1112 * frv-tdep.c (frv_gdbarch_init): Update.
1113 * cris-tdep.c (cris_gdbarch_init): Update.
1114 * avr-tdep.c (avr_gdbarch_init): Update.
1115 * arm-tdep.c (arm_gdbarch_init): Update.
1116 * alpha-tdep.c (alpha_gdbarch_init): Update.
1118 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1120 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
1121 (arm_get_fp_model): Declare.
1122 * arm-tdep.c (fp_model_strings): New string array.
1123 (arm_fp_model, current_fp_model): New variables.
1124 (arm_get_fp_model): New function.
1125 (arm_set_fp): New function.
1126 (set_fp_model_sfunc): New function.
1127 (show_fp_model): New function.
1128 (_initialize_arm_tdep): Add new command to set/show the FPU.
1129 (arm_extract_return_value): Use arm_get_fp_model.
1130 (arm_store_return_value): Likewise.
1131 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
1132 to initialize the floating-point data types.
1133 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
1136 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1138 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
1139 the current setting of each value.
1140 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
1141 new_set and new_show. Use add_setshow_cmd_full and
1142 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
1143 commands and add new version as subcommands of "set/show arm".
1145 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1147 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
1148 (set_arm_command, show_arm_command): New functions.
1149 (_initialize_arm_tdep): Add them.
1150 (num_disassembly_options): Renamed from num_flavor_options.
1151 (valid_disassembly_styles): Renamed from valid_flavors.
1152 (disassembly_style): Renamed from disassembly_flavor.
1153 (set_disassembly_style_sfunc): Renamed from
1154 set_disassembly_flavor_sfunc.
1155 (set_disassembly_style): Renamed from set_disassembly_flavor.
1156 (arm_othernames): Updated.
1157 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
1158 command. Add "set/show arm disassembly" commands. Deprecate
1159 "othernames" command.
1161 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1163 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
1164 (arm-tdep.o): Depend on elf_arm_h.
1166 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1168 * Makefile.in (coff_internal_h): Define.
1169 (arm-tdep.o): Update dependencies.
1171 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1173 * arm-tdep.c (prologue_cache): Delete.
1174 (check_prologue_cache, save_prologue_cache): Delete.
1175 (arm_scan_prologue): Don't check or update the prologue_cache.
1176 (arm_gdb_arch_init): Don't initialize it.
1177 (_initialize_arm_tdep): Likewise.
1179 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
1181 * MAINTAINERS (tui): Maintainer of tui code.
1183 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
1185 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
1186 (i386-cygwin-tdep.o): Add dependencies.
1187 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
1188 * i386-cygwin-tdep.c: New file.
1189 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
1190 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
1192 2003-03-20 Andrew Cagney <cagney@redhat.com>
1194 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
1195 (handle_inferior_event): Remove code calling
1196 DYNAMIC_TRAMPOLINE_NEXTPC.
1198 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
1199 already has a full path.
1201 * main.c (gdb_main): Return 1.
1202 (captured_main): Call error to report an invalid interpreter.
1204 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
1205 * alpha-osf1-tdep.c: Include "gdb_string.h".
1207 2003-03-19 J. Brobecker <brobecker@gnat.com>
1209 Continuing work to convert the hppa targets to multiarch partial.
1211 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
1212 method, now that hppa_push_dummy_frame has a conformant prototype.
1213 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
1214 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
1215 for the switch to multiarch partial.
1217 2003-03-19 Kevin Buettner <kevinb@redhat.com>
1219 * mdebugread.c (parse_symbol): For stEnd, we're done counting
1220 when iss is issNull.
1222 2003-03-18 Kevin Buettner <kevinb@redhat.com>
1224 * mips-tdep.c (mips_register_name): Fix fencepost error involving
1225 NUM_REGS bounds check.
1227 2003-03-18 Kevin Buettner <kevinb@redhat.com>
1229 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
1230 * mips-tdep.c (gdb_assert.h): Include.
1231 (mips_generic_reg_names, mips_processor_reg_names): Make static.
1232 (mips_register_name): Handle integer registers explicitly. Add
1234 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
1235 (mips_lsi33k_reg_names): Don't list integer registers; they're
1236 handled by mips_register_name() now.
1237 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
1238 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
1239 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
1240 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
1241 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
1243 2003-03-18 Andrew Cagney <cagney@redhat.com>
1245 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
1247 * gdbtypes.h (print_scalar_formatted): Update declaration.
1248 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
1250 2003-03-18 J. Brobecker <brobecker@gnat.com>
1252 * infrun.c (observer.h): Add #include.
1253 (normal_stop): Add call to observer_notify_normal_stop.
1254 * Makefile.in (infrun.o): Add dependency on observer.h.
1256 2003-03-18 J. Brobecker <brobecker@gnat.com>
1258 Continuing work to convert the hppa targets to multiarch partial.
1259 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
1260 parameter. Reformat comment.
1261 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
1262 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
1263 to match new profile.
1265 2003-03-18 J. Brobecker <brobecker@gnat.com>
1267 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
1268 appear to be working in any case.
1270 2003-03-18 J. Brobecker <brobecker@gnat.com>
1272 * observer.c (observer_test_first_observer): New static variable.
1273 (observer_test_second_observer): Likewise.
1274 (observer_test_third_observer): Likewise.
1275 (observer_test_first_notification_function): New static function.
1276 (observer_test_second_notification_function): Likewise.
1277 (observer_test_third_notification_function): Likewise.
1279 2003-03-17 J. Brobecker <brobecker@gnat.com>
1281 * hppa-tdep.c (gdb_assert.h): Add missing #include.
1282 * somsolib.c (gdb_assert.h): Likewise.
1283 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
1284 (somsolib.o): Likewise.
1286 2003-03-17 Andrew Cagney <cagney@redhat.com>
1288 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
1289 BFD. Simplify setting of di.endian.
1291 2003-03-17 Andrew Cagney <cagney@redhat.com>
1293 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
1294 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
1296 From Elena Zannoni <ezannoni@redhat.com>
1297 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
1298 vector and floating-point parameters.
1299 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
1301 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
1303 2003-03-17 Fernando Nasser <fnasser@redhat.com>
1305 * MAINTAINERS: Remove my name from several maintainership roles.
1307 2003-03-17 Andrew Cagney <cagney@redhat.com>
1309 Fix frame off-by-one bug.
1310 * frame-unwind.h (frame_this_id_ftype): Replace
1311 frame_unwind_id_ftype.
1312 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
1313 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
1314 with "prev_register".
1315 * frame-unwind.c (frame_unwind_find_by_pc): Return
1316 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
1318 * dummy-frame.c (cached_find_dummy_frame): Delete function.
1319 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
1320 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
1321 (dummy_frame_unwind): Update.
1322 * sentinel-frame.c (sentinel_frame_prev_register): Replace
1323 sentinel_frame_register_unwind.
1324 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
1325 (sentinel_frame_unwinder): Update.
1326 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1327 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
1328 * frame.c (create_sentinel_frame): Update. Initialize
1329 "prologue_cache" instead of "unwind_cache".
1330 (frame_register_unwind): Call this frame's prev_register with the
1331 next frame and this frame's prologue cache.
1332 (get_prev_frame): Simplify. Always call prev frame's this_id with
1333 this frame and prev frame's prologue cache. Document that this
1334 call is shifted one to the left when compared to the
1335 frame_register_unwind call.
1336 (legacy_saved_regs_prev_register): Replace
1337 frame_saved_regs_register_unwind.
1338 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
1339 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
1340 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1341 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
1342 (d10v_frame_unwind): Update.
1343 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
1344 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
1345 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
1346 "saved_regs" with "this_saved_regs".
1348 2003-03-16 Andrew Cagney <cagney@redhat.com>
1350 * frame.c (frame_pop): Don't call target_store_registers. Fix
1351 problem reported by Mark Kettenis.
1353 2003-03-16 Mark Kettenis <kettenis@gnu.org>
1355 * i386-tdep.c (i386_register_type): Renamed from
1356 i386_register_virtual_type. Adjust function signature.
1357 (i386_gdbarch_init): Set register_type instead of
1358 deprecated_max_register_raw_size,
1359 deprecated_max_register_virtual_size and register_virtual_type.
1361 2003-03-14 Andrew Cagney <cagney@redhat.com>
1363 * frame.c (get_prev_frame): When a legacy frame, always call
1364 legacy_get_prev_frame. Simplify unwind code using assumption that
1365 the unwinder is new.
1366 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
1367 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
1368 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
1370 2003-03-14 Andrew Cagney <cagney@redhat.com>
1372 * frame.c (get_saved_register): Delete function.
1373 * frame.h (get_saved_register): Delete declaration.
1374 * xstormy16-tdep.c: Update comment.
1375 * regcache.h: Update comments.
1376 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
1377 get_saved_register and extract_address, use
1378 frame_read_unsigned_register.
1379 (sparc_frame_saved_pc): Ditto.
1380 (sparc_get_saved_register): Instead of get_saved_register, use
1382 (sparc_pop_frame): Ditto.
1383 * findvar.c: Update comments.
1384 (value_of_register): Call frame_register instead of
1386 (value_from_register): Ditto.
1387 * config/sparc/tm-sparc.h: Update comment.
1388 * breakpoint.c: Update comment.
1390 2003-03-14 Andrew Cagney <cagney@redhat.com>
1392 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
1394 * gdbarch.h, gdbarch.c: Re-generate.
1395 * frame.h: Update comments.
1396 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1397 * x86-64-tdep.c (x86_64_init_abi): Update.
1398 * sparc-tdep.c (sparc_gdbarch_init): Update.
1399 * sh-tdep.c (sh_gdbarch_init): Update.
1400 * mips-tdep.c (mips_gdbarch_init): Update.
1401 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1402 * cris-tdep.c (cris_gdbarch_init): Update.
1403 * ia64-tdep.c (ia64_gdbarch_init): Update.
1404 * frame.c (frame_register): Update.
1405 (get_saved_register): Update.
1406 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
1408 2003-03-13 Andrew Cagney <cagney@redhat.com>
1410 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
1411 * gdbarch.h, gdbarch.c: Regenerate.
1412 * valops.c (hand_function_call): Update comment.
1413 * stack.c (return_command): Update comment.
1414 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
1415 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
1416 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1417 * x86-64-tdep.c (x86_64_init_abi): Update.
1418 * vax-tdep.c (vax_gdbarch_init): Update.
1419 * v850-tdep.c (v850_gdbarch_init): Update.
1420 * sparc-tdep.c (sparc_gdbarch_init): Update.
1421 * sh-tdep.c (sh_gdbarch_init): Update.
1422 * s390-tdep.c (s390_gdbarch_init): Update.
1423 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1424 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1425 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1426 * mips-tdep.c (mips_gdbarch_init): Update.
1427 * mcore-tdep.c (mcore_gdbarch_init): Update.
1428 * m68k-tdep.c (m68k_gdbarch_init): Update.
1429 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1430 * ia64-tdep.c (ia64_gdbarch_init): Update.
1431 * i386-tdep.c (i386_gdbarch_init): Update.
1432 * hppa-tdep.c (hppa_gdbarch_init): Update.
1433 * h8300-tdep.c (h8300_gdbarch_init): Update.
1434 * frv-tdep.c (frv_gdbarch_init): Update.
1435 * cris-tdep.c (cris_gdbarch_init): Update.
1436 * avr-tdep.c (avr_gdbarch_init): Update.
1437 * arm-tdep.c (arm_gdbarch_init): Update.
1438 * alpha-tdep.c (alpha_gdbarch_init): Update.
1440 2003-03-13 Andrew Cagney <cagney@redhat.com>
1442 * frame.c (legacy_frame_p): New function.
1443 (get_prev_frame): Use legacy_frame_p.
1444 * frame.h (legacy_frame_p): Declare.
1446 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1448 * MAINTAINERS (write after approval): Alphabetically
1451 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1453 * MAINTAINERS (write after approval): Add myself.
1455 2003-03-12 Andrew Cagney <cagney@redhat.com>
1457 * frame.c (get_prev_frame): Rename the frame parameter to
1459 (get_next_frame, legacy_get_prev_frame): Ditto.
1461 2003-03-12 Andrew Cagney <cagney@redhat.com>
1463 * frame.c (get_current_frame): Check target_has_registers before
1464 checking target_has_stack.
1465 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
1466 instead of deprecated_selected_frame.
1467 * findvar.c (value_of_register): Pass "frame", not
1468 deprecated_selected_frame, to value_of_builtin_reg.
1470 2003-03-12 Andrew Cagney <cagney@redhat.com>
1472 * regcache.c (regcache_cooked_write_signed): New function.
1473 (regcache_cooked_write_unsigned): New function.
1474 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
1475 (regcache_cooked_read_signed): Fix regnum in range assertion.
1476 * regcache.h (regcache_cooked_write_signed): Declare.
1477 (regcache_cooked_write_unsigned): Declare.
1479 2003-03-12 Andrew Cagney <cagney@redhat.com>
1481 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1482 * gdbarch.h, gdbarch.c: Re-generate.
1483 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1484 * x86-64-tdep.h: Update.
1485 * x86-64-tdep.c (x86_64_init_abi): Update.
1486 * v850-tdep.c (v850_gdbarch_init): Update.
1487 * sparc-tdep.c (sparc_gdbarch_init): Update.
1488 * sh-tdep.c (sh_gdbarch_init): Update.
1489 * s390-tdep.c (s390_gdbarch_init): Update.
1490 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1491 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1492 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1493 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1494 * mips-tdep.c (mips_gdbarch_init): Update.
1495 * mcore-tdep.c (mcore_gdbarch_init): Update.
1496 * m68k-tdep.c (m68k_gdbarch_init): Update.
1497 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1498 * ia64-tdep.c (ia64_gdbarch_init): Update.
1499 * i386-tdep.c (i386_gdbarch_init): Update.
1500 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1501 * hppa-tdep.c (hppa_gdbarch_init): Update.
1502 * h8300-tdep.c (h8300_gdbarch_init): Update.
1503 * frv-tdep.c (frv_gdbarch_init): Update.
1504 * cris-tdep.c (cris_gdbarch_init): Update.
1505 * avr-tdep.c (avr_gdbarch_init): Update.
1506 * arm-tdep.c (arm_gdbarch_init): Update.
1507 * alpha-tdep.c (alpha_gdbarch_init): Update.
1508 * sh-tdep.c (sh_init_extra_frame_info): Update.
1509 (sh64_init_extra_frame_info): Update.
1510 * ns32knbsd-nat.c (frame_num_args): Update.
1511 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1512 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1513 (xstormy16_frame_chain_valid): Update.
1514 * vax-tdep.c (vax_saved_pc_after_call): Update.
1515 * v850-tdep.c (v850_frame_chain): Update.
1516 (v850_pop_frame): Update.
1517 (v850_init_extra_frame_info): Update.
1518 * sparc-tdep.c (setup_arbitrary_frame): Update.
1519 * ns32k-tdep.c (umax_frame_num_args): Update.
1520 * s390-tdep.c (s390_pop_frame_regular): Update.
1521 * mn10300-tdep.c (mn10300_frame_chain): Update.
1522 (mn10300_pop_frame_regular): Update.
1523 (mn10300_init_extra_frame_info): Update.
1524 * mips-tdep.c (mips_init_frame_pc_first): Update.
1525 (mips_frame_chain): Update.
1526 (mips_pop_frame): Update.
1527 * mcore-tdep.c (mcore_frame_chain): Update.
1528 (mcore_pop_frame): Update.
1529 (mcore_init_extra_frame_info): Update.
1530 * arch-utils.c (init_frame_pc_default): Update.
1531 * m68k-tdep.c (isi_frame_num_args): Update.
1532 (delta68_frame_num_args): Update.
1533 (news_frame_num_args): Update.
1534 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1535 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1536 (alpha_frame_chain): Update.
1537 (alpha_pop_frame): Update.
1538 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1539 (hppa_init_extra_frame_info): Update.
1540 (hppa_frame_chain): Update.
1541 (hppa_frame_chain_valid): Update.
1542 * cris-tdep.c (cris_init_extra_frame_info): Update.
1543 * avr-tdep.c (avr_init_extra_frame_info): Update.
1544 * arm-tdep.c (arm_frame_chain_valid): Update.
1545 (arm_init_extra_frame_info): Update.
1546 (arm_pop_frame): Update.
1547 * frame.c (frame_pc_unwind): Update.
1548 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1549 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1550 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1551 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1552 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1553 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1555 2003-03-12 Andrew Cagney <cagney@redhat.com>
1557 Eliminate the need for POP_FRAME.
1558 * frame.c (do_frame_unwind_register): New function.
1559 (frame_pop): When no POP_FRAME, pop the frame using register
1560 unwind and a scratch regcache.
1561 (frame_saved_regs_pop): Delete function.
1562 (trad_frame_unwinder): Update.
1563 * d10v-tdep.c (d10v_frame_pop): Delete function.
1564 (d10v_frame_unwind): Update.
1565 * sentinel-frame.c (sentinel_frame_pop): Delete function.
1566 (sentinel_frame_unwinder): Update.
1567 * dummy-frame.c (dummy_frame_pop): Delete function.
1568 (dummy_frame_unwind): Update.
1569 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
1570 (struct frame_unwind): Update.
1572 2003-03-11 Kevin Buettner <kevinb@redhat.com>
1574 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
1575 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
1576 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
1577 Do range checks on register number obtained from debugging info.
1578 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
1579 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
1580 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
1582 (do_fp_register_row): Fix typo which caused double type to be
1583 used when attempting to unpack a float.
1585 2003-03-11 J. Brobecker <brobecker@gnat.com>
1587 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
1589 2003-03-11 Andrew Cagney <cagney@redhat.com>
1591 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
1592 frame. Problem found by Corinna Vinschen.
1594 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
1596 * doublest.c (floatformat_from_length): Accept also
1597 the real size of 'long double' type.
1599 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
1601 From Klee Dienes <kdienes@apple.com>:
1602 * breakpoint.c (bpstat_copy): Copy the command lines as well
1603 as the old value, to match what is freed in bpstat_clear.
1605 2003-03-10 David Carlton <carlton@math.stanford.edu>
1607 * minsyms.c (add_minsym_to_hash_table): Replace
1608 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1609 (compare_minimal_symbols, compact_minimal_symbols)
1610 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
1611 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
1612 of DEPRECATED_SYMBOL_MATCHES_NAME.
1613 (lookup_minimal_symbol_solib_trampoline): Ditto.
1615 2003-03-10 Andrew Cagney <cagney@redhat.com>
1617 * regcache.h (regcache_cooked_read_ftype): Define.
1618 (regcache_save, regcache_restore): Add a cooked_read parameter.
1619 * regcache.c (regcache_save, regcache_restore): Update.
1620 (do_cooked_read): New function.
1621 (regcache_cpy): Pass do_cooked_read to regcache_save and
1624 2003-03-10 Andrew Cagney <cagney@redhat.com>
1626 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1627 * gdbarch.h, gdbarch.c: Re-generate.
1628 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1629 * x86-64-tdep.h: Update.
1630 * x86-64-tdep.c (x86_64_init_abi): Update.
1631 * v850-tdep.c (v850_gdbarch_init): Update.
1632 * sparc-tdep.c (sparc_gdbarch_init): Update.
1633 * sh-tdep.c (sh_gdbarch_init): Update.
1634 * s390-tdep.c (s390_gdbarch_init): Update.
1635 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1636 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1637 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1638 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1639 * mips-tdep.c (mips_gdbarch_init): Update.
1640 * mcore-tdep.c (mcore_gdbarch_init): Update.
1641 * m68k-tdep.c (m68k_gdbarch_init): Update.
1642 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1643 * ia64-tdep.c (ia64_gdbarch_init): Update.
1644 * i386-tdep.c (i386_gdbarch_init): Update.
1645 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1646 * hppa-tdep.c (hppa_gdbarch_init): Update.
1647 * h8300-tdep.c (h8300_gdbarch_init): Update.
1648 * frv-tdep.c (frv_gdbarch_init): Update.
1649 * cris-tdep.c (cris_gdbarch_init): Update.
1650 * avr-tdep.c (avr_gdbarch_init): Update.
1651 * arm-tdep.c (arm_gdbarch_init): Update.
1652 * alpha-tdep.c (alpha_gdbarch_init): Update.
1653 * sh-tdep.c (sh_init_extra_frame_info): Update.
1654 (sh64_init_extra_frame_info): Update.
1655 * ns32knbsd-nat.c (frame_num_args): Update.
1656 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1657 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1658 (xstormy16_frame_chain_valid): Update.
1659 * vax-tdep.c (vax_saved_pc_after_call): Update.
1660 * v850-tdep.c (v850_frame_chain): Update.
1661 (v850_pop_frame): Update.
1662 (v850_init_extra_frame_info): Update.
1663 * sparc-tdep.c (setup_arbitrary_frame): Update.
1664 * ns32k-tdep.c (umax_frame_num_args): Update.
1665 * s390-tdep.c (s390_pop_frame_regular): Update.
1666 * mn10300-tdep.c (mn10300_frame_chain): Update.
1667 (mn10300_pop_frame_regular): Update.
1668 (mn10300_init_extra_frame_info): Update.
1669 * mips-tdep.c (mips_init_frame_pc_first): Update.
1670 (mips_frame_chain): Update.
1671 (mips_pop_frame): Update.
1672 * mcore-tdep.c (mcore_frame_chain): Update.
1673 (mcore_pop_frame): Update.
1674 (mcore_init_extra_frame_info): Update.
1675 * arch-utils.c (init_frame_pc_default): Update.
1676 * m68k-tdep.c (isi_frame_num_args): Update.
1677 (delta68_frame_num_args): Update.
1678 (news_frame_num_args): Update.
1679 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1680 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1681 (alpha_frame_chain): Update.
1682 (alpha_pop_frame): Update.
1683 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1684 (hppa_init_extra_frame_info): Update.
1685 (hppa_frame_chain): Update.
1686 (hppa_frame_chain_valid): Update.
1687 * cris-tdep.c (cris_init_extra_frame_info): Update.
1688 * avr-tdep.c (avr_init_extra_frame_info): Update.
1689 * arm-tdep.c (arm_frame_chain_valid): Update.
1690 (arm_init_extra_frame_info): Update.
1691 (arm_pop_frame): Update.
1692 * frame.c (frame_pc_unwind): Update.
1693 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1694 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1695 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1696 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1697 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1698 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1700 2003-03-10 Andrew Cagney <cagney@redhat.com>
1702 * gdbarch.sh (gdbarch_unwind_pc): New method.
1703 * gdbarch.h, gdbarch.c: Regenerate.
1704 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
1705 but use read_pc and FRAME_SAVED_PC as fall backs.
1706 (frame_saved_regs_pc_unwind): Delete function.
1707 (trad_frame_unwinder): Update.
1708 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
1709 (struct frame_unwind): Update.
1710 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
1711 (dummy_frame_unwind): Update.
1712 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
1713 (sentinel_frame_unwinder): Update.
1714 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
1715 (d10v_frame_unwind): Update.
1716 (d10v_unwind_pc): New function.
1717 (d10v_gdbarch_init): Set unwind_pc.
1719 2003-03-10 Andrew Cagney <cagney@redhat.com>
1721 * gdbarch.h: Re-generate.
1723 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
1725 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
1728 2003-03-08 Mark Kettenis <kettenis@gnu.org>
1730 * gdbarch.sh (save_dummy_frame_tos): Add comment.
1732 2003-03-08 Andrew Cagney <cagney@redhat.com>
1734 * cli-out.c: Update copyright.
1735 (cli_out_data): Define typedef. Use instead of ui_out_data.
1737 2003-03-08 Andrew Cagney <cagney@redhat.com>
1739 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
1742 2003-03-07 Andrew Cagney <cagney@redhat.com>
1744 * gdbarch.sh: Don't generate two macro definitions when an
1745 undefined macro taking no arguments.
1746 * gdbarch.h: Regenerate.
1748 2002-03-07 Michal Ludvig <mludvig@suse.cz>
1750 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
1751 (x86_64_unwind_dummy_id): New functions.
1752 (x86_64_init_abi): Register these two new functions.
1754 2003-03-07 Michal Ludvig <mludvig@suse.cz>
1756 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
1757 (x86_64_skip_prologue): Move prologue detection to
1759 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
1761 2003-03-05 Andrew Cagney <cagney@redhat.com>
1763 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
1764 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
1765 * frame.c (get_prev_frame): Restructure the frame ID unwind code
1766 to use unwind_dummy_id when a dummy frame.
1767 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
1769 * gdbarch.h, gdbarch.c: Regneerate.
1771 2003-03-05 Andrew Cagney <cagney@redhat.com>
1773 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
1774 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
1775 Do not use d10v_read_sp or d10v_read_fp when obtaining register
1778 2003-03-05 Andrew Cagney <cagney@redhat.com>
1780 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
1781 (struct d10v_unwind_cache): Delete field "frameless". Replace
1782 "next_addr" with "sp_offset". Add "r11_offset".
1783 (d10v_frame_unwind_cache): Update.
1784 (prologue_find_regs): Update. When "mv r11, sp", save the
1785 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
1786 RN was saved in r11_offset.
1788 2003-03-05 Andrew Cagney <cagney@redhat.com>
1790 * frame.c (deprecated_update_frame_pc_hack): Also update the the
1791 cached PC value in the next frame.
1793 2003-03-05 Andrew Cagney <cagney@redhat.com>
1795 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
1796 "id_unwind_cache" with "id".
1797 (frame_id_unwind): Delete declaration.
1798 * frame.c (frame_id_unwind): Delete function.
1799 (get_prev_frame): Call the frame id unwind method directly. Store
1800 the returned next frame's ID value in NEXT_FRAME. Note that there
1801 is a problem with the wrong unwind ID being called with the wrong
1804 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
1806 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
1808 2003-03-05 James Ingham <jingham@apple.com>
1809 Daniel Jacobowitz <drow@mvista.com>
1811 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
1812 (auto_cp_abi): New variable.
1813 (current_cp_abi, num_cp_abis): Make static.
1814 (CP_ABI_MAX): Define.
1815 (cp_abis): Turn into an array.
1816 (value_virtual_fn_field): Fix formatting.
1817 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
1819 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
1820 (list_cp_abis, _initialize_cp_abi): New functions.
1821 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
1822 declarations for cp_abis, num_cp_abis, current_cp_abi, and
1823 switch_to_cp_abi. Update prototype for register_cp_abi.
1824 * Makefile.in (cp-abi.o): Update dependencies.
1825 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
1826 instead of switch_to_cp_abi.
1827 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
1829 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
1831 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
1833 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
1835 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
1836 * dwarf2loc.c: Include "regcache.h".
1837 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
1839 * Makefile.in (dwarf2loc.o): Update dependencies.
1841 2003-03-04 Theodore A. Roth <troth@openavr.org>
1843 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
1844 number of io registers reported by remote target is not a multiple of
1847 2003-03-04 David Carlton <carlton@math.stanford.edu>
1849 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
1850 (lookup_symbol_aux_psymtabs): Update call to
1851 lookup_partial_symbol.
1852 (lookup_transparent_type, find_main_psymtab)
1853 (make_symbol_overload_list): Ditto.
1855 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
1857 * MAINTAINERS (Write after approval): Update my email address.
1859 2003-03-03 Andrew Cagney <cagney@redhat.com>
1861 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
1862 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
1863 predicate. Replace MAX_REGISTER_RAW_SIZE.
1864 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
1865 MAX_REGISTER_VIRTUAL_SIZE.
1866 * regcache.c (legacy_max_register_raw_size): New function.
1867 (legacy_max_register_virtual_size): New function.
1868 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
1869 (MAX_REGISTER_RAW_SIZE): Define.
1870 (legacy_max_register_raw_size): Declare.
1871 (legacy_max_register_virtual_size): Declare.
1872 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1873 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
1874 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1875 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1876 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1877 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1878 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1879 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1880 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1881 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1882 * vax-tdep.c (vax_gdbarch_init): Update.
1883 * v850-tdep.c (v850_gdbarch_init): Update.
1884 * sparc-tdep.c (sparc_gdbarch_init): Update.
1885 * sh-tdep.c (sh_gdbarch_init): Update.
1886 * s390-tdep.c (s390_gdbarch_init): Update.
1887 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1888 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1889 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1890 * mips-tdep.c (mips_gdbarch_init): Update.
1891 * mcore-tdep.c (mcore_gdbarch_init): Update.
1892 * m68k-tdep.c (m68k_gdbarch_init): Update.
1893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1894 * ia64-tdep.c (ia64_gdbarch_init): Update.
1895 * i386-tdep.c (i386_gdbarch_init): Update.
1896 * hppa-tdep.c (hppa_gdbarch_init): Update.
1897 * h8300-tdep.c (h8300_gdbarch_init): Update.
1898 * frv-tdep.c (frv_gdbarch_init): Update.
1899 * cris-tdep.c (cris_gdbarch_init): Update.
1900 * avr-tdep.c (avr_gdbarch_init): Update.
1901 * arm-tdep.c (arm_gdbarch_init): Update.
1902 * alpha-tdep.c (alpha_gdbarch_init): Update.
1903 * d10v-tdep.c (d10v_gdbarch_init): Do not set
1904 max_register_raw_size or max_register_virtual_size.
1906 2003-03-03 David Carlton <carlton@math.stanford.edu>
1908 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
1909 SYMBOL_MATCHES_NAME, add comment.
1910 (SYMBOL_MATCHES_NATURAL_NAME): New.
1911 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
1912 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
1913 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
1914 * symtab.c (lookup_partial_symbol): Use
1915 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
1917 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
1918 SYMBOL_MATCHES_NAME.
1921 2003-03-03 David Carlton <carlton@math.stanford.edu>
1923 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
1924 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
1925 by regexp matching against SYMBOL_NATURAL_NAME.
1927 2003-03-03 David Carlton <carlton@math.stanford.edu>
1929 * linespec.c (find_method): Extract code into collect_methods.
1930 (collect_methods): New.
1932 2003-03-02 Mark Kettenis <kettenis@gnu.org>
1934 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
1937 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
1938 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1940 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
1942 * arch-utils.c (generic_register_byte): Fix to use the loop index
1943 and not regnum when summing the size of all registers up to regnum.
1945 2003-03-01 Andrew Cagney <cagney@redhat.com>
1947 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
1948 FRAME_INIT_SAVED_REGS.
1949 * gdbarch.h, gdbarch.c: Regenerate.
1950 * stack.c (frame_info): Update.
1951 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
1952 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
1953 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
1954 * ns32k-tdep.c (ns32k_pop_frame): Update.
1955 * mips-tdep.c (mips_pop_frame): Update.
1956 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
1957 * ia64-tdep.c (ia64_frame_chain): Update.
1958 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
1959 (ia64_frameless_function_invocation): Update.
1960 (ia64_init_extra_frame_info): Update.
1961 (ia64_pop_frame_regular): Update.
1962 * frame.h (struct frame_info): Update comment.
1963 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
1964 * frame.c (frame_saved_regs_register_unwind): Update.
1965 (frame_saved_regs_register_unwind): Update.
1966 (deprecated_generic_get_saved_register): Update.
1967 * cris-tdep.c: Update comment.
1968 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
1970 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1971 * x86-64-tdep.c (x86_64_init_abi): Update.
1972 * vax-tdep.c (vax_gdbarch_init): Update.
1973 * v850-tdep.c (v850_gdbarch_init): Update.
1974 * sparc-tdep.c (sparc_gdbarch_init): Update.
1975 * sh-tdep.c (sh_gdbarch_init): Update.
1976 * s390-tdep.c (s390_gdbarch_init): Update.
1977 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1978 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1979 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1980 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1981 * mips-tdep.c (mips_gdbarch_init): Update.
1982 * mcore-tdep.c (mcore_gdbarch_init): Update.
1983 * m68k-tdep.c (m68k_gdbarch_init): Update.
1984 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1985 * ia64-tdep.c (ia64_gdbarch_init): Update.
1986 * i386-tdep.c (i386_gdbarch_init): Update.
1987 * frv-tdep.c (frv_gdbarch_init): Update.
1988 * avr-tdep.c (avr_gdbarch_init): Update.
1989 * arm-tdep.c (arm_gdbarch_init): Update.
1990 * alpha-tdep.c (alpha_gdbarch_init): Update.
1992 2003-03-01 Andrew Cagney <cagney@redhat.com>
1994 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
1995 option enum and switch. When no windows, set the interpreter to
1998 2003-03-01 Andrew Cagney <cagney@redhat.com>
2000 * main.c (captured_main): Replace magic option characters with an
2003 2003-03-01 Andrew Cagney <cagney@redhat.com>
2005 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
2006 INIT_EXTRA_FRAME_INFO.
2007 * gdbarch.h, gdbarch.c: Regenerate.
2008 * arm-tdep.c: Update comments.
2009 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
2010 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
2011 * frame.h, avr-tdep.c: Ditto.
2012 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
2013 (create_new_frame, legacy_get_prev_frame): Ditto.
2014 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
2015 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
2016 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
2017 deprecated_init_extra_frame_info instead of init_extra_frame_info.
2018 * x86-64-tdep.c (x86_64_init_abi): Ditto.
2019 * v850-tdep.c (v850_gdbarch_init): Ditto.
2020 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2021 * sh-tdep.c (sh_gdbarch_init): Ditto.
2022 * s390-tdep.c (s390_gdbarch_init): Ditto.
2023 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
2024 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2025 * mips-tdep.c (mips_gdbarch_init): Ditto.
2026 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2027 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2028 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2029 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2030 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2031 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2032 * frv-tdep.c (frv_gdbarch_init): Ditto.
2033 * cris-tdep.c (cris_gdbarch_init): Ditto.
2034 * avr-tdep.c (avr_gdbarch_init): Ditto.
2035 * arm-tdep.c (arm_gdbarch_init): Ditto.
2036 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2037 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2039 2003-03-01 Andrew Cagney <cagney@redhat.com>
2041 * gdbarch.sh (register_type): New function with predicate.
2042 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
2043 * gdbarch.h, gdbarch.c: Re-generate.
2044 * arch-utils.c (generic_register_byte): Use generic_register_size.
2045 (generic_register_size): When available, use
2046 gdbarch_register_type.
2047 * regcache.c (init_regcache_descr): When available, initialize the
2048 register type array using gdbarch_register_type. If the
2049 architecture supplies gdbarch_register_type, do not use the legacy
2051 * d10v-tdep.c (d10v_register_type): Replace
2052 d10v_register_virtual_type.
2053 (d10v_gdbarch_init): Set register_type instead of
2054 register_virtual_type.
2056 2003-03-01 Andrew Cagney <cagney@redhat.com>
2058 * Makefile.in (ax-gdb.o): Update dependencies.
2059 * ax-gdb.c: Include "regcache.h".
2060 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
2061 * findvar.c (value_of_register): Ditto.
2062 * infcmd.c (default_print_registers_info): Ditto.
2064 2003-03-01 Mark Kettenis <kettenis@gnu.org>
2066 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
2067 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2069 2003-03-01 Mark Kettenis <kettenis@gnu.org>
2071 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
2074 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
2076 * Makefile.in (dwarf2loc.o): Update dependencies.
2077 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
2078 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
2079 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
2080 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
2081 (locexpr_tracepoint_var_ref): New function.
2082 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
2084 2003-02-28 Andrew Cagney <cagney@redhat.com>
2086 * regcache.c (register_size): New function.
2087 * regcache.h (register_size): Declare
2088 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
2089 max_register_size instead of MAX_REGISTER_RAW_SIZE.
2091 2003-02-28 David Carlton <carlton@math.stanford.edu>
2093 * linespec.c (decode_compound): Extract code into find_method.
2096 2003-02-28 J. Brobecker <brobecker@gnat.com>
2098 * Makefile.in: Add rules to build and link in observer.o.
2100 2003-02-27 J. Brobecker <brobecker@gnat.com>
2102 * observer.c: Minor comments edits.
2104 2003-02-27 J. Brobecker <brobecker@gnat.com>
2106 * observer.h, observer.c: New file.
2108 2003-02-27 Andrew Cagney <cagney@redhat.com>
2110 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
2112 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
2114 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
2115 (M6812_OP_STS_EXT): Likewise.
2116 (m6811_prologue): Use the above to recognize prologue.
2117 (m6812_prologue): Likewise.
2119 2003-02-27 David Carlton <carlton@math.stanford.edu>
2121 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
2123 (compare_psymbols): Ditto.
2124 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
2126 2003-02-27 Michael Snyder <msnyder@redhat.com>
2128 * f-lang.c (build_fortran_types): New function.
2129 (_initialize_f_language): Gdbarch-register built-in fortran types.
2130 * doublest.c (extract_floating): Fix warning text.
2132 2003-02-27 Andrew Cagney <cagney@redhat.com>
2134 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
2135 predicate. Replaces PUSH_DUMMY_FRAME.
2136 * gdbarch.h, gdbarch.c: Regnerate.
2137 * valops.c (hand_function_call): Update. Call
2138 generic_push_dummy_frame directly.
2139 * vax-tdep.c (vax_gdbarch_init): Update.
2140 * sparc-tdep.c (sparc_gdbarch_init): Update.
2141 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2142 * m68k-tdep.c (m68k_gdbarch_init): Update.
2143 * hppa-tdep.c (hppa_gdbarch_init): Update.
2144 * alpha-tdep.c (alpha_gdbarch_init): Update.
2145 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2146 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2147 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
2148 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
2149 push_dummy_frame to generic_push_dummy_frame.
2150 * v850-tdep.c (v850_gdbarch_init): Ditto.
2151 * sh-tdep.c (sh_gdbarch_init): Ditto.
2152 * s390-tdep.c (s390_gdbarch_init): Ditto.
2153 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2154 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2155 * mips-tdep.c (mips_gdbarch_init): Ditto.
2156 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2157 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2158 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2159 * i386-tdep.c (i386_gdbarch_init): Ditto.
2160 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2161 * frv-tdep.c (frv_gdbarch_init): Ditto.
2162 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2163 * cris-tdep.c (cris_gdbarch_init): Ditto.
2164 * avr-tdep.c (avr_gdbarch_init): Ditto.
2165 * arm-tdep.c (arm_gdbarch_init): Ditto.
2167 2003-02-26 Kevin Buettner <kevinb@redhat.com>
2169 * mips-tdep.c (show_mips_abi): New function.
2170 (_initialize_mips_tdep): Use show_mips_abi() to implement the
2171 command ``show mips abi''.
2173 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
2175 From Elena Zannoni <ezannoni@redhat.com>
2176 * dbxread.c (process_one_symbol): Only record line 0 if one or
2177 more sline entries have been seen for the function.
2179 2003-02-26 Michael Chastain <mec@shout.net>
2181 * configure: Regenerate with autoconf 000227.
2183 2003-02-26 Michael Chastain <mec@shout.net>
2186 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
2187 for old libc5/glibc.
2188 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
2190 2003-02-26 Kris Warkentin <kewarken@qnx.com>
2192 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
2193 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
2195 2003-02-26 Michael Chastain <mec@shout.net>
2197 * configure.in: New variable HAVE_UINTPTR_T.
2198 * configure, config.in: Regenerated.
2200 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
2203 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
2205 2003-02-25 Andrew Cagney <cagney@redhat.com>
2207 * frame.c (get_prev_frame): Add comment on check for
2208 inside_entry_func. Only check for inside_entry_file when not a
2209 dummy and not a sentinel. Check that the new frame is not inner
2212 2003-02-25 Andrew Cagney <cagney@redhat.com>
2214 * frame.c (frame_debug): New variable.
2215 (_initialize_frame): Add "set/show debug frame" command.
2216 (get_prev_frame): When frame_debug, print reason why unwind
2219 2003-02-25 Michael Chastain <mec@shout.net>
2221 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
2222 to avoid uintptr_t definition problems.
2224 2003-02-25 David Carlton <carlton@math.stanford.edu>
2226 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
2227 (SYMBOL_LINKAGE_NAME): Ditto.
2228 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
2229 SYMBOL_LINKAGE_NAME.
2230 (struct general_symbol_info): Expand comment.
2231 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
2232 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
2233 (SYMBOL_MATCHES_REGEXP): Ditto.
2234 * symtab.c (symbol_natural_name): New function.
2235 * objfiles.h: Replace all uses of SYMBOL_NAME by
2236 DEPRECATED_SYMBOL_NAME.
2237 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
2238 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
2239 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
2240 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
2241 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
2242 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
2243 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
2244 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
2245 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
2246 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
2248 * ada-exp.y: Update copyright.
2249 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
2250 * cp-valprint.c: Ditto.
2252 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
2254 * infptrace.c (detach): Do not flag error if ptrace detach fails
2255 and errno is set to ESRCH.
2257 2003-02-24 Andrew Cagney <cagney@redhat.com>
2259 * infptrace.c (udot_info): Change type of udot_off to long. Use
2260 paddr when printing udot_off's value.
2262 2003-02-24 David Carlton <carlton@math.stanford.edu>
2264 * symtab.c (make_symbol_overload_list): Only read in partial
2265 symtabs containing a matching partial symbol.
2267 2003-02-24 David Carlton <carlton@math.stanford.edu>
2269 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
2270 do the comparison, not strcmp.
2271 * symfile.c (compare_psymbols): Ditto.
2272 * defs.h: Declare strcmp_iw_ordered.
2273 * utils.c (strcmp_iw_ordered): New function.
2275 2003-02-24 Jim Blandy <jimb@redhat.com>
2277 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
2278 support, shared libs): Remove my name from here, to better reflect
2281 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2283 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
2284 (target_ops): Add to_have_continuable_watchpoint.
2285 * target.c (update_current_target): Add INHERIT line for
2286 to_have_continuable_watchpoint.
2287 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
2288 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
2289 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
2290 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
2292 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
2294 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
2297 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2299 * solib.c (solib_open): Call target defined search function after
2300 failing with solib-search-path.
2301 * solist.h (target_so_ops): Add find_and_open_solib function hook and
2302 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2304 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2306 * MAINTAINERS: Add myself to Write After section.
2308 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
2310 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
2312 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
2314 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
2315 (m68hc11_add_reggroups): New function.
2316 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
2317 (m68hc11_gdbarch_init): Install the reggroups.
2318 (_initialize_m68hc11_tdep): Initialize them.
2320 2003-02-21 James E Wilson <wilson@tuliptree.org>
2322 * MAINTAINERS: Update my email address.
2324 2003-02-21 David Carlton <carlton@math.stanford.edu>
2326 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
2328 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
2330 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
2331 * symtab.h: Add opaque declarations of struct axs_value and
2333 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
2334 (struct location_funcs): New type.
2335 (struct symbol): Add "loc" to aux_value.
2336 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
2337 * dwarf2read.c: Include "dwarf2expr.h".
2338 (dwarf2_symbol_mark_computed): New function.
2339 (read_func_scope): Use it.
2340 (var_decode_location): New function.
2341 (new_symbol): Use it.
2342 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
2344 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
2345 (dwarf2expr_h, dwarf2loc_h): New variables.
2346 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
2347 (dwarf2expr.o, dwarf2loc.o): New rules.
2348 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
2349 * buildsym.c (finish_block): Handle LOC_COMPUTED and
2351 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2352 * m2-exp.y (yylex): Likewise.
2353 * printcmd.c (address_info, print_frame_args): Likewise.
2354 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
2355 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2356 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
2357 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
2358 * symtab.c (lookup_block_symbol): Likewise.
2360 2003-02-20 Adam Fedor <fedor@gnu.org>
2362 * symtab.h: Remove objc_specific struct
2363 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
2364 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
2365 Have language_objc use cplus_specific struct.
2367 2003-02-20 Tom Tromey <tromey@redhat.com>
2369 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
2370 TYPE_NAME, when printing a String value. PR java/1075.
2372 2003-02-20 Adam Fedor <fedor@gnu.org>
2374 * objc-lang.h (find_methods): Remove declaration.
2375 * objc-lang.c (find_methods): Make static.
2377 2003-02-20 Christopher Faylor <cgf@redhat.com>
2379 * win32-nat.c (get_image_name): Check return value from
2381 (child_xfer_memory): Ditto.
2383 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2385 * configure.in (TARGET_SYSTEM_ROOT): Set default to
2386 ${exec_prefix}/${target_alias}/sys-root. Match explicit
2387 '${exec_prefix}' (in addition to the expansion thereof) as
2389 * configure: Rebuilt.
2391 2003-02-20 David Carlton <carlton@math.stanford.edu>
2393 * symtab.c (search_symbols): Revert the search_symbols part of my
2394 2002-12-23 patch. Add comment.
2396 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2398 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
2399 * dbxread.c (elfstab_build_psymtabs): Don't call
2400 install_minimal_symbols.
2401 (stabsect_build_psymtabs): Likewise.
2402 * elfread.c (elf_symfile_read): Call install_minimal_symbols
2404 * somread.c (som_symfile_read): Call install_minimal_symbols
2405 and do_cleanups earlier.
2406 * nlmread.c (nlm_symfile_read): Likewise.
2407 * mdebugread.c (elfmdebug_build_psymtabs): Call
2408 install_minimal_symbols and make appropriate cleanups.
2410 2003-02-20 Kevin Buettner <kevinb@redhat.com>
2412 * solib.c (reload_shared_libraries): New function.
2413 (_initialize_solib): Add callbacks for ``set solib-search-path''
2414 and ``set solib-absolute-prefix''.
2416 2003-02-20 David Carlton <carlton@math.stanford.edu>
2418 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
2420 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
2421 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
2422 * ada-typeprint.c (ada_typedef_print): Ditto.
2423 * ax-gdb.c (gen_var_ref): Ditto.
2424 * breakpoint.c (print_one_breakpoint): Ditto.
2425 * buildsym.c (finish_block): Ditto.
2426 * c-valprint.c (c_val_print): Ditto.
2427 * expprint.c (print_subexp): Ditto.
2428 * findvar.c (locate_var_value): Ditto.
2429 * infcmd.c (jump_command): Ditto.
2430 * linespec.c (decode_line_2, decode_compound): Ditto.
2431 * maint.c (maintenance_translate_address): Ditto.
2432 * objc-lang.c (compare_selectors, compare_classes): Ditto.
2433 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
2435 * p-valprint.c (pascal_val_print): Ditto.
2436 * stabsread.c (define_symbol): Ditto.
2437 * stack.c (print_frame, frame_info, print_block_frame_locals)
2438 (print_frame_arg_vars, return_command): Ditto.
2439 * symfile.c (compare_symbols, compare_psymbols): Ditto.
2440 * symmisc.c (print_symbol): Ditto.
2441 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
2442 (compare_search_syms, print_symbol_info, print_msymbol_info)
2443 (rbreak_command): Ditto.
2444 * tracepoint.c (tracepoints_info): Ditto.
2445 * typeprint.c (typedef_print): Ditto.
2446 * valops.c (value_of_variable, hand_function_call): Ditto.
2447 * cli/cli-cmds.c (edit_command, list_command): Ditto.
2448 * ada-typeprint.c: Update Copyright.
2449 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
2450 * tracepoint.c, cli/cli-cmds.c: Ditto.
2452 2003-02-20 Kevin Buettner <kevinb@redhat.com>
2454 * frame.c (generic_unwind_get_saved_register): Make non-static.
2455 * frame.h (generic_unwind_get_saved_register): Declare.
2456 * mips-tdep.c (read_next_frame_reg): Fetch register from
2457 current regcache when frame is NULL.
2458 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
2460 (mips_get_saved_register): Call generic_unwind_get_saved_register()
2461 instead of frame_register_unwind().
2463 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2465 * remote-sim.c (gdbsim_insert_breakpoint)
2466 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
2469 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2471 * remote.c (_initialize_remote): Add commands "set/show remote
2472 hardware-watchpoint-limit" and "set/show remote
2473 hardware-breakpoint-limit".
2474 (remote_hw_watchpoint_limit): Initialize to -1.
2475 (remote_hw_breakpoint_limit): Ditto.
2476 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
2478 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
2480 * coff-pe-read.c: New file - support reading of minimal symbols from a
2481 portable executable using the export table.
2482 * coff-pe-read.h: New file.
2483 * coffread.c: Include coff-pe-read.h.
2484 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
2485 debugging symbols found.
2486 * Makefile.in (SFILES): Add coff-pe-read.o.
2487 (coff_pe_read_h): Define.
2488 (COMMON_OBS): Add coff-pe-read.o.
2489 (coffread.o): Add coff_pe_read_h dependency.
2490 (coff-pe-read.o): New target.
2492 2003-02-19 David Carlton <carlton@math.stanford.edu>
2494 * Makefile.in (SFILES): Add block.c.
2496 (COMMON_OBS): Add block.o.
2498 (x86-64-tdep.o): Add $(block_h).
2499 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
2500 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
2501 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
2502 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
2503 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
2504 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
2505 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
2506 * value.h: Add opaque declaration for struct block.
2507 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
2508 * ada-lang.h: Ditto.
2509 * x86-64-tdep.c: #include "block.h"
2510 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
2511 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
2512 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
2513 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
2514 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
2515 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
2516 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
2517 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
2518 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
2519 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
2520 * symtab.c (block_function): Ditto.
2521 (contained_in): Ditto.
2522 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
2523 block.h. Add opaque declaration for struct block.
2524 * symtab.h: Move block_function and contained_in declarations to
2525 block.h. Add opaque declarations for struct block, struct
2527 (struct block): Move to block.h.
2528 (struct blockvector): Ditto.
2529 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
2530 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
2531 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
2532 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
2533 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
2535 * block.c: New file.
2536 * block.h: New file.
2538 2003-02-19 Theodore A. Roth <troth@openavr.org>
2540 * avr-tdep.c (avr_extract_return_value): Remove function.
2541 (avr_store_return_value): Remove function.
2542 (avr_extract_struct_value_address): Remove function.
2543 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
2545 2003-02-19 Andrew Cagney <ac131313@redhat.com>
2547 * rs6000-tdep.c: Include "gdb_assert.h".
2548 (registers_e500): Add "acc" and "spefscr".
2549 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
2550 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
2551 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
2553 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
2555 2003-02-18 Keith Seitz <keiths@redhat.com>
2557 * Makefile.in: Add gdbtk-interps.c.
2559 2003-02-18 Kevin Buettner <kevinb@redhat.com>
2561 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
2562 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
2564 2003-02-18 Andrew Cagney <cagney@redhat.com>
2566 * symtab.h (struct objfile): Add opaque declaration.
2568 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
2570 From Jim Ingham <jingham@apple.com>:
2571 * dbxread.c (process_one_symbol): Use last_function_start rather
2572 than function_start_offset to find the real beginning of the
2573 current function. The latter is just the text section offset on
2574 some systems, the former is always the real function start.
2576 2003-02-17 Andrew Cagney <cagney@redhat.com>
2578 * configure.in: Revert ${target} != ${host}.
2580 2003-02-17 Andrew Cagney <ac131313@redhat.com>
2582 * configure.in (Makefile): Use the test ${target} != ${host},
2583 instead of the absence of the "nm.h" file, to determine of the
2584 configuration non-native.
2585 * configure: Regenerate.
2587 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
2589 From Brian Ford <ford@vss.fsi.com>
2591 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
2592 conditionalize tui_active test.
2593 (lookup_cmd_1): Ditto.
2595 2003-02-14 Mark Kettenis <kettenis@gnu.org>
2597 * configure.in: Add check for _etext.
2598 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
2600 * config.in, configure: regenerated.
2602 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
2604 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
2606 2003-02-14 Andrew Cagney <ac131313@redhat.com>
2608 * main.c (tui_version): Delete variable.
2609 (captured_main): When --tui, set interpreter_p to "tui" instead of
2610 enabling tui_version.
2611 * printcmd.c (display_command) [TUI]: Test tui_active instead of
2613 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
2614 * cli/cli-cmds.c (disassemble_command): Ditto.
2615 * defs.h (tui_version): Delete declaration.
2616 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
2617 (tui-interp.o): Add rules.
2618 (SUBDIR_TUI_OBS): Add "tui-interp.o".
2620 2003-02-14 Christopher Faylor <cgf@redhat.com>
2622 * win32-nat.c (register_loaded_dll): Correctly set address range for
2625 2003-02-12 Jason Molenda (jmolenda@apple.com)
2627 * symmisc.c (print_objfile_statistics): Include information about
2628 the number of psymtabs and symtabs in each object file.
2630 2003-02-13 Keith R Seitz <keiths@redhat.com>
2632 * main.h (struct captured_main_args): Add interpreter_p.
2633 * main.c (captured_main): Initialize interpreter_p from context.
2634 * gdb.c (main): Set interpreter_p argument.
2635 * Makefile.in (gdb.o): Add dependency for interps.h.
2637 2003-02-12 Andrew Cagney <ac131313@redhat.com>
2639 * event-top.c (cli_command_loop): Delete declaration.
2640 (_initialize_event_loop): Delete function setting event_loop_hook.
2641 * event-top.h (cli_command_loop): Declare. Update copyright.
2642 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
2643 * interps.c (current_interp_command_loop): When event_loop_p, call
2646 2003-02-12 Andrew Cagney <ac131313@redhat.com>
2648 * interps.h (interp_command_loop_ftype): Change return type to
2651 2003-02-12 Michal Ludvig <mludvig@suse.cz>
2653 * x86-64-tdep.c (x86_64_extract_return_value)
2654 (x86_64_store_return_value): Use regcache instead of regbuf.
2655 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
2656 * x86-64-linux-nat.c (fill_gregset): Use regcache.
2658 2003-02-11 Andrew Cagney <ac131313@redhat.com>
2660 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
2661 * aclocal.m4: Regenerate.
2662 * configure: Regenerate.
2664 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
2665 TCL_LD_SEARCH_FLAGS.
2667 2003-02-10 Michal Ludvig <mludvig@suse.cz>
2669 * dwarf2cfi.c: Reindented.
2671 2003-02-09 Andrew Cagney <ac131313@redhat.com>
2673 * interps.c (clear_interpreter_hooks): Convert function definition
2676 2003-02-07 David Carlton <carlton@math.stanford.edu>
2678 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
2680 2003-02-07 Kevin Buettner <kevinb@redhat.com>
2682 * gdbtypes.h (struct main_type): Move ``length'' field from here...
2683 (struct type): ...to here.
2684 (TYPE_LENGTH): Adjust to reflect different location of ``length''
2686 * gdbtypes.c (make_qualified_type): Set length on newly created type.
2687 (replace_type): Set length on all type variants for a given type.
2689 2003-02-07 Andrew Cagney <ac131313@redhat.com>
2691 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
2693 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
2695 2003-02-06 Andrew Cagney <ac131313@redhat.com>
2697 * Makefile.in (symm-nat.o): Update dependencies.
2698 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
2699 (lynx-nat.o, ia64-linux-nat.): Ditto.
2700 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
2701 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
2702 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
2704 * Makefile.in (inflow_h): Define.
2705 (procfs.o, inflow.o, procfs.o): Update dependencies.
2706 * inftarg.c (child_stop): Delete extern declaration of
2707 inferior_process_group. Include "inflow.h".
2708 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
2709 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
2710 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
2711 (our_process_group, inferior_process_group): Extern declarations.
2713 * procfs.c: Include "gdb_assert.h".
2715 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2716 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
2717 * jv-typeprint.c (java_type_print_base): Ditto.
2718 * typeprint.c (typedef_print): Eliminate STREQ.
2719 * cli/cli-script.c (define_command, define_command): Ditto.
2720 * main.c (captured_main): Ditto.
2721 * values.c (lookup_internalvar): Ditto.
2722 * utils.c (safe_strerror, parse_escape): Eliminate assignment
2723 within `if' conditional.
2724 * linespec.c (decode_line_2): Ditto.
2725 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
2726 (bfd_openw_with_cleanup): Ditto.
2728 2003-02-07 Mark Kettenis <kettenis@gnu.org>
2730 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
2731 legacy_extract_return_value and store_return_value to
2732 legacy_return_value.
2734 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
2736 * win32-nat.c (get_relocated_section_addrs): New function. Find
2737 section load addresses for symbol handling in relocated DLLs.
2738 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
2740 2003-02-05 Fred Fish <fnf@intrinsity.com>
2742 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
2744 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
2746 (angel_RDI_info): Ditto.
2747 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
2749 (threads_continue_all_with_signals): Ditto.
2751 2003-02-05 Jim Ingham <jingham@apple.com>
2752 Keith Seitz <keiths@redhat.com>
2753 Elena Zannoni <ezannoni@redhat.com>
2754 Andrew Cagney <ac131313@redhat.com>
2756 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
2757 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
2758 (SUBDIR_MI_OBS): Add "mi-interp.o".
2759 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
2760 (SFILES): Add "interps.c".
2761 (COMMON_OBS): Add "interps.o".
2762 (interps_h, mi_main_h): Define.
2763 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
2764 (mi-main.o, main.o, event-top.o): Update dependencies.
2765 * cli/cli-interp.c: New file.
2766 * interps.h, interps.c: New files.
2767 * top.c: (gdb_init): Don't install the default interpreter, handed
2769 * main.c: Include "interps.h".
2770 (interpreter_p): Note that it should malloc'ed.
2771 (captured_command_loop): Call current_interp_command_loop.
2772 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
2773 xfree and xstrdup when updating interpreter_p. Install the
2774 default interpreter. Add hack to stop mi1's copyright notice
2776 * event-top.h (gdb_setup_readline): Declare.
2777 (gdb_disable_readline): Declare.
2778 * event-top.c: Include "interps.h".
2779 (display_gdb_prompt): Call current_interp_display_prompt_p.
2780 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
2781 gdb_stdlog, and gdb_stdtarg.
2782 (_initialize_event_loop): Don't call gdb_setup_readline.
2783 * cli-out.c (cli_out_set_stream): New function.
2784 * cli-out.h (cli_out_set_stream): Declare.
2786 2003-02-06 Mark Kettenis <kettenis@gnu.org>
2788 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
2789 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
2790 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
2791 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
2792 config/i386/i386v42mp.mt: Removed.
2794 2003-02-05 Mark Kettenis <kettenis@gnu.org>
2796 * configure.tgt (*-*-solaris*): Set gdb_osabi to
2799 2003-02-05 Michael Chastain <mec@shout.net>
2801 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
2802 2.12.1 and earlier versions.
2804 2003-02-05 Andrew Cagney <ac131313@redhat.com>
2806 Remove orphaned hosts, targets and files.
2807 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
2808 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
2809 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
2810 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
2811 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
2812 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
2813 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
2814 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
2815 * config/sparc/tm-sp64sim.h: Delete.
2816 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
2818 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
2819 mips*-dec-mach3* targets.
2821 2003-02-04 Michael Chastain <mec@shout.net>
2823 * NEWS: Fix typo: sepcifying -> specifying.
2825 2003-02-04 Michael Chastain <mec@shout.net>
2827 * dwarfread.c: Add documentation on the state of dwarf-1,
2828 looking towards obsoletion.
2830 2003-02-03 Michael Chastain <mec@shout.net>
2832 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
2833 gdb/testsuite/gdb.c++/pr-1023.exp.
2835 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2837 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
2838 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
2840 * utils.c (init_page_info): Delete reference to MPW in comments.
2841 * main.c (captured_main): Delete #ifdef MPW.
2843 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2845 * NEWS: Note that the m32r-*-elf* is obsolete.
2846 * monitor.c (monitor_expect): Obsolete reference to m32r.
2847 * configure.tgt: Mark m32r-*-elf* as obsolete.
2848 * MAINTAINERS: Mark m32k as obsolete.
2849 * m32r-rom.c: Obsolete file.
2850 * config/m32r/m32r.mt: Obsolete file.
2851 * config/m32r/tm-m32r.h: Obsolete file.
2852 * m32r-stub.c: Obsolete file.
2853 * m32r-tdep.c: Obsolete file.
2855 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2857 * NEWS: Mention that the z8k-zilog-none is obsolete.
2858 * MAINTAINERS: Mark z8k as obsolete.
2859 * configure.tgt: Obsolete the z8k-*-coff* target.
2860 * config/z8k/z8k.mt: Obsolete file.
2861 * config/z8k/tm-z8k.h: Obsolete file.
2862 * z8k-tdep.c: Obsolete file.
2864 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2866 * NEWS: Mention that the mn10200-elf is obsolete.
2867 * configure.tgt: Obsolete mn10200-*-* target.
2868 * breakpoint.c (update_breakpoints_after_exec): Update comment to
2869 mention that the mn10200 is obsolete.
2870 * breakpoint.h: Ditto.
2871 * MAINTAINERS: Mark the mn10200-elf as obsolete.
2872 * config/mn10200/mn10200.mt: Obsolete file.
2873 * config/mn10200/tm-mn10200.h: Obsolete file.
2874 * mn10200-tdep.c: Obsolete file.
2876 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2878 * MAINTAINERS: Mark h8500 as obsolete.
2879 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
2880 * findvar.c (value_from_register): Ditto.
2881 * h8500-tdep.c: Mark file as obsolete.
2882 * config/h8500/h8500.mt: Ditto.
2883 * config/h8500/tm-h8500.h: Ditto.
2884 * NEWS: Mention that h8500 is obsolete.
2886 2003-02-04 David Carlton <carlton@math.stanford.edu>
2888 * objfiles.c (allocate_objfile): Always set name. Add comment at
2890 * jv-lang.c (get_dynamics_objfile): Add comment.
2892 2003-02-04 David Carlton <carlton@math.stanford.edu>
2894 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
2895 * printcmd.c (build_address_symbolic): Replace uses of
2896 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
2897 SYMBOL_NAME, and asm_demangle.
2900 2003-02-04 David Carlton <carlton@math.stanford.edu>
2902 * linespec.c (decode_compound): Extract code into
2904 (lookup_prefix_sym): New function.
2906 2003-02-04 David Carlton <carlton@math.stanford.edu>
2908 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
2909 FLOAT_COERCION_BADNESS.
2910 * gdbtypes.c (rank_one_type): Replace all uses of
2911 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
2913 2003-02-04 Jim Blandy <jimb@redhat.com>
2915 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
2916 section, let dwarf_macinfo_section point to it, not
2919 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
2921 Pointed out by Anton Blanchard <anton@samba.org>.
2922 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
2923 (ppc_linux_at_sigtramp_return_path): Use it.
2925 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
2927 * defs.h (streq): Add prototype.
2928 * utils.c (streq): New function.
2930 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
2931 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
2932 * mdebugread.c (new_symbol): Likewise.
2933 * stabsread.c (define_symbol): Likewise.
2934 * coffread.c (process_coff_symbol): Likewise.
2935 * dwarfread.c (new_symbol): Likewise.
2937 * minsyms.c (prim_record_minimal_symbol_and_info): Use
2938 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
2940 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
2941 SYMBOL_INIT_DEMANGLED_NAME.
2942 * objfiles.c: Include "hashtab.h".
2943 (allocate_objfile): Call htab_set_functions_ex for the
2944 demangled_names_hash.
2945 (free_objfile): Call htab_delete for the demangled_names_hash.
2946 * objfiles.h (struct htab): Add declaration.
2947 (struct objfile): Add demangled_names_hash.
2948 * symfile.c: Include "hashtab.h".
2949 (reread_symbols): Call htab_delete for the demangled_names_hash.
2950 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
2951 SYMBOL_NAME in the bcache.
2952 * symtab.c: Include "hashtab.h". Update comments.
2953 (create_demangled_names_hash, symbol_set_names): New functions.
2954 (symbol_find_demangled_name): New function, broken out from
2955 symbol_init_demangled_names.
2956 (symbol_init_demangled_names): Use it.
2957 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
2958 (SYMBOL_SET_NAMES): New macro.
2959 (symbol_set_names): Add prototype.
2961 2003-02-03 Jim Blandy <jimb@redhat.com>
2963 Use a single, consistent representation for an empty minimal
2964 symbol table in an objfile.
2965 * objfiles.c (terminate_minimal_symbol_table): New function.
2966 (allocate_objfile): Call it.
2967 * objfiles.h (terminate_minimal_symbol_table): New declaration.
2968 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
2970 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
2971 objfile has minimal symbols, compare minimal_symbol_count to zero,
2972 instead of comparing msymbols with NULL.
2973 * objfiles.c (have_minimal_symbols): Same.
2974 * solib-sunos.c (solib_add_common_symbols): Call
2975 terminate_minimal_symbol_table.
2976 * symfile.c (reread_symbols): Same.
2978 2003-02-03 Kevin Buettner <kevinb@redhat.com>
2980 * s390-tdep.c (s390_address_class_type_flags)
2981 (s390_address_class_type_flags_to_name)
2982 (s390_address_class_name_to_type_flags): New functions.
2983 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
2984 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
2986 2003-02-03 Michael Snyder <msnyder@redhat.com>
2988 * arm-tdep.c: Fix spell-o in comment.
2990 2003-02-03 Michal Ludvig <mludvig@suse.cz>
2992 * dwarf2cfi.c (pointer_encoding): Added new parameter.
2993 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
2994 error messages to contain BFD filename.
2996 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
2998 Fix PR gdb/742 gdb/743 gdb/877
2999 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
3000 (do_mixed_source_and_assembly): Use
3001 make_cleanup_ui_out_tuple_begin_end and
3002 make_cleanup_ui_out_tuple_begin_end.
3003 (do_mixed_source_and_assembly): Ditto.
3004 * thread.c (do_captured_list_thread_ids): Ditto.
3005 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
3006 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
3007 ui_out_tuple_end): Delete prototypes.
3008 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
3009 ui_out_list_end, ui_out_tuple_end): Delete.
3011 From Kevin Buettner <kevinb@redhat.com>:
3012 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
3013 * ui-out.c (make_cleanup_ui_out_table_begin_end)
3014 (do_cleanup_table_end): New functions.
3015 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
3016 Use cleanups to invoke_ui_out_tuple_end().
3017 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3018 * cli/cli-setshow.c (cmd_show_list): Use
3019 make_cleanup_ui_out_tuple_begin_end.
3021 2003-02-02 Andrew Cagney <ac131313@redhat.com>
3023 * frame.c (frame_unwind_register): New function.
3024 (frame_unwind_unsigned_register): Use.
3025 (frame_unwind_signed_register): Use.
3026 (frame_read_register): New function.
3027 * frame.h (frame_unwind_register): Declare.
3028 (frame_read_register): Declare.
3030 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
3031 and frame_unwind_register instead of read_memory, write_register
3032 and deprecated_write_register_bytes.
3034 2003-02-02 Andrew Cagney <ac131313@redhat.com>
3036 * frame.h: Note that namelen can be negative.
3037 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
3040 * NEWS: Mention that the d10v's `regs' command is deprecated.
3041 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
3042 (d10v_print_registers_info): New function.
3043 (show_regs): Call d10v_print_registers_info.
3044 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
3046 2003-02-02 Mark Kettenis <kettenis@gnu.org>
3048 * stack.c (print_frame_info): Restore call to annotate_frame_begin
3049 lost in the previous patch.
3051 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3053 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
3054 * stack.c (print_frame_info_base): Output complete FRAME tuple
3055 for synthesized frames.
3057 2003-02-02 Andrew Cagney <ac131313@redhat.com>
3059 * mips-nat.c (zerobuf): Delete.
3060 (fetch_inferior_registers): Alloc local zerobuf.
3061 (fetch_core_registers): Alloc local zerobuf.
3062 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
3063 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
3064 * thread-db.c (thread_db_store_registers): Ditto.
3065 * sh-tdep.c (sh_do_register): Ditto.
3066 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3067 * remote-sim.c (gdbsim_store_register): Ditto.
3068 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3069 * remote-e7000.c (fetch_regs_from_dump): Ditto.
3070 * monitor.c (monitor_supply_register): Ditto.
3071 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
3072 * mips-nat.c (fetch_inferior_registers): Ditto.
3073 * m68klinux-nat.c (fetch_register): Ditto.
3074 * lynx-nat.c (fetch_inferior_registers): Ditto.
3075 (fetch_inferior_registers): Ditto.
3076 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
3077 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
3078 (hpux_thread_store_registers): Ditto.
3079 * hppah-nat.c (fetch_register): Ditto.
3080 * hppab-nat.c (fetch_register): Ditto.
3081 * hppa-tdep.c (pa_register_look_aside): Ditto.
3082 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
3083 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
3085 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3087 * gdbarch.sh: Explictly specify all method levels. When a
3088 variable with an empty level, provide a non-multi-arch default.
3089 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
3090 * gdbarch.h: Re-generate.
3091 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
3092 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
3094 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3096 * defs.h (host_pointer_to_address): Delete declaration.
3097 (address_to_host_pointer): Delete declaration.
3098 * utils.c (host_pointer_to_address): Delete function.
3099 (address_to_host_pointer): Delete function.
3100 * procfs.c (procfs_address_to_host_pointer): New function.
3101 * procfs.c (proc_set_watchpoint): Use.
3102 (procfs_can_use_hw_breakpoint): Update comments.
3103 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
3104 (som_solib_add): Use.
3105 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
3106 * hppa-tdep.c (unwind_command): Use.
3108 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3110 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
3113 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
3114 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
3115 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
3116 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
3117 (define_symbol): Update.
3118 * symfile.c (generic_load): Remove references to nindy.
3119 * symtab.c: Remove references to nindy.
3121 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3123 * infcmd.c (print_float_info): Delete code conditional on
3125 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
3126 * config/m68k/nm-apollo68b.h: Ditto.
3127 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
3128 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
3129 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
3131 2003-02-01 Mark Kettenis <kettenis@gnu.org>
3133 * config/i386/tm-i386os9k.h: Removed.
3135 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
3136 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
3137 they're identical to i[3456]86-*-sysv* now.
3138 * config/i386/i386v32.mh: Removed.
3139 * config/i386/xm-i386v32.h: Removed.
3140 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
3142 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
3144 * config/i386/i386dgux.mh: Removed.
3145 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
3147 * configure.in: Fix typo.
3148 * configure: Regenerated.
3150 2003-01-31 David Carlton <carlton@math.stanford.edu>
3152 * dwarf2read.c (dwarf2_locate_sections): Set
3153 dwarf_ranges_section.
3155 2003-01-31 Andrew Cagney <ac131313@redhat.com>
3157 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
3158 * utils.c: Update comments documenting legitimate uses of PTR.
3160 * utils.c: Re-indent.
3162 * config/djgpp/fnchange.lst: Delete nindy files.
3163 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
3164 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
3165 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
3166 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
3167 * nindy-share/README, nindy-share/Onindy.c: Delete files.
3168 * nindy-tdep.c, nindy-share/Makefile: Delete files.
3169 * Makefile.in (init.c): Remove nindy references.
3170 (saber_gdb): Delete rule.
3171 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
3172 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
3174 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
3175 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
3176 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
3177 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
3179 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
3180 * saber.suppress: Delete file.
3182 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
3184 * dbxread.c (stabs_data): New static variable.
3185 (fill_symbuf): Support an in-memory buffer for stabs data.
3186 (stabs_seek): New function.
3187 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
3188 (read_ofile_symtab): Use stabs_seek.
3189 (elfstab_build_psymtabs): Take an asection* instead of
3190 an offset and size. Relocate the stabs data if necessary.
3191 Save the section* for dbx_psymtab_to_symtab.
3192 * dwarf2read.c: Add section variables for each debug section.
3193 (dwarf2_locate_sections): Fill them in.
3194 (dwarf2_read_section): Take an asection* argument.
3195 Relocate the section contents if necessary.
3196 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
3197 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
3198 it to dwarf2_read_section.
3199 (dwarf2_build_frame_info): Update callers.
3200 * elfread.c (elf_symfile_read): Update call to
3201 elfstab_build_psymtabs.
3202 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
3203 (DBX_STAB_SECTION): New macro.
3204 * stabsread.h (elfstab_build_psymtabs): Update prototype.
3205 * symfile.c (symfile_dummy_outputs): New function.
3206 (symfile_relocate_debug_section): New function.
3207 * symfile.h (symfile_relocate_debug_section): Add prototype.
3209 2003-01-31 Richard Henderson <rth@redhat.com>
3211 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
3212 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
3213 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
3214 * alpha-tdep.c (alpha_register_name): Add "unique".
3215 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
3216 (ALPHA_UNIQUE_REGNUM): New.
3217 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
3219 2003-01-31 Andrew Cagney <ac131313@redhat.com>
3221 * README: Remove reference to Ericsson 1800 monitor.
3222 * Makefile.in (remote-es.o): Delete rule.
3223 (ALLDEPFILES): Delete remote-es.c.
3224 * remote-es.c: Delete file.
3225 * config/m68k/es1800.mt: Delete file.
3226 * config/djgpp/fnchange.lst: Update.
3227 * configure.tgt: Delete m68*-ericsson-* target.
3229 2003-01-31 Adam Fedor <fedor@gnu.org>
3231 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
3232 Remove duplicate/shadowing variable of same name.
3234 2003-01-30 Jim Blandy <jimb@redhat.com>
3236 * symfile.c (find_separate_debug_file): Assert that the objfile's
3237 directory name we compute ends with a slash, and then assume that
3238 that's so everywhere we use it.
3240 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
3242 * valops.c (value_assign): Flush frame cache after stores to memory
3245 2003-01-30 Andrew Cagney <ac131313@redhat.com>
3247 * Makefile.in (mon960-rom.o): Delete rule.
3248 * mon960-rom.c: Delete file.
3250 2003-01-30 Andrew Cagney <ac131313@redhat.com>
3252 * d10v-tdep.c: Include "frame-unwind.h".
3253 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
3255 (next_addr, uses_frame): Delete.
3256 (struct d10v_unwind_cache): Define.
3257 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
3258 Use info instead of next_addr and uses_frame globals.
3259 (d10v_frame_init_saved_regs): Delete function.
3260 (d10v_init_extra_frame_info): Delete function.
3261 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
3262 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
3263 init_frame_pc or frame_saved_pc.
3264 (d10v_pop_frame): Delete function.
3265 (do_d10v_pop_frame): Delete function.
3266 (d10v_frame_chain): Delete function.
3267 (d10v_frame_chain_valid): Delete function.
3268 (d10v_frame_pc_unwind): New function.
3269 (d10v_frame_id_unwind): New function.
3270 (saved_regs_unwinder): New function.
3271 (d10v_frame_register_unwind): New function.
3272 (d10v_frame_pop): New function.
3273 (d10v_frame_unwind): New variable.
3274 (d10v_frame_p): New function.
3275 (d10v_frame_saved_pc): Delete function.
3276 * Makefile.in (d10v-tdep.o): Update dependencies.
3278 2003-01-30 J. Brobecker <brobecker@gnat.com>
3280 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
3281 causing some regressions due to a change in the default value
3284 2003-01-29 Richard Henderson <rth@redhat.com>
3285 Elena Zannoni <ezannoni@redhat.com>
3286 Daniel Jacobowitz <drow@mvista.com>
3289 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
3291 (RANGES_SECTION): New.
3292 (dwarf_ranges_buffer): New variable.
3293 (struct comp_unit_head): Add member "die".
3294 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
3295 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
3296 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
3297 (dwarf2_locate_sections): Likewise.
3298 (dwarf2_build_psymtabs): Read .debug_ranges.
3299 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
3300 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
3301 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
3302 Look for DW_AT_ranges and return the bounding box.
3304 2003-01-29 Brian Ford <ford@vss.fsi.com>
3306 * win32-nat.c (cygwin_pid): Removed as unused.
3307 (child_attach): Try fall back to Cygwin pid.
3309 2003-01-29 Jim Blandy <jimb@redhat.com>
3311 * objfiles.h (struct objfile): Doc fix.
3313 2003-01-29 Andrew Cagney <ac131313@redhat.com>
3315 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
3316 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
3317 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
3318 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
3319 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
3320 (FRAME_SAVED_PC): Change to a function with predicate.
3321 * gdbarch.h, gdbarch.c: Re-generate.
3323 2003-01-28 Andrew Cagney <ac131313@redhat.com>
3325 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
3327 * complaints.c (complain): Delete function.
3328 * complaints.h (struct deprecated_complaint): Delete definition.
3329 (complain): Delete declaration.
3331 2003-01-28 Kevin Buettner <kevinb@redhat.com>
3333 * mips-tdep.c (mips_init_extra_frame_info): Return early for
3336 2003-01-27 Andrew Cagney <ac131313@redhat.com>
3338 * sentinel-frame.h, sentinel-frame.c: New files.
3339 * Makefile.in (frame.o): Update dependencies.
3340 (SFILES): Add sentinel-frame.c.
3341 (sentinel_frame_h): Define.
3342 (COMMON_OBS): Add sentinel-frame.o.
3343 (sentinel-frame.o): Specify dependencies.
3344 * frame.c: Include "sentinel-frame.h".
3345 (frame_register_unwind): Rewrite assuming that there is always a a
3347 (frame_register, generic_unwind_get_saved_register): Ditto.
3348 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
3349 (create_sentinel_frame, unwind_to_current_frame): New functions.
3350 (get_current_frame): Rewrite using create_sentinel_frame and
3351 unwind_to_current_frame. When possible, always create a frame.
3352 (create_new_frame): Set next to the sentinel frame.
3353 (get_next_frame): Rewrite. Don't go below the level 0 frame.
3354 (deprecated_update_frame_pc_hack): Update the next frame's PC and
3355 ID cache when necessary.
3356 (frame_saved_regs_id_unwind): Use frame_relative_level.
3357 (deprecated_generic_get_saved_register): Use frame_relative_level,
3358 get_frame_saved_regs, get_frame_pc, get_frame_base and
3360 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
3363 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3365 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
3367 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3369 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
3370 (maintenance_set_profile_cmd): Use error () instead of warning ().
3372 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3374 * configure.in: Check that -pg works if using --enable-profiling.
3375 Check for monstartup and _mcleanup regardless of --enable-profiling.
3376 * maint.c: Check for monstartup and _mcleanup before using them.
3377 * config.in: Regenerated.
3378 * configure: Regenerated.
3380 2003-01-24 Nick Clifton <nickc@redhat.com>
3384 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
3386 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
3387 (sh2e_show_regs): New.
3388 (sh_gdbarch_init): Handle bfd_mach_sh2e.
3389 * config/sh/tm-sh.h: Added sh2e to comments.
3391 2003-01-23 Jim Blandy <jimb@redhat.com>
3393 * symfile.c (syms_from_objfile): Don't print the "(no debugging
3394 symbols found)" message here; we haven't checked for a separate
3395 debug info file yet, so we don't know yet.
3396 (symbol_file_add_with_addrs_or_offsets): Print it here, after
3397 we've looked everywhere. Also, there's no need to print a special
3398 message when we're loading the separate debug info file: the one
3399 symbol_file_add prints is fine.
3401 2003-01-23 Alexander Larsson <alexl@redhat.com>
3402 Jim Blandy <jimb@redhat.com>
3404 Add support for executables whose debug info has been separated
3405 out into a separate file, leaving only a link behind.
3406 * objfiles.h (struct objfile): New fields: separate_debug_objfile
3407 and separate_debug_objfile_backlink.
3408 (put_objfile_before): New declaration.
3409 * symfile.c: #include "filenames.h".
3410 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
3411 debug info in a separate file, read that, too. Save the addrs
3412 argument, so we can use it again to read the separated debug info;
3413 syms_from_objfile modifies the table we pass it.
3414 (reread_symbols): After re-reading an objfile, call
3415 reread_separate_symbols to refresh its separate debug info
3416 objfile, if it has one.
3417 (reread_separate_symbols, find_separate_debug_file,
3418 get_debug_link_info, separate_debug_file_exists): New functions.
3419 (debug_file_directory): New global var.
3420 (_initialize_symfile): Initialize debug_file_directory, and
3421 provide the new `set debug-file-directory' command to let the user
3423 * objfiles.c (free_objfile): If this objfile has its debug info in
3424 a separate objfile, free that one too. If this is itself a
3425 separate debug info objfile, clear our parent's backlink.
3426 (put_objfile_before): New function.
3427 * utils.c (gnu_debuglink_crc32): New function.
3428 * defs.h (gnu_debuglink_crc32): New declaration.
3429 * Makefile.in (symfile.o): Note dependency on "filenames.h".
3430 * configure.in: Handle --with-separate-debug-dir config option.
3431 * acinclude.m4 (AC_DEFINE_DIR): New macro.
3432 * acconfig.h (DEBUGDIR): New macro.
3433 * configure, aclocal.m4, config.in: Regenerated.
3435 2003-01-22 Jim Blandy <jimb@redhat.com>
3437 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
3438 like the old symbol_file_add, but taking new arguments: you can
3439 now pass in either a `struct section_addr_info' list to say where
3440 each section is loaded, or a `struct section_offsets' table. Pass
3441 these new arguments through to syms_from_objfile as appropriate.
3442 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
3443 with the appropriate quiescent values for the new arguments.
3445 * symfile.c: #include "gdb_assert.h".
3446 (syms_from_objfile): Add the ability to pass in a section offset
3447 table directly, as an alternative to the section_addr_info table.
3448 Document arguments better.
3449 (symbol_file_add): Pass extra arguments to syms_from_objfile.
3450 * symfile.h (syms_from_objfile): Update declaration.
3451 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
3453 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
3455 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
3457 Original patch by Tom Tromey <tromey@cygnus.com> and
3458 Jason Molenda <jmolenda@apple.com>.
3459 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
3460 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
3461 * NEWS: Mention profiling.
3462 * configure.in (--enable-gdbtk): Fix typo.
3463 (--enable-profiling): New. Set PROFILE_CFLAGS.
3464 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
3466 (profiling_state): New variable.
3467 (mcleanup_wrapper): New function.
3468 (_initialize_maint): Remove NOTYET, fix call to
3469 add_setshow_boolean_cmd for "maint set profile".
3470 * configure: Regenerated.
3472 2003-01-21 Martin M. Hunt <hunt@redhat.com>
3474 * Makefile.in (install-gdbtk): Install PNG images too.
3476 2003-01-21 Andrew Cagney <ac131313@redhat.com>
3478 * exec.c (text_start): Delete global variable.
3479 (exec_file_attach): Make text_start local to the function.
3480 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
3481 * valops.c (hand_function_call): Delete code that handles
3482 BEFORE_TEXT_END and AFTER_TEXT_END.
3483 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
3484 of CALL_DUMMY_LOCATION.
3485 * gdbarch.c: Regenerate.
3486 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
3487 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
3488 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
3489 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
3490 (text_end): Delete extern declaration.
3492 2003-01-21 Andrew Cagney <ac131313@redhat.com>
3494 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
3495 * blockframe.c (backtrace_below_main): Move to "frame.c".
3496 (frame_chain_valid): Delete check for backtrace_below_main.
3497 (_initialize_blockframe): Delete initialization, move ``set
3498 backtrace-below-main'' command to "frame.c".
3499 (do_flush_frames_sfunc): Delete function.
3500 * frame.c: Include "command.h" and "gdbcmd.h".
3501 (frame_type_from_pc): New function.
3502 (create_new_frame): Use frame_type_from_pc.
3503 (legacy_get_prev_frame): New function.
3504 (get_prev_frame): Rewrite. When an old style frame, call
3505 legacy_get_prev_frame. Otherwize, unwind the PC first.
3506 (_initialize_frame): Add ``set backtrace-below-main'' command.
3507 * Makefile.in (frame.o): Update dependencies.
3509 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3511 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
3512 DEPRECATED_REGISTERS_INFO.
3514 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3516 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
3517 Maintainers'. Update `Various Maintainers'.
3519 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3521 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
3522 * gdbarch.sh (POP_FRAME): Change to function with predicate.
3523 Suppress actual parameters when `-'.
3524 * gdbarch.h, gdbarch.c: Regenerate.
3526 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3528 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
3529 code handling dummy frames.
3531 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3533 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
3534 (struct frame_unwind): Add field pop.
3535 * frame.h (frame_pop): Declare.
3536 * frame.c (frame_saved_regs_pop): New function.
3537 (trad_frame_unwinder): Add frame_saved_regs_pop.
3538 (frame_pop): New function.
3539 * dummy-frame.c (dummy_frame_pop): New function.
3540 (discard_innermost_dummy): New function.
3541 (generic_pop_dummy_frame): Use discard_innermost_dummy.
3542 (dummy_frame_unwind): Add dummy_frame_pop.
3543 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
3544 * valops.c (hand_function_call): Ditto.
3545 * stack.c (return_command): Ditto.
3547 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3549 * cris-tdep.c: Fix function declaration indentation.
3550 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
3551 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
3552 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
3553 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
3554 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
3555 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
3557 2003-01-18 Michael Chastain <mec@shout.net>
3559 * README (Unpacking and Installation -- quick overview):
3560 Warn against ".../gdb-5.3/gdb/configure".
3562 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3564 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
3565 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3566 (struct frame_unwind): Declare opaque.
3567 (dummy_frame_p): Declare function.
3568 * dummy-frame.c (dummy_frame_id_unwind): Make static.
3569 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3570 * dummy-frame.c: Include "frame-unwind.h".
3571 (dummy_frame_p): New function.
3572 (dummy_frame_unwind): New variable.
3573 * frame.c: Include "frame-unwind.h".
3574 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
3575 to use the new unwind field.
3576 (set_unwind_by_pc): Delete function.
3577 (create_new_frame, get_prev_frame): Set unwind field using
3578 frame_unwind_find_by_pc.
3579 (trad_frame_unwind, trad_frame_unwinder): New variables.
3580 * frame.h (trad_frame_unwind): Declare variable.
3581 (frame_id_unwind_ftype): Delete declaration.
3582 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
3583 (struct frame_unwind): Declare opaque.
3584 (struct frame_info): Replace the fields id_unwind, pc_unwind and
3585 register_unwind with a single unwind pointer.
3586 * frame-unwind.h, frame-unwind.c: New files.
3587 * Makefile.in (SFILES): Add frame-unwind.c.
3588 (frame_unwind_h): Define.
3589 (COMMON_OBS): Add frame-unwind.o.
3590 (frame-unwind.o): Specify dependencies.
3591 (frame.o, dummy-frame.o): Update dependencies.
3593 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3595 * ada-valprint.c: Eliminate PTR.
3596 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
3597 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
3598 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
3599 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
3600 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
3601 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
3602 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
3604 2003-01-17 Andrew Cagney <ac131313@redhat.com>
3606 * main.c (captured_main): Don't use PTR.
3607 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
3608 * gdbtypes.c (lookup_primitive_typename): Ditto.
3609 (lookup_struct_elt_type): Ditto.
3610 * f-valprint.c (info_common_command): Ditto.
3611 (list_all_visible_commons): Ditto.
3612 * jv-typeprint.c (java_type_print_base): Ditto.
3614 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
3615 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
3616 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
3617 i386-interix-nat.c and i386-interix-tdep.c. Rename
3618 m68klinux-nat.c and m68klinux-tdep.c. Rename
3619 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
3620 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
3621 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
3622 * main.c (captured_main): Use xfree, not free.
3624 2003-01-16 Andrew Cagney <ac131313@redhat.com>
3626 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
3627 ID back using a parameter.
3628 * frame.c (frame_id_unwind): Update call.
3629 (frame_saved_regs_id_unwind): Update.
3630 * dummy-frame.c (dummy_frame_id_unwind): Update function.
3631 * dummy-frame.h (struct frame_id): Add opaque declaration.
3632 (dummy_frame_id_unwind): Update declaration.
3634 2003-01-15 Andrew Cagney <ac131313@redhat.com>
3636 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
3638 2003-01-15 Stephen P. Smith <ischis2@cox.net>
3640 * MAINTAINERS (Stephen P. Smith): Updated email address.
3642 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
3645 * breakpoint.c (until_break_command): Add new argument. Use it to
3646 decide whether to stop only at the current frame or not.
3647 * breakpoint.h (until_break_command): Update prototype.
3648 * infcmd.c (until_command): Add new argument to until_break_command
3650 (advance_command): New function.
3651 (_initialize_infcmd): Update help string for 'until' command.
3652 Add new 'advance' command.
3654 2003-01-14 David Carlton <carlton@math.stanford.edu>
3656 * linespec.c (decode_line_1): Normalize comments.
3658 (locate_first_half): Ditto.
3659 (decode_compound): Ditto.
3660 (symtab_from_filename): Ditto.
3661 (decode_all_digits): Ditto.
3662 (decode_dollar): Ditto.
3663 (find_methods): Ditto.
3664 (find_toplevel_char): Ditto.
3666 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3668 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
3669 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
3670 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
3671 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
3672 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
3673 * language.c, language.h, m32r-tdep.c: Update copyright.
3674 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
3675 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
3676 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
3677 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
3678 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
3679 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
3681 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3683 * stabsread.h (process_later, resolve_cfront_continuation):
3685 Update copyright years.
3686 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
3687 Update copyright year.
3688 * dbxread.c(struct cont_elem): Obsolete.
3689 (process_later, process_now): Obsolete functions.
3690 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
3691 Update copyright year.
3692 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
3693 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
3694 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
3695 (parse_partial_symbols): Obsolete cfront support.
3697 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
3699 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
3700 read_cfront_baseclasses, read_cfront_member_functions,
3701 resolve_cfront_continuation,read_cfront_static_fields,
3702 copy_cfront_struct_fields): Obsolete functions.
3703 (define_symbol, read_one_struct_field): Obsolete cfront support.
3704 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
3705 Update Copyright year.
3707 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3709 * stack.c (print_frame_info, print_stack_frame_base_stub,
3710 print_stack_frame_base, show_and_print_stack_frame_stub,
3711 show_and_print_stack_frame, print_only_stack_frame_stub,
3712 print_only_stack_frame): Delete functions.
3713 (print_stack_frame_stub): Call print_frame_info instead of
3714 print_frame_info_base.
3715 (print_frame_info_base): Rename to print_frame_info.
3716 (backtrace_command_1): Call print_frame_info, instead of
3717 print_frame_info_base.
3718 (current_frame_command): Call print_stack_frame, instead of
3719 print_only_stack_frame.
3720 (frame_command): Call print_stack_frame, instead of
3721 show_and_print_stack_frame.
3722 (up_command): Ditto.
3723 (down_command): Ditto.
3724 * frame.h (print_only_stack_frame): Delete prototype.
3725 * infrun.c (normal_stop): Call print_stack_frame, instead of
3726 show_and_print_stack_frame.
3727 * thread.c (info_threads_command): Call print_stack_frame, instead
3728 of print_only_stack_frame.
3730 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3732 * README (Graphical interface to GDB): Update URL. Point at
3735 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
3738 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3740 * symtab.c (find_pc_sect_line): Don't consider end-of-function
3743 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3745 * thread-db.c (attach_thread): Prototype.
3746 (struct private_thread_info): Remove lwpid. Add thread handle (th),
3747 thread information (ti), and valid flags (th_valid, ti_valid).
3748 (attach_thread): Move target_pid_to_str call to after the thread
3749 is added to GDB's list. Initialize the cache.
3750 (thread_get_info_callback, thread_db_map_id2thr)
3751 (thread_db_get_info): New functions.
3752 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
3753 (thread_db_store_registers, thread_db_thread_alive)
3754 (thread_db_get_thread_local_address): Use them.
3755 (thread_db_pid_to_str): Likewise. Return "Missing" instead
3756 of calling error() for threads in unknown state.
3758 (clear_lwpid_callback): New function.
3759 (thread_db_resume): Use it to clear the cache.
3761 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3763 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
3764 (resume_callback): Remove dead code.
3766 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3768 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
3770 * gdbarch.h, gdbarch.c: Regenerate.
3771 * stack.c (frame_info): Only initialize the saved registers when
3772 FRAME_INIT_SAVED_REGS_P.
3773 * frame.c (frame_saved_regs_register_unwind): Assert
3774 FRAME_INIT_SAVED_REGS_P.
3775 (deprecated_generic_get_saved_register): Ditto.
3777 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3779 * source.c (openp): Squelch warning about "filename".
3781 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3783 * source.c (openp): If the file does not exist don't necessarily
3786 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3789 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
3790 (integer_types_same_name_p): New function.
3791 (rank_one_type): Use it.
3792 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
3794 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3796 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
3798 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
3799 * configure.in: Add --with-sysroot.
3800 * configure: Regenerated.
3801 * main.c (gdb_sysroot): New variable.
3802 (captured_main): Initialize gdb_sysroot.
3803 * defs.h (gdb_sysroot): New extern declaration.
3804 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
3806 2003-01-12 Michael Chastain <mec@shout.net>
3808 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
3810 2003-01-12 Michael Chastain <mec@shout.net>
3812 * top.c (print_gdb_version): Bump copyright year to 2003.
3814 2003-01-12 David Carlton <carlton@bactrian.org>
3816 * linespec.c (symtab_from_filename): Rename variable 's' to
3819 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3821 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
3823 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
3825 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3827 * d10v-tdep.c: Include "gdb_assert.h".
3828 (d10v_store_return_value): Rewrite to match current interface.
3829 (d10v_extract_struct_value_address): Ditto.
3830 (d10v_extract_return_value): Ditto.
3831 (d10v_gdbarch_init): Set store_restore_value,
3832 extract_struct_value_address and extract_return_value.
3834 2003-01-12 J. Brobecker <brobecker@gnat.com>
3836 * hpread.c (set_namestring): New procedure replacing the
3837 SET_NAMESTRING macro.
3838 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
3839 by calls to set_namestring.
3841 2003-01-11 J. Brobecker <brobecker@gnat.com>
3843 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
3844 a compilation warning.
3845 (hpread_process_one_debug_symbol): Likewise.
3847 2003-01-10 David Carlton <carlton@math.stanford.edu>
3849 * linespec.c (decode_line_1): Rename variable 's' to
3851 (decode_all_digits): Rename argument 's' to 'file_symtab'.
3852 (decode_dollar): Ditto.
3853 (decode_variable): Ditto.
3854 (symbol_found): Ditto.
3856 2003-01-09 Michael Chastain <mec@shout.net>
3858 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
3860 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
3862 * win32-nat.c (set_process_privilege): New function.
3863 (child_attach): Call set_process_privilege() to enable the
3864 SE_DEBUG_NAME user privilege if available in process token.
3866 2003-01-10 J. Brobecker <brobecker@gnat.com>
3868 * hpread.c (hpread_process_one_debug_symbol): Fix a small
3869 compilation error in the previous revision.
3871 2003-01-09 David Carlton <carlton@math.stanford.edu>
3873 * linespec.c: Update copyright.
3875 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
3877 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
3879 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
3881 2003-01-09 Andrew Cagney <ac131313@redhat.com>
3883 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
3885 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
3886 (frame_saved_regs_zalloc): Update.
3887 (frame_saved_regs_register_unwind): Update.
3888 (create_new_frame): Update.
3889 (get_prev_frame): Update.
3890 (frame_extra_info_zalloc): Update.
3891 (deprecated_get_frame_saved_regs): Update.
3892 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
3893 * cris-tdep.c: Update comment.
3895 * somsolib.h: Fix function indentation.
3896 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
3897 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
3898 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
3899 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
3900 * somsolib.c, inftarg.c: Remove assignment in if conditional.
3902 * infrun.c (follow_fork): Use ISO C definition.
3903 * expprint.c (print_subexp): Use xfree instead of free.
3904 * charset.c: Include "gdb_string.h" instead of <string.h>.
3905 (register_iconv_charsets): Use ISO C definition.
3906 (host_charset, target_charset): Ditto.
3907 * Makefile.in (charset.o): Update dependencies.
3908 (mi-cmd-env.o): Update dependencies.
3910 2003-01-08 Andrew Cagney <cagney@redhat.com>
3912 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
3915 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3917 * gdb_mbuild.sh: Add --keep option. When specified, keep the
3918 build directories. Save edited gdb output in Mbuild.log. If a
3919 build fails, remove any final GDB executable.
3921 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3923 * gdb_mbuild.sh: Edit the output of `maint print architecture'
3924 replacing hex constants with function names and stripping leading
3925 file name directory prefixes.
3927 2003-01-08 Andrew Cagney <cagney@redhat.com>
3929 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
3932 2003-01-08 David Carlton <carlton@math.stanford.edu>
3934 * linespec.c (decode_line_1): Move code into decode_variable.
3935 (decode_variable): New function.
3937 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3939 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
3941 2003-01-08 Andrew Cagney <cagney@redhat.com>
3943 * cris-tdep.c (cris_frame_init_saved_regs): Use
3944 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
3946 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
3947 (sh64_nofp_frame_init_saved_regs): Ditto.
3948 (sh_fp_frame_init_saved_regs): Ditto.
3949 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
3950 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3951 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3952 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3954 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
3956 * minsyms.c (lookup_minimal_symbol): Update comment.
3957 (lookup_minimal_symbol_text): Update comment. Use the hash table.
3958 (lookup_minimal_symbol_solib_trampoline): Likewise.
3960 2003-01-08 Andrew Cagney <cagney@redhat.com>
3962 * d10v-tdep.c (d10v_init_extra_frame_info): Use
3963 frame_relative_level.
3965 * alpha-tdep.c: Use get_frame_extra_info.
3966 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3967 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
3968 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3969 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
3971 * alpha-tdep.c: Use get_next_frame.
3972 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3973 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3974 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
3975 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
3976 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
3977 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
3978 * xstormy16-tdep.c: Ditto.
3980 2003-01-07 Andrew Cagney <cagney@redhat.com>
3982 * alpha-tdep.c: Use get_frame_base.
3983 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3984 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3985 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3986 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3987 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
3988 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3989 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
3990 * config/sparc/tm-sparc.h: Ditto.
3992 2003-01-07 Andrew Cagney <cagney@redhat.com>
3994 * frame.c (deprecated_get_frame_context): New function.
3995 (deprecated_set_frame_context): New function.
3996 * frame.h (deprecated_get_frame_context): Declare.
3997 (deprecated_set_frame_context): Declare.
3998 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
3999 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
4001 2003-01-07 Andrew Cagney <cagney@redhat.com>
4003 * frame.c (deprecated_set_frame_next_hack): New function.
4004 (deprecated_set_frame_prev_hack): New function.
4005 * frame.h (deprecated_set_frame_next_hack): Declare.
4006 (deprecated_set_frame_prev_hack): Declare.
4007 * mcore-tdep.c (analyze_dummy_frame): Use
4008 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
4009 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4011 2003-01-07 David Carlton <carlton@math.stanford.edu>
4013 * linespec.c (decode_line_1): Move code into decode_dollar.
4014 (decode_dollar): New function.
4016 2003-01-07 Andrew Cagney <cagney@redhat.com>
4018 * arm-tdep.c (arm_init_extra_frame_info): Use
4019 deprecated_update_frame_base_hack.
4020 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
4021 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
4022 (fix_frame_pointer): Ditto.
4023 (mn10300_analyze_prologue): Ditto.
4025 2003-01-07 Andrew Cagney <cagney@redhat.com>
4027 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
4028 extra_info using frame_extra_info_zalloc.
4029 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4030 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
4031 (sh64_init_extra_frame_info): Ditto.
4032 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
4033 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
4034 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
4035 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
4036 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
4037 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
4038 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
4039 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
4040 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
4041 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
4042 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
4043 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
4045 * mn10300-tdep.c (analyze_dummy_frame): Use
4046 deprecated_set_frame_extra_info_hack.
4047 * mcore-tdep.c (analyze_dummy_frame): Ditto.
4049 2003-01-07 J. Brobecker <brobecker@gnat.com>
4051 * mdebugread.c (parse_symbol): Skip stProc entries which storage
4052 class is not scText. These do not define "real" procedures.
4053 (parse_partial_symbols): Likewise.
4055 2003-01-06 Michael Snyder <msnyder@redhat.com>
4057 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
4059 2003-01-06 Andrew Cagney <ac131313@redhat.com>
4061 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
4062 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
4063 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
4064 deprecated_frame_xmalloc_with_cleanup.
4065 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
4066 deprecated_frame_xmalloc.
4067 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
4068 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
4070 2003-01-06 Andrew Cagney <cagney@redhat.com>
4072 * x86-64-linux-tdep.c: Include "osabi.h".
4073 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
4075 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
4077 2003-01-06 Andrew Cagney <cagney@redhat.com>
4079 * MAINTAINERS (Target Instruction Set Architectures): Update
4080 arm-elf. Can be built with -Werror, has been multiarched.
4082 * value.h (unpack_long): Make buffer parameter constant.
4083 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
4084 * scm-lang.h (scm_parse): Ditto.
4085 * defs.h (extract_typed_address, extract_address): Ditto.
4086 (extract_long_unsigned_integer): Ditto.
4087 * inferior.h (unsigned_pointer_to_address): Ditto.
4088 (signed_pointer_to_address): Ditto.
4089 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
4090 * gdbarch.h, gdbarch.c: Regenerate.
4091 * findvar.c (extract_long_unsigned_integer): Update.
4092 (extract_address): Update.
4093 (extract_typed_address): Update.
4094 (unsigned_pointer_to_address): Update.
4095 * values.c (unpack_long): Update.
4096 (unpack_double): Update.
4097 (unpack_pointer): Update.
4098 (unpack_field_as_long): Update.
4099 * d10v-tdep.c (d10v_pointer_to_address): Update.
4100 * avr-tdep.c (avr_pointer_to_address): Update.
4101 * scm-lang.c (scm_unpack): Update.
4102 * findvar.c (signed_pointer_to_address): Update.
4104 2003-01-06 Michal Ludvig <mludvig@suse.cz>
4106 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
4107 since it is in i386-tdep.c.
4109 2003-01-06 J. Brobecker <brobecker@gnat.com>
4111 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
4112 failure introduced in the previous change.
4114 2003-01-05 Michael Chastain <mec@shout.net>
4116 * README: Remove references to deleted remote-*.c files:
4117 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
4118 remote-nrom.c, remote-os9k.c, remote-udi.c.
4120 2003-01-05 Mark Kettenis <kettenis@gnu.org>
4122 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
4123 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
4124 i386_get_longjmp_target.
4126 2003-01-05 Andrew Cagney <ac131313@redhat.com>
4128 * arm-tdep.c (prologue_cache): Change to a pointer.
4129 (_initialize_arm_tdep): Allocate prologue_cache.
4130 (check_prologue_cache): Update.
4131 (save_prologue_cache): Update.
4132 (arm_gdbarch_init): Update.
4134 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4136 * stabsread.c (update_method_name_from_physname): Call complaint()
4139 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4141 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
4142 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
4143 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
4145 * blockframe.c: Include "gdbcmd.h" and "command.h".
4146 (backtrace_below_main): New variable.
4147 (file_frame_chain_valid, func_frame_chain_valid)
4148 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
4149 (generic_func_frame_chain_valid): Remove functions.
4150 (frame_chain_valid, do_flush_frames_sfunc): New functions.
4151 (_initialize_blockframe): New function.
4152 * Makefile.in (blockframe.o): Update dependencies.
4153 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
4154 comment. Call frame_chain_valid ().
4155 * frame.h: Remove old prototypes. Add prototype for
4156 frame_chain_valid and update comments to match.
4157 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
4159 * gdbarch.h: Regenerated.
4160 * gdbarch.c: Regenerated.
4162 * alpha-tdep.c (alpha_gdbarch_init): Don't call
4163 set_gdbarch_frame_chain_valid.
4164 * avr-tdep.c (avr_gdbarch_init): Likewise.
4165 * cris-tdep.c (cris_gdbarch_init): Likewise.
4166 * frv-tdep.c (frv_gdbarch_init): Likewise.
4167 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4168 * i386-tdep.c (i386_svr4_init_abi): Likewise.
4169 (i386_nw_init_abi): Likewise.
4170 (i386_gdbarch_init): Likewise.
4171 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4172 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4173 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4174 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
4175 * mips-tdep.c (mips_gdbarch_init): Likewise.
4176 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4177 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
4178 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
4179 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4180 * s390-tdep.c (s390_gdbarch_init): Likewise.
4181 * sh-tdep.c (sh_gdbarch_init): Likewise.
4182 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4183 * v850-tdep.c (v850_gdbarch_init): Likewise.
4184 * vax-tdep.c (vax_gdbarch_init): Likewise.
4185 * x86-64-tdep.c (x86_64_init_abi): Likewise.
4187 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
4188 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
4189 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
4190 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
4191 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
4192 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
4193 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
4194 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
4196 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4198 * Makefile.in (acconfig_h): Remove incorrect macro.
4200 (osabi.o): Update dependencies.
4201 * configure.tgt: Set gdb_osabi based on target triplet.
4202 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
4203 * configure: Regenerated.
4204 * config.in: Regenerated.
4205 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
4206 (GDB_OSABI_DEFAULT): Define if not already defined.
4207 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
4208 (set_osabi_string): New variables.
4209 (gdbarch_register_osabi): Add new OS ABI to
4210 gdb_osabi_available_names.
4211 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
4212 (set_osabi, show_osabi): New functions.
4213 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
4215 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4217 * arch-utils.c (gdbarch_info_init): Set osabi to
4218 GDB_OSABI_UNINITIALIZED.
4219 * gdbarch.sh: Add osabi to struct gdbarch and to struct
4220 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
4221 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
4222 * gdbarch.c: Regenerated.
4223 * gdbarch.h: Regenerated.
4224 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
4226 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
4227 * osabi.h (enum gdb_osabi): Move to defs.h.
4228 (gdbarch_init_osabi): Update prototype.
4229 * defs.h (enum gdb_osabi): Moved here.
4230 * Makefile.in: Update dependencies.
4232 * alpha-tdep.h: Don't include "osabi.h".
4233 (struct gdbarch_tdep): Remove osabi member.
4234 * alpha-tdep.c: Include "osabi.h".
4235 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4236 iterate over arches. Update call to gdbarch_init_osabi.
4237 (alpha_dump_tdep): Don't dump osabi.
4238 * alpha-linux-tdep.c: Include "osabi.h".
4239 * alpha-osf1-tdep.c: Include "osabi.h".
4240 * alphafbsd-tdep.c: Include "osabi.h".
4241 * alphanbsd-tdep.c: Include "osabi.h".
4243 * arm-tdep.h: Don't include "osabi.h".
4244 (struct gdbarch_tdep): Remove osabi member.
4245 * arm-tdep.c: Include "osabi.h".
4246 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4247 iterate over arches. Update call to gdbarch_init_osabi.
4248 (arm_dump_tdep): Don't dump osabi.
4249 * arm-linux-tdep.c: Include "osabi.h".
4250 * armnbsd-tdep.c: Include "osabi.h".
4252 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
4253 Update call to gdbarch_init_osabi.
4255 * i386-tdep.h: Don't include "osabi.h".
4256 (struct gdbarch_tdep): Remove osabi member.
4257 * i386-tdep.c: Include "osabi.h".
4258 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4259 iterate over arches. Update call to gdbarch_init_osabi.
4260 (i386_dump_tdep): Don't dump osabi.
4261 * i386-linux-tdep.c: Include "osabi.h".
4262 * i386-sol2-tdep.c: Include "osabi.h".
4263 * i386bsd-tdep.c: Include "osabi.h".
4264 * i386gnu-tdep.c: Include "osabi.h".
4265 * i386ly-tdep.c: Include "osabi.h".
4266 * i386nbsd-tdep.c: Include "osabi.h".
4267 * i386obsd-tdep.c: Include "osabi.h".
4269 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
4270 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4271 check osabi when iterating over arches. Update call to
4273 (mips_dump_tdep): Don't dump osabi.
4275 * ns32k-tdep.h: Don't include "osabi.h".
4276 (struct gdbarch_tdep): Remove.
4277 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
4278 gdbarch_lookup_osabi. Don't iterate over arches. Don't
4279 allocate tdep. Update call to gdbarch_init_osabi.
4280 (ns32k_dump_tdep): Remove.
4281 (_initialize_ns32k_tdep): Update call to gdbarch_register.
4282 * ns32knbsd-tdep.c: Include "osabi.h".
4284 * ppc-tdep.h: Don't include "osabi.h".
4285 (struct gdbarch_tdep): Remove osabi member.
4286 * rs6000-tdep.c: Include "osabi.h".
4287 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
4288 osabi when iterating over arches. Update call to
4290 (rs6000_dump_tdep): Don't dump osabi.
4291 * ppc-linux-tdep.c: Include "osabi.h".
4292 * ppcnbsd-tdep.c: Include "osabi.h".
4294 * sh-tdep.h: Don't include "osabi.h".
4295 (struct gdbarch_tdep): Remove osabi member.
4296 * sh-tdep.c: Include "osabi.h".
4297 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4298 iterate over arches. Update call to gdbarch_init_osabi.
4299 (sh_dump_tdep): Don't dump osabi.
4300 * shnbsd-tdep.c: Include "osabi.h".
4302 * sparc-tdep.c: Include "osabi.h".
4303 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4304 iterate over arches. Update call to gdbarch_init_osabi.
4305 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
4308 * vax-tdep.h: Don't include "osabi.h".
4309 (struct gdbarch_tdep): Remove.
4310 * vax-tdep.c: Include "osabi.h".
4311 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4312 iterate over arches. Don't allocate tdep. Update call
4313 to gdbarch_init_osabi.
4314 (vax_dump_tdep): Remove.
4315 (_initialize_vax_tdep): Update call to gdbarch_register.
4317 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4319 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
4321 (breakpoint_re_set_one): Don't fetch the value for a disabled
4324 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4326 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
4327 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
4328 (COERCE_FLOAT_TO_DOUBLE): Remove.
4329 * gdbarch.c: Regenerate.
4330 * gdbarch.h: Regenerate.
4331 * Makefile.in: Remove value_h from gdbarch_h.
4332 * valops.c (coerce_float_to_double): New variable.
4333 (default_coerce_float_to_double): Remove.
4334 (standard_coerce_float_to_double): Remove.
4335 (value_arg_coerce): Use coerce_float_to_double.
4336 (_initialize_valops): Add "set coerce-float-to-double".
4337 * value.h (default_coerce_float_to_double): Remove prototype.
4338 (standard_coerce_float_to_double): Remove prototype.
4340 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
4342 * mdebugread.c (parse_symbol): Likewise.
4343 * stabsread.c (define_symbol): Mark all functions as prototyped.
4345 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
4346 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
4347 set_gdbarch_coerce_float_to_double.
4348 * arm-tdep.c (arm_gdbarch_init): Likewise.
4349 * frv-tdep.c (frv_gdbarch_init): Likewise.
4350 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
4351 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
4352 * mips-tdep.c (mips_gdbarch_init): Likewise.
4353 (mips_coerce_float_to_double): Remove.
4354 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4355 (rs6000_coerce_float_to_double): Remove.
4356 * s390-tdep.c (s390_gdbarch_init): Likewise.
4357 * sh-tdep.c (sh_gdbarch_init): Likewise.
4358 (sh_coerce_float_to_double): Remove.
4359 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4360 (sparc_coerce_float_to_double): Remove.
4361 * v850-tdep.c (v850_gdbarch_init): Likewise.
4362 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4363 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4364 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
4365 (hppa_coerce_float_to_double): Remove prototype.
4366 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4368 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4370 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
4372 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4374 Suggested by Stewart Brown <sb24@avaya.com>:
4375 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
4376 in recursive calls. Handle TYPE_CODE_TYPEDEF.
4377 (c_type_print_varspec_suffix): Likewise.
4379 2003-01-04 Mark Kettenis <kettenis@gnu.org>
4381 * configure.in: Don't set and AC_SUBST SUBDIRS.
4382 * configure: Regenerated.
4384 * configure.in: Remove code dealing with shared libraries.
4385 * Makefile.in: Remove HLDFLAGS and HLDENV.
4386 * configure: Regenerated.
4388 2003-01-04 Andrew Cagney <ac131313@redhat.com>
4390 * frame.c (deprecated_frame_xmalloc): New function.
4391 (deprecated_set_frame_saved_regs_hack): New function.
4392 (deprecated_set_frame_extra_info_hack): New function.
4393 * frame.h (deprecated_frame_xmalloc): Declare.
4394 (deprecated_set_frame_saved_regs_hack): Declare.
4395 (deprecated_set_frame_extra_info_hack): Declare.
4397 2003-01-04 Mark Kettenis <kettenis@gnu.org>
4399 * configure.in: Move code that provides the --enable-gdbtk option
4400 right after the code that handles the --enable-tui option, and
4402 * configure: Regenerated.
4404 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
4405 AC_CHECK_FUNCS and remove the old check for pread64.
4406 * acinclude.m4 (AC_GNU_SOURCE): New macro.
4407 * acconfig.h (_GNU_SOURCE): Add.
4408 (HAVE_PREAD64): Remove.
4409 * configure, aclocal.m4, config.in: Regenerated.
4411 2003-01-03 Andrew Cagney <ac131313@redhat.com>
4413 * alpha-tdep.c: Use get_frame_saved_regs.
4414 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4415 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
4416 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
4417 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
4418 * vax-tdep.c, xstormy16-tdep.c: Ditto.
4420 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4422 * configure.in: Remove all use of the SUBDIRS variable; add
4423 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
4424 code providing the --enable-multi-ice option, and move it right in
4425 front of the code that checks whether gdbserver is supported.
4427 * configure: Regenerated.
4428 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
4431 2003-01-03 Andrew Cagney <cagney@redhat.com>
4433 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
4434 * avr-tdep.c, cris-tdep.c: Ditto.
4435 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
4436 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4438 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4440 * configure.in: Remove --enable-netrom option.
4441 * configure: Regenerated.
4443 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4445 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
4446 declaration for `struct re_pattern_buffer' instead.
4447 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
4449 2003-01-03 J. Brobecker <brobecker@gnat.com>
4451 * mdebugread.c (parse_symbol): Count until the stEnd matching
4454 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4456 * configure.in: Remove --with-cpu option.
4457 subscripts. Remove evil changequotes here.
4458 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
4459 * config.in, configure: Regenerated.
4461 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
4462 * configure.in: Cleanup section that sources GDB and BFD configure
4463 subscripts. Remove evil changequotes here.
4464 * config.in, configure: Regenerated.
4466 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4468 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
4469 frame accessor methods.
4470 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4471 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
4472 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
4473 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
4474 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4475 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
4476 * z8k-tdep.c: Ditto.
4478 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4480 * configure.in: Remove UI_OUT configuration code.
4481 * ada-lang.c: Update assuming UI_OUT is always true.
4482 * Makefile.in (UIOUT_CFLAGS): Remove.
4483 * configure: Regenerated.
4484 * TODO: Remove blurb about elimination of -DUI_OUT.
4486 * configure.in: Move code that provides the --enable-gdbcli,
4487 --enable-gdbmi options right before the code that handles the
4488 --enable-tui option. Polish a bit.
4489 * configure: Regenerated.
4491 * configure.in: Rewrite check for GNU regex and the
4492 --without-included regex option, and move it into the "Checks for
4493 library functions" section. This makes us use the system regex
4494 again by default on systems with version 2 of the GNU C library.
4495 This was apparently broken.
4496 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
4497 * acconfig.h (USE_INCLUDED_REGEX): Remove.
4498 * config.in, configure: Regenerated.
4500 * configure.in: Move code that provides the --enable-tui option
4501 before the "Checks for libraries" section. Polish the code
4502 somewhat and set need_curses to yes if we build the TUI. Rewrite
4503 code that looks for a library providing termcap functionality to
4504 match more closely what's done in the Readline library, and move
4505 it into to the "Checks for libraries" section.
4506 * configure: Regenerated.
4507 * Makefile.in (TERMCAP): Remove variable.
4508 * config/i386/go32.mh (TERMCAP): Remove variable.
4510 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4512 * MAINTAINERS: Mention gdb_mbuild.sh.
4513 * gdb_mbuild.sh: Rewrite.
4515 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4517 * configure.in: Fix typo in last change.
4518 * config.in, configure: Regenerated.
4520 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4522 * valarith.c (value_binop): Delete obsolete code and comments.
4523 * configure.host: Ditto.
4524 * buildsym.h (make_blockvector): Ditto.
4525 * buildsym.c (make_blockvector): Ditto.
4526 * defs.h (enum language): Ditto.
4527 (chill_demangle): Ditto.
4528 * elfread.c (elf_symtab_read): Ditto.
4529 * dwarfread.c (CHILL_PRODUCER): Ditto.
4530 (set_cu_language): Ditto.
4531 (handle_producer): Ditto.
4532 * expprint.c (print_subexp): Ditto.
4533 * gdbtypes.c (chill_varying_type): Ditto.
4534 * gdbtypes.h (builtin_type_chill_bool): Ditto.
4535 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
4536 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
4537 (chill_varying_type): Ditto.
4538 * language.h (_LANG_chill): Ditto.
4539 * language.c (binop_result_type, integral_type): Ditto.
4540 (character_type, string_type, structured_type): Ditto.
4541 (lang_bool_type, binop_type_check): Ditto.
4542 * stabsread.h (os9k_stabs): Ditto.
4543 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
4544 (define_symbol, read_type, read_struct_fields): Ditto.
4545 (read_array_type, read_enum_type, read_huge_number): Ditto.
4546 (read_range_type, start_stabs): Ditto.
4547 * symfile.c (init_filename_language_table): Ditto.
4548 (add_psymbol_with_dem_name_to_list): Ditto.
4549 * symtab.c (symbol_init_language_specific): Ditto.
4550 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
4551 * symtab.h (struct general_symbol_info): Ditto.
4552 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4553 * typeprint.c (typedef_print): Ditto.
4554 * utils.c (fprintf_symbol_filtered): Ditto.
4555 * valops.c (value_cast, search_struct_field, value_slice): Delete
4557 (varying_to_slice): Delete function.
4558 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
4559 (varying_to_slice): Delete declaration.
4560 * MAINTAINERS: Update.
4562 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4564 * configure.in: Reorganize "Checks for library functions section"
4565 a bit. Remove check for `btowc' and `isascii' functions.
4566 * configure: Regenerated.
4568 * acconfig.h (_MSE_INT_H): Remove.
4569 * configure.in: Create "Checks for header files" section, and move
4570 appropriate tests there. Don't check for objlist.h, wchar.h,
4571 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
4572 misdetection fix. Also add "Checks for types", "Checks for
4573 compiler characteristics" and "Checks for library functions"
4575 * config.in, configure: Regenerated.
4577 * configure.in: Create "Checks for programs" section, and move
4578 appropriate tests there.
4580 2003-01-01 Mark Kettenis <kettenis@gnu.org>
4582 * configure.in: Create "Checks for libraries" section, and move
4583 appropriate tests there. Cleanup check for wctype in libw. Use
4584 AC_SEARCH_LIBS to see whether we need libsocket.
4585 * configure: Regenerated.
4587 For older changes see ChangeLog-2002
4593 version-control: never