1 2003-04-09 Andrew Cagney <cagney@redhat.com>
3 * doublest.h: Update copyright.
4 (deprecated_store_floating, deprecated_extract_floating): Rename
5 store_floating and extract_floating. Update comments.
6 * doublest.c: Update copyright.
7 (extract_floating_by_length): Replace extract_floating.
8 (store_floating_by_length): Replace store_floating.
9 (deprecated_extract_floating): New function.
10 (deprecated_store_floating): New function.
11 (extract_typed_floating): Call extract_floating_by_length.
12 (store_typed_floating): Call store_floating_by_length.
13 * x86-64-tdep.c (x86_64_store_return_value): Update.
14 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
15 (sh64_extract_return_value): Update.
16 (sh_sh4_register_convert_to_virtual): Update.
17 (sh_sh64_register_convert_to_virtual): Update.
18 (sh_sh4_register_convert_to_raw): Update.
19 (sh_sh64_register_convert_to_raw): Update.
20 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
21 (rs6000_register_convert_to_raw): Update.
22 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
23 (ia64_register_convert_to_raw): Update.
24 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
25 (REGISTER_CONVERT_TO_VIRTUAL): Update.
26 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
27 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
28 (alpha_register_convert_to_raw): Update.
30 2003-04-08 Andrew Cagney <cagney@redhat.com>
32 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
33 * gdbarch.h, gdbarch.c: Re-generate.
34 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
35 (d10v_gdbarch_init): Do not set saved_pc_after_call.
36 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
37 conditionally, use frame_pc_unwind as an alternative. Add
39 * arch-utils.c (init_frame_pc_default): Only call
40 SAVED_PC_AFTER_CALL when available.
42 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
44 * infrun.c (stop_soon): Rename from stop_soon_quietly.
45 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
46 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
47 (start_remote): Ditto.
48 (handle_inferior_event): Ditto.
49 (save_inferior_status): Ditto.
50 (restore_inferior_status): Ditto.
51 * infcmd.c (attach_command): Ditto.
52 * fork-child.c (startup_inferior): Ditto.
53 * inferior.h (stop_soon): Rename from stop_soon_quietly.
54 * alpha-tdep.c (heuristic_proc_start): Ditto.
55 * mips-tdep.c (heuristic_proc_start): Ditto.
56 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
57 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
58 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
59 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
60 * remote-vx.c (vx_create_inferior): Ditto.
62 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
64 * infrun.c (stop_soon_quietly): Make it an enum, to better
65 override the default behavior of handle_inferior_event.
66 (clear_proceed_status): Update uses of stop_soon_quietly to
67 reflect that it is now an enum.
68 (start_remote): Ditto.
69 (handle_inferior_event): Change logic a bit if stop_soon_quietly
70 is set to handle the new GNU/Linux kernel behavior for
71 attach/sigstop. Update uses of stop_soon_quietly.
72 * inferior.h (enum stop_kind): New enum.
73 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
74 Reset normal handle_inferior_event behavior, afterwards.
75 * fork-child.c (startup_inferior): Update.
76 * alpha-tdep.c (heuristic_proc_start): Update.
77 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
78 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
79 * solib-osf.c (osf_solib_create_inferior_hook): Update.
80 * solib-irix.c (irix_solib_create_inferior_hook): Update.
81 * remote-vx.c (vx_create_inferior): Update.
82 * mips-tdep.c (heuristic_proc_start): Update.
84 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
86 * disasm.c (dump_insns): Move variables inside loop, or they will
87 be freed more than once, causing wild memory corruptions.
88 (gdb_disassembly): Look for the substring "-thread",
89 instead of "-threads" in the target name, to make sure to find
90 the 'multi-thread' target. Also, make sure we do the right thing
91 with the "core" target.
93 2003-04-07 Kevin Buettner <kevinb@redhat.com>
95 * mips-tdep.c (mips_print_fp_register): New function, created from
96 do_fp_register_row(). Registers are now (also) printed as hex.
97 Only one register is printed per row.
98 (mips_print_register, do_fp_register_row): Print floating point
99 registers with mips_print_fp_register().
101 2003-04-06 Andrew Cagney <cagney@redhat.com>
103 * valprint.h (inspect_it): Add extern declaration.
104 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
105 (selectors_info, classes_info): Ditto.
106 (find_objc_msgcall): Fix indentation.
107 (objc_printstr): Delete extern declarations.
109 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
111 2003-04-06 Andrew Cagney <cagney@redhat.com>
113 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
115 * frame.c (legacy_saved_regs_this_id): Update.
116 (legacy_get_prev_frame): Update.
117 * xstormy16-tdep.c: Update comment.
118 * sparc-tdep.c (sparc_frame_chain): Update comment.
119 * blockframe.c (legacy_frame_chain_valid): Update.
121 2003-04-06 Andrew Cagney <cagney@redhat.com>
123 * valprint.c (val_print_type_code_int): Delete #ifdef
124 PRINT_TYPELESS_INTEGER code.
126 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
127 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
128 multi-arch definition.
129 * gdbarch.h: Re-generate.
131 2003-04-05 Andrew Cagney <cagney@redhat.com>
133 Eliminate FRAME_FIND_SAVED_REGS.
134 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
135 Change FSR parameter to a pointer.
136 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
137 Assume FSR parameter is a pointer.
138 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
140 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
141 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
142 saved_regs a pointer.
143 (hppa_frame_saved_pc): Ditto.
144 (find_dummy_frame_regs): Make frame_saved_regs a pointer
145 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
147 (restore_pc_queue): Make fsr a pointer.
148 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
149 (hppa_frame_chain): Make saved_regs a pointer, call
150 hppa_frame_init_saved_regs.
151 * sparc-tdep.c: Include "gdb_assert.h".
152 (sparc_frame_find_saved_regs): Replace internal_error with
154 * remote-vxsparc.c (vx_read_register): Delete reference to
155 FRAME_FIND_SAVED_REGS.
156 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
157 * gdbarch.h: Regenerate.
158 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
159 (deprecated_get_frame_saved_regs): Delete declaration.
160 (struct frame_saved_regs): Delete definition.
161 * frame.c (deprecated_get_frame_saved_regs): Delete function.
162 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
163 (hppa_frame_find_saved_regs): Delete declaration.
164 (FRAME_FIND_SAVED_REGS): Delete macro.
165 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
166 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
167 FRAME_FIND_SAVED_REGS in comment.
169 2003-04-05 Andrew Cagney <cagney@redhat.com>
171 * frame.c (frame_func_unwind, get_frame_func): New functions.
172 * frame.h (get_frame_func, frame_func_unwind): Declare.
173 (struct frame_info): Add field "prev_func" for caching the
174 previous frame's function address.
175 * arm-tdep.c (arm_frameless_function_invocation): Combine
176 get_pc_function_start and get_frame_pc into get_frame_func.
177 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
178 (sh64_nofp_frame_init_saved_regs): Ditto.
179 * s390-tdep.c (s390_function_start): Ditto.
180 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
181 (rs6000_frameless_function_invocation): Ditto.
182 (rs6000_frame_saved_pc): Ditto.
183 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
184 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
185 * i386-tdep.c (i386_frameless_signal_p): Ditto.
186 (i386_frame_init_saved_regs): Ditto.
187 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
188 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
189 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
190 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
191 * blockframe.c (frameless_look_for_prologue): Ditto.
193 2003-04-05 Andrew Cagney <cagney@redhat.com>
195 * frame.c (legacy_get_prev_frame): Link prev to next at the
196 function start. Update comments.
198 2003-04-05 Andrew Cagney <cagney@redhat.com>
200 * frame.c (get_frame_id): Update comment.
201 (legacy_get_prev_frame): Update comment.
202 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
203 * gdbarch.h: Regenerate.
204 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
205 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
207 2003-04-05 Andrew Cagney <cagney@redhat.com>
209 * stack.c (print_frame_info): Use get_frame_pc.
211 2003-04-04 Andrew Cagney <cagney@redhat.com>
213 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
214 the frame's type from the unwinder.
215 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
216 (create_new_frame, legacy_get_prev_frame): When the unwinder's
217 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
218 (get_frame_base_address): Use get_frame_type.
219 (get_frame_locals_address, get_frame_args_address): Ditto.
220 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
221 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
222 (struct frame_info): Add comment explaining why the frame contains
224 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
225 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
226 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
228 * frame-unwind.h: Include "frame.h".
229 (struct frame_unwind): Add "type" field.
230 * Makefile.in (frame_unwind_h): Add $(frame_h).
232 2003-04-04 Andrew Cagney <cagney@redhat.com>
234 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
235 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
236 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
238 (d10v_unwind_dummy_id): Use frame_id_build.
239 * frame.c (find_frame_sal): Use get_frame_pc.
240 (create_new_frame): Use deprecated_update_frame_pc_hack and
241 deprecated_update_frame_base_hack.
242 (create_sentinel_frame): Add comment about ->pc going away.
243 (get_prev_frame): Add comment about ->pc going away.
244 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
245 frame_id_build, deprecated_update_frame_pc_hack and
246 deprecated_update_frame_base_hack.
247 (select_frame): Use get_frame_pc.
248 (legacy_saved_regs_this_id): Use frame_id_build.
250 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
252 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
254 (classify_argument): Handle enumerations and references.
256 2003-04-04 Andrew Cagney <cagney@redhat.com>
258 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
261 2003-04-01 Adam Fedor <fedor@gnu.org>
263 * gdb/objc-lang.c (selectors_info): Replace calls to
264 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
266 (classes_info, find_methods): Likewise.
268 2003-04-03 Kevin Buettner <kevinb@redhat.com>
270 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
271 ``mach'' to the value determined by bfd_default_set_arch_mach().
273 2003-04-02 Bob Rossi <bob_rossi@cox.net>
275 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
276 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
277 (mi-cmd-file.o): Update dependencies.
279 2003-04-01 Kevin Buettner <kevinb@redhat.com>
281 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
282 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
284 2003-04-01 Adam Fedor <fedor@gnu.org>
286 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
287 * language.h (struct language_defn): Add la_demangle.
288 (language_demangle): Declare.
289 * language.c (language_demangle): New function.
290 (unk_lang_demangle): Likewise.
291 (unknown_language_defn, auto_language_defn, local_language_defn):
292 Add ukn_lang_demangle.
293 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
294 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
295 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
296 (cplus_language_defn): Add cplus_demangle for la_demangle element.
297 * jv-lang.c (java_demangle): New function
298 (java_language_defn): Use it for la_demangle element.
299 * objc-lang.c (objc_demangle): Add options argument
300 (objc_language_defn): Use objc_demangle for la_demangle element.
301 * maint.c (maintenance_demangle): Replace switch with
302 call to language_demangle.
303 * utils.c (fprintf_symbol_filtered): Likewise.
305 2003-04-01 Andrew Cagney <cagney@redhat.com>
307 * printcmd.c (print_frame_nameless_args): Delete #ifdef
308 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
309 PRINT_TYPELESS_INTEGER.
310 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
313 2003-04-01 Andrew Cagney <cagney@redhat.com>
315 * Makefile.in (d10v-tdep.o): Update dependencies.
316 * d10v-tdep.c: Include "frame-base.h".
317 (d10v_frame_unwind): Make constant.
318 (d10v_frame_base_address): New function.
319 (d10v_frame_base): New variable.
320 (d10v_gdbarch_init): Set frame_base default.
321 (struct d10v_unwind_cache): Add the field "prev_sp". Update
323 (d10v_frame_unwind_cache): Set and use "prev_sp".
324 (d10v_frame_this_id): Use the previous frame's inner most stack
325 address and this frame's func address for the frame ID. Use
326 frame_id_build. Don't analyze beyond the current instruction.
328 2003-04-01 Andrew Cagney <cagney@redhat.com>
330 * frame.h (get_frame_locals_address, get_frame_args_address):
331 Refer to the base address, instead of the address of the first
334 2003-04-01 Andrew Cagney <cagney@redhat.com>
336 Add frame debug info addresses:
337 * frame-base.c: New file.
338 * frame-base.h: New file.
339 * frame.h (struct frame_base): Add opaque declaration.
340 (get_frame_base): Update comment.
341 (get_frame_base_address): Declare.
342 (get_frame_locals_address): Declare.
343 (get_frame_args_address): Declare.
344 (struct frame_info): Add "base" and "base_cache". Update
345 comments on the unwinder.
346 * frame.c: Include "frame-base.h".
347 (get_frame_locals_address): New function.
348 (get_frame_base_address): New function.
349 (get_frame_args_address): New function.
350 * findvar.c (read_var_value): Use get_frame_locals_address and
351 get_frame_args_address.
352 * stack.c (frame_info): Use get_frame_locals_address and
353 get_frame_args_address.
354 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
355 moved to "frame-base.c".
356 * printcmd.c (print_frame_nameless_args): Ditto.
357 * symtab.h (address_class): Update comments.
358 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
359 get_frame_base_address.
360 * dwarf2expr.c (execute_stack_op): Ditto.
361 * Makefile.in (frame_base_h): Define.
362 (frame.o): Update dependencies.
363 (frame-base.o): Add dependencies.
364 (SFILES): Add frame-base.c.
365 (COMMON_OBS): Add frame-base.o.
367 2003-04-01 Andrew Cagney <cagney@redhat.com>
369 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
370 CALL_DUMMY_LENGTH): Ditto.
371 * gdbarch.c: Re-generate.
372 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
373 (CALL_DUMMY_LENGTH): Delete macro.
374 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
375 * arm-tdep.c (arm_gdbarch_init): Ditto.
376 * avr-tdep.c (avr_gdbarch_init): Ditto.
377 * cris-tdep.c (cris_gdbarch_init): Ditto.
378 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
379 * frv-tdep.c (frv_gdbarch_init): Ditto.
380 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
381 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
382 * i386-tdep.c (i386_gdbarch_init): Ditto.
383 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
384 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
385 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
386 * mips-tdep.c (mips_gdbarch_init): Ditto.
387 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
388 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
389 * s390-tdep.c (s390_gdbarch_init): Ditto.
390 * sh-tdep.c (sh_gdbarch_init): Ditto.
391 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
392 * v850-tdep.c (v850_gdbarch_init): Ditto.
393 * vax-tdep.c (vax_gdbarch_init): Ditto.
394 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
396 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
398 * frame.c (get_prev_frame): Disable call to inside_entry_file().
400 2003-04-01 Andrew Cagney <cagney@redhat.com>
402 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
403 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
404 * gdbarch.h, gdbarch.c: Re-generate.
405 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
406 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
407 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
408 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
409 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
410 * infcmd.c (run_stack_dummy): Simplify assuming
411 CALL_DUMMY_BREAKPOINT_OFFSET_P.
412 * infrun.c (handle_inferior_event): Ditto.
413 * alpha-tdep.c (alpha_gdbarch_init): Do not set
414 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
415 * arm-tdep.c (arm_gdbarch_init): Ditto.
416 * avr-tdep.c (avr_gdbarch_init): Ditto.
417 * cris-tdep.c (cris_gdbarch_init): Ditto.
418 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
419 * frv-tdep.c (frv_gdbarch_init): Ditto.
420 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
421 * i386-tdep.c (i386_gdbarch_init): Ditto.
422 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
423 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
424 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
425 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
426 * mips-tdep.c (mips_gdbarch_init): Ditto.
427 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
428 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
429 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
430 * s390-tdep.c (s390_gdbarch_init): Ditto.
431 * sh-tdep.c (sh_gdbarch_init): Ditto.
432 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
433 * v850-tdep.c (v850_gdbarch_init): Ditto.
434 * vax-tdep.c (vax_gdbarch_init): Ditto.
435 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
437 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
439 * symfile.c (symfile_relocate_debug_section): Update call to
440 bfd_simple_get_relocated_section_contents.
442 2003-03-31 Andrew Cagney <cagney@redhat.com>
444 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
445 * gdbarch.h, gdbarch.c: Regenerate.
446 * inferior.h (FIX_CALL_DUMMY): Delete macro.
447 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
449 * frame.h (generic_fix_call_dummy): Delete declaration.
450 * dummy-frame.h: Update comment.
451 * dummy-frame.c (generic_fix_call_dummy): Delete function.
452 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
454 * sh-tdep.c (sh_gdbarch_init): Ditto.
455 * s390-tdep.c (s390_gdbarch_init): Ditto.
456 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
457 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
458 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
459 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
460 * i386-tdep.c (i386_gdbarch_init): Ditto.
461 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
462 * frv-tdep.c (frv_gdbarch_init): Ditto.
463 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
464 * cris-tdep.c (cris_gdbarch_init): Ditto.
465 * avr-tdep.c (avr_gdbarch_init): Ditto.
466 * arm-tdep.c (arm_gdbarch_init): Ditto.
468 2003-03-31 J. Brobecker <brobecker@gnat.com>
470 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
471 (INIT_FRAME_AP): Likewise.
472 (EXTRA_FRAME_INFO): Likewise.
474 2003-03-31 Andrew Cagney <cagney@redhat.com>
476 * gdbarch.sh: Include "symfile.h".
477 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
478 * gdbarch.h, gdbarch.c: Re-generate.
479 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
480 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
481 call_dummy_address, the default is at entry_point_address.
482 * v850-tdep.c (v850_gdbarch_init): Ditto.
483 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
484 * sh-tdep.c (sh_gdbarch_init): Ditto.
485 * s390-tdep.c (s390_gdbarch_init): Ditto.
486 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
487 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
488 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
489 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
490 * i386-tdep.c (i386_gdbarch_init): Ditto.
491 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
492 * frv-tdep.c (frv_gdbarch_init): Ditto.
493 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
494 * cris-tdep.c (cris_gdbarch_init): Ditto.
495 * arm-tdep.c (arm_gdbarch_init): Ditto.
497 2003-03-31 Andrew Cagney <cagney@redhat.com>
499 * gdbarch.sh (CALL_DUMMY_P): Delete.
500 * gdbarch.h, gdbarch.c: Re-generate.
501 * inferior.h (CALL_DUMMY_P): Delete macro.
502 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
503 * vax-tdep.c (vax_gdbarch_init): Update.
504 * v850-tdep.c (v850_gdbarch_init): Update.
505 * sparc-tdep.c (sparc_gdbarch_init): Update.
506 * sh-tdep.c (sh_gdbarch_init): Update.
507 * s390-tdep.c (s390_gdbarch_init): Update.
508 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
509 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
510 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
511 * mips-tdep.c (mips_gdbarch_init): Update.
512 * mcore-tdep.c (mcore_gdbarch_init): Update.
513 * m68k-tdep.c (m68k_gdbarch_init): Update.
514 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
515 * ia64-tdep.c (ia64_gdbarch_init): Update.
516 * i386-tdep.c (i386_gdbarch_init): Update.
517 * h8300-tdep.c (h8300_gdbarch_init): Update.
518 * frv-tdep.c (frv_gdbarch_init): Update.
519 * d10v-tdep.c (d10v_gdbarch_init): Update.
520 * cris-tdep.c (cris_gdbarch_init): Update.
521 * breakpoint.c (deprecated_frame_in_dummy): Update.
522 * avr-tdep.c (avr_gdbarch_init): Update.
523 * alpha-tdep.c (alpha_gdbarch_init): Update.
524 * arm-tdep.c (arm_gdbarch_init): Update.
525 * dummy-frame.c (dummy_frame_this_id): Update comments.
526 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
527 * frame.c (legacy_get_prev_frame): Ditto.
528 * valops.c (call_function_by_hand): Delete function.
529 (hand_function_call): Rename to call_function_by_hand
531 2003-03-30 Andrew Cagney <cagney@redhat.com>
533 2002-11-10 Klee Dienes <kdienes@apple.com>
534 * value.h (struct value): Update comment.
536 2003-03-30 Andrew Cagney <cagney@redhat.com>
538 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
540 (d10v_gdbarch_init): Do not set fp_regnum.
542 * frame.c (get_frame_base): Force ID initialization.
543 (get_prev_frame): Move computation of the frame ID from here ...
544 (get_frame_id): ... to here.
545 (legacy_get_prev_frame): Mark the frame ID as valid.
546 * frame.h (struct frame_info): Add field "id_p".
548 2003-03-30 Mark Kettenis <kettenis@gnu.org>
550 * i386-tdep.c (i386_store_struct_return): Removed.
551 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
553 2003-03-30 Andrew Cagney <cagney@redhat.com>
555 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
556 * gdbarch.h, gdbarch.c: Regenerate.
557 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
558 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
559 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
560 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
561 * i386-tdep.c (i386_gdbarch_init): Ditto.
562 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
563 * cris-tdep.c (cris_gdbarch_init): Ditto.
564 * vax-tdep.c (vax_gdbarch_init): Ditto.
565 * s390-tdep.c (s390_gdbarch_init): Ditto.
566 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
567 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
568 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
569 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
570 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
571 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
572 * sparc-tdep.c (sparc_gdbarch_init): Update.
573 * sh-tdep.c (sh_gdbarch_init): Update.
574 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
575 * mips-tdep.c (mips_gdbarch_init): Update.
576 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
577 * ia64-tdep.c (ia64_gdbarch_init): Update.
578 * frv-tdep.c (frv_gdbarch_init): Update.
579 * avr-tdep.c (avr_gdbarch_init): Update.
580 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
581 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
582 instead of when push_dummy_call is not available.
584 2003-03-30 Andrew Cagney <cagney@redhat.com>
586 * infttrace.c: Include "gdbthread.h".
587 (parent_attach_all): Fix function signature.
588 (call_ptrace): Update call.
589 * Makefile.in (infttrace.o): Update dependencies.
591 2003-03-30 Andrew Cagney <cagney@redhat.com>
593 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
595 * gdbarch.h, gdbarch.c: Regenerate.
596 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
597 * x86-64-tdep.c (x86_64_init_abi): 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 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
604 * mips-tdep.c (mips_gdbarch_init): Update.
605 * mcore-tdep.c (mcore_gdbarch_init): Update.
606 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
607 * ia64-tdep.c (ia64_gdbarch_init): Update.
608 * i386-tdep.c (i386_gdbarch_init): Update.
609 * h8300-tdep.c (h8300_gdbarch_init): Update.
610 * frv-tdep.c (frv_gdbarch_init): Update.
611 * cris-tdep.c (cris_gdbarch_init): Update.
612 * avr-tdep.c (avr_gdbarch_init): Update.
613 * arm-tdep.c (arm_gdbarch_init): Update.
614 * valops.c (hand_function_call): Update.
616 2003-03-29 Andrew Cagney <cagney@redhat.com>
618 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
619 sizeof_call_dummy_words.
620 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
622 * gdbarch.h: Regenerate.
624 2003-03-29 Andrew Cagney <cagney@redhat.com>
626 * infttrace.h: New file.
627 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
628 (hpread_get_textlow): Detect an uninitialized dn_bufp.
629 (hpread_read_doc_function_type): Detect an initialized type1.
630 (hpread_quick_traverse): Initialize mod_name_string.
631 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
632 (som_solib_get_solib_by_pc): Declare.
633 (so_lib_thread_start_addr): Declare.
634 (no_shared_libraries): Declare.
635 * somread.c (init_import_symbols): Make static. Add forward
637 * config/pa/nm-hppah.h: Include "infttrace.h" for
639 (hppa_insert_hw_watchpoint): Declare.
640 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
641 * hppah-nat.c: Include "gdb_string.h".
642 (parent_attach_all): Delete extern declaration, moved to
644 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
646 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
647 * Makefile.in (infttrace_h): Define.
648 (hpread.o): Update dependencies.
649 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
650 * hppa-hpux-tdep.c: Include "gdb_string.h".
651 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
652 * infrun.c (handle_inferior_event): Always initialize
653 stepped_after_stopped_by_watchpoint. Add default and remove
654 fallthrough in switch statement.
655 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
657 (hppa_remove_hw_watchpoint): Ditto.
659 2003-03-29 Andrew Cagney <cagney@redhat.com>
661 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
664 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
666 * arm-tdep.c (arm_push_arguments): Delete.
667 (struct stack_item): New type.
668 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
669 (arm_store_struct_return): Delte.
670 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
671 arm_push_arguments or arm_store_struct_return.
673 2003-03-28 Andrew Cagney <cagney@redhat.com>
675 * Makefile.in (d10v-tdep.o): Update dependencies.
676 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
677 * d10v-tdep.c: Include "remote.h".
678 (target_resume_hook): Delete extern declaration.
679 (target_wait_loop_hook): Ditto.
680 (tdisassemble_command): Eliminate assignment in "if" conditional.
681 (d10v_ts2_register_sim_regno): Eliminate call to
682 legacy_register_sim_regno.
683 (d10v_ts3_register_sim_regno): Ditto.
685 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
687 * thread.c: Reindented.
689 * linux-proc.c: Ditto.
691 2003-03-28 Bob Rossi <bob_rossi@cox.net>
693 * MAINTAINERS (write after approval): Add myself.
695 2003-03-27 Theodore A. Roth <troth@openavr.org>
697 * objc-exp.y: Add missing semi-colons.
699 2003-03-27 Andrew Cagney <cagney@redhat.com>
701 * regcache.c (write_sp): Delete function and references.
702 * inferior.h (write_sp): Delete declaration.
703 * valops.c (hand_function_call): Replace write_sp with
705 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
706 (sparc_pop_frame): Ditto.
708 2003-03-27 Andrew Cagney <cagney@redhat.com>
710 * NEWS: Mention removal of support for hppa*-*-bsd* and
711 hppa*-*-osf* natives, and hppa*-*-pro* target.
712 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
713 * config/pa/xm-pa.h: Obsolete file.
714 * config/pa/xm-hppab.h: Obsolete file.
715 * config/pa/nm-hppab.h: Obsolete file.
716 * config/pa/tm-hppab.h: Obsolete file.
717 * config/pa/tm-hppao.h: Obsolete file.
718 * config/pa/nm-hppao.h: Obsolete file.
719 * config/pa/tm-pro.h: Obsolete file.
720 * config/pa/hppaosf.mt: Obsolete file.
721 * config/pa/hppaosf.mh: Obsolete file.
722 * config/pa/hppapro.mt: Obsolete file.
723 * config/pa/hppabsd.mt: Obsolete file.
724 * config/pa/hppabsd.mh: Obsolete file.
725 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
726 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
729 2003-03-27 Andrew Cagney <cagney@redhat.com>
731 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
732 push_arguments. Don't set push_return_address or write_sp.
733 (d10v_push_dummy_call): Replace d10v_push_arguments.
734 (d10v_push_return_address, d10v_write_sp): Delete function,
735 handled by push_dummy_call.
737 2003-03-26 Andrew Cagney <cagney@redhat.com>
739 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
740 (push_dummy_call): New pure multi-arch replacement with gdbarch,
741 regcache and dummy_addr parameters.
742 * gdbarch.h, gdbarch.c: Re-generate.
743 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
744 available; assume it will handle stack alignment and return
745 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
746 legacy_push_arguments.
747 (legacy_push_arguments): Rename default_push_arguments.
748 * value.h (legacy_push_arguments): Rename default_push_arguments.
749 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
750 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
751 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
752 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
753 * config/i386/tm-symmetry.h: Update.
754 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
755 * x86-64-tdep.c (x86_64_init_abi): Update.
756 * v850-tdep.c (v850_gdbarch_init): Update.
757 * sparc-tdep.c (sparc_gdbarch_init): Update.
758 * sh-tdep.c (sh_gdbarch_init): Update.
759 * s390-tdep.c (s390_gdbarch_init): Update.
760 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
761 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
762 * mips-tdep.c (mips_gdbarch_init): Update.
763 * mcore-tdep.c (mcore_gdbarch_init): Update.
764 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
765 * ia64-tdep.c (ia64_gdbarch_init): Update.
766 * i386-tdep.c (i386_gdbarch_init): Update.
767 * hppa-tdep.c (hppa_gdbarch_init): Update.
768 * h8300-tdep.c (h8300_gdbarch_init): Update.
769 * frv-tdep.c (frv_gdbarch_init): Update.
770 * d10v-tdep.c (d10v_gdbarch_init): Update.
771 * cris-tdep.c (cris_gdbarch_init): Update.
772 * avr-tdep.c (avr_gdbarch_init): Update.
773 * arm-tdep.c (arm_gdbarch_init): Update.
774 * arm-linux-tdep.c (arm_linux_init_abi): Update.
775 * alpha-tdep.c (alpha_gdbarch_init): Update.
777 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
779 * signals/signals.c (do_target_signal_to_host): Correct realtime
782 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
784 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
785 (struct sal_chain, map_catch_names): Remove.
786 (catch_exception_command_1): Don't call
787 handle_gnu_4_16_catch_command.
789 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
791 From Mark Dettinger <dettinge@de.ibm.com>:
792 * dwarf2cfi.c (read_2u): Increment pointer by two.
794 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
796 * signals/signals.c: Fix typos in last change.
798 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
800 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
801 not already defined. Use __SIGRTMIN if available.
802 (target_signal_from_host): Remove SIGRTMIN block.
803 (do_target_signal_to_host): Remove SIGRTMIN block; check that
804 the signal is within the realtime range.
806 2003-03-25 Adam Fedor <fedor@gnu.org>
808 * Makefile.in (infrun.o): Add $(language_h)
809 * infrun.c (handle_inferior_event): Use skip_language_trampoline
810 for language specific trampolines.
811 * language.h (struct language_defn): Add skip_trampoline.
812 (skip_language_trampoline): Declare.
813 * language.c (unk_lang_trampoline, skip_language_trampoline):
815 (unknown_language_defn, auto_language_defn, local_language_defn):
816 Add ukn_lang_trampoline.
817 * ada-lang.c (ada_language_defn): Add NULL for language
818 specific skip_trampoline.
819 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
820 scm-lang.c: Likewise.
821 * objc-lang.c (objc_skip_trampoline): New function.
822 (objc_language_defn): Add objc_skip_trampoline.
824 2003-03-25 Andrew Cagney <cagney@redhat.com>
826 * frame.c (get_prev_frame): Delay validating a frame's ID -
827 non-NULL, didn't go backwards - until an attempt to unwind it to
830 2003-03-25 Andrew Cagney <cagney@redhat.com>
832 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
833 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
834 * gdbarch.h, gdbarch.c: Re-generate.
835 * config/sparc/tm-sparc.h
836 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
837 * sparc-tdep.c (sparc_gdbarch_init): Set
838 deprecated_extra_stack_alignment_needed.
839 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
840 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
841 extra_stack_alignment_needed.
842 * v850-tdep.c (v850_gdbarch_init): Ditto.
843 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
844 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
845 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
846 * cris-tdep.c (cris_gdbarch_init): Ditto.
847 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
848 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
850 2003-03-25 Andrew Cagney <cagney@redhat.com>
852 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
854 * gdbarch.h, gdbarch.c: Regenerate.
855 * d10v-tdep.c (d10v_store_struct_return): Delete function.
856 (d10v_push_arguments): Set the struct return register.
857 (d10v_gdbarch_init): Update.
858 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
859 * x86-64-tdep.c (x86_64_init_abi): Update.
860 * vax-tdep.c (vax_gdbarch_init): Update.
861 * v850-tdep.c (v850_gdbarch_init): Update.
862 * sparc-tdep.c (sparc_gdbarch_init): Update.
863 * sh-tdep.c (sh_gdbarch_init): Update.
864 * s390-tdep.c (s390_gdbarch_init): Update.
865 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
866 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
867 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
868 * mips-tdep.c (mips_gdbarch_init): Update.
869 * mcore-tdep.c (mcore_gdbarch_init): Update.
870 * m68k-tdep.c (m68k_gdbarch_init): Update.
871 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
872 * ia64-tdep.c (ia64_gdbarch_init): Update.
873 * i386-tdep.c (i386_gdbarch_init): Update.
874 * hppa-tdep.c (hppa_gdbarch_init): Update.
875 * h8300-tdep.c (h8300_gdbarch_init): Update.
876 * frv-tdep.c (frv_gdbarch_init): Update.
877 * cris-tdep.c (cris_gdbarch_init): Update.
878 * avr-tdep.c (avr_gdbarch_init): Update.
879 * arm-tdep.c (arm_gdbarch_init): Update.
880 * alpha-tdep.c (alpha_gdbarch_init): Update.
882 2003-03-25 Andrew Cagney <cagney@redhat.com>
884 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
885 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
886 CALL_DUMMY_STACK_ADJUST with a predicate variable.
887 * gdbarch.h, gdbarch.c: Regenerate.
888 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
889 call_dummy_stack_adjust_p.
890 * vax-tdep.c (vax_gdbarch_init): Ditto.
891 * v850-tdep.c (v850_gdbarch_init): Ditto.
892 * sh-tdep.c (sh_gdbarch_init): Ditto.
893 * s390-tdep.c (s390_gdbarch_init): Ditto.
894 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
895 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
896 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
897 * mips-tdep.c (mips_gdbarch_init): Ditto.
898 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
899 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
900 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
901 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
902 * i386-tdep.c (i386_gdbarch_init): Ditto.
903 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
904 * frv-tdep.c (frv_gdbarch_init): Ditto.
905 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
906 * cris-tdep.c (cris_gdbarch_init): Ditto.
907 * avr-tdep.c (avr_gdbarch_init): Ditto.
908 * arm-tdep.c (arm_gdbarch_init): Ditto.
909 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
910 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
911 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
912 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
913 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
914 call_dummy_stack_adjust_p.
915 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
916 (CALL_DUMMY_STACK_ADJUST): Delete macro.
917 * sparc-tdep.c (sparc32_push_arguments): Update.
918 * valops.c (hand_function_call): Update.
920 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
922 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
923 set_gdbarch_char_signed.
925 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
928 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
930 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
932 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
933 (_initialize_arm_tdep): Don't set tm_print_insn.
935 2003-03-24 Adam Fedor <fedor@gnu.org>
937 * Makefile.in (YYOBJ): Add objc-exp.tab.o
938 * objc-lang.h: Add multiple inclusion protection.
939 (start_msglist, add_msglist, end_msglist): Additional declarations.
941 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
943 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
944 value was renamed to ARM_FLOAT_SOFT_FPA.
946 2003-03-23 Andrew Cagney <cagney@redhat.com>
948 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
949 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
950 * gdbarch.h, gdbarch.c: Regenerate.
951 * valops.c (hand_function_call): Update.
952 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
953 * frame.c (legacy_saved_regs_this_id): Update.
954 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
955 * dummy-frame.h: Update.
956 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
957 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
958 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
959 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
960 * config/m68k/tm-sun3.h: Update.
961 * blockframe.c (inside_main_func, frame_chain_valid): Update.
962 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
963 * x86-64-tdep.c (x86_64_init_abi): Update.
964 * vax-tdep.c (vax_gdbarch_init): Update.
965 * v850-tdep.c (v850_gdbarch_init): Update.
966 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
967 * sh-tdep.c (sh_gdbarch_init): Update.
968 * s390-tdep.c (s390_gdbarch_init): Update.
969 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
970 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
971 (frame_get_saved_regs): Update.
972 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
973 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
974 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
975 * mips-tdep.c (mips_gdbarch_init): Update.
976 * mcore-tdep.c (mcore_gdbarch_init): Update.
977 * m68k-tdep.c (m68k_gdbarch_init): Update.
978 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
979 * ia64-tdep.c (ia64_gdbarch_init): Update.
980 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
981 * i386-interix-tdep.c (i386_interix_init_abi): Update.
982 (i386_interix_back_one_frame): Update.
983 * hppa-tdep.c (hppa_gdbarch_init): Update.
984 (hppa_init_extra_frame_info): Update.
985 * h8300-tdep.c (h8300_gdbarch_init): Update.
986 * frv-tdep.c (frv_gdbarch_init): Update.
987 * cris-tdep.c (cris_gdbarch_init): Update.
988 * avr-tdep.c (avr_gdbarch_init): Update.
989 * arm-tdep.c (arm_gdbarch_init): Update.
990 * alpha-tdep.c (alpha_gdbarch_init): Update.
992 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
994 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
995 (arm_get_fp_model): Declare.
996 * arm-tdep.c (fp_model_strings): New string array.
997 (arm_fp_model, current_fp_model): New variables.
998 (arm_get_fp_model): New function.
999 (arm_set_fp): New function.
1000 (set_fp_model_sfunc): New function.
1001 (show_fp_model): New function.
1002 (_initialize_arm_tdep): Add new command to set/show the FPU.
1003 (arm_extract_return_value): Use arm_get_fp_model.
1004 (arm_store_return_value): Likewise.
1005 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
1006 to initialize the floating-point data types.
1007 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
1010 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1012 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
1013 the current setting of each value.
1014 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
1015 new_set and new_show. Use add_setshow_cmd_full and
1016 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
1017 commands and add new version as subcommands of "set/show arm".
1019 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1021 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
1022 (set_arm_command, show_arm_command): New functions.
1023 (_initialize_arm_tdep): Add them.
1024 (num_disassembly_options): Renamed from num_flavor_options.
1025 (valid_disassembly_styles): Renamed from valid_flavors.
1026 (disassembly_style): Renamed from disassembly_flavor.
1027 (set_disassembly_style_sfunc): Renamed from
1028 set_disassembly_flavor_sfunc.
1029 (set_disassembly_style): Renamed from set_disassembly_flavor.
1030 (arm_othernames): Updated.
1031 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
1032 command. Add "set/show arm disassembly" commands. Deprecate
1033 "othernames" command.
1035 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1037 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
1038 (arm-tdep.o): Depend on elf_arm_h.
1040 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1042 * Makefile.in (coff_internal_h): Define.
1043 (arm-tdep.o): Update dependencies.
1045 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1047 * arm-tdep.c (prologue_cache): Delete.
1048 (check_prologue_cache, save_prologue_cache): Delete.
1049 (arm_scan_prologue): Don't check or update the prologue_cache.
1050 (arm_gdb_arch_init): Don't initialize it.
1051 (_initialize_arm_tdep): Likewise.
1053 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
1055 * MAINTAINERS (tui): Maintainer of tui code.
1057 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
1059 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
1060 (i386-cygwin-tdep.o): Add dependencies.
1061 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
1062 * i386-cygwin-tdep.c: New file.
1063 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
1064 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
1066 2003-03-20 Andrew Cagney <cagney@redhat.com>
1068 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
1069 (handle_inferior_event): Remove code calling
1070 DYNAMIC_TRAMPOLINE_NEXTPC.
1072 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
1073 already has a full path.
1075 * main.c (gdb_main): Return 1.
1076 (captured_main): Call error to report an invalid interpreter.
1078 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
1079 * alpha-osf1-tdep.c: Include "gdb_string.h".
1081 2003-03-19 J. Brobecker <brobecker@gnat.com>
1083 Continuing work to convert the hppa targets to multiarch partial.
1085 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
1086 method, now that hppa_push_dummy_frame has a conformant prototype.
1087 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
1088 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
1089 for the switch to multiarch partial.
1091 2003-03-19 Kevin Buettner <kevinb@redhat.com>
1093 * mdebugread.c (parse_symbol): For stEnd, we're done counting
1094 when iss is issNull.
1096 2003-03-18 Kevin Buettner <kevinb@redhat.com>
1098 * mips-tdep.c (mips_register_name): Fix fencepost error involving
1099 NUM_REGS bounds check.
1101 2003-03-18 Kevin Buettner <kevinb@redhat.com>
1103 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
1104 * mips-tdep.c (gdb_assert.h): Include.
1105 (mips_generic_reg_names, mips_processor_reg_names): Make static.
1106 (mips_register_name): Handle integer registers explicitly. Add
1108 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
1109 (mips_lsi33k_reg_names): Don't list integer registers; they're
1110 handled by mips_register_name() now.
1111 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
1112 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
1113 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
1114 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
1115 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
1117 2003-03-18 Andrew Cagney <cagney@redhat.com>
1119 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
1121 * gdbtypes.h (print_scalar_formatted): Update declaration.
1122 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
1124 2003-03-18 J. Brobecker <brobecker@gnat.com>
1126 * infrun.c (observer.h): Add #include.
1127 (normal_stop): Add call to observer_notify_normal_stop.
1128 * Makefile.in (infrun.o): Add dependency on observer.h.
1130 2003-03-18 J. Brobecker <brobecker@gnat.com>
1132 Continuing work to convert the hppa targets to multiarch partial.
1133 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
1134 parameter. Reformat comment.
1135 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
1136 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
1137 to match new profile.
1139 2003-03-18 J. Brobecker <brobecker@gnat.com>
1141 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
1142 appear to be working in any case.
1144 2003-03-18 J. Brobecker <brobecker@gnat.com>
1146 * observer.c (observer_test_first_observer): New static variable.
1147 (observer_test_second_observer): Likewise.
1148 (observer_test_third_observer): Likewise.
1149 (observer_test_first_notification_function): New static function.
1150 (observer_test_second_notification_function): Likewise.
1151 (observer_test_third_notification_function): Likewise.
1153 2003-03-17 J. Brobecker <brobecker@gnat.com>
1155 * hppa-tdep.c (gdb_assert.h): Add missing #include.
1156 * somsolib.c (gdb_assert.h): Likewise.
1157 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
1158 (somsolib.o): Likewise.
1160 2003-03-17 Andrew Cagney <cagney@redhat.com>
1162 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
1163 BFD. Simplify setting of di.endian.
1165 2003-03-17 Andrew Cagney <cagney@redhat.com>
1167 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
1168 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
1170 From Elena Zannoni <ezannoni@redhat.com>
1171 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
1172 vector and floating-point parameters.
1173 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
1175 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
1177 2003-03-17 Fernando Nasser <fnasser@redhat.com>
1179 * MAINTAINERS: Remove my name from several maintainership roles.
1181 2003-03-17 Andrew Cagney <cagney@redhat.com>
1183 Fix frame off-by-one bug.
1184 * frame-unwind.h (frame_this_id_ftype): Replace
1185 frame_unwind_id_ftype.
1186 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
1187 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
1188 with "prev_register".
1189 * frame-unwind.c (frame_unwind_find_by_pc): Return
1190 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
1192 * dummy-frame.c (cached_find_dummy_frame): Delete function.
1193 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
1194 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
1195 (dummy_frame_unwind): Update.
1196 * sentinel-frame.c (sentinel_frame_prev_register): Replace
1197 sentinel_frame_register_unwind.
1198 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
1199 (sentinel_frame_unwinder): Update.
1200 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1201 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
1202 * frame.c (create_sentinel_frame): Update. Initialize
1203 "prologue_cache" instead of "unwind_cache".
1204 (frame_register_unwind): Call this frame's prev_register with the
1205 next frame and this frame's prologue cache.
1206 (get_prev_frame): Simplify. Always call prev frame's this_id with
1207 this frame and prev frame's prologue cache. Document that this
1208 call is shifted one to the left when compared to the
1209 frame_register_unwind call.
1210 (legacy_saved_regs_prev_register): Replace
1211 frame_saved_regs_register_unwind.
1212 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
1213 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
1214 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1215 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
1216 (d10v_frame_unwind): Update.
1217 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
1218 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
1219 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
1220 "saved_regs" with "this_saved_regs".
1222 2003-03-16 Andrew Cagney <cagney@redhat.com>
1224 * frame.c (frame_pop): Don't call target_store_registers. Fix
1225 problem reported by Mark Kettenis.
1227 2003-03-16 Mark Kettenis <kettenis@gnu.org>
1229 * i386-tdep.c (i386_register_type): Renamed from
1230 i386_register_virtual_type. Adjust function signature.
1231 (i386_gdbarch_init): Set register_type instead of
1232 deprecated_max_register_raw_size,
1233 deprecated_max_register_virtual_size and register_virtual_type.
1235 2003-03-14 Andrew Cagney <cagney@redhat.com>
1237 * frame.c (get_prev_frame): When a legacy frame, always call
1238 legacy_get_prev_frame. Simplify unwind code using assumption that
1239 the unwinder is new.
1240 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
1241 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
1242 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
1244 2003-03-14 Andrew Cagney <cagney@redhat.com>
1246 * frame.c (get_saved_register): Delete function.
1247 * frame.h (get_saved_register): Delete declaration.
1248 * xstormy16-tdep.c: Update comment.
1249 * regcache.h: Update comments.
1250 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
1251 get_saved_register and extract_address, use
1252 frame_read_unsigned_register.
1253 (sparc_frame_saved_pc): Ditto.
1254 (sparc_get_saved_register): Instead of get_saved_register, use
1256 (sparc_pop_frame): Ditto.
1257 * findvar.c: Update comments.
1258 (value_of_register): Call frame_register instead of
1260 (value_from_register): Ditto.
1261 * config/sparc/tm-sparc.h: Update comment.
1262 * breakpoint.c: Update comment.
1264 2003-03-14 Andrew Cagney <cagney@redhat.com>
1266 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
1268 * gdbarch.h, gdbarch.c: Re-generate.
1269 * frame.h: Update comments.
1270 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1271 * x86-64-tdep.c (x86_64_init_abi): Update.
1272 * sparc-tdep.c (sparc_gdbarch_init): Update.
1273 * sh-tdep.c (sh_gdbarch_init): Update.
1274 * mips-tdep.c (mips_gdbarch_init): Update.
1275 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1276 * cris-tdep.c (cris_gdbarch_init): Update.
1277 * ia64-tdep.c (ia64_gdbarch_init): Update.
1278 * frame.c (frame_register): Update.
1279 (get_saved_register): Update.
1280 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
1282 2003-03-13 Andrew Cagney <cagney@redhat.com>
1284 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
1285 * gdbarch.h, gdbarch.c: Regenerate.
1286 * valops.c (hand_function_call): Update comment.
1287 * stack.c (return_command): Update comment.
1288 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
1289 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
1290 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1291 * x86-64-tdep.c (x86_64_init_abi): Update.
1292 * vax-tdep.c (vax_gdbarch_init): Update.
1293 * v850-tdep.c (v850_gdbarch_init): Update.
1294 * sparc-tdep.c (sparc_gdbarch_init): Update.
1295 * sh-tdep.c (sh_gdbarch_init): Update.
1296 * s390-tdep.c (s390_gdbarch_init): Update.
1297 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1298 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1299 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1300 * mips-tdep.c (mips_gdbarch_init): Update.
1301 * mcore-tdep.c (mcore_gdbarch_init): Update.
1302 * m68k-tdep.c (m68k_gdbarch_init): Update.
1303 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1304 * ia64-tdep.c (ia64_gdbarch_init): Update.
1305 * i386-tdep.c (i386_gdbarch_init): Update.
1306 * hppa-tdep.c (hppa_gdbarch_init): Update.
1307 * h8300-tdep.c (h8300_gdbarch_init): Update.
1308 * frv-tdep.c (frv_gdbarch_init): Update.
1309 * cris-tdep.c (cris_gdbarch_init): Update.
1310 * avr-tdep.c (avr_gdbarch_init): Update.
1311 * arm-tdep.c (arm_gdbarch_init): Update.
1312 * alpha-tdep.c (alpha_gdbarch_init): Update.
1314 2003-03-13 Andrew Cagney <cagney@redhat.com>
1316 * frame.c (legacy_frame_p): New function.
1317 (get_prev_frame): Use legacy_frame_p.
1318 * frame.h (legacy_frame_p): Declare.
1320 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1322 * MAINTAINERS (write after approval): Alphabetically
1325 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1327 * MAINTAINERS (write after approval): Add myself.
1329 2003-03-12 Andrew Cagney <cagney@redhat.com>
1331 * frame.c (get_prev_frame): Rename the frame parameter to
1333 (get_next_frame, legacy_get_prev_frame): Ditto.
1335 2003-03-12 Andrew Cagney <cagney@redhat.com>
1337 * frame.c (get_current_frame): Check target_has_registers before
1338 checking target_has_stack.
1339 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
1340 instead of deprecated_selected_frame.
1341 * findvar.c (value_of_register): Pass "frame", not
1342 deprecated_selected_frame, to value_of_builtin_reg.
1344 2003-03-12 Andrew Cagney <cagney@redhat.com>
1346 * regcache.c (regcache_cooked_write_signed): New function.
1347 (regcache_cooked_write_unsigned): New function.
1348 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
1349 (regcache_cooked_read_signed): Fix regnum in range assertion.
1350 * regcache.h (regcache_cooked_write_signed): Declare.
1351 (regcache_cooked_write_unsigned): Declare.
1353 2003-03-12 Andrew Cagney <cagney@redhat.com>
1355 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1356 * gdbarch.h, gdbarch.c: Re-generate.
1357 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1358 * x86-64-tdep.h: Update.
1359 * x86-64-tdep.c (x86_64_init_abi): Update.
1360 * v850-tdep.c (v850_gdbarch_init): Update.
1361 * sparc-tdep.c (sparc_gdbarch_init): Update.
1362 * sh-tdep.c (sh_gdbarch_init): Update.
1363 * s390-tdep.c (s390_gdbarch_init): Update.
1364 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1365 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1366 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1367 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1368 * mips-tdep.c (mips_gdbarch_init): Update.
1369 * mcore-tdep.c (mcore_gdbarch_init): Update.
1370 * m68k-tdep.c (m68k_gdbarch_init): Update.
1371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1372 * ia64-tdep.c (ia64_gdbarch_init): Update.
1373 * i386-tdep.c (i386_gdbarch_init): Update.
1374 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1375 * hppa-tdep.c (hppa_gdbarch_init): Update.
1376 * h8300-tdep.c (h8300_gdbarch_init): Update.
1377 * frv-tdep.c (frv_gdbarch_init): Update.
1378 * cris-tdep.c (cris_gdbarch_init): Update.
1379 * avr-tdep.c (avr_gdbarch_init): Update.
1380 * arm-tdep.c (arm_gdbarch_init): Update.
1381 * alpha-tdep.c (alpha_gdbarch_init): Update.
1382 * sh-tdep.c (sh_init_extra_frame_info): Update.
1383 (sh64_init_extra_frame_info): Update.
1384 * ns32knbsd-nat.c (frame_num_args): Update.
1385 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1386 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1387 (xstormy16_frame_chain_valid): Update.
1388 * vax-tdep.c (vax_saved_pc_after_call): Update.
1389 * v850-tdep.c (v850_frame_chain): Update.
1390 (v850_pop_frame): Update.
1391 (v850_init_extra_frame_info): Update.
1392 * sparc-tdep.c (setup_arbitrary_frame): Update.
1393 * ns32k-tdep.c (umax_frame_num_args): Update.
1394 * s390-tdep.c (s390_pop_frame_regular): Update.
1395 * mn10300-tdep.c (mn10300_frame_chain): Update.
1396 (mn10300_pop_frame_regular): Update.
1397 (mn10300_init_extra_frame_info): Update.
1398 * mips-tdep.c (mips_init_frame_pc_first): Update.
1399 (mips_frame_chain): Update.
1400 (mips_pop_frame): Update.
1401 * mcore-tdep.c (mcore_frame_chain): Update.
1402 (mcore_pop_frame): Update.
1403 (mcore_init_extra_frame_info): Update.
1404 * arch-utils.c (init_frame_pc_default): Update.
1405 * m68k-tdep.c (isi_frame_num_args): Update.
1406 (delta68_frame_num_args): Update.
1407 (news_frame_num_args): Update.
1408 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1409 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1410 (alpha_frame_chain): Update.
1411 (alpha_pop_frame): Update.
1412 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1413 (hppa_init_extra_frame_info): Update.
1414 (hppa_frame_chain): Update.
1415 (hppa_frame_chain_valid): Update.
1416 * cris-tdep.c (cris_init_extra_frame_info): Update.
1417 * avr-tdep.c (avr_init_extra_frame_info): Update.
1418 * arm-tdep.c (arm_frame_chain_valid): Update.
1419 (arm_init_extra_frame_info): Update.
1420 (arm_pop_frame): Update.
1421 * frame.c (frame_pc_unwind): Update.
1422 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1423 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1424 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1425 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1426 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1427 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1429 2003-03-12 Andrew Cagney <cagney@redhat.com>
1431 Eliminate the need for POP_FRAME.
1432 * frame.c (do_frame_unwind_register): New function.
1433 (frame_pop): When no POP_FRAME, pop the frame using register
1434 unwind and a scratch regcache.
1435 (frame_saved_regs_pop): Delete function.
1436 (trad_frame_unwinder): Update.
1437 * d10v-tdep.c (d10v_frame_pop): Delete function.
1438 (d10v_frame_unwind): Update.
1439 * sentinel-frame.c (sentinel_frame_pop): Delete function.
1440 (sentinel_frame_unwinder): Update.
1441 * dummy-frame.c (dummy_frame_pop): Delete function.
1442 (dummy_frame_unwind): Update.
1443 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
1444 (struct frame_unwind): Update.
1446 2003-03-11 Kevin Buettner <kevinb@redhat.com>
1448 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
1449 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
1450 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
1451 Do range checks on register number obtained from debugging info.
1452 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
1453 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
1454 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
1456 (do_fp_register_row): Fix typo which caused double type to be
1457 used when attempting to unpack a float.
1459 2003-03-11 J. Brobecker <brobecker@gnat.com>
1461 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
1463 2003-03-11 Andrew Cagney <cagney@redhat.com>
1465 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
1466 frame. Problem found by Corinna Vinschen.
1468 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
1470 * doublest.c (floatformat_from_length): Accept also
1471 the real size of 'long double' type.
1473 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
1475 From Klee Dienes <kdienes@apple.com>:
1476 * breakpoint.c (bpstat_copy): Copy the command lines as well
1477 as the old value, to match what is freed in bpstat_clear.
1479 2003-03-10 David Carlton <carlton@math.stanford.edu>
1481 * minsyms.c (add_minsym_to_hash_table): Replace
1482 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1483 (compare_minimal_symbols, compact_minimal_symbols)
1484 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
1485 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
1486 of DEPRECATED_SYMBOL_MATCHES_NAME.
1487 (lookup_minimal_symbol_solib_trampoline): Ditto.
1489 2003-03-10 Andrew Cagney <cagney@redhat.com>
1491 * regcache.h (regcache_cooked_read_ftype): Define.
1492 (regcache_save, regcache_restore): Add a cooked_read parameter.
1493 * regcache.c (regcache_save, regcache_restore): Update.
1494 (do_cooked_read): New function.
1495 (regcache_cpy): Pass do_cooked_read to regcache_save and
1498 2003-03-10 Andrew Cagney <cagney@redhat.com>
1500 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1501 * gdbarch.h, gdbarch.c: Re-generate.
1502 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1503 * x86-64-tdep.h: Update.
1504 * x86-64-tdep.c (x86_64_init_abi): Update.
1505 * v850-tdep.c (v850_gdbarch_init): Update.
1506 * sparc-tdep.c (sparc_gdbarch_init): Update.
1507 * sh-tdep.c (sh_gdbarch_init): Update.
1508 * s390-tdep.c (s390_gdbarch_init): Update.
1509 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1510 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1511 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1512 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1513 * mips-tdep.c (mips_gdbarch_init): Update.
1514 * mcore-tdep.c (mcore_gdbarch_init): Update.
1515 * m68k-tdep.c (m68k_gdbarch_init): Update.
1516 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1517 * ia64-tdep.c (ia64_gdbarch_init): Update.
1518 * i386-tdep.c (i386_gdbarch_init): Update.
1519 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1520 * hppa-tdep.c (hppa_gdbarch_init): Update.
1521 * h8300-tdep.c (h8300_gdbarch_init): Update.
1522 * frv-tdep.c (frv_gdbarch_init): Update.
1523 * cris-tdep.c (cris_gdbarch_init): Update.
1524 * avr-tdep.c (avr_gdbarch_init): Update.
1525 * arm-tdep.c (arm_gdbarch_init): Update.
1526 * alpha-tdep.c (alpha_gdbarch_init): Update.
1527 * sh-tdep.c (sh_init_extra_frame_info): Update.
1528 (sh64_init_extra_frame_info): Update.
1529 * ns32knbsd-nat.c (frame_num_args): Update.
1530 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1531 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1532 (xstormy16_frame_chain_valid): Update.
1533 * vax-tdep.c (vax_saved_pc_after_call): Update.
1534 * v850-tdep.c (v850_frame_chain): Update.
1535 (v850_pop_frame): Update.
1536 (v850_init_extra_frame_info): Update.
1537 * sparc-tdep.c (setup_arbitrary_frame): Update.
1538 * ns32k-tdep.c (umax_frame_num_args): Update.
1539 * s390-tdep.c (s390_pop_frame_regular): Update.
1540 * mn10300-tdep.c (mn10300_frame_chain): Update.
1541 (mn10300_pop_frame_regular): Update.
1542 (mn10300_init_extra_frame_info): Update.
1543 * mips-tdep.c (mips_init_frame_pc_first): Update.
1544 (mips_frame_chain): Update.
1545 (mips_pop_frame): Update.
1546 * mcore-tdep.c (mcore_frame_chain): Update.
1547 (mcore_pop_frame): Update.
1548 (mcore_init_extra_frame_info): Update.
1549 * arch-utils.c (init_frame_pc_default): Update.
1550 * m68k-tdep.c (isi_frame_num_args): Update.
1551 (delta68_frame_num_args): Update.
1552 (news_frame_num_args): Update.
1553 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1554 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1555 (alpha_frame_chain): Update.
1556 (alpha_pop_frame): Update.
1557 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1558 (hppa_init_extra_frame_info): Update.
1559 (hppa_frame_chain): Update.
1560 (hppa_frame_chain_valid): Update.
1561 * cris-tdep.c (cris_init_extra_frame_info): Update.
1562 * avr-tdep.c (avr_init_extra_frame_info): Update.
1563 * arm-tdep.c (arm_frame_chain_valid): Update.
1564 (arm_init_extra_frame_info): Update.
1565 (arm_pop_frame): Update.
1566 * frame.c (frame_pc_unwind): Update.
1567 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1568 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1569 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1570 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1571 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1572 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1574 2003-03-10 Andrew Cagney <cagney@redhat.com>
1576 * gdbarch.sh (gdbarch_unwind_pc): New method.
1577 * gdbarch.h, gdbarch.c: Regenerate.
1578 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
1579 but use read_pc and FRAME_SAVED_PC as fall backs.
1580 (frame_saved_regs_pc_unwind): Delete function.
1581 (trad_frame_unwinder): Update.
1582 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
1583 (struct frame_unwind): Update.
1584 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
1585 (dummy_frame_unwind): Update.
1586 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
1587 (sentinel_frame_unwinder): Update.
1588 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
1589 (d10v_frame_unwind): Update.
1590 (d10v_unwind_pc): New function.
1591 (d10v_gdbarch_init): Set unwind_pc.
1593 2003-03-10 Andrew Cagney <cagney@redhat.com>
1595 * gdbarch.h: Re-generate.
1597 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
1599 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
1602 2003-03-08 Mark Kettenis <kettenis@gnu.org>
1604 * gdbarch.sh (save_dummy_frame_tos): Add comment.
1606 2003-03-08 Andrew Cagney <cagney@redhat.com>
1608 * cli-out.c: Update copyright.
1609 (cli_out_data): Define typedef. Use instead of ui_out_data.
1611 2003-03-08 Andrew Cagney <cagney@redhat.com>
1613 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
1616 2003-03-07 Andrew Cagney <cagney@redhat.com>
1618 * gdbarch.sh: Don't generate two macro definitions when an
1619 undefined macro taking no arguments.
1620 * gdbarch.h: Regenerate.
1622 2002-03-07 Michal Ludvig <mludvig@suse.cz>
1624 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
1625 (x86_64_unwind_dummy_id): New functions.
1626 (x86_64_init_abi): Register these two new functions.
1628 2003-03-07 Michal Ludvig <mludvig@suse.cz>
1630 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
1631 (x86_64_skip_prologue): Move prologue detection to
1633 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
1635 2003-03-05 Andrew Cagney <cagney@redhat.com>
1637 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
1638 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
1639 * frame.c (get_prev_frame): Restructure the frame ID unwind code
1640 to use unwind_dummy_id when a dummy frame.
1641 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
1643 * gdbarch.h, gdbarch.c: Regneerate.
1645 2003-03-05 Andrew Cagney <cagney@redhat.com>
1647 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
1648 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
1649 Do not use d10v_read_sp or d10v_read_fp when obtaining register
1652 2003-03-05 Andrew Cagney <cagney@redhat.com>
1654 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
1655 (struct d10v_unwind_cache): Delete field "frameless". Replace
1656 "next_addr" with "sp_offset". Add "r11_offset".
1657 (d10v_frame_unwind_cache): Update.
1658 (prologue_find_regs): Update. When "mv r11, sp", save the
1659 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
1660 RN was saved in r11_offset.
1662 2003-03-05 Andrew Cagney <cagney@redhat.com>
1664 * frame.c (deprecated_update_frame_pc_hack): Also update the the
1665 cached PC value in the next frame.
1667 2003-03-05 Andrew Cagney <cagney@redhat.com>
1669 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
1670 "id_unwind_cache" with "id".
1671 (frame_id_unwind): Delete declaration.
1672 * frame.c (frame_id_unwind): Delete function.
1673 (get_prev_frame): Call the frame id unwind method directly. Store
1674 the returned next frame's ID value in NEXT_FRAME. Note that there
1675 is a problem with the wrong unwind ID being called with the wrong
1678 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
1680 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
1682 2003-03-05 James Ingham <jingham@apple.com>
1683 Daniel Jacobowitz <drow@mvista.com>
1685 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
1686 (auto_cp_abi): New variable.
1687 (current_cp_abi, num_cp_abis): Make static.
1688 (CP_ABI_MAX): Define.
1689 (cp_abis): Turn into an array.
1690 (value_virtual_fn_field): Fix formatting.
1691 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
1693 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
1694 (list_cp_abis, _initialize_cp_abi): New functions.
1695 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
1696 declarations for cp_abis, num_cp_abis, current_cp_abi, and
1697 switch_to_cp_abi. Update prototype for register_cp_abi.
1698 * Makefile.in (cp-abi.o): Update dependencies.
1699 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
1700 instead of switch_to_cp_abi.
1701 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
1703 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
1705 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
1707 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
1709 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
1710 * dwarf2loc.c: Include "regcache.h".
1711 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
1713 * Makefile.in (dwarf2loc.o): Update dependencies.
1715 2003-03-04 Theodore A. Roth <troth@openavr.org>
1717 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
1718 number of io registers reported by remote target is not a multiple of
1721 2003-03-04 David Carlton <carlton@math.stanford.edu>
1723 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
1724 (lookup_symbol_aux_psymtabs): Update call to
1725 lookup_partial_symbol.
1726 (lookup_transparent_type, find_main_psymtab)
1727 (make_symbol_overload_list): Ditto.
1729 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
1731 * MAINTAINERS (Write after approval): Update my email address.
1733 2003-03-03 Andrew Cagney <cagney@redhat.com>
1735 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
1736 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
1737 predicate. Replace MAX_REGISTER_RAW_SIZE.
1738 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
1739 MAX_REGISTER_VIRTUAL_SIZE.
1740 * regcache.c (legacy_max_register_raw_size): New function.
1741 (legacy_max_register_virtual_size): New function.
1742 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
1743 (MAX_REGISTER_RAW_SIZE): Define.
1744 (legacy_max_register_raw_size): Declare.
1745 (legacy_max_register_virtual_size): Declare.
1746 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1747 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
1748 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1749 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1750 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1751 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1752 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1753 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1754 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1755 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1756 * vax-tdep.c (vax_gdbarch_init): Update.
1757 * v850-tdep.c (v850_gdbarch_init): Update.
1758 * sparc-tdep.c (sparc_gdbarch_init): Update.
1759 * sh-tdep.c (sh_gdbarch_init): Update.
1760 * s390-tdep.c (s390_gdbarch_init): Update.
1761 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1762 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1763 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1764 * mips-tdep.c (mips_gdbarch_init): Update.
1765 * mcore-tdep.c (mcore_gdbarch_init): Update.
1766 * m68k-tdep.c (m68k_gdbarch_init): Update.
1767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1768 * ia64-tdep.c (ia64_gdbarch_init): Update.
1769 * i386-tdep.c (i386_gdbarch_init): Update.
1770 * hppa-tdep.c (hppa_gdbarch_init): Update.
1771 * h8300-tdep.c (h8300_gdbarch_init): Update.
1772 * frv-tdep.c (frv_gdbarch_init): Update.
1773 * cris-tdep.c (cris_gdbarch_init): Update.
1774 * avr-tdep.c (avr_gdbarch_init): Update.
1775 * arm-tdep.c (arm_gdbarch_init): Update.
1776 * alpha-tdep.c (alpha_gdbarch_init): Update.
1777 * d10v-tdep.c (d10v_gdbarch_init): Do not set
1778 max_register_raw_size or max_register_virtual_size.
1780 2003-03-03 David Carlton <carlton@math.stanford.edu>
1782 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
1783 SYMBOL_MATCHES_NAME, add comment.
1784 (SYMBOL_MATCHES_NATURAL_NAME): New.
1785 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
1786 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
1787 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
1788 * symtab.c (lookup_partial_symbol): Use
1789 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
1791 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
1792 SYMBOL_MATCHES_NAME.
1795 2003-03-03 David Carlton <carlton@math.stanford.edu>
1797 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
1798 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
1799 by regexp matching against SYMBOL_NATURAL_NAME.
1801 2003-03-03 David Carlton <carlton@math.stanford.edu>
1803 * linespec.c (find_method): Extract code into collect_methods.
1804 (collect_methods): New.
1806 2003-03-02 Mark Kettenis <kettenis@gnu.org>
1808 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
1811 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
1812 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1814 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
1816 * arch-utils.c (generic_register_byte): Fix to use the loop index
1817 and not regnum when summing the size of all registers up to regnum.
1819 2003-03-01 Andrew Cagney <cagney@redhat.com>
1821 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
1822 FRAME_INIT_SAVED_REGS.
1823 * gdbarch.h, gdbarch.c: Regenerate.
1824 * stack.c (frame_info): Update.
1825 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
1826 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
1827 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
1828 * ns32k-tdep.c (ns32k_pop_frame): Update.
1829 * mips-tdep.c (mips_pop_frame): Update.
1830 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
1831 * ia64-tdep.c (ia64_frame_chain): Update.
1832 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
1833 (ia64_frameless_function_invocation): Update.
1834 (ia64_init_extra_frame_info): Update.
1835 (ia64_pop_frame_regular): Update.
1836 * frame.h (struct frame_info): Update comment.
1837 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
1838 * frame.c (frame_saved_regs_register_unwind): Update.
1839 (frame_saved_regs_register_unwind): Update.
1840 (deprecated_generic_get_saved_register): Update.
1841 * cris-tdep.c: Update comment.
1842 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
1844 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1845 * x86-64-tdep.c (x86_64_init_abi): Update.
1846 * vax-tdep.c (vax_gdbarch_init): Update.
1847 * v850-tdep.c (v850_gdbarch_init): Update.
1848 * sparc-tdep.c (sparc_gdbarch_init): Update.
1849 * sh-tdep.c (sh_gdbarch_init): Update.
1850 * s390-tdep.c (s390_gdbarch_init): Update.
1851 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1852 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1853 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1854 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1855 * mips-tdep.c (mips_gdbarch_init): Update.
1856 * mcore-tdep.c (mcore_gdbarch_init): Update.
1857 * m68k-tdep.c (m68k_gdbarch_init): Update.
1858 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1859 * ia64-tdep.c (ia64_gdbarch_init): Update.
1860 * i386-tdep.c (i386_gdbarch_init): Update.
1861 * frv-tdep.c (frv_gdbarch_init): Update.
1862 * avr-tdep.c (avr_gdbarch_init): Update.
1863 * arm-tdep.c (arm_gdbarch_init): Update.
1864 * alpha-tdep.c (alpha_gdbarch_init): Update.
1866 2003-03-01 Andrew Cagney <cagney@redhat.com>
1868 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
1869 option enum and switch. When no windows, set the interpreter to
1872 2003-03-01 Andrew Cagney <cagney@redhat.com>
1874 * main.c (captured_main): Replace magic option characters with an
1877 2003-03-01 Andrew Cagney <cagney@redhat.com>
1879 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
1880 INIT_EXTRA_FRAME_INFO.
1881 * gdbarch.h, gdbarch.c: Regenerate.
1882 * arm-tdep.c: Update comments.
1883 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
1884 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
1885 * frame.h, avr-tdep.c: Ditto.
1886 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
1887 (create_new_frame, legacy_get_prev_frame): Ditto.
1888 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1889 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1890 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
1891 deprecated_init_extra_frame_info instead of init_extra_frame_info.
1892 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1893 * v850-tdep.c (v850_gdbarch_init): Ditto.
1894 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1895 * sh-tdep.c (sh_gdbarch_init): Ditto.
1896 * s390-tdep.c (s390_gdbarch_init): Ditto.
1897 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1898 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1899 * mips-tdep.c (mips_gdbarch_init): Ditto.
1900 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1901 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1902 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1903 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1904 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1905 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1906 * frv-tdep.c (frv_gdbarch_init): Ditto.
1907 * cris-tdep.c (cris_gdbarch_init): Ditto.
1908 * avr-tdep.c (avr_gdbarch_init): Ditto.
1909 * arm-tdep.c (arm_gdbarch_init): Ditto.
1910 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1911 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1913 2003-03-01 Andrew Cagney <cagney@redhat.com>
1915 * gdbarch.sh (register_type): New function with predicate.
1916 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
1917 * gdbarch.h, gdbarch.c: Re-generate.
1918 * arch-utils.c (generic_register_byte): Use generic_register_size.
1919 (generic_register_size): When available, use
1920 gdbarch_register_type.
1921 * regcache.c (init_regcache_descr): When available, initialize the
1922 register type array using gdbarch_register_type. If the
1923 architecture supplies gdbarch_register_type, do not use the legacy
1925 * d10v-tdep.c (d10v_register_type): Replace
1926 d10v_register_virtual_type.
1927 (d10v_gdbarch_init): Set register_type instead of
1928 register_virtual_type.
1930 2003-03-01 Andrew Cagney <cagney@redhat.com>
1932 * Makefile.in (ax-gdb.o): Update dependencies.
1933 * ax-gdb.c: Include "regcache.h".
1934 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
1935 * findvar.c (value_of_register): Ditto.
1936 * infcmd.c (default_print_registers_info): Ditto.
1938 2003-03-01 Mark Kettenis <kettenis@gnu.org>
1940 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
1941 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1943 2003-03-01 Mark Kettenis <kettenis@gnu.org>
1945 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
1948 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
1950 * Makefile.in (dwarf2loc.o): Update dependencies.
1951 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
1952 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
1953 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
1954 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
1955 (locexpr_tracepoint_var_ref): New function.
1956 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
1958 2003-02-28 Andrew Cagney <cagney@redhat.com>
1960 * regcache.c (register_size): New function.
1961 * regcache.h (register_size): Declare
1962 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
1963 max_register_size instead of MAX_REGISTER_RAW_SIZE.
1965 2003-02-28 David Carlton <carlton@math.stanford.edu>
1967 * linespec.c (decode_compound): Extract code into find_method.
1970 2003-02-28 J. Brobecker <brobecker@gnat.com>
1972 * Makefile.in: Add rules to build and link in observer.o.
1974 2003-02-27 J. Brobecker <brobecker@gnat.com>
1976 * observer.c: Minor comments edits.
1978 2003-02-27 J. Brobecker <brobecker@gnat.com>
1980 * observer.h, observer.c: New file.
1982 2003-02-27 Andrew Cagney <cagney@redhat.com>
1984 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
1986 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
1988 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
1989 (M6812_OP_STS_EXT): Likewise.
1990 (m6811_prologue): Use the above to recognize prologue.
1991 (m6812_prologue): Likewise.
1993 2003-02-27 David Carlton <carlton@math.stanford.edu>
1995 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
1997 (compare_psymbols): Ditto.
1998 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
2000 2003-02-27 Michael Snyder <msnyder@redhat.com>
2002 * f-lang.c (build_fortran_types): New function.
2003 (_initialize_f_language): Gdbarch-register built-in fortran types.
2004 * doublest.c (extract_floating): Fix warning text.
2006 2003-02-27 Andrew Cagney <cagney@redhat.com>
2008 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
2009 predicate. Replaces PUSH_DUMMY_FRAME.
2010 * gdbarch.h, gdbarch.c: Regnerate.
2011 * valops.c (hand_function_call): Update. Call
2012 generic_push_dummy_frame directly.
2013 * vax-tdep.c (vax_gdbarch_init): Update.
2014 * sparc-tdep.c (sparc_gdbarch_init): Update.
2015 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2016 * m68k-tdep.c (m68k_gdbarch_init): Update.
2017 * hppa-tdep.c (hppa_gdbarch_init): Update.
2018 * alpha-tdep.c (alpha_gdbarch_init): Update.
2019 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2020 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
2021 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
2022 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
2023 push_dummy_frame to generic_push_dummy_frame.
2024 * v850-tdep.c (v850_gdbarch_init): Ditto.
2025 * sh-tdep.c (sh_gdbarch_init): Ditto.
2026 * s390-tdep.c (s390_gdbarch_init): Ditto.
2027 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2028 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2029 * mips-tdep.c (mips_gdbarch_init): Ditto.
2030 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2031 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2032 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2033 * i386-tdep.c (i386_gdbarch_init): Ditto.
2034 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2035 * frv-tdep.c (frv_gdbarch_init): Ditto.
2036 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2037 * cris-tdep.c (cris_gdbarch_init): Ditto.
2038 * avr-tdep.c (avr_gdbarch_init): Ditto.
2039 * arm-tdep.c (arm_gdbarch_init): Ditto.
2041 2003-02-26 Kevin Buettner <kevinb@redhat.com>
2043 * mips-tdep.c (show_mips_abi): New function.
2044 (_initialize_mips_tdep): Use show_mips_abi() to implement the
2045 command ``show mips abi''.
2047 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
2049 From Elena Zannoni <ezannoni@redhat.com>
2050 * dbxread.c (process_one_symbol): Only record line 0 if one or
2051 more sline entries have been seen for the function.
2053 2003-02-26 Michael Chastain <mec@shout.net>
2055 * configure: Regenerate with autoconf 000227.
2057 2003-02-26 Michael Chastain <mec@shout.net>
2060 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
2061 for old libc5/glibc.
2062 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
2064 2003-02-26 Kris Warkentin <kewarken@qnx.com>
2066 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
2067 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
2069 2003-02-26 Michael Chastain <mec@shout.net>
2071 * configure.in: New variable HAVE_UINTPTR_T.
2072 * configure, config.in: Regenerated.
2074 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
2077 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
2079 2003-02-25 Andrew Cagney <cagney@redhat.com>
2081 * frame.c (get_prev_frame): Add comment on check for
2082 inside_entry_func. Only check for inside_entry_file when not a
2083 dummy and not a sentinel. Check that the new frame is not inner
2086 2003-02-25 Andrew Cagney <cagney@redhat.com>
2088 * frame.c (frame_debug): New variable.
2089 (_initialize_frame): Add "set/show debug frame" command.
2090 (get_prev_frame): When frame_debug, print reason why unwind
2093 2003-02-25 Michael Chastain <mec@shout.net>
2095 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
2096 to avoid uintptr_t definition problems.
2098 2003-02-25 David Carlton <carlton@math.stanford.edu>
2100 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
2101 (SYMBOL_LINKAGE_NAME): Ditto.
2102 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
2103 SYMBOL_LINKAGE_NAME.
2104 (struct general_symbol_info): Expand comment.
2105 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
2106 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
2107 (SYMBOL_MATCHES_REGEXP): Ditto.
2108 * symtab.c (symbol_natural_name): New function.
2109 * objfiles.h: Replace all uses of SYMBOL_NAME by
2110 DEPRECATED_SYMBOL_NAME.
2111 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
2112 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
2113 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
2114 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
2115 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
2116 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
2117 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
2118 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
2119 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
2120 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
2122 * ada-exp.y: Update copyright.
2123 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
2124 * cp-valprint.c: Ditto.
2126 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
2128 * infptrace.c (detach): Do not flag error if ptrace detach fails
2129 and errno is set to ESRCH.
2131 2003-02-24 Andrew Cagney <cagney@redhat.com>
2133 * infptrace.c (udot_info): Change type of udot_off to long. Use
2134 paddr when printing udot_off's value.
2136 2003-02-24 David Carlton <carlton@math.stanford.edu>
2138 * symtab.c (make_symbol_overload_list): Only read in partial
2139 symtabs containing a matching partial symbol.
2141 2003-02-24 David Carlton <carlton@math.stanford.edu>
2143 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
2144 do the comparison, not strcmp.
2145 * symfile.c (compare_psymbols): Ditto.
2146 * defs.h: Declare strcmp_iw_ordered.
2147 * utils.c (strcmp_iw_ordered): New function.
2149 2003-02-24 Jim Blandy <jimb@redhat.com>
2151 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
2152 support, shared libs): Remove my name from here, to better reflect
2155 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2157 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
2158 (target_ops): Add to_have_continuable_watchpoint.
2159 * target.c (update_current_target): Add INHERIT line for
2160 to_have_continuable_watchpoint.
2161 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
2162 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
2163 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
2164 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
2166 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
2168 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
2171 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2173 * solib.c (solib_open): Call target defined search function after
2174 failing with solib-search-path.
2175 * solist.h (target_so_ops): Add find_and_open_solib function hook and
2176 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2178 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2180 * MAINTAINERS: Add myself to Write After section.
2182 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
2184 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
2186 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
2188 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
2189 (m68hc11_add_reggroups): New function.
2190 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
2191 (m68hc11_gdbarch_init): Install the reggroups.
2192 (_initialize_m68hc11_tdep): Initialize them.
2194 2003-02-21 James E Wilson <wilson@tuliptree.org>
2196 * MAINTAINERS: Update my email address.
2198 2003-02-21 David Carlton <carlton@math.stanford.edu>
2200 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
2202 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
2204 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
2205 * symtab.h: Add opaque declarations of struct axs_value and
2207 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
2208 (struct location_funcs): New type.
2209 (struct symbol): Add "loc" to aux_value.
2210 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
2211 * dwarf2read.c: Include "dwarf2expr.h".
2212 (dwarf2_symbol_mark_computed): New function.
2213 (read_func_scope): Use it.
2214 (var_decode_location): New function.
2215 (new_symbol): Use it.
2216 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
2218 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
2219 (dwarf2expr_h, dwarf2loc_h): New variables.
2220 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
2221 (dwarf2expr.o, dwarf2loc.o): New rules.
2222 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
2223 * buildsym.c (finish_block): Handle LOC_COMPUTED and
2225 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2226 * m2-exp.y (yylex): Likewise.
2227 * printcmd.c (address_info, print_frame_args): Likewise.
2228 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
2229 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2230 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
2231 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
2232 * symtab.c (lookup_block_symbol): Likewise.
2234 2003-02-20 Adam Fedor <fedor@gnu.org>
2236 * symtab.h: Remove objc_specific struct
2237 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
2238 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
2239 Have language_objc use cplus_specific struct.
2241 2003-02-20 Tom Tromey <tromey@redhat.com>
2243 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
2244 TYPE_NAME, when printing a String value. PR java/1075.
2246 2003-02-20 Adam Fedor <fedor@gnu.org>
2248 * objc-lang.h (find_methods): Remove declaration.
2249 * objc-lang.c (find_methods): Make static.
2251 2003-02-20 Christopher Faylor <cgf@redhat.com>
2253 * win32-nat.c (get_image_name): Check return value from
2255 (child_xfer_memory): Ditto.
2257 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2259 * configure.in (TARGET_SYSTEM_ROOT): Set default to
2260 ${exec_prefix}/${target_alias}/sys-root. Match explicit
2261 '${exec_prefix}' (in addition to the expansion thereof) as
2263 * configure: Rebuilt.
2265 2003-02-20 David Carlton <carlton@math.stanford.edu>
2267 * symtab.c (search_symbols): Revert the search_symbols part of my
2268 2002-12-23 patch. Add comment.
2270 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2272 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
2273 * dbxread.c (elfstab_build_psymtabs): Don't call
2274 install_minimal_symbols.
2275 (stabsect_build_psymtabs): Likewise.
2276 * elfread.c (elf_symfile_read): Call install_minimal_symbols
2278 * somread.c (som_symfile_read): Call install_minimal_symbols
2279 and do_cleanups earlier.
2280 * nlmread.c (nlm_symfile_read): Likewise.
2281 * mdebugread.c (elfmdebug_build_psymtabs): Call
2282 install_minimal_symbols and make appropriate cleanups.
2284 2003-02-20 Kevin Buettner <kevinb@redhat.com>
2286 * solib.c (reload_shared_libraries): New function.
2287 (_initialize_solib): Add callbacks for ``set solib-search-path''
2288 and ``set solib-absolute-prefix''.
2290 2003-02-20 David Carlton <carlton@math.stanford.edu>
2292 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
2294 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
2295 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
2296 * ada-typeprint.c (ada_typedef_print): Ditto.
2297 * ax-gdb.c (gen_var_ref): Ditto.
2298 * breakpoint.c (print_one_breakpoint): Ditto.
2299 * buildsym.c (finish_block): Ditto.
2300 * c-valprint.c (c_val_print): Ditto.
2301 * expprint.c (print_subexp): Ditto.
2302 * findvar.c (locate_var_value): Ditto.
2303 * infcmd.c (jump_command): Ditto.
2304 * linespec.c (decode_line_2, decode_compound): Ditto.
2305 * maint.c (maintenance_translate_address): Ditto.
2306 * objc-lang.c (compare_selectors, compare_classes): Ditto.
2307 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
2309 * p-valprint.c (pascal_val_print): Ditto.
2310 * stabsread.c (define_symbol): Ditto.
2311 * stack.c (print_frame, frame_info, print_block_frame_locals)
2312 (print_frame_arg_vars, return_command): Ditto.
2313 * symfile.c (compare_symbols, compare_psymbols): Ditto.
2314 * symmisc.c (print_symbol): Ditto.
2315 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
2316 (compare_search_syms, print_symbol_info, print_msymbol_info)
2317 (rbreak_command): Ditto.
2318 * tracepoint.c (tracepoints_info): Ditto.
2319 * typeprint.c (typedef_print): Ditto.
2320 * valops.c (value_of_variable, hand_function_call): Ditto.
2321 * cli/cli-cmds.c (edit_command, list_command): Ditto.
2322 * ada-typeprint.c: Update Copyright.
2323 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
2324 * tracepoint.c, cli/cli-cmds.c: Ditto.
2326 2003-02-20 Kevin Buettner <kevinb@redhat.com>
2328 * frame.c (generic_unwind_get_saved_register): Make non-static.
2329 * frame.h (generic_unwind_get_saved_register): Declare.
2330 * mips-tdep.c (read_next_frame_reg): Fetch register from
2331 current regcache when frame is NULL.
2332 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
2334 (mips_get_saved_register): Call generic_unwind_get_saved_register()
2335 instead of frame_register_unwind().
2337 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2339 * remote-sim.c (gdbsim_insert_breakpoint)
2340 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
2343 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2345 * remote.c (_initialize_remote): Add commands "set/show remote
2346 hardware-watchpoint-limit" and "set/show remote
2347 hardware-breakpoint-limit".
2348 (remote_hw_watchpoint_limit): Initialize to -1.
2349 (remote_hw_breakpoint_limit): Ditto.
2350 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
2352 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
2354 * coff-pe-read.c: New file - support reading of minimal symbols from a
2355 portable executable using the export table.
2356 * coff-pe-read.h: New file.
2357 * coffread.c: Include coff-pe-read.h.
2358 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
2359 debugging symbols found.
2360 * Makefile.in (SFILES): Add coff-pe-read.o.
2361 (coff_pe_read_h): Define.
2362 (COMMON_OBS): Add coff-pe-read.o.
2363 (coffread.o): Add coff_pe_read_h dependency.
2364 (coff-pe-read.o): New target.
2366 2003-02-19 David Carlton <carlton@math.stanford.edu>
2368 * Makefile.in (SFILES): Add block.c.
2370 (COMMON_OBS): Add block.o.
2372 (x86-64-tdep.o): Add $(block_h).
2373 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
2374 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
2375 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
2376 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
2377 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
2378 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
2379 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
2380 * value.h: Add opaque declaration for struct block.
2381 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
2382 * ada-lang.h: Ditto.
2383 * x86-64-tdep.c: #include "block.h"
2384 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
2385 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
2386 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
2387 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
2388 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
2389 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
2390 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
2391 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
2392 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
2393 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
2394 * symtab.c (block_function): Ditto.
2395 (contained_in): Ditto.
2396 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
2397 block.h. Add opaque declaration for struct block.
2398 * symtab.h: Move block_function and contained_in declarations to
2399 block.h. Add opaque declarations for struct block, struct
2401 (struct block): Move to block.h.
2402 (struct blockvector): Ditto.
2403 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
2404 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
2405 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
2406 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
2407 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
2409 * block.c: New file.
2410 * block.h: New file.
2412 2003-02-19 Theodore A. Roth <troth@openavr.org>
2414 * avr-tdep.c (avr_extract_return_value): Remove function.
2415 (avr_store_return_value): Remove function.
2416 (avr_extract_struct_value_address): Remove function.
2417 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
2419 2003-02-19 Andrew Cagney <ac131313@redhat.com>
2421 * rs6000-tdep.c: Include "gdb_assert.h".
2422 (registers_e500): Add "acc" and "spefscr".
2423 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
2424 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
2425 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
2427 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
2429 2003-02-18 Keith Seitz <keiths@redhat.com>
2431 * Makefile.in: Add gdbtk-interps.c.
2433 2003-02-18 Kevin Buettner <kevinb@redhat.com>
2435 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
2436 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
2438 2003-02-18 Andrew Cagney <cagney@redhat.com>
2440 * symtab.h (struct objfile): Add opaque declaration.
2442 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
2444 From Jim Ingham <jingham@apple.com>:
2445 * dbxread.c (process_one_symbol): Use last_function_start rather
2446 than function_start_offset to find the real beginning of the
2447 current function. The latter is just the text section offset on
2448 some systems, the former is always the real function start.
2450 2003-02-17 Andrew Cagney <cagney@redhat.com>
2452 * configure.in: Revert ${target} != ${host}.
2454 2003-02-17 Andrew Cagney <ac131313@redhat.com>
2456 * configure.in (Makefile): Use the test ${target} != ${host},
2457 instead of the absence of the "nm.h" file, to determine of the
2458 configuration non-native.
2459 * configure: Regenerate.
2461 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
2463 From Brian Ford <ford@vss.fsi.com>
2465 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
2466 conditionalize tui_active test.
2467 (lookup_cmd_1): Ditto.
2469 2003-02-14 Mark Kettenis <kettenis@gnu.org>
2471 * configure.in: Add check for _etext.
2472 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
2474 * config.in, configure: regenerated.
2476 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
2478 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
2480 2003-02-14 Andrew Cagney <ac131313@redhat.com>
2482 * main.c (tui_version): Delete variable.
2483 (captured_main): When --tui, set interpreter_p to "tui" instead of
2484 enabling tui_version.
2485 * printcmd.c (display_command) [TUI]: Test tui_active instead of
2487 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
2488 * cli/cli-cmds.c (disassemble_command): Ditto.
2489 * defs.h (tui_version): Delete declaration.
2490 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
2491 (tui-interp.o): Add rules.
2492 (SUBDIR_TUI_OBS): Add "tui-interp.o".
2494 2003-02-14 Christopher Faylor <cgf@redhat.com>
2496 * win32-nat.c (register_loaded_dll): Correctly set address range for
2499 2003-02-12 Jason Molenda (jmolenda@apple.com)
2501 * symmisc.c (print_objfile_statistics): Include information about
2502 the number of psymtabs and symtabs in each object file.
2504 2003-02-13 Keith R Seitz <keiths@redhat.com>
2506 * main.h (struct captured_main_args): Add interpreter_p.
2507 * main.c (captured_main): Initialize interpreter_p from context.
2508 * gdb.c (main): Set interpreter_p argument.
2509 * Makefile.in (gdb.o): Add dependency for interps.h.
2511 2003-02-12 Andrew Cagney <ac131313@redhat.com>
2513 * event-top.c (cli_command_loop): Delete declaration.
2514 (_initialize_event_loop): Delete function setting event_loop_hook.
2515 * event-top.h (cli_command_loop): Declare. Update copyright.
2516 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
2517 * interps.c (current_interp_command_loop): When event_loop_p, call
2520 2003-02-12 Andrew Cagney <ac131313@redhat.com>
2522 * interps.h (interp_command_loop_ftype): Change return type to
2525 2003-02-12 Michal Ludvig <mludvig@suse.cz>
2527 * x86-64-tdep.c (x86_64_extract_return_value)
2528 (x86_64_store_return_value): Use regcache instead of regbuf.
2529 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
2530 * x86-64-linux-nat.c (fill_gregset): Use regcache.
2532 2003-02-11 Andrew Cagney <ac131313@redhat.com>
2534 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
2535 * aclocal.m4: Regenerate.
2536 * configure: Regenerate.
2538 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
2539 TCL_LD_SEARCH_FLAGS.
2541 2003-02-10 Michal Ludvig <mludvig@suse.cz>
2543 * dwarf2cfi.c: Reindented.
2545 2003-02-09 Andrew Cagney <ac131313@redhat.com>
2547 * interps.c (clear_interpreter_hooks): Convert function definition
2550 2003-02-07 David Carlton <carlton@math.stanford.edu>
2552 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
2554 2003-02-07 Kevin Buettner <kevinb@redhat.com>
2556 * gdbtypes.h (struct main_type): Move ``length'' field from here...
2557 (struct type): ...to here.
2558 (TYPE_LENGTH): Adjust to reflect different location of ``length''
2560 * gdbtypes.c (make_qualified_type): Set length on newly created type.
2561 (replace_type): Set length on all type variants for a given type.
2563 2003-02-07 Andrew Cagney <ac131313@redhat.com>
2565 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
2567 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
2569 2003-02-06 Andrew Cagney <ac131313@redhat.com>
2571 * Makefile.in (symm-nat.o): Update dependencies.
2572 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
2573 (lynx-nat.o, ia64-linux-nat.): Ditto.
2574 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
2575 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
2576 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
2578 * Makefile.in (inflow_h): Define.
2579 (procfs.o, inflow.o, procfs.o): Update dependencies.
2580 * inftarg.c (child_stop): Delete extern declaration of
2581 inferior_process_group. Include "inflow.h".
2582 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
2583 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
2584 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
2585 (our_process_group, inferior_process_group): Extern declarations.
2587 * procfs.c: Include "gdb_assert.h".
2589 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2590 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
2591 * jv-typeprint.c (java_type_print_base): Ditto.
2592 * typeprint.c (typedef_print): Eliminate STREQ.
2593 * cli/cli-script.c (define_command, define_command): Ditto.
2594 * main.c (captured_main): Ditto.
2595 * values.c (lookup_internalvar): Ditto.
2596 * utils.c (safe_strerror, parse_escape): Eliminate assignment
2597 within `if' conditional.
2598 * linespec.c (decode_line_2): Ditto.
2599 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
2600 (bfd_openw_with_cleanup): Ditto.
2602 2003-02-07 Mark Kettenis <kettenis@gnu.org>
2604 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
2605 legacy_extract_return_value and store_return_value to
2606 legacy_return_value.
2608 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
2610 * win32-nat.c (get_relocated_section_addrs): New function. Find
2611 section load addresses for symbol handling in relocated DLLs.
2612 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
2614 2003-02-05 Fred Fish <fnf@intrinsity.com>
2616 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
2618 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
2620 (angel_RDI_info): Ditto.
2621 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
2623 (threads_continue_all_with_signals): Ditto.
2625 2003-02-05 Jim Ingham <jingham@apple.com>
2626 Keith Seitz <keiths@redhat.com>
2627 Elena Zannoni <ezannoni@redhat.com>
2628 Andrew Cagney <ac131313@redhat.com>
2630 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
2631 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
2632 (SUBDIR_MI_OBS): Add "mi-interp.o".
2633 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
2634 (SFILES): Add "interps.c".
2635 (COMMON_OBS): Add "interps.o".
2636 (interps_h, mi_main_h): Define.
2637 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
2638 (mi-main.o, main.o, event-top.o): Update dependencies.
2639 * cli/cli-interp.c: New file.
2640 * interps.h, interps.c: New files.
2641 * top.c: (gdb_init): Don't install the default interpreter, handed
2643 * main.c: Include "interps.h".
2644 (interpreter_p): Note that it should malloc'ed.
2645 (captured_command_loop): Call current_interp_command_loop.
2646 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
2647 xfree and xstrdup when updating interpreter_p. Install the
2648 default interpreter. Add hack to stop mi1's copyright notice
2650 * event-top.h (gdb_setup_readline): Declare.
2651 (gdb_disable_readline): Declare.
2652 * event-top.c: Include "interps.h".
2653 (display_gdb_prompt): Call current_interp_display_prompt_p.
2654 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
2655 gdb_stdlog, and gdb_stdtarg.
2656 (_initialize_event_loop): Don't call gdb_setup_readline.
2657 * cli-out.c (cli_out_set_stream): New function.
2658 * cli-out.h (cli_out_set_stream): Declare.
2660 2003-02-06 Mark Kettenis <kettenis@gnu.org>
2662 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
2663 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
2664 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
2665 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
2666 config/i386/i386v42mp.mt: Removed.
2668 2003-02-05 Mark Kettenis <kettenis@gnu.org>
2670 * configure.tgt (*-*-solaris*): Set gdb_osabi to
2673 2003-02-05 Michael Chastain <mec@shout.net>
2675 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
2676 2.12.1 and earlier versions.
2678 2003-02-05 Andrew Cagney <ac131313@redhat.com>
2680 Remove orphaned hosts, targets and files.
2681 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
2682 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
2683 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
2684 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
2685 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
2686 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
2687 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
2688 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
2689 * config/sparc/tm-sp64sim.h: Delete.
2690 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
2692 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
2693 mips*-dec-mach3* targets.
2695 2003-02-04 Michael Chastain <mec@shout.net>
2697 * NEWS: Fix typo: sepcifying -> specifying.
2699 2003-02-04 Michael Chastain <mec@shout.net>
2701 * dwarfread.c: Add documentation on the state of dwarf-1,
2702 looking towards obsoletion.
2704 2003-02-03 Michael Chastain <mec@shout.net>
2706 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
2707 gdb/testsuite/gdb.c++/pr-1023.exp.
2709 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2711 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
2712 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
2714 * utils.c (init_page_info): Delete reference to MPW in comments.
2715 * main.c (captured_main): Delete #ifdef MPW.
2717 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2719 * NEWS: Note that the m32r-*-elf* is obsolete.
2720 * monitor.c (monitor_expect): Obsolete reference to m32r.
2721 * configure.tgt: Mark m32r-*-elf* as obsolete.
2722 * MAINTAINERS: Mark m32k as obsolete.
2723 * m32r-rom.c: Obsolete file.
2724 * config/m32r/m32r.mt: Obsolete file.
2725 * config/m32r/tm-m32r.h: Obsolete file.
2726 * m32r-stub.c: Obsolete file.
2727 * m32r-tdep.c: Obsolete file.
2729 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2731 * NEWS: Mention that the z8k-zilog-none is obsolete.
2732 * MAINTAINERS: Mark z8k as obsolete.
2733 * configure.tgt: Obsolete the z8k-*-coff* target.
2734 * config/z8k/z8k.mt: Obsolete file.
2735 * config/z8k/tm-z8k.h: Obsolete file.
2736 * z8k-tdep.c: Obsolete file.
2738 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2740 * NEWS: Mention that the mn10200-elf is obsolete.
2741 * configure.tgt: Obsolete mn10200-*-* target.
2742 * breakpoint.c (update_breakpoints_after_exec): Update comment to
2743 mention that the mn10200 is obsolete.
2744 * breakpoint.h: Ditto.
2745 * MAINTAINERS: Mark the mn10200-elf as obsolete.
2746 * config/mn10200/mn10200.mt: Obsolete file.
2747 * config/mn10200/tm-mn10200.h: Obsolete file.
2748 * mn10200-tdep.c: Obsolete file.
2750 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2752 * MAINTAINERS: Mark h8500 as obsolete.
2753 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
2754 * findvar.c (value_from_register): Ditto.
2755 * h8500-tdep.c: Mark file as obsolete.
2756 * config/h8500/h8500.mt: Ditto.
2757 * config/h8500/tm-h8500.h: Ditto.
2758 * NEWS: Mention that h8500 is obsolete.
2760 2003-02-04 David Carlton <carlton@math.stanford.edu>
2762 * objfiles.c (allocate_objfile): Always set name. Add comment at
2764 * jv-lang.c (get_dynamics_objfile): Add comment.
2766 2003-02-04 David Carlton <carlton@math.stanford.edu>
2768 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
2769 * printcmd.c (build_address_symbolic): Replace uses of
2770 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
2771 SYMBOL_NAME, and asm_demangle.
2774 2003-02-04 David Carlton <carlton@math.stanford.edu>
2776 * linespec.c (decode_compound): Extract code into
2778 (lookup_prefix_sym): New function.
2780 2003-02-04 David Carlton <carlton@math.stanford.edu>
2782 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
2783 FLOAT_COERCION_BADNESS.
2784 * gdbtypes.c (rank_one_type): Replace all uses of
2785 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
2787 2003-02-04 Jim Blandy <jimb@redhat.com>
2789 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
2790 section, let dwarf_macinfo_section point to it, not
2793 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
2795 Pointed out by Anton Blanchard <anton@samba.org>.
2796 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
2797 (ppc_linux_at_sigtramp_return_path): Use it.
2799 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
2801 * defs.h (streq): Add prototype.
2802 * utils.c (streq): New function.
2804 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
2805 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
2806 * mdebugread.c (new_symbol): Likewise.
2807 * stabsread.c (define_symbol): Likewise.
2808 * coffread.c (process_coff_symbol): Likewise.
2809 * dwarfread.c (new_symbol): Likewise.
2811 * minsyms.c (prim_record_minimal_symbol_and_info): Use
2812 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
2814 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
2815 SYMBOL_INIT_DEMANGLED_NAME.
2816 * objfiles.c: Include "hashtab.h".
2817 (allocate_objfile): Call htab_set_functions_ex for the
2818 demangled_names_hash.
2819 (free_objfile): Call htab_delete for the demangled_names_hash.
2820 * objfiles.h (struct htab): Add declaration.
2821 (struct objfile): Add demangled_names_hash.
2822 * symfile.c: Include "hashtab.h".
2823 (reread_symbols): Call htab_delete for the demangled_names_hash.
2824 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
2825 SYMBOL_NAME in the bcache.
2826 * symtab.c: Include "hashtab.h". Update comments.
2827 (create_demangled_names_hash, symbol_set_names): New functions.
2828 (symbol_find_demangled_name): New function, broken out from
2829 symbol_init_demangled_names.
2830 (symbol_init_demangled_names): Use it.
2831 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
2832 (SYMBOL_SET_NAMES): New macro.
2833 (symbol_set_names): Add prototype.
2835 2003-02-03 Jim Blandy <jimb@redhat.com>
2837 Use a single, consistent representation for an empty minimal
2838 symbol table in an objfile.
2839 * objfiles.c (terminate_minimal_symbol_table): New function.
2840 (allocate_objfile): Call it.
2841 * objfiles.h (terminate_minimal_symbol_table): New declaration.
2842 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
2844 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
2845 objfile has minimal symbols, compare minimal_symbol_count to zero,
2846 instead of comparing msymbols with NULL.
2847 * objfiles.c (have_minimal_symbols): Same.
2848 * solib-sunos.c (solib_add_common_symbols): Call
2849 terminate_minimal_symbol_table.
2850 * symfile.c (reread_symbols): Same.
2852 2003-02-03 Kevin Buettner <kevinb@redhat.com>
2854 * s390-tdep.c (s390_address_class_type_flags)
2855 (s390_address_class_type_flags_to_name)
2856 (s390_address_class_name_to_type_flags): New functions.
2857 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
2858 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
2860 2003-02-03 Michael Snyder <msnyder@redhat.com>
2862 * arm-tdep.c: Fix spell-o in comment.
2864 2003-02-03 Michal Ludvig <mludvig@suse.cz>
2866 * dwarf2cfi.c (pointer_encoding): Added new parameter.
2867 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
2868 error messages to contain BFD filename.
2870 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
2872 Fix PR gdb/742 gdb/743 gdb/877
2873 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
2874 (do_mixed_source_and_assembly): Use
2875 make_cleanup_ui_out_tuple_begin_end and
2876 make_cleanup_ui_out_tuple_begin_end.
2877 (do_mixed_source_and_assembly): Ditto.
2878 * thread.c (do_captured_list_thread_ids): Ditto.
2879 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
2880 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
2881 ui_out_tuple_end): Delete prototypes.
2882 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
2883 ui_out_list_end, ui_out_tuple_end): Delete.
2885 From Kevin Buettner <kevinb@redhat.com>:
2886 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
2887 * ui-out.c (make_cleanup_ui_out_table_begin_end)
2888 (do_cleanup_table_end): New functions.
2889 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
2890 Use cleanups to invoke_ui_out_tuple_end().
2891 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
2892 * cli/cli-setshow.c (cmd_show_list): Use
2893 make_cleanup_ui_out_tuple_begin_end.
2895 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2897 * frame.c (frame_unwind_register): New function.
2898 (frame_unwind_unsigned_register): Use.
2899 (frame_unwind_signed_register): Use.
2900 (frame_read_register): New function.
2901 * frame.h (frame_unwind_register): Declare.
2902 (frame_read_register): Declare.
2904 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
2905 and frame_unwind_register instead of read_memory, write_register
2906 and deprecated_write_register_bytes.
2908 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2910 * frame.h: Note that namelen can be negative.
2911 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
2914 * NEWS: Mention that the d10v's `regs' command is deprecated.
2915 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
2916 (d10v_print_registers_info): New function.
2917 (show_regs): Call d10v_print_registers_info.
2918 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
2920 2003-02-02 Mark Kettenis <kettenis@gnu.org>
2922 * stack.c (print_frame_info): Restore call to annotate_frame_begin
2923 lost in the previous patch.
2925 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2927 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
2928 * stack.c (print_frame_info_base): Output complete FRAME tuple
2929 for synthesized frames.
2931 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2933 * mips-nat.c (zerobuf): Delete.
2934 (fetch_inferior_registers): Alloc local zerobuf.
2935 (fetch_core_registers): Alloc local zerobuf.
2936 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
2937 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
2938 * thread-db.c (thread_db_store_registers): Ditto.
2939 * sh-tdep.c (sh_do_register): Ditto.
2940 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2941 * remote-sim.c (gdbsim_store_register): Ditto.
2942 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2943 * remote-e7000.c (fetch_regs_from_dump): Ditto.
2944 * monitor.c (monitor_supply_register): Ditto.
2945 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
2946 * mips-nat.c (fetch_inferior_registers): Ditto.
2947 * m68klinux-nat.c (fetch_register): Ditto.
2948 * lynx-nat.c (fetch_inferior_registers): Ditto.
2949 (fetch_inferior_registers): Ditto.
2950 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
2951 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
2952 (hpux_thread_store_registers): Ditto.
2953 * hppah-nat.c (fetch_register): Ditto.
2954 * hppab-nat.c (fetch_register): Ditto.
2955 * hppa-tdep.c (pa_register_look_aside): Ditto.
2956 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
2957 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
2959 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2961 * gdbarch.sh: Explictly specify all method levels. When a
2962 variable with an empty level, provide a non-multi-arch default.
2963 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
2964 * gdbarch.h: Re-generate.
2965 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
2966 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
2968 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2970 * defs.h (host_pointer_to_address): Delete declaration.
2971 (address_to_host_pointer): Delete declaration.
2972 * utils.c (host_pointer_to_address): Delete function.
2973 (address_to_host_pointer): Delete function.
2974 * procfs.c (procfs_address_to_host_pointer): New function.
2975 * procfs.c (proc_set_watchpoint): Use.
2976 (procfs_can_use_hw_breakpoint): Update comments.
2977 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
2978 (som_solib_add): Use.
2979 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
2980 * hppa-tdep.c (unwind_command): Use.
2982 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2984 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
2987 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
2988 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
2989 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
2990 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
2991 (define_symbol): Update.
2992 * symfile.c (generic_load): Remove references to nindy.
2993 * symtab.c: Remove references to nindy.
2995 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2997 * infcmd.c (print_float_info): Delete code conditional on
2999 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
3000 * config/m68k/nm-apollo68b.h: Ditto.
3001 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
3002 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
3003 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
3005 2003-02-01 Mark Kettenis <kettenis@gnu.org>
3007 * config/i386/tm-i386os9k.h: Removed.
3009 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
3010 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
3011 they're identical to i[3456]86-*-sysv* now.
3012 * config/i386/i386v32.mh: Removed.
3013 * config/i386/xm-i386v32.h: Removed.
3014 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
3016 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
3018 * config/i386/i386dgux.mh: Removed.
3019 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
3021 * configure.in: Fix typo.
3022 * configure: Regenerated.
3024 2003-01-31 David Carlton <carlton@math.stanford.edu>
3026 * dwarf2read.c (dwarf2_locate_sections): Set
3027 dwarf_ranges_section.
3029 2003-01-31 Andrew Cagney <ac131313@redhat.com>
3031 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
3032 * utils.c: Update comments documenting legitimate uses of PTR.
3034 * utils.c: Re-indent.
3036 * config/djgpp/fnchange.lst: Delete nindy files.
3037 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
3038 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
3039 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
3040 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
3041 * nindy-share/README, nindy-share/Onindy.c: Delete files.
3042 * nindy-tdep.c, nindy-share/Makefile: Delete files.
3043 * Makefile.in (init.c): Remove nindy references.
3044 (saber_gdb): Delete rule.
3045 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
3046 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
3048 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
3049 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
3050 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
3051 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
3053 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
3054 * saber.suppress: Delete file.
3056 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
3058 * dbxread.c (stabs_data): New static variable.
3059 (fill_symbuf): Support an in-memory buffer for stabs data.
3060 (stabs_seek): New function.
3061 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
3062 (read_ofile_symtab): Use stabs_seek.
3063 (elfstab_build_psymtabs): Take an asection* instead of
3064 an offset and size. Relocate the stabs data if necessary.
3065 Save the section* for dbx_psymtab_to_symtab.
3066 * dwarf2read.c: Add section variables for each debug section.
3067 (dwarf2_locate_sections): Fill them in.
3068 (dwarf2_read_section): Take an asection* argument.
3069 Relocate the section contents if necessary.
3070 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
3071 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
3072 it to dwarf2_read_section.
3073 (dwarf2_build_frame_info): Update callers.
3074 * elfread.c (elf_symfile_read): Update call to
3075 elfstab_build_psymtabs.
3076 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
3077 (DBX_STAB_SECTION): New macro.
3078 * stabsread.h (elfstab_build_psymtabs): Update prototype.
3079 * symfile.c (symfile_dummy_outputs): New function.
3080 (symfile_relocate_debug_section): New function.
3081 * symfile.h (symfile_relocate_debug_section): Add prototype.
3083 2003-01-31 Richard Henderson <rth@redhat.com>
3085 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
3086 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
3087 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
3088 * alpha-tdep.c (alpha_register_name): Add "unique".
3089 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
3090 (ALPHA_UNIQUE_REGNUM): New.
3091 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
3093 2003-01-31 Andrew Cagney <ac131313@redhat.com>
3095 * README: Remove reference to Ericsson 1800 monitor.
3096 * Makefile.in (remote-es.o): Delete rule.
3097 (ALLDEPFILES): Delete remote-es.c.
3098 * remote-es.c: Delete file.
3099 * config/m68k/es1800.mt: Delete file.
3100 * config/djgpp/fnchange.lst: Update.
3101 * configure.tgt: Delete m68*-ericsson-* target.
3103 2003-01-31 Adam Fedor <fedor@gnu.org>
3105 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
3106 Remove duplicate/shadowing variable of same name.
3108 2003-01-30 Jim Blandy <jimb@redhat.com>
3110 * symfile.c (find_separate_debug_file): Assert that the objfile's
3111 directory name we compute ends with a slash, and then assume that
3112 that's so everywhere we use it.
3114 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
3116 * valops.c (value_assign): Flush frame cache after stores to memory
3119 2003-01-30 Andrew Cagney <ac131313@redhat.com>
3121 * Makefile.in (mon960-rom.o): Delete rule.
3122 * mon960-rom.c: Delete file.
3124 2003-01-30 Andrew Cagney <ac131313@redhat.com>
3126 * d10v-tdep.c: Include "frame-unwind.h".
3127 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
3129 (next_addr, uses_frame): Delete.
3130 (struct d10v_unwind_cache): Define.
3131 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
3132 Use info instead of next_addr and uses_frame globals.
3133 (d10v_frame_init_saved_regs): Delete function.
3134 (d10v_init_extra_frame_info): Delete function.
3135 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
3136 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
3137 init_frame_pc or frame_saved_pc.
3138 (d10v_pop_frame): Delete function.
3139 (do_d10v_pop_frame): Delete function.
3140 (d10v_frame_chain): Delete function.
3141 (d10v_frame_chain_valid): Delete function.
3142 (d10v_frame_pc_unwind): New function.
3143 (d10v_frame_id_unwind): New function.
3144 (saved_regs_unwinder): New function.
3145 (d10v_frame_register_unwind): New function.
3146 (d10v_frame_pop): New function.
3147 (d10v_frame_unwind): New variable.
3148 (d10v_frame_p): New function.
3149 (d10v_frame_saved_pc): Delete function.
3150 * Makefile.in (d10v-tdep.o): Update dependencies.
3152 2003-01-30 J. Brobecker <brobecker@gnat.com>
3154 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
3155 causing some regressions due to a change in the default value
3158 2003-01-29 Richard Henderson <rth@redhat.com>
3159 Elena Zannoni <ezannoni@redhat.com>
3160 Daniel Jacobowitz <drow@mvista.com>
3163 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
3165 (RANGES_SECTION): New.
3166 (dwarf_ranges_buffer): New variable.
3167 (struct comp_unit_head): Add member "die".
3168 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
3169 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
3170 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
3171 (dwarf2_locate_sections): Likewise.
3172 (dwarf2_build_psymtabs): Read .debug_ranges.
3173 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
3174 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
3175 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
3176 Look for DW_AT_ranges and return the bounding box.
3178 2003-01-29 Brian Ford <ford@vss.fsi.com>
3180 * win32-nat.c (cygwin_pid): Removed as unused.
3181 (child_attach): Try fall back to Cygwin pid.
3183 2003-01-29 Jim Blandy <jimb@redhat.com>
3185 * objfiles.h (struct objfile): Doc fix.
3187 2003-01-29 Andrew Cagney <ac131313@redhat.com>
3189 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
3190 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
3191 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
3192 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
3193 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
3194 (FRAME_SAVED_PC): Change to a function with predicate.
3195 * gdbarch.h, gdbarch.c: Re-generate.
3197 2003-01-28 Andrew Cagney <ac131313@redhat.com>
3199 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
3201 * complaints.c (complain): Delete function.
3202 * complaints.h (struct deprecated_complaint): Delete definition.
3203 (complain): Delete declaration.
3205 2003-01-28 Kevin Buettner <kevinb@redhat.com>
3207 * mips-tdep.c (mips_init_extra_frame_info): Return early for
3210 2003-01-27 Andrew Cagney <ac131313@redhat.com>
3212 * sentinel-frame.h, sentinel-frame.c: New files.
3213 * Makefile.in (frame.o): Update dependencies.
3214 (SFILES): Add sentinel-frame.c.
3215 (sentinel_frame_h): Define.
3216 (COMMON_OBS): Add sentinel-frame.o.
3217 (sentinel-frame.o): Specify dependencies.
3218 * frame.c: Include "sentinel-frame.h".
3219 (frame_register_unwind): Rewrite assuming that there is always a a
3221 (frame_register, generic_unwind_get_saved_register): Ditto.
3222 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
3223 (create_sentinel_frame, unwind_to_current_frame): New functions.
3224 (get_current_frame): Rewrite using create_sentinel_frame and
3225 unwind_to_current_frame. When possible, always create a frame.
3226 (create_new_frame): Set next to the sentinel frame.
3227 (get_next_frame): Rewrite. Don't go below the level 0 frame.
3228 (deprecated_update_frame_pc_hack): Update the next frame's PC and
3229 ID cache when necessary.
3230 (frame_saved_regs_id_unwind): Use frame_relative_level.
3231 (deprecated_generic_get_saved_register): Use frame_relative_level,
3232 get_frame_saved_regs, get_frame_pc, get_frame_base and
3234 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
3237 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3239 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
3241 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3243 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
3244 (maintenance_set_profile_cmd): Use error () instead of warning ().
3246 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3248 * configure.in: Check that -pg works if using --enable-profiling.
3249 Check for monstartup and _mcleanup regardless of --enable-profiling.
3250 * maint.c: Check for monstartup and _mcleanup before using them.
3251 * config.in: Regenerated.
3252 * configure: Regenerated.
3254 2003-01-24 Nick Clifton <nickc@redhat.com>
3258 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
3260 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
3261 (sh2e_show_regs): New.
3262 (sh_gdbarch_init): Handle bfd_mach_sh2e.
3263 * config/sh/tm-sh.h: Added sh2e to comments.
3265 2003-01-23 Jim Blandy <jimb@redhat.com>
3267 * symfile.c (syms_from_objfile): Don't print the "(no debugging
3268 symbols found)" message here; we haven't checked for a separate
3269 debug info file yet, so we don't know yet.
3270 (symbol_file_add_with_addrs_or_offsets): Print it here, after
3271 we've looked everywhere. Also, there's no need to print a special
3272 message when we're loading the separate debug info file: the one
3273 symbol_file_add prints is fine.
3275 2003-01-23 Alexander Larsson <alexl@redhat.com>
3276 Jim Blandy <jimb@redhat.com>
3278 Add support for executables whose debug info has been separated
3279 out into a separate file, leaving only a link behind.
3280 * objfiles.h (struct objfile): New fields: separate_debug_objfile
3281 and separate_debug_objfile_backlink.
3282 (put_objfile_before): New declaration.
3283 * symfile.c: #include "filenames.h".
3284 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
3285 debug info in a separate file, read that, too. Save the addrs
3286 argument, so we can use it again to read the separated debug info;
3287 syms_from_objfile modifies the table we pass it.
3288 (reread_symbols): After re-reading an objfile, call
3289 reread_separate_symbols to refresh its separate debug info
3290 objfile, if it has one.
3291 (reread_separate_symbols, find_separate_debug_file,
3292 get_debug_link_info, separate_debug_file_exists): New functions.
3293 (debug_file_directory): New global var.
3294 (_initialize_symfile): Initialize debug_file_directory, and
3295 provide the new `set debug-file-directory' command to let the user
3297 * objfiles.c (free_objfile): If this objfile has its debug info in
3298 a separate objfile, free that one too. If this is itself a
3299 separate debug info objfile, clear our parent's backlink.
3300 (put_objfile_before): New function.
3301 * utils.c (gnu_debuglink_crc32): New function.
3302 * defs.h (gnu_debuglink_crc32): New declaration.
3303 * Makefile.in (symfile.o): Note dependency on "filenames.h".
3304 * configure.in: Handle --with-separate-debug-dir config option.
3305 * acinclude.m4 (AC_DEFINE_DIR): New macro.
3306 * acconfig.h (DEBUGDIR): New macro.
3307 * configure, aclocal.m4, config.in: Regenerated.
3309 2003-01-22 Jim Blandy <jimb@redhat.com>
3311 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
3312 like the old symbol_file_add, but taking new arguments: you can
3313 now pass in either a `struct section_addr_info' list to say where
3314 each section is loaded, or a `struct section_offsets' table. Pass
3315 these new arguments through to syms_from_objfile as appropriate.
3316 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
3317 with the appropriate quiescent values for the new arguments.
3319 * symfile.c: #include "gdb_assert.h".
3320 (syms_from_objfile): Add the ability to pass in a section offset
3321 table directly, as an alternative to the section_addr_info table.
3322 Document arguments better.
3323 (symbol_file_add): Pass extra arguments to syms_from_objfile.
3324 * symfile.h (syms_from_objfile): Update declaration.
3325 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
3327 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
3329 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
3331 Original patch by Tom Tromey <tromey@cygnus.com> and
3332 Jason Molenda <jmolenda@apple.com>.
3333 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
3334 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
3335 * NEWS: Mention profiling.
3336 * configure.in (--enable-gdbtk): Fix typo.
3337 (--enable-profiling): New. Set PROFILE_CFLAGS.
3338 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
3340 (profiling_state): New variable.
3341 (mcleanup_wrapper): New function.
3342 (_initialize_maint): Remove NOTYET, fix call to
3343 add_setshow_boolean_cmd for "maint set profile".
3344 * configure: Regenerated.
3346 2003-01-21 Martin M. Hunt <hunt@redhat.com>
3348 * Makefile.in (install-gdbtk): Install PNG images too.
3350 2003-01-21 Andrew Cagney <ac131313@redhat.com>
3352 * exec.c (text_start): Delete global variable.
3353 (exec_file_attach): Make text_start local to the function.
3354 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
3355 * valops.c (hand_function_call): Delete code that handles
3356 BEFORE_TEXT_END and AFTER_TEXT_END.
3357 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
3358 of CALL_DUMMY_LOCATION.
3359 * gdbarch.c: Regenerate.
3360 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
3361 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
3362 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
3363 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
3364 (text_end): Delete extern declaration.
3366 2003-01-21 Andrew Cagney <ac131313@redhat.com>
3368 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
3369 * blockframe.c (backtrace_below_main): Move to "frame.c".
3370 (frame_chain_valid): Delete check for backtrace_below_main.
3371 (_initialize_blockframe): Delete initialization, move ``set
3372 backtrace-below-main'' command to "frame.c".
3373 (do_flush_frames_sfunc): Delete function.
3374 * frame.c: Include "command.h" and "gdbcmd.h".
3375 (frame_type_from_pc): New function.
3376 (create_new_frame): Use frame_type_from_pc.
3377 (legacy_get_prev_frame): New function.
3378 (get_prev_frame): Rewrite. When an old style frame, call
3379 legacy_get_prev_frame. Otherwize, unwind the PC first.
3380 (_initialize_frame): Add ``set backtrace-below-main'' command.
3381 * Makefile.in (frame.o): Update dependencies.
3383 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3385 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
3386 DEPRECATED_REGISTERS_INFO.
3388 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3390 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
3391 Maintainers'. Update `Various Maintainers'.
3393 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3395 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
3396 * gdbarch.sh (POP_FRAME): Change to function with predicate.
3397 Suppress actual parameters when `-'.
3398 * gdbarch.h, gdbarch.c: Regenerate.
3400 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3402 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
3403 code handling dummy frames.
3405 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3407 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
3408 (struct frame_unwind): Add field pop.
3409 * frame.h (frame_pop): Declare.
3410 * frame.c (frame_saved_regs_pop): New function.
3411 (trad_frame_unwinder): Add frame_saved_regs_pop.
3412 (frame_pop): New function.
3413 * dummy-frame.c (dummy_frame_pop): New function.
3414 (discard_innermost_dummy): New function.
3415 (generic_pop_dummy_frame): Use discard_innermost_dummy.
3416 (dummy_frame_unwind): Add dummy_frame_pop.
3417 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
3418 * valops.c (hand_function_call): Ditto.
3419 * stack.c (return_command): Ditto.
3421 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3423 * cris-tdep.c: Fix function declaration indentation.
3424 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
3425 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
3426 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
3427 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
3428 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
3429 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
3431 2003-01-18 Michael Chastain <mec@shout.net>
3433 * README (Unpacking and Installation -- quick overview):
3434 Warn against ".../gdb-5.3/gdb/configure".
3436 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3438 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
3439 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3440 (struct frame_unwind): Declare opaque.
3441 (dummy_frame_p): Declare function.
3442 * dummy-frame.c (dummy_frame_id_unwind): Make static.
3443 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3444 * dummy-frame.c: Include "frame-unwind.h".
3445 (dummy_frame_p): New function.
3446 (dummy_frame_unwind): New variable.
3447 * frame.c: Include "frame-unwind.h".
3448 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
3449 to use the new unwind field.
3450 (set_unwind_by_pc): Delete function.
3451 (create_new_frame, get_prev_frame): Set unwind field using
3452 frame_unwind_find_by_pc.
3453 (trad_frame_unwind, trad_frame_unwinder): New variables.
3454 * frame.h (trad_frame_unwind): Declare variable.
3455 (frame_id_unwind_ftype): Delete declaration.
3456 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
3457 (struct frame_unwind): Declare opaque.
3458 (struct frame_info): Replace the fields id_unwind, pc_unwind and
3459 register_unwind with a single unwind pointer.
3460 * frame-unwind.h, frame-unwind.c: New files.
3461 * Makefile.in (SFILES): Add frame-unwind.c.
3462 (frame_unwind_h): Define.
3463 (COMMON_OBS): Add frame-unwind.o.
3464 (frame-unwind.o): Specify dependencies.
3465 (frame.o, dummy-frame.o): Update dependencies.
3467 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3469 * ada-valprint.c: Eliminate PTR.
3470 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
3471 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
3472 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
3473 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
3474 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
3475 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
3476 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
3478 2003-01-17 Andrew Cagney <ac131313@redhat.com>
3480 * main.c (captured_main): Don't use PTR.
3481 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
3482 * gdbtypes.c (lookup_primitive_typename): Ditto.
3483 (lookup_struct_elt_type): Ditto.
3484 * f-valprint.c (info_common_command): Ditto.
3485 (list_all_visible_commons): Ditto.
3486 * jv-typeprint.c (java_type_print_base): Ditto.
3488 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
3489 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
3490 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
3491 i386-interix-nat.c and i386-interix-tdep.c. Rename
3492 m68klinux-nat.c and m68klinux-tdep.c. Rename
3493 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
3494 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
3495 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
3496 * main.c (captured_main): Use xfree, not free.
3498 2003-01-16 Andrew Cagney <ac131313@redhat.com>
3500 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
3501 ID back using a parameter.
3502 * frame.c (frame_id_unwind): Update call.
3503 (frame_saved_regs_id_unwind): Update.
3504 * dummy-frame.c (dummy_frame_id_unwind): Update function.
3505 * dummy-frame.h (struct frame_id): Add opaque declaration.
3506 (dummy_frame_id_unwind): Update declaration.
3508 2003-01-15 Andrew Cagney <ac131313@redhat.com>
3510 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
3512 2003-01-15 Stephen P. Smith <ischis2@cox.net>
3514 * MAINTAINERS (Stephen P. Smith): Updated email address.
3516 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
3519 * breakpoint.c (until_break_command): Add new argument. Use it to
3520 decide whether to stop only at the current frame or not.
3521 * breakpoint.h (until_break_command): Update prototype.
3522 * infcmd.c (until_command): Add new argument to until_break_command
3524 (advance_command): New function.
3525 (_initialize_infcmd): Update help string for 'until' command.
3526 Add new 'advance' command.
3528 2003-01-14 David Carlton <carlton@math.stanford.edu>
3530 * linespec.c (decode_line_1): Normalize comments.
3532 (locate_first_half): Ditto.
3533 (decode_compound): Ditto.
3534 (symtab_from_filename): Ditto.
3535 (decode_all_digits): Ditto.
3536 (decode_dollar): Ditto.
3537 (find_methods): Ditto.
3538 (find_toplevel_char): Ditto.
3540 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3542 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
3543 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
3544 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
3545 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
3546 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
3547 * language.c, language.h, m32r-tdep.c: Update copyright.
3548 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
3549 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
3550 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
3551 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
3552 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
3553 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
3555 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3557 * stabsread.h (process_later, resolve_cfront_continuation):
3559 Update copyright years.
3560 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
3561 Update copyright year.
3562 * dbxread.c(struct cont_elem): Obsolete.
3563 (process_later, process_now): Obsolete functions.
3564 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
3565 Update copyright year.
3566 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
3567 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
3568 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
3569 (parse_partial_symbols): Obsolete cfront support.
3571 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
3573 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
3574 read_cfront_baseclasses, read_cfront_member_functions,
3575 resolve_cfront_continuation,read_cfront_static_fields,
3576 copy_cfront_struct_fields): Obsolete functions.
3577 (define_symbol, read_one_struct_field): Obsolete cfront support.
3578 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
3579 Update Copyright year.
3581 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3583 * stack.c (print_frame_info, print_stack_frame_base_stub,
3584 print_stack_frame_base, show_and_print_stack_frame_stub,
3585 show_and_print_stack_frame, print_only_stack_frame_stub,
3586 print_only_stack_frame): Delete functions.
3587 (print_stack_frame_stub): Call print_frame_info instead of
3588 print_frame_info_base.
3589 (print_frame_info_base): Rename to print_frame_info.
3590 (backtrace_command_1): Call print_frame_info, instead of
3591 print_frame_info_base.
3592 (current_frame_command): Call print_stack_frame, instead of
3593 print_only_stack_frame.
3594 (frame_command): Call print_stack_frame, instead of
3595 show_and_print_stack_frame.
3596 (up_command): Ditto.
3597 (down_command): Ditto.
3598 * frame.h (print_only_stack_frame): Delete prototype.
3599 * infrun.c (normal_stop): Call print_stack_frame, instead of
3600 show_and_print_stack_frame.
3601 * thread.c (info_threads_command): Call print_stack_frame, instead
3602 of print_only_stack_frame.
3604 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3606 * README (Graphical interface to GDB): Update URL. Point at
3609 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
3612 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3614 * symtab.c (find_pc_sect_line): Don't consider end-of-function
3617 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3619 * thread-db.c (attach_thread): Prototype.
3620 (struct private_thread_info): Remove lwpid. Add thread handle (th),
3621 thread information (ti), and valid flags (th_valid, ti_valid).
3622 (attach_thread): Move target_pid_to_str call to after the thread
3623 is added to GDB's list. Initialize the cache.
3624 (thread_get_info_callback, thread_db_map_id2thr)
3625 (thread_db_get_info): New functions.
3626 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
3627 (thread_db_store_registers, thread_db_thread_alive)
3628 (thread_db_get_thread_local_address): Use them.
3629 (thread_db_pid_to_str): Likewise. Return "Missing" instead
3630 of calling error() for threads in unknown state.
3632 (clear_lwpid_callback): New function.
3633 (thread_db_resume): Use it to clear the cache.
3635 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3637 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
3638 (resume_callback): Remove dead code.
3640 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3642 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
3644 * gdbarch.h, gdbarch.c: Regenerate.
3645 * stack.c (frame_info): Only initialize the saved registers when
3646 FRAME_INIT_SAVED_REGS_P.
3647 * frame.c (frame_saved_regs_register_unwind): Assert
3648 FRAME_INIT_SAVED_REGS_P.
3649 (deprecated_generic_get_saved_register): Ditto.
3651 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3653 * source.c (openp): Squelch warning about "filename".
3655 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3657 * source.c (openp): If the file does not exist don't necessarily
3660 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3663 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
3664 (integer_types_same_name_p): New function.
3665 (rank_one_type): Use it.
3666 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
3668 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3670 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
3672 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
3673 * configure.in: Add --with-sysroot.
3674 * configure: Regenerated.
3675 * main.c (gdb_sysroot): New variable.
3676 (captured_main): Initialize gdb_sysroot.
3677 * defs.h (gdb_sysroot): New extern declaration.
3678 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
3680 2003-01-12 Michael Chastain <mec@shout.net>
3682 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
3684 2003-01-12 Michael Chastain <mec@shout.net>
3686 * top.c (print_gdb_version): Bump copyright year to 2003.
3688 2003-01-12 David Carlton <carlton@bactrian.org>
3690 * linespec.c (symtab_from_filename): Rename variable 's' to
3693 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3695 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
3697 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
3699 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3701 * d10v-tdep.c: Include "gdb_assert.h".
3702 (d10v_store_return_value): Rewrite to match current interface.
3703 (d10v_extract_struct_value_address): Ditto.
3704 (d10v_extract_return_value): Ditto.
3705 (d10v_gdbarch_init): Set store_restore_value,
3706 extract_struct_value_address and extract_return_value.
3708 2003-01-12 J. Brobecker <brobecker@gnat.com>
3710 * hpread.c (set_namestring): New procedure replacing the
3711 SET_NAMESTRING macro.
3712 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
3713 by calls to set_namestring.
3715 2003-01-11 J. Brobecker <brobecker@gnat.com>
3717 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
3718 a compilation warning.
3719 (hpread_process_one_debug_symbol): Likewise.
3721 2003-01-10 David Carlton <carlton@math.stanford.edu>
3723 * linespec.c (decode_line_1): Rename variable 's' to
3725 (decode_all_digits): Rename argument 's' to 'file_symtab'.
3726 (decode_dollar): Ditto.
3727 (decode_variable): Ditto.
3728 (symbol_found): Ditto.
3730 2003-01-09 Michael Chastain <mec@shout.net>
3732 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
3734 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
3736 * win32-nat.c (set_process_privilege): New function.
3737 (child_attach): Call set_process_privilege() to enable the
3738 SE_DEBUG_NAME user privilege if available in process token.
3740 2003-01-10 J. Brobecker <brobecker@gnat.com>
3742 * hpread.c (hpread_process_one_debug_symbol): Fix a small
3743 compilation error in the previous revision.
3745 2003-01-09 David Carlton <carlton@math.stanford.edu>
3747 * linespec.c: Update copyright.
3749 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
3751 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
3753 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
3755 2003-01-09 Andrew Cagney <ac131313@redhat.com>
3757 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
3759 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
3760 (frame_saved_regs_zalloc): Update.
3761 (frame_saved_regs_register_unwind): Update.
3762 (create_new_frame): Update.
3763 (get_prev_frame): Update.
3764 (frame_extra_info_zalloc): Update.
3765 (deprecated_get_frame_saved_regs): Update.
3766 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
3767 * cris-tdep.c: Update comment.
3769 * somsolib.h: Fix function indentation.
3770 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
3771 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
3772 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
3773 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
3774 * somsolib.c, inftarg.c: Remove assignment in if conditional.
3776 * infrun.c (follow_fork): Use ISO C definition.
3777 * expprint.c (print_subexp): Use xfree instead of free.
3778 * charset.c: Include "gdb_string.h" instead of <string.h>.
3779 (register_iconv_charsets): Use ISO C definition.
3780 (host_charset, target_charset): Ditto.
3781 * Makefile.in (charset.o): Update dependencies.
3782 (mi-cmd-env.o): Update dependencies.
3784 2003-01-08 Andrew Cagney <cagney@redhat.com>
3786 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
3789 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3791 * gdb_mbuild.sh: Add --keep option. When specified, keep the
3792 build directories. Save edited gdb output in Mbuild.log. If a
3793 build fails, remove any final GDB executable.
3795 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3797 * gdb_mbuild.sh: Edit the output of `maint print architecture'
3798 replacing hex constants with function names and stripping leading
3799 file name directory prefixes.
3801 2003-01-08 Andrew Cagney <cagney@redhat.com>
3803 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
3806 2003-01-08 David Carlton <carlton@math.stanford.edu>
3808 * linespec.c (decode_line_1): Move code into decode_variable.
3809 (decode_variable): New function.
3811 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3813 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
3815 2003-01-08 Andrew Cagney <cagney@redhat.com>
3817 * cris-tdep.c (cris_frame_init_saved_regs): Use
3818 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
3820 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
3821 (sh64_nofp_frame_init_saved_regs): Ditto.
3822 (sh_fp_frame_init_saved_regs): Ditto.
3823 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
3824 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3825 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3826 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3828 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
3830 * minsyms.c (lookup_minimal_symbol): Update comment.
3831 (lookup_minimal_symbol_text): Update comment. Use the hash table.
3832 (lookup_minimal_symbol_solib_trampoline): Likewise.
3834 2003-01-08 Andrew Cagney <cagney@redhat.com>
3836 * d10v-tdep.c (d10v_init_extra_frame_info): Use
3837 frame_relative_level.
3839 * alpha-tdep.c: Use get_frame_extra_info.
3840 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3841 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
3842 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3843 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
3845 * alpha-tdep.c: Use get_next_frame.
3846 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3847 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3848 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
3849 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
3850 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
3851 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
3852 * xstormy16-tdep.c: Ditto.
3854 2003-01-07 Andrew Cagney <cagney@redhat.com>
3856 * alpha-tdep.c: Use get_frame_base.
3857 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3858 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3859 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3860 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3861 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
3862 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3863 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
3864 * config/sparc/tm-sparc.h: Ditto.
3866 2003-01-07 Andrew Cagney <cagney@redhat.com>
3868 * frame.c (deprecated_get_frame_context): New function.
3869 (deprecated_set_frame_context): New function.
3870 * frame.h (deprecated_get_frame_context): Declare.
3871 (deprecated_set_frame_context): Declare.
3872 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
3873 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
3875 2003-01-07 Andrew Cagney <cagney@redhat.com>
3877 * frame.c (deprecated_set_frame_next_hack): New function.
3878 (deprecated_set_frame_prev_hack): New function.
3879 * frame.h (deprecated_set_frame_next_hack): Declare.
3880 (deprecated_set_frame_prev_hack): Declare.
3881 * mcore-tdep.c (analyze_dummy_frame): Use
3882 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
3883 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3885 2003-01-07 David Carlton <carlton@math.stanford.edu>
3887 * linespec.c (decode_line_1): Move code into decode_dollar.
3888 (decode_dollar): New function.
3890 2003-01-07 Andrew Cagney <cagney@redhat.com>
3892 * arm-tdep.c (arm_init_extra_frame_info): Use
3893 deprecated_update_frame_base_hack.
3894 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
3895 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3896 (fix_frame_pointer): Ditto.
3897 (mn10300_analyze_prologue): Ditto.
3899 2003-01-07 Andrew Cagney <cagney@redhat.com>
3901 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
3902 extra_info using frame_extra_info_zalloc.
3903 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
3904 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
3905 (sh64_init_extra_frame_info): Ditto.
3906 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
3907 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
3908 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3909 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
3910 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
3911 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
3912 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
3913 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
3914 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
3915 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
3916 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
3917 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
3919 * mn10300-tdep.c (analyze_dummy_frame): Use
3920 deprecated_set_frame_extra_info_hack.
3921 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3923 2003-01-07 J. Brobecker <brobecker@gnat.com>
3925 * mdebugread.c (parse_symbol): Skip stProc entries which storage
3926 class is not scText. These do not define "real" procedures.
3927 (parse_partial_symbols): Likewise.
3929 2003-01-06 Michael Snyder <msnyder@redhat.com>
3931 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
3933 2003-01-06 Andrew Cagney <ac131313@redhat.com>
3935 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
3936 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
3937 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
3938 deprecated_frame_xmalloc_with_cleanup.
3939 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
3940 deprecated_frame_xmalloc.
3941 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
3942 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
3944 2003-01-06 Andrew Cagney <cagney@redhat.com>
3946 * x86-64-linux-tdep.c: Include "osabi.h".
3947 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
3949 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
3951 2003-01-06 Andrew Cagney <cagney@redhat.com>
3953 * MAINTAINERS (Target Instruction Set Architectures): Update
3954 arm-elf. Can be built with -Werror, has been multiarched.
3956 * value.h (unpack_long): Make buffer parameter constant.
3957 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
3958 * scm-lang.h (scm_parse): Ditto.
3959 * defs.h (extract_typed_address, extract_address): Ditto.
3960 (extract_long_unsigned_integer): Ditto.
3961 * inferior.h (unsigned_pointer_to_address): Ditto.
3962 (signed_pointer_to_address): Ditto.
3963 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
3964 * gdbarch.h, gdbarch.c: Regenerate.
3965 * findvar.c (extract_long_unsigned_integer): Update.
3966 (extract_address): Update.
3967 (extract_typed_address): Update.
3968 (unsigned_pointer_to_address): Update.
3969 * values.c (unpack_long): Update.
3970 (unpack_double): Update.
3971 (unpack_pointer): Update.
3972 (unpack_field_as_long): Update.
3973 * d10v-tdep.c (d10v_pointer_to_address): Update.
3974 * avr-tdep.c (avr_pointer_to_address): Update.
3975 * scm-lang.c (scm_unpack): Update.
3976 * findvar.c (signed_pointer_to_address): Update.
3978 2003-01-06 Michal Ludvig <mludvig@suse.cz>
3980 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
3981 since it is in i386-tdep.c.
3983 2003-01-06 J. Brobecker <brobecker@gnat.com>
3985 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
3986 failure introduced in the previous change.
3988 2003-01-05 Michael Chastain <mec@shout.net>
3990 * README: Remove references to deleted remote-*.c files:
3991 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
3992 remote-nrom.c, remote-os9k.c, remote-udi.c.
3994 2003-01-05 Mark Kettenis <kettenis@gnu.org>
3996 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
3997 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
3998 i386_get_longjmp_target.
4000 2003-01-05 Andrew Cagney <ac131313@redhat.com>
4002 * arm-tdep.c (prologue_cache): Change to a pointer.
4003 (_initialize_arm_tdep): Allocate prologue_cache.
4004 (check_prologue_cache): Update.
4005 (save_prologue_cache): Update.
4006 (arm_gdbarch_init): Update.
4008 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4010 * stabsread.c (update_method_name_from_physname): Call complaint()
4013 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4015 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
4016 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
4017 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
4019 * blockframe.c: Include "gdbcmd.h" and "command.h".
4020 (backtrace_below_main): New variable.
4021 (file_frame_chain_valid, func_frame_chain_valid)
4022 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
4023 (generic_func_frame_chain_valid): Remove functions.
4024 (frame_chain_valid, do_flush_frames_sfunc): New functions.
4025 (_initialize_blockframe): New function.
4026 * Makefile.in (blockframe.o): Update dependencies.
4027 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
4028 comment. Call frame_chain_valid ().
4029 * frame.h: Remove old prototypes. Add prototype for
4030 frame_chain_valid and update comments to match.
4031 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
4033 * gdbarch.h: Regenerated.
4034 * gdbarch.c: Regenerated.
4036 * alpha-tdep.c (alpha_gdbarch_init): Don't call
4037 set_gdbarch_frame_chain_valid.
4038 * avr-tdep.c (avr_gdbarch_init): Likewise.
4039 * cris-tdep.c (cris_gdbarch_init): Likewise.
4040 * frv-tdep.c (frv_gdbarch_init): Likewise.
4041 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4042 * i386-tdep.c (i386_svr4_init_abi): Likewise.
4043 (i386_nw_init_abi): Likewise.
4044 (i386_gdbarch_init): Likewise.
4045 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4046 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4047 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4048 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
4049 * mips-tdep.c (mips_gdbarch_init): Likewise.
4050 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4051 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
4052 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
4053 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4054 * s390-tdep.c (s390_gdbarch_init): Likewise.
4055 * sh-tdep.c (sh_gdbarch_init): Likewise.
4056 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4057 * v850-tdep.c (v850_gdbarch_init): Likewise.
4058 * vax-tdep.c (vax_gdbarch_init): Likewise.
4059 * x86-64-tdep.c (x86_64_init_abi): Likewise.
4061 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
4062 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
4063 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
4064 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
4065 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
4066 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
4067 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
4068 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
4070 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4072 * Makefile.in (acconfig_h): Remove incorrect macro.
4074 (osabi.o): Update dependencies.
4075 * configure.tgt: Set gdb_osabi based on target triplet.
4076 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
4077 * configure: Regenerated.
4078 * config.in: Regenerated.
4079 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
4080 (GDB_OSABI_DEFAULT): Define if not already defined.
4081 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
4082 (set_osabi_string): New variables.
4083 (gdbarch_register_osabi): Add new OS ABI to
4084 gdb_osabi_available_names.
4085 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
4086 (set_osabi, show_osabi): New functions.
4087 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
4089 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4091 * arch-utils.c (gdbarch_info_init): Set osabi to
4092 GDB_OSABI_UNINITIALIZED.
4093 * gdbarch.sh: Add osabi to struct gdbarch and to struct
4094 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
4095 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
4096 * gdbarch.c: Regenerated.
4097 * gdbarch.h: Regenerated.
4098 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
4100 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
4101 * osabi.h (enum gdb_osabi): Move to defs.h.
4102 (gdbarch_init_osabi): Update prototype.
4103 * defs.h (enum gdb_osabi): Moved here.
4104 * Makefile.in: Update dependencies.
4106 * alpha-tdep.h: Don't include "osabi.h".
4107 (struct gdbarch_tdep): Remove osabi member.
4108 * alpha-tdep.c: Include "osabi.h".
4109 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4110 iterate over arches. Update call to gdbarch_init_osabi.
4111 (alpha_dump_tdep): Don't dump osabi.
4112 * alpha-linux-tdep.c: Include "osabi.h".
4113 * alpha-osf1-tdep.c: Include "osabi.h".
4114 * alphafbsd-tdep.c: Include "osabi.h".
4115 * alphanbsd-tdep.c: Include "osabi.h".
4117 * arm-tdep.h: Don't include "osabi.h".
4118 (struct gdbarch_tdep): Remove osabi member.
4119 * arm-tdep.c: Include "osabi.h".
4120 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4121 iterate over arches. Update call to gdbarch_init_osabi.
4122 (arm_dump_tdep): Don't dump osabi.
4123 * arm-linux-tdep.c: Include "osabi.h".
4124 * armnbsd-tdep.c: Include "osabi.h".
4126 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
4127 Update call to gdbarch_init_osabi.
4129 * i386-tdep.h: Don't include "osabi.h".
4130 (struct gdbarch_tdep): Remove osabi member.
4131 * i386-tdep.c: Include "osabi.h".
4132 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4133 iterate over arches. Update call to gdbarch_init_osabi.
4134 (i386_dump_tdep): Don't dump osabi.
4135 * i386-linux-tdep.c: Include "osabi.h".
4136 * i386-sol2-tdep.c: Include "osabi.h".
4137 * i386bsd-tdep.c: Include "osabi.h".
4138 * i386gnu-tdep.c: Include "osabi.h".
4139 * i386ly-tdep.c: Include "osabi.h".
4140 * i386nbsd-tdep.c: Include "osabi.h".
4141 * i386obsd-tdep.c: Include "osabi.h".
4143 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
4144 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4145 check osabi when iterating over arches. Update call to
4147 (mips_dump_tdep): Don't dump osabi.
4149 * ns32k-tdep.h: Don't include "osabi.h".
4150 (struct gdbarch_tdep): Remove.
4151 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
4152 gdbarch_lookup_osabi. Don't iterate over arches. Don't
4153 allocate tdep. Update call to gdbarch_init_osabi.
4154 (ns32k_dump_tdep): Remove.
4155 (_initialize_ns32k_tdep): Update call to gdbarch_register.
4156 * ns32knbsd-tdep.c: Include "osabi.h".
4158 * ppc-tdep.h: Don't include "osabi.h".
4159 (struct gdbarch_tdep): Remove osabi member.
4160 * rs6000-tdep.c: Include "osabi.h".
4161 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
4162 osabi when iterating over arches. Update call to
4164 (rs6000_dump_tdep): Don't dump osabi.
4165 * ppc-linux-tdep.c: Include "osabi.h".
4166 * ppcnbsd-tdep.c: Include "osabi.h".
4168 * sh-tdep.h: Don't include "osabi.h".
4169 (struct gdbarch_tdep): Remove osabi member.
4170 * sh-tdep.c: Include "osabi.h".
4171 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4172 iterate over arches. Update call to gdbarch_init_osabi.
4173 (sh_dump_tdep): Don't dump osabi.
4174 * shnbsd-tdep.c: Include "osabi.h".
4176 * sparc-tdep.c: Include "osabi.h".
4177 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4178 iterate over arches. Update call to gdbarch_init_osabi.
4179 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
4182 * vax-tdep.h: Don't include "osabi.h".
4183 (struct gdbarch_tdep): Remove.
4184 * vax-tdep.c: Include "osabi.h".
4185 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4186 iterate over arches. Don't allocate tdep. Update call
4187 to gdbarch_init_osabi.
4188 (vax_dump_tdep): Remove.
4189 (_initialize_vax_tdep): Update call to gdbarch_register.
4191 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4193 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
4195 (breakpoint_re_set_one): Don't fetch the value for a disabled
4198 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4200 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
4201 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
4202 (COERCE_FLOAT_TO_DOUBLE): Remove.
4203 * gdbarch.c: Regenerate.
4204 * gdbarch.h: Regenerate.
4205 * Makefile.in: Remove value_h from gdbarch_h.
4206 * valops.c (coerce_float_to_double): New variable.
4207 (default_coerce_float_to_double): Remove.
4208 (standard_coerce_float_to_double): Remove.
4209 (value_arg_coerce): Use coerce_float_to_double.
4210 (_initialize_valops): Add "set coerce-float-to-double".
4211 * value.h (default_coerce_float_to_double): Remove prototype.
4212 (standard_coerce_float_to_double): Remove prototype.
4214 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
4216 * mdebugread.c (parse_symbol): Likewise.
4217 * stabsread.c (define_symbol): Mark all functions as prototyped.
4219 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
4220 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
4221 set_gdbarch_coerce_float_to_double.
4222 * arm-tdep.c (arm_gdbarch_init): Likewise.
4223 * frv-tdep.c (frv_gdbarch_init): Likewise.
4224 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
4225 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
4226 * mips-tdep.c (mips_gdbarch_init): Likewise.
4227 (mips_coerce_float_to_double): Remove.
4228 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4229 (rs6000_coerce_float_to_double): Remove.
4230 * s390-tdep.c (s390_gdbarch_init): Likewise.
4231 * sh-tdep.c (sh_gdbarch_init): Likewise.
4232 (sh_coerce_float_to_double): Remove.
4233 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4234 (sparc_coerce_float_to_double): Remove.
4235 * v850-tdep.c (v850_gdbarch_init): Likewise.
4236 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4237 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4238 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
4239 (hppa_coerce_float_to_double): Remove prototype.
4240 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4242 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4244 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
4246 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4248 Suggested by Stewart Brown <sb24@avaya.com>:
4249 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
4250 in recursive calls. Handle TYPE_CODE_TYPEDEF.
4251 (c_type_print_varspec_suffix): Likewise.
4253 2003-01-04 Mark Kettenis <kettenis@gnu.org>
4255 * configure.in: Don't set and AC_SUBST SUBDIRS.
4256 * configure: Regenerated.
4258 * configure.in: Remove code dealing with shared libraries.
4259 * Makefile.in: Remove HLDFLAGS and HLDENV.
4260 * configure: Regenerated.
4262 2003-01-04 Andrew Cagney <ac131313@redhat.com>
4264 * frame.c (deprecated_frame_xmalloc): New function.
4265 (deprecated_set_frame_saved_regs_hack): New function.
4266 (deprecated_set_frame_extra_info_hack): New function.
4267 * frame.h (deprecated_frame_xmalloc): Declare.
4268 (deprecated_set_frame_saved_regs_hack): Declare.
4269 (deprecated_set_frame_extra_info_hack): Declare.
4271 2003-01-04 Mark Kettenis <kettenis@gnu.org>
4273 * configure.in: Move code that provides the --enable-gdbtk option
4274 right after the code that handles the --enable-tui option, and
4276 * configure: Regenerated.
4278 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
4279 AC_CHECK_FUNCS and remove the old check for pread64.
4280 * acinclude.m4 (AC_GNU_SOURCE): New macro.
4281 * acconfig.h (_GNU_SOURCE): Add.
4282 (HAVE_PREAD64): Remove.
4283 * configure, aclocal.m4, config.in: Regenerated.
4285 2003-01-03 Andrew Cagney <ac131313@redhat.com>
4287 * alpha-tdep.c: Use get_frame_saved_regs.
4288 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4289 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
4290 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
4291 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
4292 * vax-tdep.c, xstormy16-tdep.c: Ditto.
4294 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4296 * configure.in: Remove all use of the SUBDIRS variable; add
4297 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
4298 code providing the --enable-multi-ice option, and move it right in
4299 front of the code that checks whether gdbserver is supported.
4301 * configure: Regenerated.
4302 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
4305 2003-01-03 Andrew Cagney <cagney@redhat.com>
4307 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
4308 * avr-tdep.c, cris-tdep.c: Ditto.
4309 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
4310 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4312 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4314 * configure.in: Remove --enable-netrom option.
4315 * configure: Regenerated.
4317 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4319 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
4320 declaration for `struct re_pattern_buffer' instead.
4321 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
4323 2003-01-03 J. Brobecker <brobecker@gnat.com>
4325 * mdebugread.c (parse_symbol): Count until the stEnd matching
4328 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4330 * configure.in: Remove --with-cpu option.
4331 subscripts. Remove evil changequotes here.
4332 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
4333 * config.in, configure: Regenerated.
4335 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
4336 * configure.in: Cleanup section that sources GDB and BFD configure
4337 subscripts. Remove evil changequotes here.
4338 * config.in, configure: Regenerated.
4340 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4342 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
4343 frame accessor methods.
4344 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4345 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
4346 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
4347 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
4348 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4349 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
4350 * z8k-tdep.c: Ditto.
4352 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4354 * configure.in: Remove UI_OUT configuration code.
4355 * ada-lang.c: Update assuming UI_OUT is always true.
4356 * Makefile.in (UIOUT_CFLAGS): Remove.
4357 * configure: Regenerated.
4358 * TODO: Remove blurb about elimination of -DUI_OUT.
4360 * configure.in: Move code that provides the --enable-gdbcli,
4361 --enable-gdbmi options right before the code that handles the
4362 --enable-tui option. Polish a bit.
4363 * configure: Regenerated.
4365 * configure.in: Rewrite check for GNU regex and the
4366 --without-included regex option, and move it into the "Checks for
4367 library functions" section. This makes us use the system regex
4368 again by default on systems with version 2 of the GNU C library.
4369 This was apparently broken.
4370 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
4371 * acconfig.h (USE_INCLUDED_REGEX): Remove.
4372 * config.in, configure: Regenerated.
4374 * configure.in: Move code that provides the --enable-tui option
4375 before the "Checks for libraries" section. Polish the code
4376 somewhat and set need_curses to yes if we build the TUI. Rewrite
4377 code that looks for a library providing termcap functionality to
4378 match more closely what's done in the Readline library, and move
4379 it into to the "Checks for libraries" section.
4380 * configure: Regenerated.
4381 * Makefile.in (TERMCAP): Remove variable.
4382 * config/i386/go32.mh (TERMCAP): Remove variable.
4384 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4386 * MAINTAINERS: Mention gdb_mbuild.sh.
4387 * gdb_mbuild.sh: Rewrite.
4389 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4391 * configure.in: Fix typo in last change.
4392 * config.in, configure: Regenerated.
4394 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4396 * valarith.c (value_binop): Delete obsolete code and comments.
4397 * configure.host: Ditto.
4398 * buildsym.h (make_blockvector): Ditto.
4399 * buildsym.c (make_blockvector): Ditto.
4400 * defs.h (enum language): Ditto.
4401 (chill_demangle): Ditto.
4402 * elfread.c (elf_symtab_read): Ditto.
4403 * dwarfread.c (CHILL_PRODUCER): Ditto.
4404 (set_cu_language): Ditto.
4405 (handle_producer): Ditto.
4406 * expprint.c (print_subexp): Ditto.
4407 * gdbtypes.c (chill_varying_type): Ditto.
4408 * gdbtypes.h (builtin_type_chill_bool): Ditto.
4409 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
4410 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
4411 (chill_varying_type): Ditto.
4412 * language.h (_LANG_chill): Ditto.
4413 * language.c (binop_result_type, integral_type): Ditto.
4414 (character_type, string_type, structured_type): Ditto.
4415 (lang_bool_type, binop_type_check): Ditto.
4416 * stabsread.h (os9k_stabs): Ditto.
4417 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
4418 (define_symbol, read_type, read_struct_fields): Ditto.
4419 (read_array_type, read_enum_type, read_huge_number): Ditto.
4420 (read_range_type, start_stabs): Ditto.
4421 * symfile.c (init_filename_language_table): Ditto.
4422 (add_psymbol_with_dem_name_to_list): Ditto.
4423 * symtab.c (symbol_init_language_specific): Ditto.
4424 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
4425 * symtab.h (struct general_symbol_info): Ditto.
4426 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4427 * typeprint.c (typedef_print): Ditto.
4428 * utils.c (fprintf_symbol_filtered): Ditto.
4429 * valops.c (value_cast, search_struct_field, value_slice): Delete
4431 (varying_to_slice): Delete function.
4432 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
4433 (varying_to_slice): Delete declaration.
4434 * MAINTAINERS: Update.
4436 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4438 * configure.in: Reorganize "Checks for library functions section"
4439 a bit. Remove check for `btowc' and `isascii' functions.
4440 * configure: Regenerated.
4442 * acconfig.h (_MSE_INT_H): Remove.
4443 * configure.in: Create "Checks for header files" section, and move
4444 appropriate tests there. Don't check for objlist.h, wchar.h,
4445 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
4446 misdetection fix. Also add "Checks for types", "Checks for
4447 compiler characteristics" and "Checks for library functions"
4449 * config.in, configure: Regenerated.
4451 * configure.in: Create "Checks for programs" section, and move
4452 appropriate tests there.
4454 2003-01-01 Mark Kettenis <kettenis@gnu.org>
4456 * configure.in: Create "Checks for libraries" section, and move
4457 appropriate tests there. Cleanup check for wctype in libw. Use
4458 AC_SEARCH_LIBS to see whether we need libsocket.
4459 * configure: Regenerated.
4461 For older changes see ChangeLog-2002
4467 version-control: never