1 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
3 * blockframe.c (legacy_frame_chain_valid): Move call to
4 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7 2003-04-09 Andrew Cagney <cagney@redhat.com>
9 * frame.h (struct frame_id): Replace "pc" and "base" with
10 "stack_addr" and "code_addr". Update comments.
11 (frame_id_build): Update parameter names and comment.
12 (struct frame_info): Replace "id_p" and "id" with "this_id".
13 * dummy-frame.c (dummy_frame_this_id): Update.
14 * breakpoint.c (print_one_breakpoint): Update.
15 * frame.c (get_frame_id): Update.
16 (get_frame_base, frame_id_build): Update.
17 (create_sentinel_frame, legacy_get_prev_frame): Update.
18 (deprecated_update_frame_base_hack): Update.
19 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
20 (frame_id_inner): Ditto.
22 2003-04-09 Andrew Cagney <cagney@redhat.com>
24 * defs.h (gdb_print_host_address): Make "addr" parameter a
26 * utils.c (gdb_print_host_address): Update.
28 2003-04-09 Kevin Buettner <kevinb@redhat.com>
30 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
31 register number for R0 is 0.
33 2003-04-09 J. Brobecker <brobecker@gnat.com>
35 * frame.h (struct gdbarch): Add opaque structure definition
36 to avoid a compilation warning on LynxOS 4.0.
38 2003-04-09 Andrew Cagney <cagney@redhat.com>
40 * frame.h (struct frame_info): Delete field "pc". Replace
41 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
43 * frame.c (frame_pc_unwind): Update.
44 (create_sentinel_frame): Do not set "pc".
45 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
46 (get_frame_pc): Call frame_pc_unwind.
47 (deprecated_update_frame_pc_hack): Update.
48 (create_new_frame): Use "pc" not "->pc".
50 2003-04-09 Andrew Cagney <cagney@redhat.com>
52 * frame.c (get_frame_id): Eliminate code updating "frame".
53 (legacy_get_prev_frame): Ditto.
54 (get_frame_base): Return id.base directly.
55 (deprecated_update_frame_base_hack): Update "id.base".
56 * frame.h (struct frame_info): Delete field "frame".
58 2003-04-09 Andrew Cagney <cagney@redhat.com>
60 * NEWS: Mention that the "Sequent family" is obsolete.
61 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
62 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
63 * configure.host: Obsolete i[3456]86-sequent-bsd*,
64 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
65 * config/i386/tm-ptx4.h: Obsolete file.
66 * config/i386/tm-ptx.h: Obsolete file.
67 * symm-tdep.c: Obsolete file.
68 * config/i386/symmetry.mt: Obsolete file.
69 * config/i386/tm-symmetry.h: Obsolete file.
70 * symm-nat.c: Obsolete file.
71 * config/i386/nm-symmetry.h: Obsolete file.
72 * config/i386/xm-symmetry.h: Obsolete file.
73 * config/i386/symmetry.mh: Obsolete file.
74 * config/i386/nm-ptx4.h: Obsolete file.
75 * config/i386/ptx4.mh: Obsolete file.
76 * config/i386/ptx.mt: Obsolete file.
77 * config/i386/ptx.mh: Obsolete file.
78 * config/i386/xm-ptx4.h: Obsolete file.
79 * config/i386/xm-ptx.h: Obsolete file.
81 2003-04-09 Andrew Cagney <cagney@redhat.com>
83 Obsolete mips*-*-mach3*.
84 * NEWS: Mention that mips*-*-mach3* is obsolete.
85 * m3-nat.c: Obsolete file.
86 * config/nm-m3.h: Obsolete file.
87 * config/mips/tm-mipsm3.h: Obsolete file.
88 * config/mips/mipsm3.mt: Obsolete file.
89 * config/mips/mipsm3.mh: Obsolete file.
90 * config/mips/xm-mipsm3.h: Obsolete file.
91 * mipsm3-nat.c: Obsolete file.
92 * configure.host: Obsolete mips-dec-mach3*.
93 * configure.tgt: Obsolete mips*-*-mach3*.
95 2003-04-09 Andrew Cagney <cagney@redhat.com>
97 * doublest.h: Update copyright.
98 (deprecated_store_floating, deprecated_extract_floating): Rename
99 store_floating and extract_floating. Update comments.
100 * doublest.c: Update copyright.
101 (extract_floating_by_length): Replace extract_floating.
102 (store_floating_by_length): Replace store_floating.
103 (deprecated_extract_floating): New function.
104 (deprecated_store_floating): New function.
105 (extract_typed_floating): Call extract_floating_by_length.
106 (store_typed_floating): Call store_floating_by_length.
107 * x86-64-tdep.c (x86_64_store_return_value): Update.
108 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
109 (sh64_extract_return_value): Update.
110 (sh_sh4_register_convert_to_virtual): Update.
111 (sh_sh64_register_convert_to_virtual): Update.
112 (sh_sh4_register_convert_to_raw): Update.
113 (sh_sh64_register_convert_to_raw): Update.
114 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
115 (rs6000_register_convert_to_raw): Update.
116 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
117 (ia64_register_convert_to_raw): Update.
118 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
119 (REGISTER_CONVERT_TO_VIRTUAL): Update.
120 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
121 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
122 (alpha_register_convert_to_raw): Update.
124 2003-04-08 Andrew Cagney <cagney@redhat.com>
126 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
127 * gdbarch.h, gdbarch.c: Re-generate.
128 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
129 (d10v_gdbarch_init): Do not set saved_pc_after_call.
130 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
131 conditionally, use frame_pc_unwind as an alternative. Add
133 * arch-utils.c (init_frame_pc_default): Only call
134 SAVED_PC_AFTER_CALL when available.
136 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
138 * infrun.c (stop_soon): Rename from stop_soon_quietly.
139 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
140 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
141 (start_remote): Ditto.
142 (handle_inferior_event): Ditto.
143 (save_inferior_status): Ditto.
144 (restore_inferior_status): Ditto.
145 * infcmd.c (attach_command): Ditto.
146 * fork-child.c (startup_inferior): Ditto.
147 * inferior.h (stop_soon): Rename from stop_soon_quietly.
148 * alpha-tdep.c (heuristic_proc_start): Ditto.
149 * mips-tdep.c (heuristic_proc_start): Ditto.
150 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
151 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
152 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
153 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
154 * remote-vx.c (vx_create_inferior): Ditto.
156 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
158 * infrun.c (stop_soon_quietly): Make it an enum, to better
159 override the default behavior of handle_inferior_event.
160 (clear_proceed_status): Update uses of stop_soon_quietly to
161 reflect that it is now an enum.
162 (start_remote): Ditto.
163 (handle_inferior_event): Change logic a bit if stop_soon_quietly
164 is set to handle the new GNU/Linux kernel behavior for
165 attach/sigstop. Update uses of stop_soon_quietly.
166 * inferior.h (enum stop_kind): New enum.
167 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
168 Reset normal handle_inferior_event behavior, afterwards.
169 * fork-child.c (startup_inferior): Update.
170 * alpha-tdep.c (heuristic_proc_start): Update.
171 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
172 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
173 * solib-osf.c (osf_solib_create_inferior_hook): Update.
174 * solib-irix.c (irix_solib_create_inferior_hook): Update.
175 * remote-vx.c (vx_create_inferior): Update.
176 * mips-tdep.c (heuristic_proc_start): Update.
178 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
180 * disasm.c (dump_insns): Move variables inside loop, or they will
181 be freed more than once, causing wild memory corruptions.
182 (gdb_disassembly): Look for the substring "-thread",
183 instead of "-threads" in the target name, to make sure to find
184 the 'multi-thread' target. Also, make sure we do the right thing
185 with the "core" target.
187 2003-04-07 Kevin Buettner <kevinb@redhat.com>
189 * mips-tdep.c (mips_print_fp_register): New function, created from
190 do_fp_register_row(). Registers are now (also) printed as hex.
191 Only one register is printed per row.
192 (mips_print_register, do_fp_register_row): Print floating point
193 registers with mips_print_fp_register().
195 2003-04-06 Andrew Cagney <cagney@redhat.com>
197 * valprint.h (inspect_it): Add extern declaration.
198 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
199 (selectors_info, classes_info): Ditto.
200 (find_objc_msgcall): Fix indentation.
201 (objc_printstr): Delete extern declarations.
203 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
205 2003-04-06 Andrew Cagney <cagney@redhat.com>
207 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
209 * frame.c (legacy_saved_regs_this_id): Update.
210 (legacy_get_prev_frame): Update.
211 * xstormy16-tdep.c: Update comment.
212 * sparc-tdep.c (sparc_frame_chain): Update comment.
213 * blockframe.c (legacy_frame_chain_valid): Update.
215 2003-04-06 Andrew Cagney <cagney@redhat.com>
217 * valprint.c (val_print_type_code_int): Delete #ifdef
218 PRINT_TYPELESS_INTEGER code.
220 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
221 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
222 multi-arch definition.
223 * gdbarch.h: Re-generate.
225 2003-04-05 Andrew Cagney <cagney@redhat.com>
227 Eliminate FRAME_FIND_SAVED_REGS.
228 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
229 Change FSR parameter to a pointer.
230 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
231 Assume FSR parameter is a pointer.
232 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
234 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
235 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
236 saved_regs a pointer.
237 (hppa_frame_saved_pc): Ditto.
238 (find_dummy_frame_regs): Make frame_saved_regs a pointer
239 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
241 (restore_pc_queue): Make fsr a pointer.
242 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
243 (hppa_frame_chain): Make saved_regs a pointer, call
244 hppa_frame_init_saved_regs.
245 * sparc-tdep.c: Include "gdb_assert.h".
246 (sparc_frame_find_saved_regs): Replace internal_error with
248 * remote-vxsparc.c (vx_read_register): Delete reference to
249 FRAME_FIND_SAVED_REGS.
250 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
251 * gdbarch.h: Regenerate.
252 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
253 (deprecated_get_frame_saved_regs): Delete declaration.
254 (struct frame_saved_regs): Delete definition.
255 * frame.c (deprecated_get_frame_saved_regs): Delete function.
256 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
257 (hppa_frame_find_saved_regs): Delete declaration.
258 (FRAME_FIND_SAVED_REGS): Delete macro.
259 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
260 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
261 FRAME_FIND_SAVED_REGS in comment.
263 2003-04-05 Andrew Cagney <cagney@redhat.com>
265 * frame.c (frame_func_unwind, get_frame_func): New functions.
266 * frame.h (get_frame_func, frame_func_unwind): Declare.
267 (struct frame_info): Add field "prev_func" for caching the
268 previous frame's function address.
269 * arm-tdep.c (arm_frameless_function_invocation): Combine
270 get_pc_function_start and get_frame_pc into get_frame_func.
271 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
272 (sh64_nofp_frame_init_saved_regs): Ditto.
273 * s390-tdep.c (s390_function_start): Ditto.
274 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
275 (rs6000_frameless_function_invocation): Ditto.
276 (rs6000_frame_saved_pc): Ditto.
277 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
278 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
279 * i386-tdep.c (i386_frameless_signal_p): Ditto.
280 (i386_frame_init_saved_regs): Ditto.
281 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
282 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
283 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
284 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
285 * blockframe.c (frameless_look_for_prologue): Ditto.
287 2003-04-05 Andrew Cagney <cagney@redhat.com>
289 * frame.c (legacy_get_prev_frame): Link prev to next at the
290 function start. Update comments.
292 2003-04-05 Andrew Cagney <cagney@redhat.com>
294 * frame.c (get_frame_id): Update comment.
295 (legacy_get_prev_frame): Update comment.
296 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
297 * gdbarch.h: Regenerate.
298 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
299 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
301 2003-04-05 Andrew Cagney <cagney@redhat.com>
303 * stack.c (print_frame_info): Use get_frame_pc.
305 2003-04-04 Andrew Cagney <cagney@redhat.com>
307 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
308 the frame's type from the unwinder.
309 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
310 (create_new_frame, legacy_get_prev_frame): When the unwinder's
311 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
312 (get_frame_base_address): Use get_frame_type.
313 (get_frame_locals_address, get_frame_args_address): Ditto.
314 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
315 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
316 (struct frame_info): Add comment explaining why the frame contains
318 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
319 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
320 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
322 * frame-unwind.h: Include "frame.h".
323 (struct frame_unwind): Add "type" field.
324 * Makefile.in (frame_unwind_h): Add $(frame_h).
326 2003-04-04 Andrew Cagney <cagney@redhat.com>
328 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
329 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
330 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
332 (d10v_unwind_dummy_id): Use frame_id_build.
333 * frame.c (find_frame_sal): Use get_frame_pc.
334 (create_new_frame): Use deprecated_update_frame_pc_hack and
335 deprecated_update_frame_base_hack.
336 (create_sentinel_frame): Add comment about ->pc going away.
337 (get_prev_frame): Add comment about ->pc going away.
338 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
339 frame_id_build, deprecated_update_frame_pc_hack and
340 deprecated_update_frame_base_hack.
341 (select_frame): Use get_frame_pc.
342 (legacy_saved_regs_this_id): Use frame_id_build.
344 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
346 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
348 (classify_argument): Handle enumerations and references.
350 2003-04-04 Andrew Cagney <cagney@redhat.com>
352 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
355 2003-04-01 Adam Fedor <fedor@gnu.org>
357 * gdb/objc-lang.c (selectors_info): Replace calls to
358 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
360 (classes_info, find_methods): Likewise.
362 2003-04-03 Kevin Buettner <kevinb@redhat.com>
364 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
365 ``mach'' to the value determined by bfd_default_set_arch_mach().
367 2003-04-02 Bob Rossi <bob_rossi@cox.net>
369 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
370 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
371 (mi-cmd-file.o): Update dependencies.
373 2003-04-01 Kevin Buettner <kevinb@redhat.com>
375 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
376 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
378 2003-04-01 Adam Fedor <fedor@gnu.org>
380 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
381 * language.h (struct language_defn): Add la_demangle.
382 (language_demangle): Declare.
383 * language.c (language_demangle): New function.
384 (unk_lang_demangle): Likewise.
385 (unknown_language_defn, auto_language_defn, local_language_defn):
386 Add ukn_lang_demangle.
387 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
388 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
389 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
390 (cplus_language_defn): Add cplus_demangle for la_demangle element.
391 * jv-lang.c (java_demangle): New function
392 (java_language_defn): Use it for la_demangle element.
393 * objc-lang.c (objc_demangle): Add options argument
394 (objc_language_defn): Use objc_demangle for la_demangle element.
395 * maint.c (maintenance_demangle): Replace switch with
396 call to language_demangle.
397 * utils.c (fprintf_symbol_filtered): Likewise.
399 2003-04-01 Andrew Cagney <cagney@redhat.com>
401 * printcmd.c (print_frame_nameless_args): Delete #ifdef
402 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
403 PRINT_TYPELESS_INTEGER.
404 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
407 2003-04-01 Andrew Cagney <cagney@redhat.com>
409 * Makefile.in (d10v-tdep.o): Update dependencies.
410 * d10v-tdep.c: Include "frame-base.h".
411 (d10v_frame_unwind): Make constant.
412 (d10v_frame_base_address): New function.
413 (d10v_frame_base): New variable.
414 (d10v_gdbarch_init): Set frame_base default.
415 (struct d10v_unwind_cache): Add the field "prev_sp". Update
417 (d10v_frame_unwind_cache): Set and use "prev_sp".
418 (d10v_frame_this_id): Use the previous frame's inner most stack
419 address and this frame's func address for the frame ID. Use
420 frame_id_build. Don't analyze beyond the current instruction.
422 2003-04-01 Andrew Cagney <cagney@redhat.com>
424 * frame.h (get_frame_locals_address, get_frame_args_address):
425 Refer to the base address, instead of the address of the first
428 2003-04-01 Andrew Cagney <cagney@redhat.com>
430 Add frame debug info addresses:
431 * frame-base.c: New file.
432 * frame-base.h: New file.
433 * frame.h (struct frame_base): Add opaque declaration.
434 (get_frame_base): Update comment.
435 (get_frame_base_address): Declare.
436 (get_frame_locals_address): Declare.
437 (get_frame_args_address): Declare.
438 (struct frame_info): Add "base" and "base_cache". Update
439 comments on the unwinder.
440 * frame.c: Include "frame-base.h".
441 (get_frame_locals_address): New function.
442 (get_frame_base_address): New function.
443 (get_frame_args_address): New function.
444 * findvar.c (read_var_value): Use get_frame_locals_address and
445 get_frame_args_address.
446 * stack.c (frame_info): Use get_frame_locals_address and
447 get_frame_args_address.
448 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
449 moved to "frame-base.c".
450 * printcmd.c (print_frame_nameless_args): Ditto.
451 * symtab.h (address_class): Update comments.
452 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
453 get_frame_base_address.
454 * dwarf2expr.c (execute_stack_op): Ditto.
455 * Makefile.in (frame_base_h): Define.
456 (frame.o): Update dependencies.
457 (frame-base.o): Add dependencies.
458 (SFILES): Add frame-base.c.
459 (COMMON_OBS): Add frame-base.o.
461 2003-04-01 Andrew Cagney <cagney@redhat.com>
463 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
464 CALL_DUMMY_LENGTH): Ditto.
465 * gdbarch.c: Re-generate.
466 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
467 (CALL_DUMMY_LENGTH): Delete macro.
468 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
469 * arm-tdep.c (arm_gdbarch_init): Ditto.
470 * avr-tdep.c (avr_gdbarch_init): Ditto.
471 * cris-tdep.c (cris_gdbarch_init): Ditto.
472 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
473 * frv-tdep.c (frv_gdbarch_init): Ditto.
474 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
475 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
476 * i386-tdep.c (i386_gdbarch_init): Ditto.
477 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
478 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
479 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
480 * mips-tdep.c (mips_gdbarch_init): Ditto.
481 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
482 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
483 * s390-tdep.c (s390_gdbarch_init): Ditto.
484 * sh-tdep.c (sh_gdbarch_init): Ditto.
485 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
486 * v850-tdep.c (v850_gdbarch_init): Ditto.
487 * vax-tdep.c (vax_gdbarch_init): Ditto.
488 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
490 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
492 * frame.c (get_prev_frame): Disable call to inside_entry_file().
494 2003-04-01 Andrew Cagney <cagney@redhat.com>
496 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
497 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
498 * gdbarch.h, gdbarch.c: Re-generate.
499 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
500 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
501 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
502 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
503 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
504 * infcmd.c (run_stack_dummy): Simplify assuming
505 CALL_DUMMY_BREAKPOINT_OFFSET_P.
506 * infrun.c (handle_inferior_event): Ditto.
507 * alpha-tdep.c (alpha_gdbarch_init): Do not set
508 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
509 * arm-tdep.c (arm_gdbarch_init): Ditto.
510 * avr-tdep.c (avr_gdbarch_init): Ditto.
511 * cris-tdep.c (cris_gdbarch_init): Ditto.
512 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
513 * frv-tdep.c (frv_gdbarch_init): Ditto.
514 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
515 * i386-tdep.c (i386_gdbarch_init): Ditto.
516 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
518 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
519 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
520 * mips-tdep.c (mips_gdbarch_init): Ditto.
521 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
522 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
523 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
524 * s390-tdep.c (s390_gdbarch_init): Ditto.
525 * sh-tdep.c (sh_gdbarch_init): Ditto.
526 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
527 * v850-tdep.c (v850_gdbarch_init): Ditto.
528 * vax-tdep.c (vax_gdbarch_init): Ditto.
529 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
531 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
533 * symfile.c (symfile_relocate_debug_section): Update call to
534 bfd_simple_get_relocated_section_contents.
536 2003-03-31 Andrew Cagney <cagney@redhat.com>
538 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
539 * gdbarch.h, gdbarch.c: Regenerate.
540 * inferior.h (FIX_CALL_DUMMY): Delete macro.
541 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
543 * frame.h (generic_fix_call_dummy): Delete declaration.
544 * dummy-frame.h: Update comment.
545 * dummy-frame.c (generic_fix_call_dummy): Delete function.
546 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
548 * sh-tdep.c (sh_gdbarch_init): Ditto.
549 * s390-tdep.c (s390_gdbarch_init): Ditto.
550 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
551 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
553 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
554 * i386-tdep.c (i386_gdbarch_init): Ditto.
555 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
556 * frv-tdep.c (frv_gdbarch_init): Ditto.
557 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
558 * cris-tdep.c (cris_gdbarch_init): Ditto.
559 * avr-tdep.c (avr_gdbarch_init): Ditto.
560 * arm-tdep.c (arm_gdbarch_init): Ditto.
562 2003-03-31 J. Brobecker <brobecker@gnat.com>
564 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
565 (INIT_FRAME_AP): Likewise.
566 (EXTRA_FRAME_INFO): Likewise.
568 2003-03-31 Andrew Cagney <cagney@redhat.com>
570 * gdbarch.sh: Include "symfile.h".
571 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
572 * gdbarch.h, gdbarch.c: Re-generate.
573 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
574 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
575 call_dummy_address, the default is at entry_point_address.
576 * v850-tdep.c (v850_gdbarch_init): Ditto.
577 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
578 * sh-tdep.c (sh_gdbarch_init): Ditto.
579 * s390-tdep.c (s390_gdbarch_init): Ditto.
580 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
581 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
582 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
583 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
584 * i386-tdep.c (i386_gdbarch_init): Ditto.
585 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
586 * frv-tdep.c (frv_gdbarch_init): Ditto.
587 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
588 * cris-tdep.c (cris_gdbarch_init): Ditto.
589 * arm-tdep.c (arm_gdbarch_init): Ditto.
591 2003-03-31 Andrew Cagney <cagney@redhat.com>
593 * gdbarch.sh (CALL_DUMMY_P): Delete.
594 * gdbarch.h, gdbarch.c: Re-generate.
595 * inferior.h (CALL_DUMMY_P): Delete macro.
596 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
597 * vax-tdep.c (vax_gdbarch_init): Update.
598 * v850-tdep.c (v850_gdbarch_init): Update.
599 * sparc-tdep.c (sparc_gdbarch_init): Update.
600 * sh-tdep.c (sh_gdbarch_init): Update.
601 * s390-tdep.c (s390_gdbarch_init): Update.
602 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
603 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
604 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
605 * mips-tdep.c (mips_gdbarch_init): Update.
606 * mcore-tdep.c (mcore_gdbarch_init): Update.
607 * m68k-tdep.c (m68k_gdbarch_init): Update.
608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
609 * ia64-tdep.c (ia64_gdbarch_init): Update.
610 * i386-tdep.c (i386_gdbarch_init): Update.
611 * h8300-tdep.c (h8300_gdbarch_init): Update.
612 * frv-tdep.c (frv_gdbarch_init): Update.
613 * d10v-tdep.c (d10v_gdbarch_init): Update.
614 * cris-tdep.c (cris_gdbarch_init): Update.
615 * breakpoint.c (deprecated_frame_in_dummy): Update.
616 * avr-tdep.c (avr_gdbarch_init): Update.
617 * alpha-tdep.c (alpha_gdbarch_init): Update.
618 * arm-tdep.c (arm_gdbarch_init): Update.
619 * dummy-frame.c (dummy_frame_this_id): Update comments.
620 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
621 * frame.c (legacy_get_prev_frame): Ditto.
622 * valops.c (call_function_by_hand): Delete function.
623 (hand_function_call): Rename to call_function_by_hand
625 2003-03-30 Andrew Cagney <cagney@redhat.com>
627 2002-11-10 Klee Dienes <kdienes@apple.com>
628 * value.h (struct value): Update comment.
630 2003-03-30 Andrew Cagney <cagney@redhat.com>
632 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
634 (d10v_gdbarch_init): Do not set fp_regnum.
636 * frame.c (get_frame_base): Force ID initialization.
637 (get_prev_frame): Move computation of the frame ID from here ...
638 (get_frame_id): ... to here.
639 (legacy_get_prev_frame): Mark the frame ID as valid.
640 * frame.h (struct frame_info): Add field "id_p".
642 2003-03-30 Mark Kettenis <kettenis@gnu.org>
644 * i386-tdep.c (i386_store_struct_return): Removed.
645 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
647 2003-03-30 Andrew Cagney <cagney@redhat.com>
649 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
650 * gdbarch.h, gdbarch.c: Regenerate.
651 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
652 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
653 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
654 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
655 * i386-tdep.c (i386_gdbarch_init): Ditto.
656 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
657 * cris-tdep.c (cris_gdbarch_init): Ditto.
658 * vax-tdep.c (vax_gdbarch_init): Ditto.
659 * s390-tdep.c (s390_gdbarch_init): Ditto.
660 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
661 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
662 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
663 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
664 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
665 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
666 * sparc-tdep.c (sparc_gdbarch_init): Update.
667 * sh-tdep.c (sh_gdbarch_init): Update.
668 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
669 * mips-tdep.c (mips_gdbarch_init): Update.
670 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
671 * ia64-tdep.c (ia64_gdbarch_init): Update.
672 * frv-tdep.c (frv_gdbarch_init): Update.
673 * avr-tdep.c (avr_gdbarch_init): Update.
674 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
675 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
676 instead of when push_dummy_call is not available.
678 2003-03-30 Andrew Cagney <cagney@redhat.com>
680 * infttrace.c: Include "gdbthread.h".
681 (parent_attach_all): Fix function signature.
682 (call_ptrace): Update call.
683 * Makefile.in (infttrace.o): Update dependencies.
685 2003-03-30 Andrew Cagney <cagney@redhat.com>
687 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
689 * gdbarch.h, gdbarch.c: Regenerate.
690 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
691 * x86-64-tdep.c (x86_64_init_abi): Update.
692 * v850-tdep.c (v850_gdbarch_init): Update.
693 * sparc-tdep.c (sparc_gdbarch_init): Update.
694 * sh-tdep.c (sh_gdbarch_init): Update.
695 * s390-tdep.c (s390_gdbarch_init): Update.
696 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
697 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
698 * mips-tdep.c (mips_gdbarch_init): Update.
699 * mcore-tdep.c (mcore_gdbarch_init): Update.
700 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
701 * ia64-tdep.c (ia64_gdbarch_init): Update.
702 * i386-tdep.c (i386_gdbarch_init): Update.
703 * h8300-tdep.c (h8300_gdbarch_init): Update.
704 * frv-tdep.c (frv_gdbarch_init): Update.
705 * cris-tdep.c (cris_gdbarch_init): Update.
706 * avr-tdep.c (avr_gdbarch_init): Update.
707 * arm-tdep.c (arm_gdbarch_init): Update.
708 * valops.c (hand_function_call): Update.
710 2003-03-29 Andrew Cagney <cagney@redhat.com>
712 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
713 sizeof_call_dummy_words.
714 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
716 * gdbarch.h: Regenerate.
718 2003-03-29 Andrew Cagney <cagney@redhat.com>
720 * infttrace.h: New file.
721 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
722 (hpread_get_textlow): Detect an uninitialized dn_bufp.
723 (hpread_read_doc_function_type): Detect an initialized type1.
724 (hpread_quick_traverse): Initialize mod_name_string.
725 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
726 (som_solib_get_solib_by_pc): Declare.
727 (so_lib_thread_start_addr): Declare.
728 (no_shared_libraries): Declare.
729 * somread.c (init_import_symbols): Make static. Add forward
731 * config/pa/nm-hppah.h: Include "infttrace.h" for
733 (hppa_insert_hw_watchpoint): Declare.
734 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
735 * hppah-nat.c: Include "gdb_string.h".
736 (parent_attach_all): Delete extern declaration, moved to
738 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
740 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
741 * Makefile.in (infttrace_h): Define.
742 (hpread.o): Update dependencies.
743 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
744 * hppa-hpux-tdep.c: Include "gdb_string.h".
745 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
746 * infrun.c (handle_inferior_event): Always initialize
747 stepped_after_stopped_by_watchpoint. Add default and remove
748 fallthrough in switch statement.
749 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
751 (hppa_remove_hw_watchpoint): Ditto.
753 2003-03-29 Andrew Cagney <cagney@redhat.com>
755 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
758 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
760 * arm-tdep.c (arm_push_arguments): Delete.
761 (struct stack_item): New type.
762 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
763 (arm_store_struct_return): Delte.
764 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
765 arm_push_arguments or arm_store_struct_return.
767 2003-03-28 Andrew Cagney <cagney@redhat.com>
769 * Makefile.in (d10v-tdep.o): Update dependencies.
770 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
771 * d10v-tdep.c: Include "remote.h".
772 (target_resume_hook): Delete extern declaration.
773 (target_wait_loop_hook): Ditto.
774 (tdisassemble_command): Eliminate assignment in "if" conditional.
775 (d10v_ts2_register_sim_regno): Eliminate call to
776 legacy_register_sim_regno.
777 (d10v_ts3_register_sim_regno): Ditto.
779 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
781 * thread.c: Reindented.
783 * linux-proc.c: Ditto.
785 2003-03-28 Bob Rossi <bob_rossi@cox.net>
787 * MAINTAINERS (write after approval): Add myself.
789 2003-03-27 Theodore A. Roth <troth@openavr.org>
791 * objc-exp.y: Add missing semi-colons.
793 2003-03-27 Andrew Cagney <cagney@redhat.com>
795 * regcache.c (write_sp): Delete function and references.
796 * inferior.h (write_sp): Delete declaration.
797 * valops.c (hand_function_call): Replace write_sp with
799 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
800 (sparc_pop_frame): Ditto.
802 2003-03-27 Andrew Cagney <cagney@redhat.com>
804 * NEWS: Mention removal of support for hppa*-*-bsd* and
805 hppa*-*-osf* natives, and hppa*-*-pro* target.
806 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
807 * config/pa/xm-pa.h: Obsolete file.
808 * config/pa/xm-hppab.h: Obsolete file.
809 * config/pa/nm-hppab.h: Obsolete file.
810 * config/pa/tm-hppab.h: Obsolete file.
811 * config/pa/tm-hppao.h: Obsolete file.
812 * config/pa/nm-hppao.h: Obsolete file.
813 * config/pa/tm-pro.h: Obsolete file.
814 * config/pa/hppaosf.mt: Obsolete file.
815 * config/pa/hppaosf.mh: Obsolete file.
816 * config/pa/hppapro.mt: Obsolete file.
817 * config/pa/hppabsd.mt: Obsolete file.
818 * config/pa/hppabsd.mh: Obsolete file.
819 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
820 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
823 2003-03-27 Andrew Cagney <cagney@redhat.com>
825 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
826 push_arguments. Don't set push_return_address or write_sp.
827 (d10v_push_dummy_call): Replace d10v_push_arguments.
828 (d10v_push_return_address, d10v_write_sp): Delete function,
829 handled by push_dummy_call.
831 2003-03-26 Andrew Cagney <cagney@redhat.com>
833 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
834 (push_dummy_call): New pure multi-arch replacement with gdbarch,
835 regcache and dummy_addr parameters.
836 * gdbarch.h, gdbarch.c: Re-generate.
837 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
838 available; assume it will handle stack alignment and return
839 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
840 legacy_push_arguments.
841 (legacy_push_arguments): Rename default_push_arguments.
842 * value.h (legacy_push_arguments): Rename default_push_arguments.
843 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
844 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
845 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
846 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
847 * config/i386/tm-symmetry.h: Update.
848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
849 * x86-64-tdep.c (x86_64_init_abi): Update.
850 * v850-tdep.c (v850_gdbarch_init): Update.
851 * sparc-tdep.c (sparc_gdbarch_init): Update.
852 * sh-tdep.c (sh_gdbarch_init): Update.
853 * s390-tdep.c (s390_gdbarch_init): Update.
854 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
855 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
856 * mips-tdep.c (mips_gdbarch_init): Update.
857 * mcore-tdep.c (mcore_gdbarch_init): Update.
858 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
859 * ia64-tdep.c (ia64_gdbarch_init): Update.
860 * i386-tdep.c (i386_gdbarch_init): Update.
861 * hppa-tdep.c (hppa_gdbarch_init): Update.
862 * h8300-tdep.c (h8300_gdbarch_init): Update.
863 * frv-tdep.c (frv_gdbarch_init): Update.
864 * d10v-tdep.c (d10v_gdbarch_init): Update.
865 * cris-tdep.c (cris_gdbarch_init): Update.
866 * avr-tdep.c (avr_gdbarch_init): Update.
867 * arm-tdep.c (arm_gdbarch_init): Update.
868 * arm-linux-tdep.c (arm_linux_init_abi): Update.
869 * alpha-tdep.c (alpha_gdbarch_init): Update.
871 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
873 * signals/signals.c (do_target_signal_to_host): Correct realtime
876 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
878 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
879 (struct sal_chain, map_catch_names): Remove.
880 (catch_exception_command_1): Don't call
881 handle_gnu_4_16_catch_command.
883 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
885 From Mark Dettinger <dettinge@de.ibm.com>:
886 * dwarf2cfi.c (read_2u): Increment pointer by two.
888 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
890 * signals/signals.c: Fix typos in last change.
892 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
894 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
895 not already defined. Use __SIGRTMIN if available.
896 (target_signal_from_host): Remove SIGRTMIN block.
897 (do_target_signal_to_host): Remove SIGRTMIN block; check that
898 the signal is within the realtime range.
900 2003-03-25 Adam Fedor <fedor@gnu.org>
902 * Makefile.in (infrun.o): Add $(language_h)
903 * infrun.c (handle_inferior_event): Use skip_language_trampoline
904 for language specific trampolines.
905 * language.h (struct language_defn): Add skip_trampoline.
906 (skip_language_trampoline): Declare.
907 * language.c (unk_lang_trampoline, skip_language_trampoline):
909 (unknown_language_defn, auto_language_defn, local_language_defn):
910 Add ukn_lang_trampoline.
911 * ada-lang.c (ada_language_defn): Add NULL for language
912 specific skip_trampoline.
913 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
914 scm-lang.c: Likewise.
915 * objc-lang.c (objc_skip_trampoline): New function.
916 (objc_language_defn): Add objc_skip_trampoline.
918 2003-03-25 Andrew Cagney <cagney@redhat.com>
920 * frame.c (get_prev_frame): Delay validating a frame's ID -
921 non-NULL, didn't go backwards - until an attempt to unwind it to
924 2003-03-25 Andrew Cagney <cagney@redhat.com>
926 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
927 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
928 * gdbarch.h, gdbarch.c: Re-generate.
929 * config/sparc/tm-sparc.h
930 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
931 * sparc-tdep.c (sparc_gdbarch_init): Set
932 deprecated_extra_stack_alignment_needed.
933 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
934 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
935 extra_stack_alignment_needed.
936 * v850-tdep.c (v850_gdbarch_init): Ditto.
937 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
938 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
939 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
940 * cris-tdep.c (cris_gdbarch_init): Ditto.
941 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
942 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
944 2003-03-25 Andrew Cagney <cagney@redhat.com>
946 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
948 * gdbarch.h, gdbarch.c: Regenerate.
949 * d10v-tdep.c (d10v_store_struct_return): Delete function.
950 (d10v_push_arguments): Set the struct return register.
951 (d10v_gdbarch_init): Update.
952 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
953 * x86-64-tdep.c (x86_64_init_abi): Update.
954 * vax-tdep.c (vax_gdbarch_init): Update.
955 * v850-tdep.c (v850_gdbarch_init): Update.
956 * sparc-tdep.c (sparc_gdbarch_init): Update.
957 * sh-tdep.c (sh_gdbarch_init): Update.
958 * s390-tdep.c (s390_gdbarch_init): Update.
959 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
960 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
961 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
962 * mips-tdep.c (mips_gdbarch_init): Update.
963 * mcore-tdep.c (mcore_gdbarch_init): Update.
964 * m68k-tdep.c (m68k_gdbarch_init): Update.
965 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
966 * ia64-tdep.c (ia64_gdbarch_init): Update.
967 * i386-tdep.c (i386_gdbarch_init): Update.
968 * hppa-tdep.c (hppa_gdbarch_init): Update.
969 * h8300-tdep.c (h8300_gdbarch_init): Update.
970 * frv-tdep.c (frv_gdbarch_init): Update.
971 * cris-tdep.c (cris_gdbarch_init): Update.
972 * avr-tdep.c (avr_gdbarch_init): Update.
973 * arm-tdep.c (arm_gdbarch_init): Update.
974 * alpha-tdep.c (alpha_gdbarch_init): Update.
976 2003-03-25 Andrew Cagney <cagney@redhat.com>
978 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
979 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
980 CALL_DUMMY_STACK_ADJUST with a predicate variable.
981 * gdbarch.h, gdbarch.c: Regenerate.
982 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
983 call_dummy_stack_adjust_p.
984 * vax-tdep.c (vax_gdbarch_init): Ditto.
985 * v850-tdep.c (v850_gdbarch_init): Ditto.
986 * sh-tdep.c (sh_gdbarch_init): Ditto.
987 * s390-tdep.c (s390_gdbarch_init): Ditto.
988 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
989 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
990 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
991 * mips-tdep.c (mips_gdbarch_init): Ditto.
992 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
993 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
994 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
995 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
996 * i386-tdep.c (i386_gdbarch_init): Ditto.
997 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
998 * frv-tdep.c (frv_gdbarch_init): Ditto.
999 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1000 * cris-tdep.c (cris_gdbarch_init): Ditto.
1001 * avr-tdep.c (avr_gdbarch_init): Ditto.
1002 * arm-tdep.c (arm_gdbarch_init): Ditto.
1003 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1004 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
1005 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
1006 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
1007 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
1008 call_dummy_stack_adjust_p.
1009 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
1010 (CALL_DUMMY_STACK_ADJUST): Delete macro.
1011 * sparc-tdep.c (sparc32_push_arguments): Update.
1012 * valops.c (hand_function_call): Update.
1014 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
1016 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
1017 set_gdbarch_char_signed.
1019 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
1022 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
1024 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
1026 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
1027 (_initialize_arm_tdep): Don't set tm_print_insn.
1029 2003-03-24 Adam Fedor <fedor@gnu.org>
1031 * Makefile.in (YYOBJ): Add objc-exp.tab.o
1032 * objc-lang.h: Add multiple inclusion protection.
1033 (start_msglist, add_msglist, end_msglist): Additional declarations.
1035 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
1037 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
1038 value was renamed to ARM_FLOAT_SOFT_FPA.
1040 2003-03-23 Andrew Cagney <cagney@redhat.com>
1042 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
1043 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
1044 * gdbarch.h, gdbarch.c: Regenerate.
1045 * valops.c (hand_function_call): Update.
1046 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
1047 * frame.c (legacy_saved_regs_this_id): Update.
1048 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
1049 * dummy-frame.h: Update.
1050 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
1051 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
1052 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
1053 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
1054 * config/m68k/tm-sun3.h: Update.
1055 * blockframe.c (inside_main_func, frame_chain_valid): Update.
1056 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1057 * x86-64-tdep.c (x86_64_init_abi): Update.
1058 * vax-tdep.c (vax_gdbarch_init): Update.
1059 * v850-tdep.c (v850_gdbarch_init): Update.
1060 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
1061 * sh-tdep.c (sh_gdbarch_init): Update.
1062 * s390-tdep.c (s390_gdbarch_init): Update.
1063 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1064 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
1065 (frame_get_saved_regs): Update.
1066 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1067 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1068 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1069 * mips-tdep.c (mips_gdbarch_init): Update.
1070 * mcore-tdep.c (mcore_gdbarch_init): Update.
1071 * m68k-tdep.c (m68k_gdbarch_init): Update.
1072 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1073 * ia64-tdep.c (ia64_gdbarch_init): Update.
1074 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
1075 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1076 (i386_interix_back_one_frame): Update.
1077 * hppa-tdep.c (hppa_gdbarch_init): Update.
1078 (hppa_init_extra_frame_info): Update.
1079 * h8300-tdep.c (h8300_gdbarch_init): Update.
1080 * frv-tdep.c (frv_gdbarch_init): Update.
1081 * cris-tdep.c (cris_gdbarch_init): Update.
1082 * avr-tdep.c (avr_gdbarch_init): Update.
1083 * arm-tdep.c (arm_gdbarch_init): Update.
1084 * alpha-tdep.c (alpha_gdbarch_init): Update.
1086 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1088 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
1089 (arm_get_fp_model): Declare.
1090 * arm-tdep.c (fp_model_strings): New string array.
1091 (arm_fp_model, current_fp_model): New variables.
1092 (arm_get_fp_model): New function.
1093 (arm_set_fp): New function.
1094 (set_fp_model_sfunc): New function.
1095 (show_fp_model): New function.
1096 (_initialize_arm_tdep): Add new command to set/show the FPU.
1097 (arm_extract_return_value): Use arm_get_fp_model.
1098 (arm_store_return_value): Likewise.
1099 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
1100 to initialize the floating-point data types.
1101 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
1104 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1106 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
1107 the current setting of each value.
1108 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
1109 new_set and new_show. Use add_setshow_cmd_full and
1110 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
1111 commands and add new version as subcommands of "set/show arm".
1113 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1115 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
1116 (set_arm_command, show_arm_command): New functions.
1117 (_initialize_arm_tdep): Add them.
1118 (num_disassembly_options): Renamed from num_flavor_options.
1119 (valid_disassembly_styles): Renamed from valid_flavors.
1120 (disassembly_style): Renamed from disassembly_flavor.
1121 (set_disassembly_style_sfunc): Renamed from
1122 set_disassembly_flavor_sfunc.
1123 (set_disassembly_style): Renamed from set_disassembly_flavor.
1124 (arm_othernames): Updated.
1125 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
1126 command. Add "set/show arm disassembly" commands. Deprecate
1127 "othernames" command.
1129 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1131 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
1132 (arm-tdep.o): Depend on elf_arm_h.
1134 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1136 * Makefile.in (coff_internal_h): Define.
1137 (arm-tdep.o): Update dependencies.
1139 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1141 * arm-tdep.c (prologue_cache): Delete.
1142 (check_prologue_cache, save_prologue_cache): Delete.
1143 (arm_scan_prologue): Don't check or update the prologue_cache.
1144 (arm_gdb_arch_init): Don't initialize it.
1145 (_initialize_arm_tdep): Likewise.
1147 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
1149 * MAINTAINERS (tui): Maintainer of tui code.
1151 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
1153 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
1154 (i386-cygwin-tdep.o): Add dependencies.
1155 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
1156 * i386-cygwin-tdep.c: New file.
1157 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
1158 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
1160 2003-03-20 Andrew Cagney <cagney@redhat.com>
1162 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
1163 (handle_inferior_event): Remove code calling
1164 DYNAMIC_TRAMPOLINE_NEXTPC.
1166 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
1167 already has a full path.
1169 * main.c (gdb_main): Return 1.
1170 (captured_main): Call error to report an invalid interpreter.
1172 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
1173 * alpha-osf1-tdep.c: Include "gdb_string.h".
1175 2003-03-19 J. Brobecker <brobecker@gnat.com>
1177 Continuing work to convert the hppa targets to multiarch partial.
1179 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
1180 method, now that hppa_push_dummy_frame has a conformant prototype.
1181 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
1182 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
1183 for the switch to multiarch partial.
1185 2003-03-19 Kevin Buettner <kevinb@redhat.com>
1187 * mdebugread.c (parse_symbol): For stEnd, we're done counting
1188 when iss is issNull.
1190 2003-03-18 Kevin Buettner <kevinb@redhat.com>
1192 * mips-tdep.c (mips_register_name): Fix fencepost error involving
1193 NUM_REGS bounds check.
1195 2003-03-18 Kevin Buettner <kevinb@redhat.com>
1197 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
1198 * mips-tdep.c (gdb_assert.h): Include.
1199 (mips_generic_reg_names, mips_processor_reg_names): Make static.
1200 (mips_register_name): Handle integer registers explicitly. Add
1202 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
1203 (mips_lsi33k_reg_names): Don't list integer registers; they're
1204 handled by mips_register_name() now.
1205 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
1206 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
1207 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
1208 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
1209 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
1211 2003-03-18 Andrew Cagney <cagney@redhat.com>
1213 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
1215 * gdbtypes.h (print_scalar_formatted): Update declaration.
1216 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
1218 2003-03-18 J. Brobecker <brobecker@gnat.com>
1220 * infrun.c (observer.h): Add #include.
1221 (normal_stop): Add call to observer_notify_normal_stop.
1222 * Makefile.in (infrun.o): Add dependency on observer.h.
1224 2003-03-18 J. Brobecker <brobecker@gnat.com>
1226 Continuing work to convert the hppa targets to multiarch partial.
1227 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
1228 parameter. Reformat comment.
1229 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
1230 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
1231 to match new profile.
1233 2003-03-18 J. Brobecker <brobecker@gnat.com>
1235 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
1236 appear to be working in any case.
1238 2003-03-18 J. Brobecker <brobecker@gnat.com>
1240 * observer.c (observer_test_first_observer): New static variable.
1241 (observer_test_second_observer): Likewise.
1242 (observer_test_third_observer): Likewise.
1243 (observer_test_first_notification_function): New static function.
1244 (observer_test_second_notification_function): Likewise.
1245 (observer_test_third_notification_function): Likewise.
1247 2003-03-17 J. Brobecker <brobecker@gnat.com>
1249 * hppa-tdep.c (gdb_assert.h): Add missing #include.
1250 * somsolib.c (gdb_assert.h): Likewise.
1251 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
1252 (somsolib.o): Likewise.
1254 2003-03-17 Andrew Cagney <cagney@redhat.com>
1256 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
1257 BFD. Simplify setting of di.endian.
1259 2003-03-17 Andrew Cagney <cagney@redhat.com>
1261 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
1262 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
1264 From Elena Zannoni <ezannoni@redhat.com>
1265 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
1266 vector and floating-point parameters.
1267 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
1269 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
1271 2003-03-17 Fernando Nasser <fnasser@redhat.com>
1273 * MAINTAINERS: Remove my name from several maintainership roles.
1275 2003-03-17 Andrew Cagney <cagney@redhat.com>
1277 Fix frame off-by-one bug.
1278 * frame-unwind.h (frame_this_id_ftype): Replace
1279 frame_unwind_id_ftype.
1280 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
1281 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
1282 with "prev_register".
1283 * frame-unwind.c (frame_unwind_find_by_pc): Return
1284 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
1286 * dummy-frame.c (cached_find_dummy_frame): Delete function.
1287 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
1288 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
1289 (dummy_frame_unwind): Update.
1290 * sentinel-frame.c (sentinel_frame_prev_register): Replace
1291 sentinel_frame_register_unwind.
1292 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
1293 (sentinel_frame_unwinder): Update.
1294 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1295 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
1296 * frame.c (create_sentinel_frame): Update. Initialize
1297 "prologue_cache" instead of "unwind_cache".
1298 (frame_register_unwind): Call this frame's prev_register with the
1299 next frame and this frame's prologue cache.
1300 (get_prev_frame): Simplify. Always call prev frame's this_id with
1301 this frame and prev frame's prologue cache. Document that this
1302 call is shifted one to the left when compared to the
1303 frame_register_unwind call.
1304 (legacy_saved_regs_prev_register): Replace
1305 frame_saved_regs_register_unwind.
1306 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
1307 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
1308 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1309 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
1310 (d10v_frame_unwind): Update.
1311 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
1312 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
1313 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
1314 "saved_regs" with "this_saved_regs".
1316 2003-03-16 Andrew Cagney <cagney@redhat.com>
1318 * frame.c (frame_pop): Don't call target_store_registers. Fix
1319 problem reported by Mark Kettenis.
1321 2003-03-16 Mark Kettenis <kettenis@gnu.org>
1323 * i386-tdep.c (i386_register_type): Renamed from
1324 i386_register_virtual_type. Adjust function signature.
1325 (i386_gdbarch_init): Set register_type instead of
1326 deprecated_max_register_raw_size,
1327 deprecated_max_register_virtual_size and register_virtual_type.
1329 2003-03-14 Andrew Cagney <cagney@redhat.com>
1331 * frame.c (get_prev_frame): When a legacy frame, always call
1332 legacy_get_prev_frame. Simplify unwind code using assumption that
1333 the unwinder is new.
1334 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
1335 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
1336 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
1338 2003-03-14 Andrew Cagney <cagney@redhat.com>
1340 * frame.c (get_saved_register): Delete function.
1341 * frame.h (get_saved_register): Delete declaration.
1342 * xstormy16-tdep.c: Update comment.
1343 * regcache.h: Update comments.
1344 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
1345 get_saved_register and extract_address, use
1346 frame_read_unsigned_register.
1347 (sparc_frame_saved_pc): Ditto.
1348 (sparc_get_saved_register): Instead of get_saved_register, use
1350 (sparc_pop_frame): Ditto.
1351 * findvar.c: Update comments.
1352 (value_of_register): Call frame_register instead of
1354 (value_from_register): Ditto.
1355 * config/sparc/tm-sparc.h: Update comment.
1356 * breakpoint.c: Update comment.
1358 2003-03-14 Andrew Cagney <cagney@redhat.com>
1360 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
1362 * gdbarch.h, gdbarch.c: Re-generate.
1363 * frame.h: Update comments.
1364 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1365 * x86-64-tdep.c (x86_64_init_abi): Update.
1366 * sparc-tdep.c (sparc_gdbarch_init): Update.
1367 * sh-tdep.c (sh_gdbarch_init): Update.
1368 * mips-tdep.c (mips_gdbarch_init): Update.
1369 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1370 * cris-tdep.c (cris_gdbarch_init): Update.
1371 * ia64-tdep.c (ia64_gdbarch_init): Update.
1372 * frame.c (frame_register): Update.
1373 (get_saved_register): Update.
1374 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
1376 2003-03-13 Andrew Cagney <cagney@redhat.com>
1378 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
1379 * gdbarch.h, gdbarch.c: Regenerate.
1380 * valops.c (hand_function_call): Update comment.
1381 * stack.c (return_command): Update comment.
1382 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
1383 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
1384 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1385 * x86-64-tdep.c (x86_64_init_abi): Update.
1386 * vax-tdep.c (vax_gdbarch_init): Update.
1387 * v850-tdep.c (v850_gdbarch_init): Update.
1388 * sparc-tdep.c (sparc_gdbarch_init): Update.
1389 * sh-tdep.c (sh_gdbarch_init): Update.
1390 * s390-tdep.c (s390_gdbarch_init): Update.
1391 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1392 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1393 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1394 * mips-tdep.c (mips_gdbarch_init): Update.
1395 * mcore-tdep.c (mcore_gdbarch_init): Update.
1396 * m68k-tdep.c (m68k_gdbarch_init): Update.
1397 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1398 * ia64-tdep.c (ia64_gdbarch_init): Update.
1399 * i386-tdep.c (i386_gdbarch_init): Update.
1400 * hppa-tdep.c (hppa_gdbarch_init): Update.
1401 * h8300-tdep.c (h8300_gdbarch_init): Update.
1402 * frv-tdep.c (frv_gdbarch_init): Update.
1403 * cris-tdep.c (cris_gdbarch_init): Update.
1404 * avr-tdep.c (avr_gdbarch_init): Update.
1405 * arm-tdep.c (arm_gdbarch_init): Update.
1406 * alpha-tdep.c (alpha_gdbarch_init): Update.
1408 2003-03-13 Andrew Cagney <cagney@redhat.com>
1410 * frame.c (legacy_frame_p): New function.
1411 (get_prev_frame): Use legacy_frame_p.
1412 * frame.h (legacy_frame_p): Declare.
1414 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1416 * MAINTAINERS (write after approval): Alphabetically
1419 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1421 * MAINTAINERS (write after approval): Add myself.
1423 2003-03-12 Andrew Cagney <cagney@redhat.com>
1425 * frame.c (get_prev_frame): Rename the frame parameter to
1427 (get_next_frame, legacy_get_prev_frame): Ditto.
1429 2003-03-12 Andrew Cagney <cagney@redhat.com>
1431 * frame.c (get_current_frame): Check target_has_registers before
1432 checking target_has_stack.
1433 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
1434 instead of deprecated_selected_frame.
1435 * findvar.c (value_of_register): Pass "frame", not
1436 deprecated_selected_frame, to value_of_builtin_reg.
1438 2003-03-12 Andrew Cagney <cagney@redhat.com>
1440 * regcache.c (regcache_cooked_write_signed): New function.
1441 (regcache_cooked_write_unsigned): New function.
1442 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
1443 (regcache_cooked_read_signed): Fix regnum in range assertion.
1444 * regcache.h (regcache_cooked_write_signed): Declare.
1445 (regcache_cooked_write_unsigned): Declare.
1447 2003-03-12 Andrew Cagney <cagney@redhat.com>
1449 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1450 * gdbarch.h, gdbarch.c: Re-generate.
1451 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1452 * x86-64-tdep.h: Update.
1453 * x86-64-tdep.c (x86_64_init_abi): Update.
1454 * v850-tdep.c (v850_gdbarch_init): Update.
1455 * sparc-tdep.c (sparc_gdbarch_init): Update.
1456 * sh-tdep.c (sh_gdbarch_init): Update.
1457 * s390-tdep.c (s390_gdbarch_init): Update.
1458 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1459 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1460 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1461 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1462 * mips-tdep.c (mips_gdbarch_init): Update.
1463 * mcore-tdep.c (mcore_gdbarch_init): Update.
1464 * m68k-tdep.c (m68k_gdbarch_init): Update.
1465 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1466 * ia64-tdep.c (ia64_gdbarch_init): Update.
1467 * i386-tdep.c (i386_gdbarch_init): Update.
1468 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1469 * hppa-tdep.c (hppa_gdbarch_init): Update.
1470 * h8300-tdep.c (h8300_gdbarch_init): Update.
1471 * frv-tdep.c (frv_gdbarch_init): Update.
1472 * cris-tdep.c (cris_gdbarch_init): Update.
1473 * avr-tdep.c (avr_gdbarch_init): Update.
1474 * arm-tdep.c (arm_gdbarch_init): Update.
1475 * alpha-tdep.c (alpha_gdbarch_init): Update.
1476 * sh-tdep.c (sh_init_extra_frame_info): Update.
1477 (sh64_init_extra_frame_info): Update.
1478 * ns32knbsd-nat.c (frame_num_args): Update.
1479 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1480 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1481 (xstormy16_frame_chain_valid): Update.
1482 * vax-tdep.c (vax_saved_pc_after_call): Update.
1483 * v850-tdep.c (v850_frame_chain): Update.
1484 (v850_pop_frame): Update.
1485 (v850_init_extra_frame_info): Update.
1486 * sparc-tdep.c (setup_arbitrary_frame): Update.
1487 * ns32k-tdep.c (umax_frame_num_args): Update.
1488 * s390-tdep.c (s390_pop_frame_regular): Update.
1489 * mn10300-tdep.c (mn10300_frame_chain): Update.
1490 (mn10300_pop_frame_regular): Update.
1491 (mn10300_init_extra_frame_info): Update.
1492 * mips-tdep.c (mips_init_frame_pc_first): Update.
1493 (mips_frame_chain): Update.
1494 (mips_pop_frame): Update.
1495 * mcore-tdep.c (mcore_frame_chain): Update.
1496 (mcore_pop_frame): Update.
1497 (mcore_init_extra_frame_info): Update.
1498 * arch-utils.c (init_frame_pc_default): Update.
1499 * m68k-tdep.c (isi_frame_num_args): Update.
1500 (delta68_frame_num_args): Update.
1501 (news_frame_num_args): Update.
1502 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1503 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1504 (alpha_frame_chain): Update.
1505 (alpha_pop_frame): Update.
1506 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1507 (hppa_init_extra_frame_info): Update.
1508 (hppa_frame_chain): Update.
1509 (hppa_frame_chain_valid): Update.
1510 * cris-tdep.c (cris_init_extra_frame_info): Update.
1511 * avr-tdep.c (avr_init_extra_frame_info): Update.
1512 * arm-tdep.c (arm_frame_chain_valid): Update.
1513 (arm_init_extra_frame_info): Update.
1514 (arm_pop_frame): Update.
1515 * frame.c (frame_pc_unwind): Update.
1516 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1517 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1518 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1519 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1520 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1521 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1523 2003-03-12 Andrew Cagney <cagney@redhat.com>
1525 Eliminate the need for POP_FRAME.
1526 * frame.c (do_frame_unwind_register): New function.
1527 (frame_pop): When no POP_FRAME, pop the frame using register
1528 unwind and a scratch regcache.
1529 (frame_saved_regs_pop): Delete function.
1530 (trad_frame_unwinder): Update.
1531 * d10v-tdep.c (d10v_frame_pop): Delete function.
1532 (d10v_frame_unwind): Update.
1533 * sentinel-frame.c (sentinel_frame_pop): Delete function.
1534 (sentinel_frame_unwinder): Update.
1535 * dummy-frame.c (dummy_frame_pop): Delete function.
1536 (dummy_frame_unwind): Update.
1537 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
1538 (struct frame_unwind): Update.
1540 2003-03-11 Kevin Buettner <kevinb@redhat.com>
1542 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
1543 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
1544 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
1545 Do range checks on register number obtained from debugging info.
1546 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
1547 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
1548 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
1550 (do_fp_register_row): Fix typo which caused double type to be
1551 used when attempting to unpack a float.
1553 2003-03-11 J. Brobecker <brobecker@gnat.com>
1555 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
1557 2003-03-11 Andrew Cagney <cagney@redhat.com>
1559 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
1560 frame. Problem found by Corinna Vinschen.
1562 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
1564 * doublest.c (floatformat_from_length): Accept also
1565 the real size of 'long double' type.
1567 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
1569 From Klee Dienes <kdienes@apple.com>:
1570 * breakpoint.c (bpstat_copy): Copy the command lines as well
1571 as the old value, to match what is freed in bpstat_clear.
1573 2003-03-10 David Carlton <carlton@math.stanford.edu>
1575 * minsyms.c (add_minsym_to_hash_table): Replace
1576 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1577 (compare_minimal_symbols, compact_minimal_symbols)
1578 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
1579 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
1580 of DEPRECATED_SYMBOL_MATCHES_NAME.
1581 (lookup_minimal_symbol_solib_trampoline): Ditto.
1583 2003-03-10 Andrew Cagney <cagney@redhat.com>
1585 * regcache.h (regcache_cooked_read_ftype): Define.
1586 (regcache_save, regcache_restore): Add a cooked_read parameter.
1587 * regcache.c (regcache_save, regcache_restore): Update.
1588 (do_cooked_read): New function.
1589 (regcache_cpy): Pass do_cooked_read to regcache_save and
1592 2003-03-10 Andrew Cagney <cagney@redhat.com>
1594 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1595 * gdbarch.h, gdbarch.c: Re-generate.
1596 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1597 * x86-64-tdep.h: Update.
1598 * x86-64-tdep.c (x86_64_init_abi): Update.
1599 * v850-tdep.c (v850_gdbarch_init): Update.
1600 * sparc-tdep.c (sparc_gdbarch_init): Update.
1601 * sh-tdep.c (sh_gdbarch_init): Update.
1602 * s390-tdep.c (s390_gdbarch_init): Update.
1603 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1604 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1605 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1606 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1607 * mips-tdep.c (mips_gdbarch_init): Update.
1608 * mcore-tdep.c (mcore_gdbarch_init): Update.
1609 * m68k-tdep.c (m68k_gdbarch_init): Update.
1610 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1611 * ia64-tdep.c (ia64_gdbarch_init): Update.
1612 * i386-tdep.c (i386_gdbarch_init): Update.
1613 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1614 * hppa-tdep.c (hppa_gdbarch_init): Update.
1615 * h8300-tdep.c (h8300_gdbarch_init): Update.
1616 * frv-tdep.c (frv_gdbarch_init): Update.
1617 * cris-tdep.c (cris_gdbarch_init): Update.
1618 * avr-tdep.c (avr_gdbarch_init): Update.
1619 * arm-tdep.c (arm_gdbarch_init): Update.
1620 * alpha-tdep.c (alpha_gdbarch_init): Update.
1621 * sh-tdep.c (sh_init_extra_frame_info): Update.
1622 (sh64_init_extra_frame_info): Update.
1623 * ns32knbsd-nat.c (frame_num_args): Update.
1624 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1625 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1626 (xstormy16_frame_chain_valid): Update.
1627 * vax-tdep.c (vax_saved_pc_after_call): Update.
1628 * v850-tdep.c (v850_frame_chain): Update.
1629 (v850_pop_frame): Update.
1630 (v850_init_extra_frame_info): Update.
1631 * sparc-tdep.c (setup_arbitrary_frame): Update.
1632 * ns32k-tdep.c (umax_frame_num_args): Update.
1633 * s390-tdep.c (s390_pop_frame_regular): Update.
1634 * mn10300-tdep.c (mn10300_frame_chain): Update.
1635 (mn10300_pop_frame_regular): Update.
1636 (mn10300_init_extra_frame_info): Update.
1637 * mips-tdep.c (mips_init_frame_pc_first): Update.
1638 (mips_frame_chain): Update.
1639 (mips_pop_frame): Update.
1640 * mcore-tdep.c (mcore_frame_chain): Update.
1641 (mcore_pop_frame): Update.
1642 (mcore_init_extra_frame_info): Update.
1643 * arch-utils.c (init_frame_pc_default): Update.
1644 * m68k-tdep.c (isi_frame_num_args): Update.
1645 (delta68_frame_num_args): Update.
1646 (news_frame_num_args): Update.
1647 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1648 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1649 (alpha_frame_chain): Update.
1650 (alpha_pop_frame): Update.
1651 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1652 (hppa_init_extra_frame_info): Update.
1653 (hppa_frame_chain): Update.
1654 (hppa_frame_chain_valid): Update.
1655 * cris-tdep.c (cris_init_extra_frame_info): Update.
1656 * avr-tdep.c (avr_init_extra_frame_info): Update.
1657 * arm-tdep.c (arm_frame_chain_valid): Update.
1658 (arm_init_extra_frame_info): Update.
1659 (arm_pop_frame): Update.
1660 * frame.c (frame_pc_unwind): Update.
1661 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1662 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1663 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1664 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1665 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1666 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1668 2003-03-10 Andrew Cagney <cagney@redhat.com>
1670 * gdbarch.sh (gdbarch_unwind_pc): New method.
1671 * gdbarch.h, gdbarch.c: Regenerate.
1672 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
1673 but use read_pc and FRAME_SAVED_PC as fall backs.
1674 (frame_saved_regs_pc_unwind): Delete function.
1675 (trad_frame_unwinder): Update.
1676 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
1677 (struct frame_unwind): Update.
1678 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
1679 (dummy_frame_unwind): Update.
1680 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
1681 (sentinel_frame_unwinder): Update.
1682 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
1683 (d10v_frame_unwind): Update.
1684 (d10v_unwind_pc): New function.
1685 (d10v_gdbarch_init): Set unwind_pc.
1687 2003-03-10 Andrew Cagney <cagney@redhat.com>
1689 * gdbarch.h: Re-generate.
1691 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
1693 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
1696 2003-03-08 Mark Kettenis <kettenis@gnu.org>
1698 * gdbarch.sh (save_dummy_frame_tos): Add comment.
1700 2003-03-08 Andrew Cagney <cagney@redhat.com>
1702 * cli-out.c: Update copyright.
1703 (cli_out_data): Define typedef. Use instead of ui_out_data.
1705 2003-03-08 Andrew Cagney <cagney@redhat.com>
1707 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
1710 2003-03-07 Andrew Cagney <cagney@redhat.com>
1712 * gdbarch.sh: Don't generate two macro definitions when an
1713 undefined macro taking no arguments.
1714 * gdbarch.h: Regenerate.
1716 2002-03-07 Michal Ludvig <mludvig@suse.cz>
1718 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
1719 (x86_64_unwind_dummy_id): New functions.
1720 (x86_64_init_abi): Register these two new functions.
1722 2003-03-07 Michal Ludvig <mludvig@suse.cz>
1724 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
1725 (x86_64_skip_prologue): Move prologue detection to
1727 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
1729 2003-03-05 Andrew Cagney <cagney@redhat.com>
1731 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
1732 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
1733 * frame.c (get_prev_frame): Restructure the frame ID unwind code
1734 to use unwind_dummy_id when a dummy frame.
1735 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
1737 * gdbarch.h, gdbarch.c: Regneerate.
1739 2003-03-05 Andrew Cagney <cagney@redhat.com>
1741 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
1742 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
1743 Do not use d10v_read_sp or d10v_read_fp when obtaining register
1746 2003-03-05 Andrew Cagney <cagney@redhat.com>
1748 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
1749 (struct d10v_unwind_cache): Delete field "frameless". Replace
1750 "next_addr" with "sp_offset". Add "r11_offset".
1751 (d10v_frame_unwind_cache): Update.
1752 (prologue_find_regs): Update. When "mv r11, sp", save the
1753 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
1754 RN was saved in r11_offset.
1756 2003-03-05 Andrew Cagney <cagney@redhat.com>
1758 * frame.c (deprecated_update_frame_pc_hack): Also update the the
1759 cached PC value in the next frame.
1761 2003-03-05 Andrew Cagney <cagney@redhat.com>
1763 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
1764 "id_unwind_cache" with "id".
1765 (frame_id_unwind): Delete declaration.
1766 * frame.c (frame_id_unwind): Delete function.
1767 (get_prev_frame): Call the frame id unwind method directly. Store
1768 the returned next frame's ID value in NEXT_FRAME. Note that there
1769 is a problem with the wrong unwind ID being called with the wrong
1772 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
1774 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
1776 2003-03-05 James Ingham <jingham@apple.com>
1777 Daniel Jacobowitz <drow@mvista.com>
1779 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
1780 (auto_cp_abi): New variable.
1781 (current_cp_abi, num_cp_abis): Make static.
1782 (CP_ABI_MAX): Define.
1783 (cp_abis): Turn into an array.
1784 (value_virtual_fn_field): Fix formatting.
1785 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
1787 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
1788 (list_cp_abis, _initialize_cp_abi): New functions.
1789 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
1790 declarations for cp_abis, num_cp_abis, current_cp_abi, and
1791 switch_to_cp_abi. Update prototype for register_cp_abi.
1792 * Makefile.in (cp-abi.o): Update dependencies.
1793 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
1794 instead of switch_to_cp_abi.
1795 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
1797 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
1799 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
1801 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
1803 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
1804 * dwarf2loc.c: Include "regcache.h".
1805 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
1807 * Makefile.in (dwarf2loc.o): Update dependencies.
1809 2003-03-04 Theodore A. Roth <troth@openavr.org>
1811 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
1812 number of io registers reported by remote target is not a multiple of
1815 2003-03-04 David Carlton <carlton@math.stanford.edu>
1817 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
1818 (lookup_symbol_aux_psymtabs): Update call to
1819 lookup_partial_symbol.
1820 (lookup_transparent_type, find_main_psymtab)
1821 (make_symbol_overload_list): Ditto.
1823 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
1825 * MAINTAINERS (Write after approval): Update my email address.
1827 2003-03-03 Andrew Cagney <cagney@redhat.com>
1829 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
1830 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
1831 predicate. Replace MAX_REGISTER_RAW_SIZE.
1832 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
1833 MAX_REGISTER_VIRTUAL_SIZE.
1834 * regcache.c (legacy_max_register_raw_size): New function.
1835 (legacy_max_register_virtual_size): New function.
1836 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
1837 (MAX_REGISTER_RAW_SIZE): Define.
1838 (legacy_max_register_raw_size): Declare.
1839 (legacy_max_register_virtual_size): Declare.
1840 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1841 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
1842 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1843 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1844 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1845 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1846 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1847 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1848 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1849 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1850 * vax-tdep.c (vax_gdbarch_init): Update.
1851 * v850-tdep.c (v850_gdbarch_init): Update.
1852 * sparc-tdep.c (sparc_gdbarch_init): Update.
1853 * sh-tdep.c (sh_gdbarch_init): Update.
1854 * s390-tdep.c (s390_gdbarch_init): Update.
1855 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1856 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1857 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1858 * mips-tdep.c (mips_gdbarch_init): Update.
1859 * mcore-tdep.c (mcore_gdbarch_init): Update.
1860 * m68k-tdep.c (m68k_gdbarch_init): Update.
1861 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1862 * ia64-tdep.c (ia64_gdbarch_init): Update.
1863 * i386-tdep.c (i386_gdbarch_init): Update.
1864 * hppa-tdep.c (hppa_gdbarch_init): Update.
1865 * h8300-tdep.c (h8300_gdbarch_init): Update.
1866 * frv-tdep.c (frv_gdbarch_init): Update.
1867 * cris-tdep.c (cris_gdbarch_init): Update.
1868 * avr-tdep.c (avr_gdbarch_init): Update.
1869 * arm-tdep.c (arm_gdbarch_init): Update.
1870 * alpha-tdep.c (alpha_gdbarch_init): Update.
1871 * d10v-tdep.c (d10v_gdbarch_init): Do not set
1872 max_register_raw_size or max_register_virtual_size.
1874 2003-03-03 David Carlton <carlton@math.stanford.edu>
1876 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
1877 SYMBOL_MATCHES_NAME, add comment.
1878 (SYMBOL_MATCHES_NATURAL_NAME): New.
1879 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
1880 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
1881 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
1882 * symtab.c (lookup_partial_symbol): Use
1883 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
1885 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
1886 SYMBOL_MATCHES_NAME.
1889 2003-03-03 David Carlton <carlton@math.stanford.edu>
1891 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
1892 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
1893 by regexp matching against SYMBOL_NATURAL_NAME.
1895 2003-03-03 David Carlton <carlton@math.stanford.edu>
1897 * linespec.c (find_method): Extract code into collect_methods.
1898 (collect_methods): New.
1900 2003-03-02 Mark Kettenis <kettenis@gnu.org>
1902 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
1905 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
1906 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1908 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
1910 * arch-utils.c (generic_register_byte): Fix to use the loop index
1911 and not regnum when summing the size of all registers up to regnum.
1913 2003-03-01 Andrew Cagney <cagney@redhat.com>
1915 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
1916 FRAME_INIT_SAVED_REGS.
1917 * gdbarch.h, gdbarch.c: Regenerate.
1918 * stack.c (frame_info): Update.
1919 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
1920 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
1921 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
1922 * ns32k-tdep.c (ns32k_pop_frame): Update.
1923 * mips-tdep.c (mips_pop_frame): Update.
1924 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
1925 * ia64-tdep.c (ia64_frame_chain): Update.
1926 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
1927 (ia64_frameless_function_invocation): Update.
1928 (ia64_init_extra_frame_info): Update.
1929 (ia64_pop_frame_regular): Update.
1930 * frame.h (struct frame_info): Update comment.
1931 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
1932 * frame.c (frame_saved_regs_register_unwind): Update.
1933 (frame_saved_regs_register_unwind): Update.
1934 (deprecated_generic_get_saved_register): Update.
1935 * cris-tdep.c: Update comment.
1936 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
1938 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1939 * x86-64-tdep.c (x86_64_init_abi): Update.
1940 * vax-tdep.c (vax_gdbarch_init): Update.
1941 * v850-tdep.c (v850_gdbarch_init): Update.
1942 * sparc-tdep.c (sparc_gdbarch_init): Update.
1943 * sh-tdep.c (sh_gdbarch_init): Update.
1944 * s390-tdep.c (s390_gdbarch_init): Update.
1945 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1946 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1947 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1948 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1949 * mips-tdep.c (mips_gdbarch_init): Update.
1950 * mcore-tdep.c (mcore_gdbarch_init): Update.
1951 * m68k-tdep.c (m68k_gdbarch_init): Update.
1952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1953 * ia64-tdep.c (ia64_gdbarch_init): Update.
1954 * i386-tdep.c (i386_gdbarch_init): Update.
1955 * frv-tdep.c (frv_gdbarch_init): Update.
1956 * avr-tdep.c (avr_gdbarch_init): Update.
1957 * arm-tdep.c (arm_gdbarch_init): Update.
1958 * alpha-tdep.c (alpha_gdbarch_init): Update.
1960 2003-03-01 Andrew Cagney <cagney@redhat.com>
1962 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
1963 option enum and switch. When no windows, set the interpreter to
1966 2003-03-01 Andrew Cagney <cagney@redhat.com>
1968 * main.c (captured_main): Replace magic option characters with an
1971 2003-03-01 Andrew Cagney <cagney@redhat.com>
1973 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
1974 INIT_EXTRA_FRAME_INFO.
1975 * gdbarch.h, gdbarch.c: Regenerate.
1976 * arm-tdep.c: Update comments.
1977 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
1978 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
1979 * frame.h, avr-tdep.c: Ditto.
1980 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
1981 (create_new_frame, legacy_get_prev_frame): Ditto.
1982 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1983 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1984 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
1985 deprecated_init_extra_frame_info instead of init_extra_frame_info.
1986 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1987 * v850-tdep.c (v850_gdbarch_init): Ditto.
1988 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1989 * sh-tdep.c (sh_gdbarch_init): Ditto.
1990 * s390-tdep.c (s390_gdbarch_init): Ditto.
1991 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1992 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1993 * mips-tdep.c (mips_gdbarch_init): Ditto.
1994 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1995 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1996 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1997 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1998 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1999 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2000 * frv-tdep.c (frv_gdbarch_init): Ditto.
2001 * cris-tdep.c (cris_gdbarch_init): Ditto.
2002 * avr-tdep.c (avr_gdbarch_init): Ditto.
2003 * arm-tdep.c (arm_gdbarch_init): Ditto.
2004 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2005 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2007 2003-03-01 Andrew Cagney <cagney@redhat.com>
2009 * gdbarch.sh (register_type): New function with predicate.
2010 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
2011 * gdbarch.h, gdbarch.c: Re-generate.
2012 * arch-utils.c (generic_register_byte): Use generic_register_size.
2013 (generic_register_size): When available, use
2014 gdbarch_register_type.
2015 * regcache.c (init_regcache_descr): When available, initialize the
2016 register type array using gdbarch_register_type. If the
2017 architecture supplies gdbarch_register_type, do not use the legacy
2019 * d10v-tdep.c (d10v_register_type): Replace
2020 d10v_register_virtual_type.
2021 (d10v_gdbarch_init): Set register_type instead of
2022 register_virtual_type.
2024 2003-03-01 Andrew Cagney <cagney@redhat.com>
2026 * Makefile.in (ax-gdb.o): Update dependencies.
2027 * ax-gdb.c: Include "regcache.h".
2028 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
2029 * findvar.c (value_of_register): Ditto.
2030 * infcmd.c (default_print_registers_info): Ditto.
2032 2003-03-01 Mark Kettenis <kettenis@gnu.org>
2034 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
2035 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2037 2003-03-01 Mark Kettenis <kettenis@gnu.org>
2039 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
2042 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
2044 * Makefile.in (dwarf2loc.o): Update dependencies.
2045 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
2046 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
2047 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
2048 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
2049 (locexpr_tracepoint_var_ref): New function.
2050 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
2052 2003-02-28 Andrew Cagney <cagney@redhat.com>
2054 * regcache.c (register_size): New function.
2055 * regcache.h (register_size): Declare
2056 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
2057 max_register_size instead of MAX_REGISTER_RAW_SIZE.
2059 2003-02-28 David Carlton <carlton@math.stanford.edu>
2061 * linespec.c (decode_compound): Extract code into find_method.
2064 2003-02-28 J. Brobecker <brobecker@gnat.com>
2066 * Makefile.in: Add rules to build and link in observer.o.
2068 2003-02-27 J. Brobecker <brobecker@gnat.com>
2070 * observer.c: Minor comments edits.
2072 2003-02-27 J. Brobecker <brobecker@gnat.com>
2074 * observer.h, observer.c: New file.
2076 2003-02-27 Andrew Cagney <cagney@redhat.com>
2078 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
2080 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
2082 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
2083 (M6812_OP_STS_EXT): Likewise.
2084 (m6811_prologue): Use the above to recognize prologue.
2085 (m6812_prologue): Likewise.
2087 2003-02-27 David Carlton <carlton@math.stanford.edu>
2089 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
2091 (compare_psymbols): Ditto.
2092 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
2094 2003-02-27 Michael Snyder <msnyder@redhat.com>
2096 * f-lang.c (build_fortran_types): New function.
2097 (_initialize_f_language): Gdbarch-register built-in fortran types.
2098 * doublest.c (extract_floating): Fix warning text.
2100 2003-02-27 Andrew Cagney <cagney@redhat.com>
2102 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
2103 predicate. Replaces PUSH_DUMMY_FRAME.
2104 * gdbarch.h, gdbarch.c: Regnerate.
2105 * valops.c (hand_function_call): Update. Call
2106 generic_push_dummy_frame directly.
2107 * vax-tdep.c (vax_gdbarch_init): Update.
2108 * sparc-tdep.c (sparc_gdbarch_init): Update.
2109 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2110 * m68k-tdep.c (m68k_gdbarch_init): Update.
2111 * hppa-tdep.c (hppa_gdbarch_init): Update.
2112 * alpha-tdep.c (alpha_gdbarch_init): Update.
2113 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2114 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2115 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
2116 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
2117 push_dummy_frame to generic_push_dummy_frame.
2118 * v850-tdep.c (v850_gdbarch_init): Ditto.
2119 * sh-tdep.c (sh_gdbarch_init): Ditto.
2120 * s390-tdep.c (s390_gdbarch_init): Ditto.
2121 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2122 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2123 * mips-tdep.c (mips_gdbarch_init): Ditto.
2124 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2125 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2126 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2127 * i386-tdep.c (i386_gdbarch_init): Ditto.
2128 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2129 * frv-tdep.c (frv_gdbarch_init): Ditto.
2130 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2131 * cris-tdep.c (cris_gdbarch_init): Ditto.
2132 * avr-tdep.c (avr_gdbarch_init): Ditto.
2133 * arm-tdep.c (arm_gdbarch_init): Ditto.
2135 2003-02-26 Kevin Buettner <kevinb@redhat.com>
2137 * mips-tdep.c (show_mips_abi): New function.
2138 (_initialize_mips_tdep): Use show_mips_abi() to implement the
2139 command ``show mips abi''.
2141 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
2143 From Elena Zannoni <ezannoni@redhat.com>
2144 * dbxread.c (process_one_symbol): Only record line 0 if one or
2145 more sline entries have been seen for the function.
2147 2003-02-26 Michael Chastain <mec@shout.net>
2149 * configure: Regenerate with autoconf 000227.
2151 2003-02-26 Michael Chastain <mec@shout.net>
2154 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
2155 for old libc5/glibc.
2156 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
2158 2003-02-26 Kris Warkentin <kewarken@qnx.com>
2160 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
2161 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
2163 2003-02-26 Michael Chastain <mec@shout.net>
2165 * configure.in: New variable HAVE_UINTPTR_T.
2166 * configure, config.in: Regenerated.
2168 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
2171 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
2173 2003-02-25 Andrew Cagney <cagney@redhat.com>
2175 * frame.c (get_prev_frame): Add comment on check for
2176 inside_entry_func. Only check for inside_entry_file when not a
2177 dummy and not a sentinel. Check that the new frame is not inner
2180 2003-02-25 Andrew Cagney <cagney@redhat.com>
2182 * frame.c (frame_debug): New variable.
2183 (_initialize_frame): Add "set/show debug frame" command.
2184 (get_prev_frame): When frame_debug, print reason why unwind
2187 2003-02-25 Michael Chastain <mec@shout.net>
2189 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
2190 to avoid uintptr_t definition problems.
2192 2003-02-25 David Carlton <carlton@math.stanford.edu>
2194 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
2195 (SYMBOL_LINKAGE_NAME): Ditto.
2196 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
2197 SYMBOL_LINKAGE_NAME.
2198 (struct general_symbol_info): Expand comment.
2199 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
2200 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
2201 (SYMBOL_MATCHES_REGEXP): Ditto.
2202 * symtab.c (symbol_natural_name): New function.
2203 * objfiles.h: Replace all uses of SYMBOL_NAME by
2204 DEPRECATED_SYMBOL_NAME.
2205 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
2206 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
2207 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
2208 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
2209 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
2210 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
2211 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
2212 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
2213 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
2214 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
2216 * ada-exp.y: Update copyright.
2217 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
2218 * cp-valprint.c: Ditto.
2220 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
2222 * infptrace.c (detach): Do not flag error if ptrace detach fails
2223 and errno is set to ESRCH.
2225 2003-02-24 Andrew Cagney <cagney@redhat.com>
2227 * infptrace.c (udot_info): Change type of udot_off to long. Use
2228 paddr when printing udot_off's value.
2230 2003-02-24 David Carlton <carlton@math.stanford.edu>
2232 * symtab.c (make_symbol_overload_list): Only read in partial
2233 symtabs containing a matching partial symbol.
2235 2003-02-24 David Carlton <carlton@math.stanford.edu>
2237 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
2238 do the comparison, not strcmp.
2239 * symfile.c (compare_psymbols): Ditto.
2240 * defs.h: Declare strcmp_iw_ordered.
2241 * utils.c (strcmp_iw_ordered): New function.
2243 2003-02-24 Jim Blandy <jimb@redhat.com>
2245 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
2246 support, shared libs): Remove my name from here, to better reflect
2249 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2251 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
2252 (target_ops): Add to_have_continuable_watchpoint.
2253 * target.c (update_current_target): Add INHERIT line for
2254 to_have_continuable_watchpoint.
2255 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
2256 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
2257 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
2258 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
2260 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
2262 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
2265 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2267 * solib.c (solib_open): Call target defined search function after
2268 failing with solib-search-path.
2269 * solist.h (target_so_ops): Add find_and_open_solib function hook and
2270 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2272 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2274 * MAINTAINERS: Add myself to Write After section.
2276 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
2278 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
2280 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
2282 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
2283 (m68hc11_add_reggroups): New function.
2284 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
2285 (m68hc11_gdbarch_init): Install the reggroups.
2286 (_initialize_m68hc11_tdep): Initialize them.
2288 2003-02-21 James E Wilson <wilson@tuliptree.org>
2290 * MAINTAINERS: Update my email address.
2292 2003-02-21 David Carlton <carlton@math.stanford.edu>
2294 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
2296 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
2298 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
2299 * symtab.h: Add opaque declarations of struct axs_value and
2301 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
2302 (struct location_funcs): New type.
2303 (struct symbol): Add "loc" to aux_value.
2304 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
2305 * dwarf2read.c: Include "dwarf2expr.h".
2306 (dwarf2_symbol_mark_computed): New function.
2307 (read_func_scope): Use it.
2308 (var_decode_location): New function.
2309 (new_symbol): Use it.
2310 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
2312 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
2313 (dwarf2expr_h, dwarf2loc_h): New variables.
2314 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
2315 (dwarf2expr.o, dwarf2loc.o): New rules.
2316 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
2317 * buildsym.c (finish_block): Handle LOC_COMPUTED and
2319 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2320 * m2-exp.y (yylex): Likewise.
2321 * printcmd.c (address_info, print_frame_args): Likewise.
2322 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
2323 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2324 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
2325 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
2326 * symtab.c (lookup_block_symbol): Likewise.
2328 2003-02-20 Adam Fedor <fedor@gnu.org>
2330 * symtab.h: Remove objc_specific struct
2331 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
2332 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
2333 Have language_objc use cplus_specific struct.
2335 2003-02-20 Tom Tromey <tromey@redhat.com>
2337 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
2338 TYPE_NAME, when printing a String value. PR java/1075.
2340 2003-02-20 Adam Fedor <fedor@gnu.org>
2342 * objc-lang.h (find_methods): Remove declaration.
2343 * objc-lang.c (find_methods): Make static.
2345 2003-02-20 Christopher Faylor <cgf@redhat.com>
2347 * win32-nat.c (get_image_name): Check return value from
2349 (child_xfer_memory): Ditto.
2351 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2353 * configure.in (TARGET_SYSTEM_ROOT): Set default to
2354 ${exec_prefix}/${target_alias}/sys-root. Match explicit
2355 '${exec_prefix}' (in addition to the expansion thereof) as
2357 * configure: Rebuilt.
2359 2003-02-20 David Carlton <carlton@math.stanford.edu>
2361 * symtab.c (search_symbols): Revert the search_symbols part of my
2362 2002-12-23 patch. Add comment.
2364 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2366 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
2367 * dbxread.c (elfstab_build_psymtabs): Don't call
2368 install_minimal_symbols.
2369 (stabsect_build_psymtabs): Likewise.
2370 * elfread.c (elf_symfile_read): Call install_minimal_symbols
2372 * somread.c (som_symfile_read): Call install_minimal_symbols
2373 and do_cleanups earlier.
2374 * nlmread.c (nlm_symfile_read): Likewise.
2375 * mdebugread.c (elfmdebug_build_psymtabs): Call
2376 install_minimal_symbols and make appropriate cleanups.
2378 2003-02-20 Kevin Buettner <kevinb@redhat.com>
2380 * solib.c (reload_shared_libraries): New function.
2381 (_initialize_solib): Add callbacks for ``set solib-search-path''
2382 and ``set solib-absolute-prefix''.
2384 2003-02-20 David Carlton <carlton@math.stanford.edu>
2386 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
2388 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
2389 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
2390 * ada-typeprint.c (ada_typedef_print): Ditto.
2391 * ax-gdb.c (gen_var_ref): Ditto.
2392 * breakpoint.c (print_one_breakpoint): Ditto.
2393 * buildsym.c (finish_block): Ditto.
2394 * c-valprint.c (c_val_print): Ditto.
2395 * expprint.c (print_subexp): Ditto.
2396 * findvar.c (locate_var_value): Ditto.
2397 * infcmd.c (jump_command): Ditto.
2398 * linespec.c (decode_line_2, decode_compound): Ditto.
2399 * maint.c (maintenance_translate_address): Ditto.
2400 * objc-lang.c (compare_selectors, compare_classes): Ditto.
2401 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
2403 * p-valprint.c (pascal_val_print): Ditto.
2404 * stabsread.c (define_symbol): Ditto.
2405 * stack.c (print_frame, frame_info, print_block_frame_locals)
2406 (print_frame_arg_vars, return_command): Ditto.
2407 * symfile.c (compare_symbols, compare_psymbols): Ditto.
2408 * symmisc.c (print_symbol): Ditto.
2409 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
2410 (compare_search_syms, print_symbol_info, print_msymbol_info)
2411 (rbreak_command): Ditto.
2412 * tracepoint.c (tracepoints_info): Ditto.
2413 * typeprint.c (typedef_print): Ditto.
2414 * valops.c (value_of_variable, hand_function_call): Ditto.
2415 * cli/cli-cmds.c (edit_command, list_command): Ditto.
2416 * ada-typeprint.c: Update Copyright.
2417 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
2418 * tracepoint.c, cli/cli-cmds.c: Ditto.
2420 2003-02-20 Kevin Buettner <kevinb@redhat.com>
2422 * frame.c (generic_unwind_get_saved_register): Make non-static.
2423 * frame.h (generic_unwind_get_saved_register): Declare.
2424 * mips-tdep.c (read_next_frame_reg): Fetch register from
2425 current regcache when frame is NULL.
2426 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
2428 (mips_get_saved_register): Call generic_unwind_get_saved_register()
2429 instead of frame_register_unwind().
2431 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2433 * remote-sim.c (gdbsim_insert_breakpoint)
2434 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
2437 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2439 * remote.c (_initialize_remote): Add commands "set/show remote
2440 hardware-watchpoint-limit" and "set/show remote
2441 hardware-breakpoint-limit".
2442 (remote_hw_watchpoint_limit): Initialize to -1.
2443 (remote_hw_breakpoint_limit): Ditto.
2444 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
2446 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
2448 * coff-pe-read.c: New file - support reading of minimal symbols from a
2449 portable executable using the export table.
2450 * coff-pe-read.h: New file.
2451 * coffread.c: Include coff-pe-read.h.
2452 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
2453 debugging symbols found.
2454 * Makefile.in (SFILES): Add coff-pe-read.o.
2455 (coff_pe_read_h): Define.
2456 (COMMON_OBS): Add coff-pe-read.o.
2457 (coffread.o): Add coff_pe_read_h dependency.
2458 (coff-pe-read.o): New target.
2460 2003-02-19 David Carlton <carlton@math.stanford.edu>
2462 * Makefile.in (SFILES): Add block.c.
2464 (COMMON_OBS): Add block.o.
2466 (x86-64-tdep.o): Add $(block_h).
2467 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
2468 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
2469 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
2470 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
2471 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
2472 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
2473 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
2474 * value.h: Add opaque declaration for struct block.
2475 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
2476 * ada-lang.h: Ditto.
2477 * x86-64-tdep.c: #include "block.h"
2478 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
2479 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
2480 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
2481 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
2482 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
2483 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
2484 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
2485 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
2486 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
2487 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
2488 * symtab.c (block_function): Ditto.
2489 (contained_in): Ditto.
2490 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
2491 block.h. Add opaque declaration for struct block.
2492 * symtab.h: Move block_function and contained_in declarations to
2493 block.h. Add opaque declarations for struct block, struct
2495 (struct block): Move to block.h.
2496 (struct blockvector): Ditto.
2497 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
2498 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
2499 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
2500 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
2501 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
2503 * block.c: New file.
2504 * block.h: New file.
2506 2003-02-19 Theodore A. Roth <troth@openavr.org>
2508 * avr-tdep.c (avr_extract_return_value): Remove function.
2509 (avr_store_return_value): Remove function.
2510 (avr_extract_struct_value_address): Remove function.
2511 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
2513 2003-02-19 Andrew Cagney <ac131313@redhat.com>
2515 * rs6000-tdep.c: Include "gdb_assert.h".
2516 (registers_e500): Add "acc" and "spefscr".
2517 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
2518 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
2519 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
2521 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
2523 2003-02-18 Keith Seitz <keiths@redhat.com>
2525 * Makefile.in: Add gdbtk-interps.c.
2527 2003-02-18 Kevin Buettner <kevinb@redhat.com>
2529 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
2530 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
2532 2003-02-18 Andrew Cagney <cagney@redhat.com>
2534 * symtab.h (struct objfile): Add opaque declaration.
2536 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
2538 From Jim Ingham <jingham@apple.com>:
2539 * dbxread.c (process_one_symbol): Use last_function_start rather
2540 than function_start_offset to find the real beginning of the
2541 current function. The latter is just the text section offset on
2542 some systems, the former is always the real function start.
2544 2003-02-17 Andrew Cagney <cagney@redhat.com>
2546 * configure.in: Revert ${target} != ${host}.
2548 2003-02-17 Andrew Cagney <ac131313@redhat.com>
2550 * configure.in (Makefile): Use the test ${target} != ${host},
2551 instead of the absence of the "nm.h" file, to determine of the
2552 configuration non-native.
2553 * configure: Regenerate.
2555 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
2557 From Brian Ford <ford@vss.fsi.com>
2559 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
2560 conditionalize tui_active test.
2561 (lookup_cmd_1): Ditto.
2563 2003-02-14 Mark Kettenis <kettenis@gnu.org>
2565 * configure.in: Add check for _etext.
2566 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
2568 * config.in, configure: regenerated.
2570 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
2572 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
2574 2003-02-14 Andrew Cagney <ac131313@redhat.com>
2576 * main.c (tui_version): Delete variable.
2577 (captured_main): When --tui, set interpreter_p to "tui" instead of
2578 enabling tui_version.
2579 * printcmd.c (display_command) [TUI]: Test tui_active instead of
2581 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
2582 * cli/cli-cmds.c (disassemble_command): Ditto.
2583 * defs.h (tui_version): Delete declaration.
2584 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
2585 (tui-interp.o): Add rules.
2586 (SUBDIR_TUI_OBS): Add "tui-interp.o".
2588 2003-02-14 Christopher Faylor <cgf@redhat.com>
2590 * win32-nat.c (register_loaded_dll): Correctly set address range for
2593 2003-02-12 Jason Molenda (jmolenda@apple.com)
2595 * symmisc.c (print_objfile_statistics): Include information about
2596 the number of psymtabs and symtabs in each object file.
2598 2003-02-13 Keith R Seitz <keiths@redhat.com>
2600 * main.h (struct captured_main_args): Add interpreter_p.
2601 * main.c (captured_main): Initialize interpreter_p from context.
2602 * gdb.c (main): Set interpreter_p argument.
2603 * Makefile.in (gdb.o): Add dependency for interps.h.
2605 2003-02-12 Andrew Cagney <ac131313@redhat.com>
2607 * event-top.c (cli_command_loop): Delete declaration.
2608 (_initialize_event_loop): Delete function setting event_loop_hook.
2609 * event-top.h (cli_command_loop): Declare. Update copyright.
2610 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
2611 * interps.c (current_interp_command_loop): When event_loop_p, call
2614 2003-02-12 Andrew Cagney <ac131313@redhat.com>
2616 * interps.h (interp_command_loop_ftype): Change return type to
2619 2003-02-12 Michal Ludvig <mludvig@suse.cz>
2621 * x86-64-tdep.c (x86_64_extract_return_value)
2622 (x86_64_store_return_value): Use regcache instead of regbuf.
2623 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
2624 * x86-64-linux-nat.c (fill_gregset): Use regcache.
2626 2003-02-11 Andrew Cagney <ac131313@redhat.com>
2628 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
2629 * aclocal.m4: Regenerate.
2630 * configure: Regenerate.
2632 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
2633 TCL_LD_SEARCH_FLAGS.
2635 2003-02-10 Michal Ludvig <mludvig@suse.cz>
2637 * dwarf2cfi.c: Reindented.
2639 2003-02-09 Andrew Cagney <ac131313@redhat.com>
2641 * interps.c (clear_interpreter_hooks): Convert function definition
2644 2003-02-07 David Carlton <carlton@math.stanford.edu>
2646 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
2648 2003-02-07 Kevin Buettner <kevinb@redhat.com>
2650 * gdbtypes.h (struct main_type): Move ``length'' field from here...
2651 (struct type): ...to here.
2652 (TYPE_LENGTH): Adjust to reflect different location of ``length''
2654 * gdbtypes.c (make_qualified_type): Set length on newly created type.
2655 (replace_type): Set length on all type variants for a given type.
2657 2003-02-07 Andrew Cagney <ac131313@redhat.com>
2659 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
2661 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
2663 2003-02-06 Andrew Cagney <ac131313@redhat.com>
2665 * Makefile.in (symm-nat.o): Update dependencies.
2666 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
2667 (lynx-nat.o, ia64-linux-nat.): Ditto.
2668 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
2669 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
2670 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
2672 * Makefile.in (inflow_h): Define.
2673 (procfs.o, inflow.o, procfs.o): Update dependencies.
2674 * inftarg.c (child_stop): Delete extern declaration of
2675 inferior_process_group. Include "inflow.h".
2676 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
2677 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
2678 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
2679 (our_process_group, inferior_process_group): Extern declarations.
2681 * procfs.c: Include "gdb_assert.h".
2683 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2684 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
2685 * jv-typeprint.c (java_type_print_base): Ditto.
2686 * typeprint.c (typedef_print): Eliminate STREQ.
2687 * cli/cli-script.c (define_command, define_command): Ditto.
2688 * main.c (captured_main): Ditto.
2689 * values.c (lookup_internalvar): Ditto.
2690 * utils.c (safe_strerror, parse_escape): Eliminate assignment
2691 within `if' conditional.
2692 * linespec.c (decode_line_2): Ditto.
2693 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
2694 (bfd_openw_with_cleanup): Ditto.
2696 2003-02-07 Mark Kettenis <kettenis@gnu.org>
2698 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
2699 legacy_extract_return_value and store_return_value to
2700 legacy_return_value.
2702 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
2704 * win32-nat.c (get_relocated_section_addrs): New function. Find
2705 section load addresses for symbol handling in relocated DLLs.
2706 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
2708 2003-02-05 Fred Fish <fnf@intrinsity.com>
2710 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
2712 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
2714 (angel_RDI_info): Ditto.
2715 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
2717 (threads_continue_all_with_signals): Ditto.
2719 2003-02-05 Jim Ingham <jingham@apple.com>
2720 Keith Seitz <keiths@redhat.com>
2721 Elena Zannoni <ezannoni@redhat.com>
2722 Andrew Cagney <ac131313@redhat.com>
2724 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
2725 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
2726 (SUBDIR_MI_OBS): Add "mi-interp.o".
2727 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
2728 (SFILES): Add "interps.c".
2729 (COMMON_OBS): Add "interps.o".
2730 (interps_h, mi_main_h): Define.
2731 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
2732 (mi-main.o, main.o, event-top.o): Update dependencies.
2733 * cli/cli-interp.c: New file.
2734 * interps.h, interps.c: New files.
2735 * top.c: (gdb_init): Don't install the default interpreter, handed
2737 * main.c: Include "interps.h".
2738 (interpreter_p): Note that it should malloc'ed.
2739 (captured_command_loop): Call current_interp_command_loop.
2740 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
2741 xfree and xstrdup when updating interpreter_p. Install the
2742 default interpreter. Add hack to stop mi1's copyright notice
2744 * event-top.h (gdb_setup_readline): Declare.
2745 (gdb_disable_readline): Declare.
2746 * event-top.c: Include "interps.h".
2747 (display_gdb_prompt): Call current_interp_display_prompt_p.
2748 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
2749 gdb_stdlog, and gdb_stdtarg.
2750 (_initialize_event_loop): Don't call gdb_setup_readline.
2751 * cli-out.c (cli_out_set_stream): New function.
2752 * cli-out.h (cli_out_set_stream): Declare.
2754 2003-02-06 Mark Kettenis <kettenis@gnu.org>
2756 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
2757 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
2758 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
2759 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
2760 config/i386/i386v42mp.mt: Removed.
2762 2003-02-05 Mark Kettenis <kettenis@gnu.org>
2764 * configure.tgt (*-*-solaris*): Set gdb_osabi to
2767 2003-02-05 Michael Chastain <mec@shout.net>
2769 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
2770 2.12.1 and earlier versions.
2772 2003-02-05 Andrew Cagney <ac131313@redhat.com>
2774 Remove orphaned hosts, targets and files.
2775 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
2776 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
2777 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
2778 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
2779 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
2780 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
2781 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
2782 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
2783 * config/sparc/tm-sp64sim.h: Delete.
2784 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
2786 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
2787 mips*-dec-mach3* targets.
2789 2003-02-04 Michael Chastain <mec@shout.net>
2791 * NEWS: Fix typo: sepcifying -> specifying.
2793 2003-02-04 Michael Chastain <mec@shout.net>
2795 * dwarfread.c: Add documentation on the state of dwarf-1,
2796 looking towards obsoletion.
2798 2003-02-03 Michael Chastain <mec@shout.net>
2800 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
2801 gdb/testsuite/gdb.c++/pr-1023.exp.
2803 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2805 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
2806 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
2808 * utils.c (init_page_info): Delete reference to MPW in comments.
2809 * main.c (captured_main): Delete #ifdef MPW.
2811 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2813 * NEWS: Note that the m32r-*-elf* is obsolete.
2814 * monitor.c (monitor_expect): Obsolete reference to m32r.
2815 * configure.tgt: Mark m32r-*-elf* as obsolete.
2816 * MAINTAINERS: Mark m32k as obsolete.
2817 * m32r-rom.c: Obsolete file.
2818 * config/m32r/m32r.mt: Obsolete file.
2819 * config/m32r/tm-m32r.h: Obsolete file.
2820 * m32r-stub.c: Obsolete file.
2821 * m32r-tdep.c: Obsolete file.
2823 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2825 * NEWS: Mention that the z8k-zilog-none is obsolete.
2826 * MAINTAINERS: Mark z8k as obsolete.
2827 * configure.tgt: Obsolete the z8k-*-coff* target.
2828 * config/z8k/z8k.mt: Obsolete file.
2829 * config/z8k/tm-z8k.h: Obsolete file.
2830 * z8k-tdep.c: Obsolete file.
2832 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2834 * NEWS: Mention that the mn10200-elf is obsolete.
2835 * configure.tgt: Obsolete mn10200-*-* target.
2836 * breakpoint.c (update_breakpoints_after_exec): Update comment to
2837 mention that the mn10200 is obsolete.
2838 * breakpoint.h: Ditto.
2839 * MAINTAINERS: Mark the mn10200-elf as obsolete.
2840 * config/mn10200/mn10200.mt: Obsolete file.
2841 * config/mn10200/tm-mn10200.h: Obsolete file.
2842 * mn10200-tdep.c: Obsolete file.
2844 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2846 * MAINTAINERS: Mark h8500 as obsolete.
2847 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
2848 * findvar.c (value_from_register): Ditto.
2849 * h8500-tdep.c: Mark file as obsolete.
2850 * config/h8500/h8500.mt: Ditto.
2851 * config/h8500/tm-h8500.h: Ditto.
2852 * NEWS: Mention that h8500 is obsolete.
2854 2003-02-04 David Carlton <carlton@math.stanford.edu>
2856 * objfiles.c (allocate_objfile): Always set name. Add comment at
2858 * jv-lang.c (get_dynamics_objfile): Add comment.
2860 2003-02-04 David Carlton <carlton@math.stanford.edu>
2862 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
2863 * printcmd.c (build_address_symbolic): Replace uses of
2864 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
2865 SYMBOL_NAME, and asm_demangle.
2868 2003-02-04 David Carlton <carlton@math.stanford.edu>
2870 * linespec.c (decode_compound): Extract code into
2872 (lookup_prefix_sym): New function.
2874 2003-02-04 David Carlton <carlton@math.stanford.edu>
2876 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
2877 FLOAT_COERCION_BADNESS.
2878 * gdbtypes.c (rank_one_type): Replace all uses of
2879 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
2881 2003-02-04 Jim Blandy <jimb@redhat.com>
2883 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
2884 section, let dwarf_macinfo_section point to it, not
2887 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
2889 Pointed out by Anton Blanchard <anton@samba.org>.
2890 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
2891 (ppc_linux_at_sigtramp_return_path): Use it.
2893 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
2895 * defs.h (streq): Add prototype.
2896 * utils.c (streq): New function.
2898 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
2899 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
2900 * mdebugread.c (new_symbol): Likewise.
2901 * stabsread.c (define_symbol): Likewise.
2902 * coffread.c (process_coff_symbol): Likewise.
2903 * dwarfread.c (new_symbol): Likewise.
2905 * minsyms.c (prim_record_minimal_symbol_and_info): Use
2906 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
2908 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
2909 SYMBOL_INIT_DEMANGLED_NAME.
2910 * objfiles.c: Include "hashtab.h".
2911 (allocate_objfile): Call htab_set_functions_ex for the
2912 demangled_names_hash.
2913 (free_objfile): Call htab_delete for the demangled_names_hash.
2914 * objfiles.h (struct htab): Add declaration.
2915 (struct objfile): Add demangled_names_hash.
2916 * symfile.c: Include "hashtab.h".
2917 (reread_symbols): Call htab_delete for the demangled_names_hash.
2918 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
2919 SYMBOL_NAME in the bcache.
2920 * symtab.c: Include "hashtab.h". Update comments.
2921 (create_demangled_names_hash, symbol_set_names): New functions.
2922 (symbol_find_demangled_name): New function, broken out from
2923 symbol_init_demangled_names.
2924 (symbol_init_demangled_names): Use it.
2925 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
2926 (SYMBOL_SET_NAMES): New macro.
2927 (symbol_set_names): Add prototype.
2929 2003-02-03 Jim Blandy <jimb@redhat.com>
2931 Use a single, consistent representation for an empty minimal
2932 symbol table in an objfile.
2933 * objfiles.c (terminate_minimal_symbol_table): New function.
2934 (allocate_objfile): Call it.
2935 * objfiles.h (terminate_minimal_symbol_table): New declaration.
2936 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
2938 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
2939 objfile has minimal symbols, compare minimal_symbol_count to zero,
2940 instead of comparing msymbols with NULL.
2941 * objfiles.c (have_minimal_symbols): Same.
2942 * solib-sunos.c (solib_add_common_symbols): Call
2943 terminate_minimal_symbol_table.
2944 * symfile.c (reread_symbols): Same.
2946 2003-02-03 Kevin Buettner <kevinb@redhat.com>
2948 * s390-tdep.c (s390_address_class_type_flags)
2949 (s390_address_class_type_flags_to_name)
2950 (s390_address_class_name_to_type_flags): New functions.
2951 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
2952 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
2954 2003-02-03 Michael Snyder <msnyder@redhat.com>
2956 * arm-tdep.c: Fix spell-o in comment.
2958 2003-02-03 Michal Ludvig <mludvig@suse.cz>
2960 * dwarf2cfi.c (pointer_encoding): Added new parameter.
2961 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
2962 error messages to contain BFD filename.
2964 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
2966 Fix PR gdb/742 gdb/743 gdb/877
2967 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
2968 (do_mixed_source_and_assembly): Use
2969 make_cleanup_ui_out_tuple_begin_end and
2970 make_cleanup_ui_out_tuple_begin_end.
2971 (do_mixed_source_and_assembly): Ditto.
2972 * thread.c (do_captured_list_thread_ids): Ditto.
2973 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
2974 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
2975 ui_out_tuple_end): Delete prototypes.
2976 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
2977 ui_out_list_end, ui_out_tuple_end): Delete.
2979 From Kevin Buettner <kevinb@redhat.com>:
2980 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
2981 * ui-out.c (make_cleanup_ui_out_table_begin_end)
2982 (do_cleanup_table_end): New functions.
2983 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
2984 Use cleanups to invoke_ui_out_tuple_end().
2985 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
2986 * cli/cli-setshow.c (cmd_show_list): Use
2987 make_cleanup_ui_out_tuple_begin_end.
2989 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2991 * frame.c (frame_unwind_register): New function.
2992 (frame_unwind_unsigned_register): Use.
2993 (frame_unwind_signed_register): Use.
2994 (frame_read_register): New function.
2995 * frame.h (frame_unwind_register): Declare.
2996 (frame_read_register): Declare.
2998 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
2999 and frame_unwind_register instead of read_memory, write_register
3000 and deprecated_write_register_bytes.
3002 2003-02-02 Andrew Cagney <ac131313@redhat.com>
3004 * frame.h: Note that namelen can be negative.
3005 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
3008 * NEWS: Mention that the d10v's `regs' command is deprecated.
3009 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
3010 (d10v_print_registers_info): New function.
3011 (show_regs): Call d10v_print_registers_info.
3012 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
3014 2003-02-02 Mark Kettenis <kettenis@gnu.org>
3016 * stack.c (print_frame_info): Restore call to annotate_frame_begin
3017 lost in the previous patch.
3019 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3021 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
3022 * stack.c (print_frame_info_base): Output complete FRAME tuple
3023 for synthesized frames.
3025 2003-02-02 Andrew Cagney <ac131313@redhat.com>
3027 * mips-nat.c (zerobuf): Delete.
3028 (fetch_inferior_registers): Alloc local zerobuf.
3029 (fetch_core_registers): Alloc local zerobuf.
3030 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
3031 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
3032 * thread-db.c (thread_db_store_registers): Ditto.
3033 * sh-tdep.c (sh_do_register): Ditto.
3034 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3035 * remote-sim.c (gdbsim_store_register): Ditto.
3036 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3037 * remote-e7000.c (fetch_regs_from_dump): Ditto.
3038 * monitor.c (monitor_supply_register): Ditto.
3039 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
3040 * mips-nat.c (fetch_inferior_registers): Ditto.
3041 * m68klinux-nat.c (fetch_register): Ditto.
3042 * lynx-nat.c (fetch_inferior_registers): Ditto.
3043 (fetch_inferior_registers): Ditto.
3044 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
3045 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
3046 (hpux_thread_store_registers): Ditto.
3047 * hppah-nat.c (fetch_register): Ditto.
3048 * hppab-nat.c (fetch_register): Ditto.
3049 * hppa-tdep.c (pa_register_look_aside): Ditto.
3050 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
3051 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
3053 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3055 * gdbarch.sh: Explictly specify all method levels. When a
3056 variable with an empty level, provide a non-multi-arch default.
3057 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
3058 * gdbarch.h: Re-generate.
3059 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
3060 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
3062 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3064 * defs.h (host_pointer_to_address): Delete declaration.
3065 (address_to_host_pointer): Delete declaration.
3066 * utils.c (host_pointer_to_address): Delete function.
3067 (address_to_host_pointer): Delete function.
3068 * procfs.c (procfs_address_to_host_pointer): New function.
3069 * procfs.c (proc_set_watchpoint): Use.
3070 (procfs_can_use_hw_breakpoint): Update comments.
3071 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
3072 (som_solib_add): Use.
3073 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
3074 * hppa-tdep.c (unwind_command): Use.
3076 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3078 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
3081 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
3082 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
3083 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
3084 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
3085 (define_symbol): Update.
3086 * symfile.c (generic_load): Remove references to nindy.
3087 * symtab.c: Remove references to nindy.
3089 2003-02-01 Andrew Cagney <ac131313@redhat.com>
3091 * infcmd.c (print_float_info): Delete code conditional on
3093 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
3094 * config/m68k/nm-apollo68b.h: Ditto.
3095 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
3096 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
3097 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
3099 2003-02-01 Mark Kettenis <kettenis@gnu.org>
3101 * config/i386/tm-i386os9k.h: Removed.
3103 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
3104 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
3105 they're identical to i[3456]86-*-sysv* now.
3106 * config/i386/i386v32.mh: Removed.
3107 * config/i386/xm-i386v32.h: Removed.
3108 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
3110 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
3112 * config/i386/i386dgux.mh: Removed.
3113 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
3115 * configure.in: Fix typo.
3116 * configure: Regenerated.
3118 2003-01-31 David Carlton <carlton@math.stanford.edu>
3120 * dwarf2read.c (dwarf2_locate_sections): Set
3121 dwarf_ranges_section.
3123 2003-01-31 Andrew Cagney <ac131313@redhat.com>
3125 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
3126 * utils.c: Update comments documenting legitimate uses of PTR.
3128 * utils.c: Re-indent.
3130 * config/djgpp/fnchange.lst: Delete nindy files.
3131 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
3132 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
3133 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
3134 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
3135 * nindy-share/README, nindy-share/Onindy.c: Delete files.
3136 * nindy-tdep.c, nindy-share/Makefile: Delete files.
3137 * Makefile.in (init.c): Remove nindy references.
3138 (saber_gdb): Delete rule.
3139 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
3140 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
3142 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
3143 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
3144 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
3145 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
3147 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
3148 * saber.suppress: Delete file.
3150 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
3152 * dbxread.c (stabs_data): New static variable.
3153 (fill_symbuf): Support an in-memory buffer for stabs data.
3154 (stabs_seek): New function.
3155 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
3156 (read_ofile_symtab): Use stabs_seek.
3157 (elfstab_build_psymtabs): Take an asection* instead of
3158 an offset and size. Relocate the stabs data if necessary.
3159 Save the section* for dbx_psymtab_to_symtab.
3160 * dwarf2read.c: Add section variables for each debug section.
3161 (dwarf2_locate_sections): Fill them in.
3162 (dwarf2_read_section): Take an asection* argument.
3163 Relocate the section contents if necessary.
3164 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
3165 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
3166 it to dwarf2_read_section.
3167 (dwarf2_build_frame_info): Update callers.
3168 * elfread.c (elf_symfile_read): Update call to
3169 elfstab_build_psymtabs.
3170 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
3171 (DBX_STAB_SECTION): New macro.
3172 * stabsread.h (elfstab_build_psymtabs): Update prototype.
3173 * symfile.c (symfile_dummy_outputs): New function.
3174 (symfile_relocate_debug_section): New function.
3175 * symfile.h (symfile_relocate_debug_section): Add prototype.
3177 2003-01-31 Richard Henderson <rth@redhat.com>
3179 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
3180 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
3181 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
3182 * alpha-tdep.c (alpha_register_name): Add "unique".
3183 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
3184 (ALPHA_UNIQUE_REGNUM): New.
3185 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
3187 2003-01-31 Andrew Cagney <ac131313@redhat.com>
3189 * README: Remove reference to Ericsson 1800 monitor.
3190 * Makefile.in (remote-es.o): Delete rule.
3191 (ALLDEPFILES): Delete remote-es.c.
3192 * remote-es.c: Delete file.
3193 * config/m68k/es1800.mt: Delete file.
3194 * config/djgpp/fnchange.lst: Update.
3195 * configure.tgt: Delete m68*-ericsson-* target.
3197 2003-01-31 Adam Fedor <fedor@gnu.org>
3199 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
3200 Remove duplicate/shadowing variable of same name.
3202 2003-01-30 Jim Blandy <jimb@redhat.com>
3204 * symfile.c (find_separate_debug_file): Assert that the objfile's
3205 directory name we compute ends with a slash, and then assume that
3206 that's so everywhere we use it.
3208 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
3210 * valops.c (value_assign): Flush frame cache after stores to memory
3213 2003-01-30 Andrew Cagney <ac131313@redhat.com>
3215 * Makefile.in (mon960-rom.o): Delete rule.
3216 * mon960-rom.c: Delete file.
3218 2003-01-30 Andrew Cagney <ac131313@redhat.com>
3220 * d10v-tdep.c: Include "frame-unwind.h".
3221 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
3223 (next_addr, uses_frame): Delete.
3224 (struct d10v_unwind_cache): Define.
3225 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
3226 Use info instead of next_addr and uses_frame globals.
3227 (d10v_frame_init_saved_regs): Delete function.
3228 (d10v_init_extra_frame_info): Delete function.
3229 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
3230 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
3231 init_frame_pc or frame_saved_pc.
3232 (d10v_pop_frame): Delete function.
3233 (do_d10v_pop_frame): Delete function.
3234 (d10v_frame_chain): Delete function.
3235 (d10v_frame_chain_valid): Delete function.
3236 (d10v_frame_pc_unwind): New function.
3237 (d10v_frame_id_unwind): New function.
3238 (saved_regs_unwinder): New function.
3239 (d10v_frame_register_unwind): New function.
3240 (d10v_frame_pop): New function.
3241 (d10v_frame_unwind): New variable.
3242 (d10v_frame_p): New function.
3243 (d10v_frame_saved_pc): Delete function.
3244 * Makefile.in (d10v-tdep.o): Update dependencies.
3246 2003-01-30 J. Brobecker <brobecker@gnat.com>
3248 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
3249 causing some regressions due to a change in the default value
3252 2003-01-29 Richard Henderson <rth@redhat.com>
3253 Elena Zannoni <ezannoni@redhat.com>
3254 Daniel Jacobowitz <drow@mvista.com>
3257 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
3259 (RANGES_SECTION): New.
3260 (dwarf_ranges_buffer): New variable.
3261 (struct comp_unit_head): Add member "die".
3262 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
3263 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
3264 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
3265 (dwarf2_locate_sections): Likewise.
3266 (dwarf2_build_psymtabs): Read .debug_ranges.
3267 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
3268 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
3269 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
3270 Look for DW_AT_ranges and return the bounding box.
3272 2003-01-29 Brian Ford <ford@vss.fsi.com>
3274 * win32-nat.c (cygwin_pid): Removed as unused.
3275 (child_attach): Try fall back to Cygwin pid.
3277 2003-01-29 Jim Blandy <jimb@redhat.com>
3279 * objfiles.h (struct objfile): Doc fix.
3281 2003-01-29 Andrew Cagney <ac131313@redhat.com>
3283 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
3284 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
3285 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
3286 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
3287 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
3288 (FRAME_SAVED_PC): Change to a function with predicate.
3289 * gdbarch.h, gdbarch.c: Re-generate.
3291 2003-01-28 Andrew Cagney <ac131313@redhat.com>
3293 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
3295 * complaints.c (complain): Delete function.
3296 * complaints.h (struct deprecated_complaint): Delete definition.
3297 (complain): Delete declaration.
3299 2003-01-28 Kevin Buettner <kevinb@redhat.com>
3301 * mips-tdep.c (mips_init_extra_frame_info): Return early for
3304 2003-01-27 Andrew Cagney <ac131313@redhat.com>
3306 * sentinel-frame.h, sentinel-frame.c: New files.
3307 * Makefile.in (frame.o): Update dependencies.
3308 (SFILES): Add sentinel-frame.c.
3309 (sentinel_frame_h): Define.
3310 (COMMON_OBS): Add sentinel-frame.o.
3311 (sentinel-frame.o): Specify dependencies.
3312 * frame.c: Include "sentinel-frame.h".
3313 (frame_register_unwind): Rewrite assuming that there is always a a
3315 (frame_register, generic_unwind_get_saved_register): Ditto.
3316 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
3317 (create_sentinel_frame, unwind_to_current_frame): New functions.
3318 (get_current_frame): Rewrite using create_sentinel_frame and
3319 unwind_to_current_frame. When possible, always create a frame.
3320 (create_new_frame): Set next to the sentinel frame.
3321 (get_next_frame): Rewrite. Don't go below the level 0 frame.
3322 (deprecated_update_frame_pc_hack): Update the next frame's PC and
3323 ID cache when necessary.
3324 (frame_saved_regs_id_unwind): Use frame_relative_level.
3325 (deprecated_generic_get_saved_register): Use frame_relative_level,
3326 get_frame_saved_regs, get_frame_pc, get_frame_base and
3328 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
3331 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3333 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
3335 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3337 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
3338 (maintenance_set_profile_cmd): Use error () instead of warning ().
3340 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3342 * configure.in: Check that -pg works if using --enable-profiling.
3343 Check for monstartup and _mcleanup regardless of --enable-profiling.
3344 * maint.c: Check for monstartup and _mcleanup before using them.
3345 * config.in: Regenerated.
3346 * configure: Regenerated.
3348 2003-01-24 Nick Clifton <nickc@redhat.com>
3352 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
3354 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
3355 (sh2e_show_regs): New.
3356 (sh_gdbarch_init): Handle bfd_mach_sh2e.
3357 * config/sh/tm-sh.h: Added sh2e to comments.
3359 2003-01-23 Jim Blandy <jimb@redhat.com>
3361 * symfile.c (syms_from_objfile): Don't print the "(no debugging
3362 symbols found)" message here; we haven't checked for a separate
3363 debug info file yet, so we don't know yet.
3364 (symbol_file_add_with_addrs_or_offsets): Print it here, after
3365 we've looked everywhere. Also, there's no need to print a special
3366 message when we're loading the separate debug info file: the one
3367 symbol_file_add prints is fine.
3369 2003-01-23 Alexander Larsson <alexl@redhat.com>
3370 Jim Blandy <jimb@redhat.com>
3372 Add support for executables whose debug info has been separated
3373 out into a separate file, leaving only a link behind.
3374 * objfiles.h (struct objfile): New fields: separate_debug_objfile
3375 and separate_debug_objfile_backlink.
3376 (put_objfile_before): New declaration.
3377 * symfile.c: #include "filenames.h".
3378 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
3379 debug info in a separate file, read that, too. Save the addrs
3380 argument, so we can use it again to read the separated debug info;
3381 syms_from_objfile modifies the table we pass it.
3382 (reread_symbols): After re-reading an objfile, call
3383 reread_separate_symbols to refresh its separate debug info
3384 objfile, if it has one.
3385 (reread_separate_symbols, find_separate_debug_file,
3386 get_debug_link_info, separate_debug_file_exists): New functions.
3387 (debug_file_directory): New global var.
3388 (_initialize_symfile): Initialize debug_file_directory, and
3389 provide the new `set debug-file-directory' command to let the user
3391 * objfiles.c (free_objfile): If this objfile has its debug info in
3392 a separate objfile, free that one too. If this is itself a
3393 separate debug info objfile, clear our parent's backlink.
3394 (put_objfile_before): New function.
3395 * utils.c (gnu_debuglink_crc32): New function.
3396 * defs.h (gnu_debuglink_crc32): New declaration.
3397 * Makefile.in (symfile.o): Note dependency on "filenames.h".
3398 * configure.in: Handle --with-separate-debug-dir config option.
3399 * acinclude.m4 (AC_DEFINE_DIR): New macro.
3400 * acconfig.h (DEBUGDIR): New macro.
3401 * configure, aclocal.m4, config.in: Regenerated.
3403 2003-01-22 Jim Blandy <jimb@redhat.com>
3405 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
3406 like the old symbol_file_add, but taking new arguments: you can
3407 now pass in either a `struct section_addr_info' list to say where
3408 each section is loaded, or a `struct section_offsets' table. Pass
3409 these new arguments through to syms_from_objfile as appropriate.
3410 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
3411 with the appropriate quiescent values for the new arguments.
3413 * symfile.c: #include "gdb_assert.h".
3414 (syms_from_objfile): Add the ability to pass in a section offset
3415 table directly, as an alternative to the section_addr_info table.
3416 Document arguments better.
3417 (symbol_file_add): Pass extra arguments to syms_from_objfile.
3418 * symfile.h (syms_from_objfile): Update declaration.
3419 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
3421 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
3423 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
3425 Original patch by Tom Tromey <tromey@cygnus.com> and
3426 Jason Molenda <jmolenda@apple.com>.
3427 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
3428 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
3429 * NEWS: Mention profiling.
3430 * configure.in (--enable-gdbtk): Fix typo.
3431 (--enable-profiling): New. Set PROFILE_CFLAGS.
3432 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
3434 (profiling_state): New variable.
3435 (mcleanup_wrapper): New function.
3436 (_initialize_maint): Remove NOTYET, fix call to
3437 add_setshow_boolean_cmd for "maint set profile".
3438 * configure: Regenerated.
3440 2003-01-21 Martin M. Hunt <hunt@redhat.com>
3442 * Makefile.in (install-gdbtk): Install PNG images too.
3444 2003-01-21 Andrew Cagney <ac131313@redhat.com>
3446 * exec.c (text_start): Delete global variable.
3447 (exec_file_attach): Make text_start local to the function.
3448 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
3449 * valops.c (hand_function_call): Delete code that handles
3450 BEFORE_TEXT_END and AFTER_TEXT_END.
3451 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
3452 of CALL_DUMMY_LOCATION.
3453 * gdbarch.c: Regenerate.
3454 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
3455 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
3456 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
3457 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
3458 (text_end): Delete extern declaration.
3460 2003-01-21 Andrew Cagney <ac131313@redhat.com>
3462 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
3463 * blockframe.c (backtrace_below_main): Move to "frame.c".
3464 (frame_chain_valid): Delete check for backtrace_below_main.
3465 (_initialize_blockframe): Delete initialization, move ``set
3466 backtrace-below-main'' command to "frame.c".
3467 (do_flush_frames_sfunc): Delete function.
3468 * frame.c: Include "command.h" and "gdbcmd.h".
3469 (frame_type_from_pc): New function.
3470 (create_new_frame): Use frame_type_from_pc.
3471 (legacy_get_prev_frame): New function.
3472 (get_prev_frame): Rewrite. When an old style frame, call
3473 legacy_get_prev_frame. Otherwize, unwind the PC first.
3474 (_initialize_frame): Add ``set backtrace-below-main'' command.
3475 * Makefile.in (frame.o): Update dependencies.
3477 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3479 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
3480 DEPRECATED_REGISTERS_INFO.
3482 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3484 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
3485 Maintainers'. Update `Various Maintainers'.
3487 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3489 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
3490 * gdbarch.sh (POP_FRAME): Change to function with predicate.
3491 Suppress actual parameters when `-'.
3492 * gdbarch.h, gdbarch.c: Regenerate.
3494 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3496 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
3497 code handling dummy frames.
3499 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3501 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
3502 (struct frame_unwind): Add field pop.
3503 * frame.h (frame_pop): Declare.
3504 * frame.c (frame_saved_regs_pop): New function.
3505 (trad_frame_unwinder): Add frame_saved_regs_pop.
3506 (frame_pop): New function.
3507 * dummy-frame.c (dummy_frame_pop): New function.
3508 (discard_innermost_dummy): New function.
3509 (generic_pop_dummy_frame): Use discard_innermost_dummy.
3510 (dummy_frame_unwind): Add dummy_frame_pop.
3511 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
3512 * valops.c (hand_function_call): Ditto.
3513 * stack.c (return_command): Ditto.
3515 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3517 * cris-tdep.c: Fix function declaration indentation.
3518 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
3519 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
3520 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
3521 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
3522 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
3523 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
3525 2003-01-18 Michael Chastain <mec@shout.net>
3527 * README (Unpacking and Installation -- quick overview):
3528 Warn against ".../gdb-5.3/gdb/configure".
3530 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3532 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
3533 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3534 (struct frame_unwind): Declare opaque.
3535 (dummy_frame_p): Declare function.
3536 * dummy-frame.c (dummy_frame_id_unwind): Make static.
3537 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3538 * dummy-frame.c: Include "frame-unwind.h".
3539 (dummy_frame_p): New function.
3540 (dummy_frame_unwind): New variable.
3541 * frame.c: Include "frame-unwind.h".
3542 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
3543 to use the new unwind field.
3544 (set_unwind_by_pc): Delete function.
3545 (create_new_frame, get_prev_frame): Set unwind field using
3546 frame_unwind_find_by_pc.
3547 (trad_frame_unwind, trad_frame_unwinder): New variables.
3548 * frame.h (trad_frame_unwind): Declare variable.
3549 (frame_id_unwind_ftype): Delete declaration.
3550 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
3551 (struct frame_unwind): Declare opaque.
3552 (struct frame_info): Replace the fields id_unwind, pc_unwind and
3553 register_unwind with a single unwind pointer.
3554 * frame-unwind.h, frame-unwind.c: New files.
3555 * Makefile.in (SFILES): Add frame-unwind.c.
3556 (frame_unwind_h): Define.
3557 (COMMON_OBS): Add frame-unwind.o.
3558 (frame-unwind.o): Specify dependencies.
3559 (frame.o, dummy-frame.o): Update dependencies.
3561 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3563 * ada-valprint.c: Eliminate PTR.
3564 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
3565 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
3566 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
3567 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
3568 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
3569 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
3570 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
3572 2003-01-17 Andrew Cagney <ac131313@redhat.com>
3574 * main.c (captured_main): Don't use PTR.
3575 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
3576 * gdbtypes.c (lookup_primitive_typename): Ditto.
3577 (lookup_struct_elt_type): Ditto.
3578 * f-valprint.c (info_common_command): Ditto.
3579 (list_all_visible_commons): Ditto.
3580 * jv-typeprint.c (java_type_print_base): Ditto.
3582 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
3583 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
3584 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
3585 i386-interix-nat.c and i386-interix-tdep.c. Rename
3586 m68klinux-nat.c and m68klinux-tdep.c. Rename
3587 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
3588 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
3589 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
3590 * main.c (captured_main): Use xfree, not free.
3592 2003-01-16 Andrew Cagney <ac131313@redhat.com>
3594 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
3595 ID back using a parameter.
3596 * frame.c (frame_id_unwind): Update call.
3597 (frame_saved_regs_id_unwind): Update.
3598 * dummy-frame.c (dummy_frame_id_unwind): Update function.
3599 * dummy-frame.h (struct frame_id): Add opaque declaration.
3600 (dummy_frame_id_unwind): Update declaration.
3602 2003-01-15 Andrew Cagney <ac131313@redhat.com>
3604 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
3606 2003-01-15 Stephen P. Smith <ischis2@cox.net>
3608 * MAINTAINERS (Stephen P. Smith): Updated email address.
3610 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
3613 * breakpoint.c (until_break_command): Add new argument. Use it to
3614 decide whether to stop only at the current frame or not.
3615 * breakpoint.h (until_break_command): Update prototype.
3616 * infcmd.c (until_command): Add new argument to until_break_command
3618 (advance_command): New function.
3619 (_initialize_infcmd): Update help string for 'until' command.
3620 Add new 'advance' command.
3622 2003-01-14 David Carlton <carlton@math.stanford.edu>
3624 * linespec.c (decode_line_1): Normalize comments.
3626 (locate_first_half): Ditto.
3627 (decode_compound): Ditto.
3628 (symtab_from_filename): Ditto.
3629 (decode_all_digits): Ditto.
3630 (decode_dollar): Ditto.
3631 (find_methods): Ditto.
3632 (find_toplevel_char): Ditto.
3634 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3636 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
3637 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
3638 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
3639 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
3640 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
3641 * language.c, language.h, m32r-tdep.c: Update copyright.
3642 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
3643 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
3644 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
3645 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
3646 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
3647 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
3649 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3651 * stabsread.h (process_later, resolve_cfront_continuation):
3653 Update copyright years.
3654 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
3655 Update copyright year.
3656 * dbxread.c(struct cont_elem): Obsolete.
3657 (process_later, process_now): Obsolete functions.
3658 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
3659 Update copyright year.
3660 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
3661 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
3662 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
3663 (parse_partial_symbols): Obsolete cfront support.
3665 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
3667 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
3668 read_cfront_baseclasses, read_cfront_member_functions,
3669 resolve_cfront_continuation,read_cfront_static_fields,
3670 copy_cfront_struct_fields): Obsolete functions.
3671 (define_symbol, read_one_struct_field): Obsolete cfront support.
3672 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
3673 Update Copyright year.
3675 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3677 * stack.c (print_frame_info, print_stack_frame_base_stub,
3678 print_stack_frame_base, show_and_print_stack_frame_stub,
3679 show_and_print_stack_frame, print_only_stack_frame_stub,
3680 print_only_stack_frame): Delete functions.
3681 (print_stack_frame_stub): Call print_frame_info instead of
3682 print_frame_info_base.
3683 (print_frame_info_base): Rename to print_frame_info.
3684 (backtrace_command_1): Call print_frame_info, instead of
3685 print_frame_info_base.
3686 (current_frame_command): Call print_stack_frame, instead of
3687 print_only_stack_frame.
3688 (frame_command): Call print_stack_frame, instead of
3689 show_and_print_stack_frame.
3690 (up_command): Ditto.
3691 (down_command): Ditto.
3692 * frame.h (print_only_stack_frame): Delete prototype.
3693 * infrun.c (normal_stop): Call print_stack_frame, instead of
3694 show_and_print_stack_frame.
3695 * thread.c (info_threads_command): Call print_stack_frame, instead
3696 of print_only_stack_frame.
3698 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3700 * README (Graphical interface to GDB): Update URL. Point at
3703 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
3706 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3708 * symtab.c (find_pc_sect_line): Don't consider end-of-function
3711 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3713 * thread-db.c (attach_thread): Prototype.
3714 (struct private_thread_info): Remove lwpid. Add thread handle (th),
3715 thread information (ti), and valid flags (th_valid, ti_valid).
3716 (attach_thread): Move target_pid_to_str call to after the thread
3717 is added to GDB's list. Initialize the cache.
3718 (thread_get_info_callback, thread_db_map_id2thr)
3719 (thread_db_get_info): New functions.
3720 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
3721 (thread_db_store_registers, thread_db_thread_alive)
3722 (thread_db_get_thread_local_address): Use them.
3723 (thread_db_pid_to_str): Likewise. Return "Missing" instead
3724 of calling error() for threads in unknown state.
3726 (clear_lwpid_callback): New function.
3727 (thread_db_resume): Use it to clear the cache.
3729 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3731 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
3732 (resume_callback): Remove dead code.
3734 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3736 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
3738 * gdbarch.h, gdbarch.c: Regenerate.
3739 * stack.c (frame_info): Only initialize the saved registers when
3740 FRAME_INIT_SAVED_REGS_P.
3741 * frame.c (frame_saved_regs_register_unwind): Assert
3742 FRAME_INIT_SAVED_REGS_P.
3743 (deprecated_generic_get_saved_register): Ditto.
3745 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3747 * source.c (openp): Squelch warning about "filename".
3749 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3751 * source.c (openp): If the file does not exist don't necessarily
3754 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3757 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
3758 (integer_types_same_name_p): New function.
3759 (rank_one_type): Use it.
3760 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
3762 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3764 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
3766 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
3767 * configure.in: Add --with-sysroot.
3768 * configure: Regenerated.
3769 * main.c (gdb_sysroot): New variable.
3770 (captured_main): Initialize gdb_sysroot.
3771 * defs.h (gdb_sysroot): New extern declaration.
3772 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
3774 2003-01-12 Michael Chastain <mec@shout.net>
3776 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
3778 2003-01-12 Michael Chastain <mec@shout.net>
3780 * top.c (print_gdb_version): Bump copyright year to 2003.
3782 2003-01-12 David Carlton <carlton@bactrian.org>
3784 * linespec.c (symtab_from_filename): Rename variable 's' to
3787 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3789 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
3791 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
3793 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3795 * d10v-tdep.c: Include "gdb_assert.h".
3796 (d10v_store_return_value): Rewrite to match current interface.
3797 (d10v_extract_struct_value_address): Ditto.
3798 (d10v_extract_return_value): Ditto.
3799 (d10v_gdbarch_init): Set store_restore_value,
3800 extract_struct_value_address and extract_return_value.
3802 2003-01-12 J. Brobecker <brobecker@gnat.com>
3804 * hpread.c (set_namestring): New procedure replacing the
3805 SET_NAMESTRING macro.
3806 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
3807 by calls to set_namestring.
3809 2003-01-11 J. Brobecker <brobecker@gnat.com>
3811 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
3812 a compilation warning.
3813 (hpread_process_one_debug_symbol): Likewise.
3815 2003-01-10 David Carlton <carlton@math.stanford.edu>
3817 * linespec.c (decode_line_1): Rename variable 's' to
3819 (decode_all_digits): Rename argument 's' to 'file_symtab'.
3820 (decode_dollar): Ditto.
3821 (decode_variable): Ditto.
3822 (symbol_found): Ditto.
3824 2003-01-09 Michael Chastain <mec@shout.net>
3826 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
3828 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
3830 * win32-nat.c (set_process_privilege): New function.
3831 (child_attach): Call set_process_privilege() to enable the
3832 SE_DEBUG_NAME user privilege if available in process token.
3834 2003-01-10 J. Brobecker <brobecker@gnat.com>
3836 * hpread.c (hpread_process_one_debug_symbol): Fix a small
3837 compilation error in the previous revision.
3839 2003-01-09 David Carlton <carlton@math.stanford.edu>
3841 * linespec.c: Update copyright.
3843 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
3845 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
3847 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
3849 2003-01-09 Andrew Cagney <ac131313@redhat.com>
3851 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
3853 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
3854 (frame_saved_regs_zalloc): Update.
3855 (frame_saved_regs_register_unwind): Update.
3856 (create_new_frame): Update.
3857 (get_prev_frame): Update.
3858 (frame_extra_info_zalloc): Update.
3859 (deprecated_get_frame_saved_regs): Update.
3860 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
3861 * cris-tdep.c: Update comment.
3863 * somsolib.h: Fix function indentation.
3864 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
3865 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
3866 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
3867 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
3868 * somsolib.c, inftarg.c: Remove assignment in if conditional.
3870 * infrun.c (follow_fork): Use ISO C definition.
3871 * expprint.c (print_subexp): Use xfree instead of free.
3872 * charset.c: Include "gdb_string.h" instead of <string.h>.
3873 (register_iconv_charsets): Use ISO C definition.
3874 (host_charset, target_charset): Ditto.
3875 * Makefile.in (charset.o): Update dependencies.
3876 (mi-cmd-env.o): Update dependencies.
3878 2003-01-08 Andrew Cagney <cagney@redhat.com>
3880 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
3883 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3885 * gdb_mbuild.sh: Add --keep option. When specified, keep the
3886 build directories. Save edited gdb output in Mbuild.log. If a
3887 build fails, remove any final GDB executable.
3889 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3891 * gdb_mbuild.sh: Edit the output of `maint print architecture'
3892 replacing hex constants with function names and stripping leading
3893 file name directory prefixes.
3895 2003-01-08 Andrew Cagney <cagney@redhat.com>
3897 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
3900 2003-01-08 David Carlton <carlton@math.stanford.edu>
3902 * linespec.c (decode_line_1): Move code into decode_variable.
3903 (decode_variable): New function.
3905 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3907 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
3909 2003-01-08 Andrew Cagney <cagney@redhat.com>
3911 * cris-tdep.c (cris_frame_init_saved_regs): Use
3912 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
3914 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
3915 (sh64_nofp_frame_init_saved_regs): Ditto.
3916 (sh_fp_frame_init_saved_regs): Ditto.
3917 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
3918 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3919 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3920 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3922 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
3924 * minsyms.c (lookup_minimal_symbol): Update comment.
3925 (lookup_minimal_symbol_text): Update comment. Use the hash table.
3926 (lookup_minimal_symbol_solib_trampoline): Likewise.
3928 2003-01-08 Andrew Cagney <cagney@redhat.com>
3930 * d10v-tdep.c (d10v_init_extra_frame_info): Use
3931 frame_relative_level.
3933 * alpha-tdep.c: Use get_frame_extra_info.
3934 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3935 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
3936 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3937 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
3939 * alpha-tdep.c: Use get_next_frame.
3940 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3941 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3942 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
3943 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
3944 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
3945 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
3946 * xstormy16-tdep.c: Ditto.
3948 2003-01-07 Andrew Cagney <cagney@redhat.com>
3950 * alpha-tdep.c: Use get_frame_base.
3951 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3952 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3953 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3954 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3955 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
3956 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3957 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
3958 * config/sparc/tm-sparc.h: Ditto.
3960 2003-01-07 Andrew Cagney <cagney@redhat.com>
3962 * frame.c (deprecated_get_frame_context): New function.
3963 (deprecated_set_frame_context): New function.
3964 * frame.h (deprecated_get_frame_context): Declare.
3965 (deprecated_set_frame_context): Declare.
3966 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
3967 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
3969 2003-01-07 Andrew Cagney <cagney@redhat.com>
3971 * frame.c (deprecated_set_frame_next_hack): New function.
3972 (deprecated_set_frame_prev_hack): New function.
3973 * frame.h (deprecated_set_frame_next_hack): Declare.
3974 (deprecated_set_frame_prev_hack): Declare.
3975 * mcore-tdep.c (analyze_dummy_frame): Use
3976 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
3977 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3979 2003-01-07 David Carlton <carlton@math.stanford.edu>
3981 * linespec.c (decode_line_1): Move code into decode_dollar.
3982 (decode_dollar): New function.
3984 2003-01-07 Andrew Cagney <cagney@redhat.com>
3986 * arm-tdep.c (arm_init_extra_frame_info): Use
3987 deprecated_update_frame_base_hack.
3988 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
3989 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3990 (fix_frame_pointer): Ditto.
3991 (mn10300_analyze_prologue): Ditto.
3993 2003-01-07 Andrew Cagney <cagney@redhat.com>
3995 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
3996 extra_info using frame_extra_info_zalloc.
3997 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
3998 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
3999 (sh64_init_extra_frame_info): Ditto.
4000 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
4001 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
4002 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
4003 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
4004 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
4005 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
4006 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
4007 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
4008 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
4009 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
4010 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
4011 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
4013 * mn10300-tdep.c (analyze_dummy_frame): Use
4014 deprecated_set_frame_extra_info_hack.
4015 * mcore-tdep.c (analyze_dummy_frame): Ditto.
4017 2003-01-07 J. Brobecker <brobecker@gnat.com>
4019 * mdebugread.c (parse_symbol): Skip stProc entries which storage
4020 class is not scText. These do not define "real" procedures.
4021 (parse_partial_symbols): Likewise.
4023 2003-01-06 Michael Snyder <msnyder@redhat.com>
4025 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
4027 2003-01-06 Andrew Cagney <ac131313@redhat.com>
4029 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
4030 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
4031 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
4032 deprecated_frame_xmalloc_with_cleanup.
4033 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
4034 deprecated_frame_xmalloc.
4035 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
4036 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
4038 2003-01-06 Andrew Cagney <cagney@redhat.com>
4040 * x86-64-linux-tdep.c: Include "osabi.h".
4041 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
4043 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
4045 2003-01-06 Andrew Cagney <cagney@redhat.com>
4047 * MAINTAINERS (Target Instruction Set Architectures): Update
4048 arm-elf. Can be built with -Werror, has been multiarched.
4050 * value.h (unpack_long): Make buffer parameter constant.
4051 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
4052 * scm-lang.h (scm_parse): Ditto.
4053 * defs.h (extract_typed_address, extract_address): Ditto.
4054 (extract_long_unsigned_integer): Ditto.
4055 * inferior.h (unsigned_pointer_to_address): Ditto.
4056 (signed_pointer_to_address): Ditto.
4057 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
4058 * gdbarch.h, gdbarch.c: Regenerate.
4059 * findvar.c (extract_long_unsigned_integer): Update.
4060 (extract_address): Update.
4061 (extract_typed_address): Update.
4062 (unsigned_pointer_to_address): Update.
4063 * values.c (unpack_long): Update.
4064 (unpack_double): Update.
4065 (unpack_pointer): Update.
4066 (unpack_field_as_long): Update.
4067 * d10v-tdep.c (d10v_pointer_to_address): Update.
4068 * avr-tdep.c (avr_pointer_to_address): Update.
4069 * scm-lang.c (scm_unpack): Update.
4070 * findvar.c (signed_pointer_to_address): Update.
4072 2003-01-06 Michal Ludvig <mludvig@suse.cz>
4074 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
4075 since it is in i386-tdep.c.
4077 2003-01-06 J. Brobecker <brobecker@gnat.com>
4079 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
4080 failure introduced in the previous change.
4082 2003-01-05 Michael Chastain <mec@shout.net>
4084 * README: Remove references to deleted remote-*.c files:
4085 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
4086 remote-nrom.c, remote-os9k.c, remote-udi.c.
4088 2003-01-05 Mark Kettenis <kettenis@gnu.org>
4090 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
4091 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
4092 i386_get_longjmp_target.
4094 2003-01-05 Andrew Cagney <ac131313@redhat.com>
4096 * arm-tdep.c (prologue_cache): Change to a pointer.
4097 (_initialize_arm_tdep): Allocate prologue_cache.
4098 (check_prologue_cache): Update.
4099 (save_prologue_cache): Update.
4100 (arm_gdbarch_init): Update.
4102 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4104 * stabsread.c (update_method_name_from_physname): Call complaint()
4107 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4109 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
4110 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
4111 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
4113 * blockframe.c: Include "gdbcmd.h" and "command.h".
4114 (backtrace_below_main): New variable.
4115 (file_frame_chain_valid, func_frame_chain_valid)
4116 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
4117 (generic_func_frame_chain_valid): Remove functions.
4118 (frame_chain_valid, do_flush_frames_sfunc): New functions.
4119 (_initialize_blockframe): New function.
4120 * Makefile.in (blockframe.o): Update dependencies.
4121 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
4122 comment. Call frame_chain_valid ().
4123 * frame.h: Remove old prototypes. Add prototype for
4124 frame_chain_valid and update comments to match.
4125 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
4127 * gdbarch.h: Regenerated.
4128 * gdbarch.c: Regenerated.
4130 * alpha-tdep.c (alpha_gdbarch_init): Don't call
4131 set_gdbarch_frame_chain_valid.
4132 * avr-tdep.c (avr_gdbarch_init): Likewise.
4133 * cris-tdep.c (cris_gdbarch_init): Likewise.
4134 * frv-tdep.c (frv_gdbarch_init): Likewise.
4135 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4136 * i386-tdep.c (i386_svr4_init_abi): Likewise.
4137 (i386_nw_init_abi): Likewise.
4138 (i386_gdbarch_init): Likewise.
4139 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4140 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4141 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4142 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
4143 * mips-tdep.c (mips_gdbarch_init): Likewise.
4144 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4145 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
4146 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
4147 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4148 * s390-tdep.c (s390_gdbarch_init): Likewise.
4149 * sh-tdep.c (sh_gdbarch_init): Likewise.
4150 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4151 * v850-tdep.c (v850_gdbarch_init): Likewise.
4152 * vax-tdep.c (vax_gdbarch_init): Likewise.
4153 * x86-64-tdep.c (x86_64_init_abi): Likewise.
4155 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
4156 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
4157 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
4158 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
4159 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
4160 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
4161 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
4162 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
4164 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4166 * Makefile.in (acconfig_h): Remove incorrect macro.
4168 (osabi.o): Update dependencies.
4169 * configure.tgt: Set gdb_osabi based on target triplet.
4170 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
4171 * configure: Regenerated.
4172 * config.in: Regenerated.
4173 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
4174 (GDB_OSABI_DEFAULT): Define if not already defined.
4175 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
4176 (set_osabi_string): New variables.
4177 (gdbarch_register_osabi): Add new OS ABI to
4178 gdb_osabi_available_names.
4179 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
4180 (set_osabi, show_osabi): New functions.
4181 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
4183 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4185 * arch-utils.c (gdbarch_info_init): Set osabi to
4186 GDB_OSABI_UNINITIALIZED.
4187 * gdbarch.sh: Add osabi to struct gdbarch and to struct
4188 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
4189 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
4190 * gdbarch.c: Regenerated.
4191 * gdbarch.h: Regenerated.
4192 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
4194 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
4195 * osabi.h (enum gdb_osabi): Move to defs.h.
4196 (gdbarch_init_osabi): Update prototype.
4197 * defs.h (enum gdb_osabi): Moved here.
4198 * Makefile.in: Update dependencies.
4200 * alpha-tdep.h: Don't include "osabi.h".
4201 (struct gdbarch_tdep): Remove osabi member.
4202 * alpha-tdep.c: Include "osabi.h".
4203 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4204 iterate over arches. Update call to gdbarch_init_osabi.
4205 (alpha_dump_tdep): Don't dump osabi.
4206 * alpha-linux-tdep.c: Include "osabi.h".
4207 * alpha-osf1-tdep.c: Include "osabi.h".
4208 * alphafbsd-tdep.c: Include "osabi.h".
4209 * alphanbsd-tdep.c: Include "osabi.h".
4211 * arm-tdep.h: Don't include "osabi.h".
4212 (struct gdbarch_tdep): Remove osabi member.
4213 * arm-tdep.c: Include "osabi.h".
4214 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4215 iterate over arches. Update call to gdbarch_init_osabi.
4216 (arm_dump_tdep): Don't dump osabi.
4217 * arm-linux-tdep.c: Include "osabi.h".
4218 * armnbsd-tdep.c: Include "osabi.h".
4220 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
4221 Update call to gdbarch_init_osabi.
4223 * i386-tdep.h: Don't include "osabi.h".
4224 (struct gdbarch_tdep): Remove osabi member.
4225 * i386-tdep.c: Include "osabi.h".
4226 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4227 iterate over arches. Update call to gdbarch_init_osabi.
4228 (i386_dump_tdep): Don't dump osabi.
4229 * i386-linux-tdep.c: Include "osabi.h".
4230 * i386-sol2-tdep.c: Include "osabi.h".
4231 * i386bsd-tdep.c: Include "osabi.h".
4232 * i386gnu-tdep.c: Include "osabi.h".
4233 * i386ly-tdep.c: Include "osabi.h".
4234 * i386nbsd-tdep.c: Include "osabi.h".
4235 * i386obsd-tdep.c: Include "osabi.h".
4237 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
4238 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4239 check osabi when iterating over arches. Update call to
4241 (mips_dump_tdep): Don't dump osabi.
4243 * ns32k-tdep.h: Don't include "osabi.h".
4244 (struct gdbarch_tdep): Remove.
4245 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
4246 gdbarch_lookup_osabi. Don't iterate over arches. Don't
4247 allocate tdep. Update call to gdbarch_init_osabi.
4248 (ns32k_dump_tdep): Remove.
4249 (_initialize_ns32k_tdep): Update call to gdbarch_register.
4250 * ns32knbsd-tdep.c: Include "osabi.h".
4252 * ppc-tdep.h: Don't include "osabi.h".
4253 (struct gdbarch_tdep): Remove osabi member.
4254 * rs6000-tdep.c: Include "osabi.h".
4255 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
4256 osabi when iterating over arches. Update call to
4258 (rs6000_dump_tdep): Don't dump osabi.
4259 * ppc-linux-tdep.c: Include "osabi.h".
4260 * ppcnbsd-tdep.c: Include "osabi.h".
4262 * sh-tdep.h: Don't include "osabi.h".
4263 (struct gdbarch_tdep): Remove osabi member.
4264 * sh-tdep.c: Include "osabi.h".
4265 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4266 iterate over arches. Update call to gdbarch_init_osabi.
4267 (sh_dump_tdep): Don't dump osabi.
4268 * shnbsd-tdep.c: Include "osabi.h".
4270 * sparc-tdep.c: Include "osabi.h".
4271 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4272 iterate over arches. Update call to gdbarch_init_osabi.
4273 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
4276 * vax-tdep.h: Don't include "osabi.h".
4277 (struct gdbarch_tdep): Remove.
4278 * vax-tdep.c: Include "osabi.h".
4279 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4280 iterate over arches. Don't allocate tdep. Update call
4281 to gdbarch_init_osabi.
4282 (vax_dump_tdep): Remove.
4283 (_initialize_vax_tdep): Update call to gdbarch_register.
4285 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4287 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
4289 (breakpoint_re_set_one): Don't fetch the value for a disabled
4292 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4294 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
4295 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
4296 (COERCE_FLOAT_TO_DOUBLE): Remove.
4297 * gdbarch.c: Regenerate.
4298 * gdbarch.h: Regenerate.
4299 * Makefile.in: Remove value_h from gdbarch_h.
4300 * valops.c (coerce_float_to_double): New variable.
4301 (default_coerce_float_to_double): Remove.
4302 (standard_coerce_float_to_double): Remove.
4303 (value_arg_coerce): Use coerce_float_to_double.
4304 (_initialize_valops): Add "set coerce-float-to-double".
4305 * value.h (default_coerce_float_to_double): Remove prototype.
4306 (standard_coerce_float_to_double): Remove prototype.
4308 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
4310 * mdebugread.c (parse_symbol): Likewise.
4311 * stabsread.c (define_symbol): Mark all functions as prototyped.
4313 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
4314 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
4315 set_gdbarch_coerce_float_to_double.
4316 * arm-tdep.c (arm_gdbarch_init): Likewise.
4317 * frv-tdep.c (frv_gdbarch_init): Likewise.
4318 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
4319 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
4320 * mips-tdep.c (mips_gdbarch_init): Likewise.
4321 (mips_coerce_float_to_double): Remove.
4322 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4323 (rs6000_coerce_float_to_double): Remove.
4324 * s390-tdep.c (s390_gdbarch_init): Likewise.
4325 * sh-tdep.c (sh_gdbarch_init): Likewise.
4326 (sh_coerce_float_to_double): Remove.
4327 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4328 (sparc_coerce_float_to_double): Remove.
4329 * v850-tdep.c (v850_gdbarch_init): Likewise.
4330 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4331 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4332 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
4333 (hppa_coerce_float_to_double): Remove prototype.
4334 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4336 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4338 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
4340 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4342 Suggested by Stewart Brown <sb24@avaya.com>:
4343 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
4344 in recursive calls. Handle TYPE_CODE_TYPEDEF.
4345 (c_type_print_varspec_suffix): Likewise.
4347 2003-01-04 Mark Kettenis <kettenis@gnu.org>
4349 * configure.in: Don't set and AC_SUBST SUBDIRS.
4350 * configure: Regenerated.
4352 * configure.in: Remove code dealing with shared libraries.
4353 * Makefile.in: Remove HLDFLAGS and HLDENV.
4354 * configure: Regenerated.
4356 2003-01-04 Andrew Cagney <ac131313@redhat.com>
4358 * frame.c (deprecated_frame_xmalloc): New function.
4359 (deprecated_set_frame_saved_regs_hack): New function.
4360 (deprecated_set_frame_extra_info_hack): New function.
4361 * frame.h (deprecated_frame_xmalloc): Declare.
4362 (deprecated_set_frame_saved_regs_hack): Declare.
4363 (deprecated_set_frame_extra_info_hack): Declare.
4365 2003-01-04 Mark Kettenis <kettenis@gnu.org>
4367 * configure.in: Move code that provides the --enable-gdbtk option
4368 right after the code that handles the --enable-tui option, and
4370 * configure: Regenerated.
4372 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
4373 AC_CHECK_FUNCS and remove the old check for pread64.
4374 * acinclude.m4 (AC_GNU_SOURCE): New macro.
4375 * acconfig.h (_GNU_SOURCE): Add.
4376 (HAVE_PREAD64): Remove.
4377 * configure, aclocal.m4, config.in: Regenerated.
4379 2003-01-03 Andrew Cagney <ac131313@redhat.com>
4381 * alpha-tdep.c: Use get_frame_saved_regs.
4382 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4383 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
4384 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
4385 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
4386 * vax-tdep.c, xstormy16-tdep.c: Ditto.
4388 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4390 * configure.in: Remove all use of the SUBDIRS variable; add
4391 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
4392 code providing the --enable-multi-ice option, and move it right in
4393 front of the code that checks whether gdbserver is supported.
4395 * configure: Regenerated.
4396 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
4399 2003-01-03 Andrew Cagney <cagney@redhat.com>
4401 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
4402 * avr-tdep.c, cris-tdep.c: Ditto.
4403 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
4404 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4406 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4408 * configure.in: Remove --enable-netrom option.
4409 * configure: Regenerated.
4411 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4413 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
4414 declaration for `struct re_pattern_buffer' instead.
4415 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
4417 2003-01-03 J. Brobecker <brobecker@gnat.com>
4419 * mdebugread.c (parse_symbol): Count until the stEnd matching
4422 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4424 * configure.in: Remove --with-cpu option.
4425 subscripts. Remove evil changequotes here.
4426 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
4427 * config.in, configure: Regenerated.
4429 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
4430 * configure.in: Cleanup section that sources GDB and BFD configure
4431 subscripts. Remove evil changequotes here.
4432 * config.in, configure: Regenerated.
4434 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4436 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
4437 frame accessor methods.
4438 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4439 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
4440 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
4441 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
4442 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4443 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
4444 * z8k-tdep.c: Ditto.
4446 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4448 * configure.in: Remove UI_OUT configuration code.
4449 * ada-lang.c: Update assuming UI_OUT is always true.
4450 * Makefile.in (UIOUT_CFLAGS): Remove.
4451 * configure: Regenerated.
4452 * TODO: Remove blurb about elimination of -DUI_OUT.
4454 * configure.in: Move code that provides the --enable-gdbcli,
4455 --enable-gdbmi options right before the code that handles the
4456 --enable-tui option. Polish a bit.
4457 * configure: Regenerated.
4459 * configure.in: Rewrite check for GNU regex and the
4460 --without-included regex option, and move it into the "Checks for
4461 library functions" section. This makes us use the system regex
4462 again by default on systems with version 2 of the GNU C library.
4463 This was apparently broken.
4464 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
4465 * acconfig.h (USE_INCLUDED_REGEX): Remove.
4466 * config.in, configure: Regenerated.
4468 * configure.in: Move code that provides the --enable-tui option
4469 before the "Checks for libraries" section. Polish the code
4470 somewhat and set need_curses to yes if we build the TUI. Rewrite
4471 code that looks for a library providing termcap functionality to
4472 match more closely what's done in the Readline library, and move
4473 it into to the "Checks for libraries" section.
4474 * configure: Regenerated.
4475 * Makefile.in (TERMCAP): Remove variable.
4476 * config/i386/go32.mh (TERMCAP): Remove variable.
4478 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4480 * MAINTAINERS: Mention gdb_mbuild.sh.
4481 * gdb_mbuild.sh: Rewrite.
4483 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4485 * configure.in: Fix typo in last change.
4486 * config.in, configure: Regenerated.
4488 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4490 * valarith.c (value_binop): Delete obsolete code and comments.
4491 * configure.host: Ditto.
4492 * buildsym.h (make_blockvector): Ditto.
4493 * buildsym.c (make_blockvector): Ditto.
4494 * defs.h (enum language): Ditto.
4495 (chill_demangle): Ditto.
4496 * elfread.c (elf_symtab_read): Ditto.
4497 * dwarfread.c (CHILL_PRODUCER): Ditto.
4498 (set_cu_language): Ditto.
4499 (handle_producer): Ditto.
4500 * expprint.c (print_subexp): Ditto.
4501 * gdbtypes.c (chill_varying_type): Ditto.
4502 * gdbtypes.h (builtin_type_chill_bool): Ditto.
4503 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
4504 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
4505 (chill_varying_type): Ditto.
4506 * language.h (_LANG_chill): Ditto.
4507 * language.c (binop_result_type, integral_type): Ditto.
4508 (character_type, string_type, structured_type): Ditto.
4509 (lang_bool_type, binop_type_check): Ditto.
4510 * stabsread.h (os9k_stabs): Ditto.
4511 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
4512 (define_symbol, read_type, read_struct_fields): Ditto.
4513 (read_array_type, read_enum_type, read_huge_number): Ditto.
4514 (read_range_type, start_stabs): Ditto.
4515 * symfile.c (init_filename_language_table): Ditto.
4516 (add_psymbol_with_dem_name_to_list): Ditto.
4517 * symtab.c (symbol_init_language_specific): Ditto.
4518 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
4519 * symtab.h (struct general_symbol_info): Ditto.
4520 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4521 * typeprint.c (typedef_print): Ditto.
4522 * utils.c (fprintf_symbol_filtered): Ditto.
4523 * valops.c (value_cast, search_struct_field, value_slice): Delete
4525 (varying_to_slice): Delete function.
4526 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
4527 (varying_to_slice): Delete declaration.
4528 * MAINTAINERS: Update.
4530 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4532 * configure.in: Reorganize "Checks for library functions section"
4533 a bit. Remove check for `btowc' and `isascii' functions.
4534 * configure: Regenerated.
4536 * acconfig.h (_MSE_INT_H): Remove.
4537 * configure.in: Create "Checks for header files" section, and move
4538 appropriate tests there. Don't check for objlist.h, wchar.h,
4539 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
4540 misdetection fix. Also add "Checks for types", "Checks for
4541 compiler characteristics" and "Checks for library functions"
4543 * config.in, configure: Regenerated.
4545 * configure.in: Create "Checks for programs" section, and move
4546 appropriate tests there.
4548 2003-01-01 Mark Kettenis <kettenis@gnu.org>
4550 * configure.in: Create "Checks for libraries" section, and move
4551 appropriate tests there. Cleanup check for wctype in libw. Use
4552 AC_SEARCH_LIBS to see whether we need libsocket.
4553 * configure: Regenerated.
4555 For older changes see ChangeLog-2002
4561 version-control: never