1 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
3 * infrun.c (stop_soon): Rename from stop_soon_quietly.
4 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7 (handle_inferior_event): Ditto.
8 (save_inferior_status): Ditto.
9 (restore_inferior_status): Ditto.
10 * infcmd.c (attach_command): Ditto.
11 * fork-child.c (startup_inferior): Ditto.
12 * inferior.h (stop_soon): Rename from stop_soon_quietly.
13 * alpha-tdep.c (heuristic_proc_start): Ditto.
14 * mips-tdep.c (heuristic_proc_start): Ditto.
15 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
16 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
17 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
18 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
19 * remote-vx.c (vx_create_inferior): Ditto.
21 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
23 * infrun.c (stop_soon_quietly): Make it an enum, to better
24 override the default behavior of handle_inferior_event.
25 (clear_proceed_status): Update uses of stop_soon_quietly to
26 reflect that it is now an enum.
27 (start_remote): Ditto.
28 (handle_inferior_event): Change logic a bit if stop_soon_quietly
29 is set to handle the new GNU/Linux kernel behavior for
30 attach/sigstop. Update uses of stop_soon_quietly.
31 * inferior.h (enum stop_kind): New enum.
32 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
33 Reset normal handle_inferior_event behavior, afterwards.
34 * fork-child.c (startup_inferior): Update.
35 * alpha-tdep.c (heuristic_proc_start): Update.
36 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
37 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
38 * solib-osf.c (osf_solib_create_inferior_hook): Update.
39 * solib-irix.c (irix_solib_create_inferior_hook): Update.
40 * remote-vx.c (vx_create_inferior): Update.
41 * mips-tdep.c (heuristic_proc_start): Update.
43 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
45 * disasm.c (dump_insns): Move variables inside loop, or they will
46 be freed more than once, causing wild memory corruptions.
47 (gdb_disassembly): Look for the substring "-thread",
48 instead of "-threads" in the target name, to make sure to find
49 the 'multi-thread' target. Also, make sure we do the right thing
50 with the "core" target.
52 2003-04-07 Kevin Buettner <kevinb@redhat.com>
54 * mips-tdep.c (mips_print_fp_register): New function, created from
55 do_fp_register_row(). Registers are now (also) printed as hex.
56 Only one register is printed per row.
57 (mips_print_register, do_fp_register_row): Print floating point
58 registers with mips_print_fp_register().
60 2003-04-06 Andrew Cagney <cagney@redhat.com>
62 * valprint.h (inspect_it): Add extern declaration.
63 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
64 (selectors_info, classes_info): Ditto.
65 (find_objc_msgcall): Fix indentation.
66 (objc_printstr): Delete extern declarations.
68 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
70 2003-04-06 Andrew Cagney <cagney@redhat.com>
72 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
74 * frame.c (legacy_saved_regs_this_id): Update.
75 (legacy_get_prev_frame): Update.
76 * xstormy16-tdep.c: Update comment.
77 * sparc-tdep.c (sparc_frame_chain): Update comment.
78 * blockframe.c (legacy_frame_chain_valid): Update.
80 2003-04-06 Andrew Cagney <cagney@redhat.com>
82 * valprint.c (val_print_type_code_int): Delete #ifdef
83 PRINT_TYPELESS_INTEGER code.
85 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
86 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
87 multi-arch definition.
88 * gdbarch.h: Re-generate.
90 2003-04-05 Andrew Cagney <cagney@redhat.com>
92 Eliminate FRAME_FIND_SAVED_REGS.
93 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
94 Change FSR parameter to a pointer.
95 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
96 Assume FSR parameter is a pointer.
97 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
99 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
100 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
101 saved_regs a pointer.
102 (hppa_frame_saved_pc): Ditto.
103 (find_dummy_frame_regs): Make frame_saved_regs a pointer
104 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
106 (restore_pc_queue): Make fsr a pointer.
107 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
108 (hppa_frame_chain): Make saved_regs a pointer, call
109 hppa_frame_init_saved_regs.
110 * sparc-tdep.c: Include "gdb_assert.h".
111 (sparc_frame_find_saved_regs): Replace internal_error with
113 * remote-vxsparc.c (vx_read_register): Delete reference to
114 FRAME_FIND_SAVED_REGS.
115 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
116 * gdbarch.h: Regenerate.
117 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
118 (deprecated_get_frame_saved_regs): Delete declaration.
119 (struct frame_saved_regs): Delete definition.
120 * frame.c (deprecated_get_frame_saved_regs): Delete function.
121 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
122 (hppa_frame_find_saved_regs): Delete declaration.
123 (FRAME_FIND_SAVED_REGS): Delete macro.
124 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
125 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
126 FRAME_FIND_SAVED_REGS in comment.
128 2003-04-05 Andrew Cagney <cagney@redhat.com>
130 * frame.c (frame_func_unwind, get_frame_func): New functions.
131 * frame.h (get_frame_func, frame_func_unwind): Declare.
132 (struct frame_info): Add field "prev_func" for caching the
133 previous frame's function address.
134 * arm-tdep.c (arm_frameless_function_invocation): Combine
135 get_pc_function_start and get_frame_pc into get_frame_func.
136 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
137 (sh64_nofp_frame_init_saved_regs): Ditto.
138 * s390-tdep.c (s390_function_start): Ditto.
139 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
140 (rs6000_frameless_function_invocation): Ditto.
141 (rs6000_frame_saved_pc): Ditto.
142 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
143 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
144 * i386-tdep.c (i386_frameless_signal_p): Ditto.
145 (i386_frame_init_saved_regs): Ditto.
146 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
147 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
148 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
149 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
150 * blockframe.c (frameless_look_for_prologue): Ditto.
152 2003-04-05 Andrew Cagney <cagney@redhat.com>
154 * frame.c (legacy_get_prev_frame): Link prev to next at the
155 function start. Update comments.
157 2003-04-05 Andrew Cagney <cagney@redhat.com>
159 * frame.c (get_frame_id): Update comment.
160 (legacy_get_prev_frame): Update comment.
161 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
162 * gdbarch.h: Regenerate.
163 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
164 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
166 2003-04-05 Andrew Cagney <cagney@redhat.com>
168 * stack.c (print_frame_info): Use get_frame_pc.
170 2003-04-04 Andrew Cagney <cagney@redhat.com>
172 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
173 the frame's type from the unwinder.
174 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
175 (create_new_frame, legacy_get_prev_frame): When the unwinder's
176 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
177 (get_frame_base_address): Use get_frame_type.
178 (get_frame_locals_address, get_frame_args_address): Ditto.
179 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
180 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
181 (struct frame_info): Add comment explaining why the frame contains
183 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
184 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
185 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
187 * frame-unwind.h: Include "frame.h".
188 (struct frame_unwind): Add "type" field.
189 * Makefile.in (frame_unwind_h): Add $(frame_h).
191 2003-04-04 Andrew Cagney <cagney@redhat.com>
193 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
194 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
195 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
197 (d10v_unwind_dummy_id): Use frame_id_build.
198 * frame.c (find_frame_sal): Use get_frame_pc.
199 (create_new_frame): Use deprecated_update_frame_pc_hack and
200 deprecated_update_frame_base_hack.
201 (create_sentinel_frame): Add comment about ->pc going away.
202 (get_prev_frame): Add comment about ->pc going away.
203 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
204 frame_id_build, deprecated_update_frame_pc_hack and
205 deprecated_update_frame_base_hack.
206 (select_frame): Use get_frame_pc.
207 (legacy_saved_regs_this_id): Use frame_id_build.
209 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
211 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
213 (classify_argument): Handle enumerations and references.
215 2003-04-04 Andrew Cagney <cagney@redhat.com>
217 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
220 2003-04-01 Adam Fedor <fedor@gnu.org>
222 * gdb/objc-lang.c (selectors_info): Replace calls to
223 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
225 (classes_info, find_methods): Likewise.
227 2003-04-03 Kevin Buettner <kevinb@redhat.com>
229 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
230 ``mach'' to the value determined by bfd_default_set_arch_mach().
232 2003-04-02 Bob Rossi <bob_rossi@cox.net>
234 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
235 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
236 (mi-cmd-file.o): Update dependencies.
238 2003-04-01 Kevin Buettner <kevinb@redhat.com>
240 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
241 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
243 2003-04-01 Adam Fedor <fedor@gnu.org>
245 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
246 * language.h (struct language_defn): Add la_demangle.
247 (language_demangle): Declare.
248 * language.c (language_demangle): New function.
249 (unk_lang_demangle): Likewise.
250 (unknown_language_defn, auto_language_defn, local_language_defn):
251 Add ukn_lang_demangle.
252 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
253 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
254 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
255 (cplus_language_defn): Add cplus_demangle for la_demangle element.
256 * jv-lang.c (java_demangle): New function
257 (java_language_defn): Use it for la_demangle element.
258 * objc-lang.c (objc_demangle): Add options argument
259 (objc_language_defn): Use objc_demangle for la_demangle element.
260 * maint.c (maintenance_demangle): Replace switch with
261 call to language_demangle.
262 * utils.c (fprintf_symbol_filtered): Likewise.
264 2003-04-01 Andrew Cagney <cagney@redhat.com>
266 * printcmd.c (print_frame_nameless_args): Delete #ifdef
267 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
268 PRINT_TYPELESS_INTEGER.
269 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
272 2003-04-01 Andrew Cagney <cagney@redhat.com>
274 * Makefile.in (d10v-tdep.o): Update dependencies.
275 * d10v-tdep.c: Include "frame-base.h".
276 (d10v_frame_unwind): Make constant.
277 (d10v_frame_base_address): New function.
278 (d10v_frame_base): New variable.
279 (d10v_gdbarch_init): Set frame_base default.
280 (struct d10v_unwind_cache): Add the field "prev_sp". Update
282 (d10v_frame_unwind_cache): Set and use "prev_sp".
283 (d10v_frame_this_id): Use the previous frame's inner most stack
284 address and this frame's func address for the frame ID. Use
285 frame_id_build. Don't analyze beyond the current instruction.
287 2003-04-01 Andrew Cagney <cagney@redhat.com>
289 * frame.h (get_frame_locals_address, get_frame_args_address):
290 Refer to the base address, instead of the address of the first
293 2003-04-01 Andrew Cagney <cagney@redhat.com>
295 Add frame debug info addresses:
296 * frame-base.c: New file.
297 * frame-base.h: New file.
298 * frame.h (struct frame_base): Add opaque declaration.
299 (get_frame_base): Update comment.
300 (get_frame_base_address): Declare.
301 (get_frame_locals_address): Declare.
302 (get_frame_args_address): Declare.
303 (struct frame_info): Add "base" and "base_cache". Update
304 comments on the unwinder.
305 * frame.c: Include "frame-base.h".
306 (get_frame_locals_address): New function.
307 (get_frame_base_address): New function.
308 (get_frame_args_address): New function.
309 * findvar.c (read_var_value): Use get_frame_locals_address and
310 get_frame_args_address.
311 * stack.c (frame_info): Use get_frame_locals_address and
312 get_frame_args_address.
313 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
314 moved to "frame-base.c".
315 * printcmd.c (print_frame_nameless_args): Ditto.
316 * symtab.h (address_class): Update comments.
317 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
318 get_frame_base_address.
319 * dwarf2expr.c (execute_stack_op): Ditto.
320 * Makefile.in (frame_base_h): Define.
321 (frame.o): Update dependencies.
322 (frame-base.o): Add dependencies.
323 (SFILES): Add frame-base.c.
324 (COMMON_OBS): Add frame-base.o.
326 2003-04-01 Andrew Cagney <cagney@redhat.com>
328 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
329 CALL_DUMMY_LENGTH): Ditto.
330 * gdbarch.c: Re-generate.
331 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
332 (CALL_DUMMY_LENGTH): Delete macro.
333 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
334 * arm-tdep.c (arm_gdbarch_init): Ditto.
335 * avr-tdep.c (avr_gdbarch_init): Ditto.
336 * cris-tdep.c (cris_gdbarch_init): Ditto.
337 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
338 * frv-tdep.c (frv_gdbarch_init): Ditto.
339 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
340 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
341 * i386-tdep.c (i386_gdbarch_init): Ditto.
342 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
343 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
344 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
345 * mips-tdep.c (mips_gdbarch_init): Ditto.
346 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
347 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
348 * s390-tdep.c (s390_gdbarch_init): Ditto.
349 * sh-tdep.c (sh_gdbarch_init): Ditto.
350 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
351 * v850-tdep.c (v850_gdbarch_init): Ditto.
352 * vax-tdep.c (vax_gdbarch_init): Ditto.
353 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
355 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
357 * frame.c (get_prev_frame): Disable call to inside_entry_file().
359 2003-04-01 Andrew Cagney <cagney@redhat.com>
361 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
362 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
363 * gdbarch.h, gdbarch.c: Re-generate.
364 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
365 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
366 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
367 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
368 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
369 * infcmd.c (run_stack_dummy): Simplify assuming
370 CALL_DUMMY_BREAKPOINT_OFFSET_P.
371 * infrun.c (handle_inferior_event): Ditto.
372 * alpha-tdep.c (alpha_gdbarch_init): Do not set
373 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
374 * arm-tdep.c (arm_gdbarch_init): Ditto.
375 * avr-tdep.c (avr_gdbarch_init): Ditto.
376 * cris-tdep.c (cris_gdbarch_init): Ditto.
377 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
378 * frv-tdep.c (frv_gdbarch_init): Ditto.
379 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
380 * i386-tdep.c (i386_gdbarch_init): Ditto.
381 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
382 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
383 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
384 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
385 * mips-tdep.c (mips_gdbarch_init): Ditto.
386 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
387 * ns32k-tdep.c (ns32k_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 Daniel Jacobowitz <drow@mvista.com>
398 * symfile.c (symfile_relocate_debug_section): Update call to
399 bfd_simple_get_relocated_section_contents.
401 2003-03-31 Andrew Cagney <cagney@redhat.com>
403 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
404 * gdbarch.h, gdbarch.c: Regenerate.
405 * inferior.h (FIX_CALL_DUMMY): Delete macro.
406 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
408 * frame.h (generic_fix_call_dummy): Delete declaration.
409 * dummy-frame.h: Update comment.
410 * dummy-frame.c (generic_fix_call_dummy): Delete function.
411 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
413 * sh-tdep.c (sh_gdbarch_init): Ditto.
414 * s390-tdep.c (s390_gdbarch_init): Ditto.
415 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
416 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
417 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
418 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
419 * i386-tdep.c (i386_gdbarch_init): Ditto.
420 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
421 * frv-tdep.c (frv_gdbarch_init): Ditto.
422 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
423 * cris-tdep.c (cris_gdbarch_init): Ditto.
424 * avr-tdep.c (avr_gdbarch_init): Ditto.
425 * arm-tdep.c (arm_gdbarch_init): Ditto.
427 2003-03-31 J. Brobecker <brobecker@gnat.com>
429 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
430 (INIT_FRAME_AP): Likewise.
431 (EXTRA_FRAME_INFO): Likewise.
433 2003-03-31 Andrew Cagney <cagney@redhat.com>
435 * gdbarch.sh: Include "symfile.h".
436 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
437 * gdbarch.h, gdbarch.c: Re-generate.
438 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
439 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
440 call_dummy_address, the default is at entry_point_address.
441 * v850-tdep.c (v850_gdbarch_init): Ditto.
442 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
443 * sh-tdep.c (sh_gdbarch_init): Ditto.
444 * s390-tdep.c (s390_gdbarch_init): Ditto.
445 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
446 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
447 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
448 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
449 * i386-tdep.c (i386_gdbarch_init): Ditto.
450 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
451 * frv-tdep.c (frv_gdbarch_init): Ditto.
452 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
453 * cris-tdep.c (cris_gdbarch_init): Ditto.
454 * arm-tdep.c (arm_gdbarch_init): Ditto.
456 2003-03-31 Andrew Cagney <cagney@redhat.com>
458 * gdbarch.sh (CALL_DUMMY_P): Delete.
459 * gdbarch.h, gdbarch.c: Re-generate.
460 * inferior.h (CALL_DUMMY_P): Delete macro.
461 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
462 * vax-tdep.c (vax_gdbarch_init): Update.
463 * v850-tdep.c (v850_gdbarch_init): Update.
464 * sparc-tdep.c (sparc_gdbarch_init): Update.
465 * sh-tdep.c (sh_gdbarch_init): Update.
466 * s390-tdep.c (s390_gdbarch_init): Update.
467 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
468 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
469 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
470 * mips-tdep.c (mips_gdbarch_init): Update.
471 * mcore-tdep.c (mcore_gdbarch_init): Update.
472 * m68k-tdep.c (m68k_gdbarch_init): Update.
473 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
474 * ia64-tdep.c (ia64_gdbarch_init): Update.
475 * i386-tdep.c (i386_gdbarch_init): Update.
476 * h8300-tdep.c (h8300_gdbarch_init): Update.
477 * frv-tdep.c (frv_gdbarch_init): Update.
478 * d10v-tdep.c (d10v_gdbarch_init): Update.
479 * cris-tdep.c (cris_gdbarch_init): Update.
480 * breakpoint.c (deprecated_frame_in_dummy): Update.
481 * avr-tdep.c (avr_gdbarch_init): Update.
482 * alpha-tdep.c (alpha_gdbarch_init): Update.
483 * arm-tdep.c (arm_gdbarch_init): Update.
484 * dummy-frame.c (dummy_frame_this_id): Update comments.
485 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
486 * frame.c (legacy_get_prev_frame): Ditto.
487 * valops.c (call_function_by_hand): Delete function.
488 (hand_function_call): Rename to call_function_by_hand
490 2003-03-30 Andrew Cagney <cagney@redhat.com>
492 2002-11-10 Klee Dienes <kdienes@apple.com>
493 * value.h (struct value): Update comment.
495 2003-03-30 Andrew Cagney <cagney@redhat.com>
497 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
499 (d10v_gdbarch_init): Do not set fp_regnum.
501 * frame.c (get_frame_base): Force ID initialization.
502 (get_prev_frame): Move computation of the frame ID from here ...
503 (get_frame_id): ... to here.
504 (legacy_get_prev_frame): Mark the frame ID as valid.
505 * frame.h (struct frame_info): Add field "id_p".
507 2003-03-30 Mark Kettenis <kettenis@gnu.org>
509 * i386-tdep.c (i386_store_struct_return): Removed.
510 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
512 2003-03-30 Andrew Cagney <cagney@redhat.com>
514 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
515 * gdbarch.h, gdbarch.c: Regenerate.
516 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
517 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
518 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
519 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
520 * i386-tdep.c (i386_gdbarch_init): Ditto.
521 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
522 * cris-tdep.c (cris_gdbarch_init): Ditto.
523 * vax-tdep.c (vax_gdbarch_init): Ditto.
524 * s390-tdep.c (s390_gdbarch_init): Ditto.
525 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
526 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
527 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
528 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
529 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
530 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
531 * sparc-tdep.c (sparc_gdbarch_init): Update.
532 * sh-tdep.c (sh_gdbarch_init): Update.
533 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
534 * mips-tdep.c (mips_gdbarch_init): Update.
535 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
536 * ia64-tdep.c (ia64_gdbarch_init): Update.
537 * frv-tdep.c (frv_gdbarch_init): Update.
538 * avr-tdep.c (avr_gdbarch_init): Update.
539 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
540 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
541 instead of when push_dummy_call is not available.
543 2003-03-30 Andrew Cagney <cagney@redhat.com>
545 * infttrace.c: Include "gdbthread.h".
546 (parent_attach_all): Fix function signature.
547 (call_ptrace): Update call.
548 * Makefile.in (infttrace.o): Update dependencies.
550 2003-03-30 Andrew Cagney <cagney@redhat.com>
552 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
554 * gdbarch.h, gdbarch.c: Regenerate.
555 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
556 * x86-64-tdep.c (x86_64_init_abi): Update.
557 * v850-tdep.c (v850_gdbarch_init): Update.
558 * sparc-tdep.c (sparc_gdbarch_init): Update.
559 * sh-tdep.c (sh_gdbarch_init): Update.
560 * s390-tdep.c (s390_gdbarch_init): Update.
561 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
562 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
563 * mips-tdep.c (mips_gdbarch_init): Update.
564 * mcore-tdep.c (mcore_gdbarch_init): Update.
565 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
566 * ia64-tdep.c (ia64_gdbarch_init): Update.
567 * i386-tdep.c (i386_gdbarch_init): Update.
568 * h8300-tdep.c (h8300_gdbarch_init): Update.
569 * frv-tdep.c (frv_gdbarch_init): Update.
570 * cris-tdep.c (cris_gdbarch_init): Update.
571 * avr-tdep.c (avr_gdbarch_init): Update.
572 * arm-tdep.c (arm_gdbarch_init): Update.
573 * valops.c (hand_function_call): Update.
575 2003-03-29 Andrew Cagney <cagney@redhat.com>
577 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
578 sizeof_call_dummy_words.
579 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
581 * gdbarch.h: Regenerate.
583 2003-03-29 Andrew Cagney <cagney@redhat.com>
585 * infttrace.h: New file.
586 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
587 (hpread_get_textlow): Detect an uninitialized dn_bufp.
588 (hpread_read_doc_function_type): Detect an initialized type1.
589 (hpread_quick_traverse): Initialize mod_name_string.
590 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
591 (som_solib_get_solib_by_pc): Declare.
592 (so_lib_thread_start_addr): Declare.
593 (no_shared_libraries): Declare.
594 * somread.c (init_import_symbols): Make static. Add forward
596 * config/pa/nm-hppah.h: Include "infttrace.h" for
598 (hppa_insert_hw_watchpoint): Declare.
599 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
600 * hppah-nat.c: Include "gdb_string.h".
601 (parent_attach_all): Delete extern declaration, moved to
603 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
605 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
606 * Makefile.in (infttrace_h): Define.
607 (hpread.o): Update dependencies.
608 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
609 * hppa-hpux-tdep.c: Include "gdb_string.h".
610 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
611 * infrun.c (handle_inferior_event): Always initialize
612 stepped_after_stopped_by_watchpoint. Add default and remove
613 fallthrough in switch statement.
614 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
616 (hppa_remove_hw_watchpoint): Ditto.
618 2003-03-29 Andrew Cagney <cagney@redhat.com>
620 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
623 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
625 * arm-tdep.c (arm_push_arguments): Delete.
626 (struct stack_item): New type.
627 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
628 (arm_store_struct_return): Delte.
629 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
630 arm_push_arguments or arm_store_struct_return.
632 2003-03-28 Andrew Cagney <cagney@redhat.com>
634 * Makefile.in (d10v-tdep.o): Update dependencies.
635 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
636 * d10v-tdep.c: Include "remote.h".
637 (target_resume_hook): Delete extern declaration.
638 (target_wait_loop_hook): Ditto.
639 (tdisassemble_command): Eliminate assignment in "if" conditional.
640 (d10v_ts2_register_sim_regno): Eliminate call to
641 legacy_register_sim_regno.
642 (d10v_ts3_register_sim_regno): Ditto.
644 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
646 * thread.c: Reindented.
648 * linux-proc.c: Ditto.
650 2003-03-28 Bob Rossi <bob_rossi@cox.net>
652 * MAINTAINERS (write after approval): Add myself.
654 2003-03-27 Theodore A. Roth <troth@openavr.org>
656 * objc-exp.y: Add missing semi-colons.
658 2003-03-27 Andrew Cagney <cagney@redhat.com>
660 * regcache.c (write_sp): Delete function and references.
661 * inferior.h (write_sp): Delete declaration.
662 * valops.c (hand_function_call): Replace write_sp with
664 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
665 (sparc_pop_frame): Ditto.
667 2003-03-27 Andrew Cagney <cagney@redhat.com>
669 * NEWS: Mention removal of support for hppa*-*-bsd* and
670 hppa*-*-osf* natives, and hppa*-*-pro* target.
671 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
672 * config/pa/xm-pa.h: Obsolete file.
673 * config/pa/xm-hppab.h: Obsolete file.
674 * config/pa/nm-hppab.h: Obsolete file.
675 * config/pa/tm-hppab.h: Obsolete file.
676 * config/pa/tm-hppao.h: Obsolete file.
677 * config/pa/nm-hppao.h: Obsolete file.
678 * config/pa/tm-pro.h: Obsolete file.
679 * config/pa/hppaosf.mt: Obsolete file.
680 * config/pa/hppaosf.mh: Obsolete file.
681 * config/pa/hppapro.mt: Obsolete file.
682 * config/pa/hppabsd.mt: Obsolete file.
683 * config/pa/hppabsd.mh: Obsolete file.
684 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
685 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
688 2003-03-27 Andrew Cagney <cagney@redhat.com>
690 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
691 push_arguments. Don't set push_return_address or write_sp.
692 (d10v_push_dummy_call): Replace d10v_push_arguments.
693 (d10v_push_return_address, d10v_write_sp): Delete function,
694 handled by push_dummy_call.
696 2003-03-26 Andrew Cagney <cagney@redhat.com>
698 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
699 (push_dummy_call): New pure multi-arch replacement with gdbarch,
700 regcache and dummy_addr parameters.
701 * gdbarch.h, gdbarch.c: Re-generate.
702 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
703 available; assume it will handle stack alignment and return
704 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
705 legacy_push_arguments.
706 (legacy_push_arguments): Rename default_push_arguments.
707 * value.h (legacy_push_arguments): Rename default_push_arguments.
708 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
709 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
710 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
711 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
712 * config/i386/tm-symmetry.h: Update.
713 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
714 * x86-64-tdep.c (x86_64_init_abi): Update.
715 * v850-tdep.c (v850_gdbarch_init): Update.
716 * sparc-tdep.c (sparc_gdbarch_init): Update.
717 * sh-tdep.c (sh_gdbarch_init): Update.
718 * s390-tdep.c (s390_gdbarch_init): Update.
719 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
720 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
721 * mips-tdep.c (mips_gdbarch_init): Update.
722 * mcore-tdep.c (mcore_gdbarch_init): Update.
723 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
724 * ia64-tdep.c (ia64_gdbarch_init): Update.
725 * i386-tdep.c (i386_gdbarch_init): Update.
726 * hppa-tdep.c (hppa_gdbarch_init): Update.
727 * h8300-tdep.c (h8300_gdbarch_init): Update.
728 * frv-tdep.c (frv_gdbarch_init): Update.
729 * d10v-tdep.c (d10v_gdbarch_init): Update.
730 * cris-tdep.c (cris_gdbarch_init): Update.
731 * avr-tdep.c (avr_gdbarch_init): Update.
732 * arm-tdep.c (arm_gdbarch_init): Update.
733 * arm-linux-tdep.c (arm_linux_init_abi): Update.
734 * alpha-tdep.c (alpha_gdbarch_init): Update.
736 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
738 * signals/signals.c (do_target_signal_to_host): Correct realtime
741 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
743 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
744 (struct sal_chain, map_catch_names): Remove.
745 (catch_exception_command_1): Don't call
746 handle_gnu_4_16_catch_command.
748 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
750 From Mark Dettinger <dettinge@de.ibm.com>:
751 * dwarf2cfi.c (read_2u): Increment pointer by two.
753 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
755 * signals/signals.c: Fix typos in last change.
757 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
759 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
760 not already defined. Use __SIGRTMIN if available.
761 (target_signal_from_host): Remove SIGRTMIN block.
762 (do_target_signal_to_host): Remove SIGRTMIN block; check that
763 the signal is within the realtime range.
765 2003-03-25 Adam Fedor <fedor@gnu.org>
767 * Makefile.in (infrun.o): Add $(language_h)
768 * infrun.c (handle_inferior_event): Use skip_language_trampoline
769 for language specific trampolines.
770 * language.h (struct language_defn): Add skip_trampoline.
771 (skip_language_trampoline): Declare.
772 * language.c (unk_lang_trampoline, skip_language_trampoline):
774 (unknown_language_defn, auto_language_defn, local_language_defn):
775 Add ukn_lang_trampoline.
776 * ada-lang.c (ada_language_defn): Add NULL for language
777 specific skip_trampoline.
778 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
779 scm-lang.c: Likewise.
780 * objc-lang.c (objc_skip_trampoline): New function.
781 (objc_language_defn): Add objc_skip_trampoline.
783 2003-03-25 Andrew Cagney <cagney@redhat.com>
785 * frame.c (get_prev_frame): Delay validating a frame's ID -
786 non-NULL, didn't go backwards - until an attempt to unwind it to
789 2003-03-25 Andrew Cagney <cagney@redhat.com>
791 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
792 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
793 * gdbarch.h, gdbarch.c: Re-generate.
794 * config/sparc/tm-sparc.h
795 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
796 * sparc-tdep.c (sparc_gdbarch_init): Set
797 deprecated_extra_stack_alignment_needed.
798 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
799 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
800 extra_stack_alignment_needed.
801 * v850-tdep.c (v850_gdbarch_init): Ditto.
802 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
803 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
804 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
805 * cris-tdep.c (cris_gdbarch_init): Ditto.
806 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
807 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
809 2003-03-25 Andrew Cagney <cagney@redhat.com>
811 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
813 * gdbarch.h, gdbarch.c: Regenerate.
814 * d10v-tdep.c (d10v_store_struct_return): Delete function.
815 (d10v_push_arguments): Set the struct return register.
816 (d10v_gdbarch_init): Update.
817 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
818 * x86-64-tdep.c (x86_64_init_abi): Update.
819 * vax-tdep.c (vax_gdbarch_init): Update.
820 * v850-tdep.c (v850_gdbarch_init): Update.
821 * sparc-tdep.c (sparc_gdbarch_init): Update.
822 * sh-tdep.c (sh_gdbarch_init): Update.
823 * s390-tdep.c (s390_gdbarch_init): Update.
824 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
825 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
826 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
827 * mips-tdep.c (mips_gdbarch_init): Update.
828 * mcore-tdep.c (mcore_gdbarch_init): Update.
829 * m68k-tdep.c (m68k_gdbarch_init): Update.
830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
831 * ia64-tdep.c (ia64_gdbarch_init): Update.
832 * i386-tdep.c (i386_gdbarch_init): Update.
833 * hppa-tdep.c (hppa_gdbarch_init): Update.
834 * h8300-tdep.c (h8300_gdbarch_init): Update.
835 * frv-tdep.c (frv_gdbarch_init): Update.
836 * cris-tdep.c (cris_gdbarch_init): Update.
837 * avr-tdep.c (avr_gdbarch_init): Update.
838 * arm-tdep.c (arm_gdbarch_init): Update.
839 * alpha-tdep.c (alpha_gdbarch_init): Update.
841 2003-03-25 Andrew Cagney <cagney@redhat.com>
843 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
844 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
845 CALL_DUMMY_STACK_ADJUST with a predicate variable.
846 * gdbarch.h, gdbarch.c: Regenerate.
847 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
848 call_dummy_stack_adjust_p.
849 * vax-tdep.c (vax_gdbarch_init): Ditto.
850 * v850-tdep.c (v850_gdbarch_init): Ditto.
851 * sh-tdep.c (sh_gdbarch_init): Ditto.
852 * s390-tdep.c (s390_gdbarch_init): Ditto.
853 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
854 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
855 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
856 * mips-tdep.c (mips_gdbarch_init): Ditto.
857 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
858 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
860 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
861 * i386-tdep.c (i386_gdbarch_init): Ditto.
862 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
863 * frv-tdep.c (frv_gdbarch_init): Ditto.
864 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
865 * cris-tdep.c (cris_gdbarch_init): Ditto.
866 * avr-tdep.c (avr_gdbarch_init): Ditto.
867 * arm-tdep.c (arm_gdbarch_init): Ditto.
868 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
869 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
870 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
871 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
872 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
873 call_dummy_stack_adjust_p.
874 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
875 (CALL_DUMMY_STACK_ADJUST): Delete macro.
876 * sparc-tdep.c (sparc32_push_arguments): Update.
877 * valops.c (hand_function_call): Update.
879 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
881 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
882 set_gdbarch_char_signed.
884 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
887 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
889 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
891 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
892 (_initialize_arm_tdep): Don't set tm_print_insn.
894 2003-03-24 Adam Fedor <fedor@gnu.org>
896 * Makefile.in (YYOBJ): Add objc-exp.tab.o
897 * objc-lang.h: Add multiple inclusion protection.
898 (start_msglist, add_msglist, end_msglist): Additional declarations.
900 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
902 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
903 value was renamed to ARM_FLOAT_SOFT_FPA.
905 2003-03-23 Andrew Cagney <cagney@redhat.com>
907 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
908 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
909 * gdbarch.h, gdbarch.c: Regenerate.
910 * valops.c (hand_function_call): Update.
911 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
912 * frame.c (legacy_saved_regs_this_id): Update.
913 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
914 * dummy-frame.h: Update.
915 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
916 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
917 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
918 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
919 * config/m68k/tm-sun3.h: Update.
920 * blockframe.c (inside_main_func, frame_chain_valid): Update.
921 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
922 * x86-64-tdep.c (x86_64_init_abi): Update.
923 * vax-tdep.c (vax_gdbarch_init): Update.
924 * v850-tdep.c (v850_gdbarch_init): Update.
925 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
926 * sh-tdep.c (sh_gdbarch_init): Update.
927 * s390-tdep.c (s390_gdbarch_init): Update.
928 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
929 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
930 (frame_get_saved_regs): Update.
931 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
932 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
933 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
934 * mips-tdep.c (mips_gdbarch_init): Update.
935 * mcore-tdep.c (mcore_gdbarch_init): Update.
936 * m68k-tdep.c (m68k_gdbarch_init): Update.
937 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
938 * ia64-tdep.c (ia64_gdbarch_init): Update.
939 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
940 * i386-interix-tdep.c (i386_interix_init_abi): Update.
941 (i386_interix_back_one_frame): Update.
942 * hppa-tdep.c (hppa_gdbarch_init): Update.
943 (hppa_init_extra_frame_info): Update.
944 * h8300-tdep.c (h8300_gdbarch_init): Update.
945 * frv-tdep.c (frv_gdbarch_init): Update.
946 * cris-tdep.c (cris_gdbarch_init): Update.
947 * avr-tdep.c (avr_gdbarch_init): Update.
948 * arm-tdep.c (arm_gdbarch_init): Update.
949 * alpha-tdep.c (alpha_gdbarch_init): Update.
951 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
953 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
954 (arm_get_fp_model): Declare.
955 * arm-tdep.c (fp_model_strings): New string array.
956 (arm_fp_model, current_fp_model): New variables.
957 (arm_get_fp_model): New function.
958 (arm_set_fp): New function.
959 (set_fp_model_sfunc): New function.
960 (show_fp_model): New function.
961 (_initialize_arm_tdep): Add new command to set/show the FPU.
962 (arm_extract_return_value): Use arm_get_fp_model.
963 (arm_store_return_value): Likewise.
964 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
965 to initialize the floating-point data types.
966 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
969 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
971 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
972 the current setting of each value.
973 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
974 new_set and new_show. Use add_setshow_cmd_full and
975 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
976 commands and add new version as subcommands of "set/show arm".
978 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
980 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
981 (set_arm_command, show_arm_command): New functions.
982 (_initialize_arm_tdep): Add them.
983 (num_disassembly_options): Renamed from num_flavor_options.
984 (valid_disassembly_styles): Renamed from valid_flavors.
985 (disassembly_style): Renamed from disassembly_flavor.
986 (set_disassembly_style_sfunc): Renamed from
987 set_disassembly_flavor_sfunc.
988 (set_disassembly_style): Renamed from set_disassembly_flavor.
989 (arm_othernames): Updated.
990 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
991 command. Add "set/show arm disassembly" commands. Deprecate
992 "othernames" command.
994 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
996 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
997 (arm-tdep.o): Depend on elf_arm_h.
999 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1001 * Makefile.in (coff_internal_h): Define.
1002 (arm-tdep.o): Update dependencies.
1004 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
1006 * arm-tdep.c (prologue_cache): Delete.
1007 (check_prologue_cache, save_prologue_cache): Delete.
1008 (arm_scan_prologue): Don't check or update the prologue_cache.
1009 (arm_gdb_arch_init): Don't initialize it.
1010 (_initialize_arm_tdep): Likewise.
1012 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
1014 * MAINTAINERS (tui): Maintainer of tui code.
1016 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
1018 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
1019 (i386-cygwin-tdep.o): Add dependencies.
1020 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
1021 * i386-cygwin-tdep.c: New file.
1022 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
1023 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
1025 2003-03-20 Andrew Cagney <cagney@redhat.com>
1027 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
1028 (handle_inferior_event): Remove code calling
1029 DYNAMIC_TRAMPOLINE_NEXTPC.
1031 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
1032 already has a full path.
1034 * main.c (gdb_main): Return 1.
1035 (captured_main): Call error to report an invalid interpreter.
1037 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
1038 * alpha-osf1-tdep.c: Include "gdb_string.h".
1040 2003-03-19 J. Brobecker <brobecker@gnat.com>
1042 Continuing work to convert the hppa targets to multiarch partial.
1044 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
1045 method, now that hppa_push_dummy_frame has a conformant prototype.
1046 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
1047 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
1048 for the switch to multiarch partial.
1050 2003-03-19 Kevin Buettner <kevinb@redhat.com>
1052 * mdebugread.c (parse_symbol): For stEnd, we're done counting
1053 when iss is issNull.
1055 2003-03-18 Kevin Buettner <kevinb@redhat.com>
1057 * mips-tdep.c (mips_register_name): Fix fencepost error involving
1058 NUM_REGS bounds check.
1060 2003-03-18 Kevin Buettner <kevinb@redhat.com>
1062 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
1063 * mips-tdep.c (gdb_assert.h): Include.
1064 (mips_generic_reg_names, mips_processor_reg_names): Make static.
1065 (mips_register_name): Handle integer registers explicitly. Add
1067 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
1068 (mips_lsi33k_reg_names): Don't list integer registers; they're
1069 handled by mips_register_name() now.
1070 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
1071 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
1072 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
1073 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
1074 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
1076 2003-03-18 Andrew Cagney <cagney@redhat.com>
1078 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
1080 * gdbtypes.h (print_scalar_formatted): Update declaration.
1081 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
1083 2003-03-18 J. Brobecker <brobecker@gnat.com>
1085 * infrun.c (observer.h): Add #include.
1086 (normal_stop): Add call to observer_notify_normal_stop.
1087 * Makefile.in (infrun.o): Add dependency on observer.h.
1089 2003-03-18 J. Brobecker <brobecker@gnat.com>
1091 Continuing work to convert the hppa targets to multiarch partial.
1092 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
1093 parameter. Reformat comment.
1094 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
1095 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
1096 to match new profile.
1098 2003-03-18 J. Brobecker <brobecker@gnat.com>
1100 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
1101 appear to be working in any case.
1103 2003-03-18 J. Brobecker <brobecker@gnat.com>
1105 * observer.c (observer_test_first_observer): New static variable.
1106 (observer_test_second_observer): Likewise.
1107 (observer_test_third_observer): Likewise.
1108 (observer_test_first_notification_function): New static function.
1109 (observer_test_second_notification_function): Likewise.
1110 (observer_test_third_notification_function): Likewise.
1112 2003-03-17 J. Brobecker <brobecker@gnat.com>
1114 * hppa-tdep.c (gdb_assert.h): Add missing #include.
1115 * somsolib.c (gdb_assert.h): Likewise.
1116 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
1117 (somsolib.o): Likewise.
1119 2003-03-17 Andrew Cagney <cagney@redhat.com>
1121 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
1122 BFD. Simplify setting of di.endian.
1124 2003-03-17 Andrew Cagney <cagney@redhat.com>
1126 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
1127 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
1129 From Elena Zannoni <ezannoni@redhat.com>
1130 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
1131 vector and floating-point parameters.
1132 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
1134 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
1136 2003-03-17 Fernando Nasser <fnasser@redhat.com>
1138 * MAINTAINERS: Remove my name from several maintainership roles.
1140 2003-03-17 Andrew Cagney <cagney@redhat.com>
1142 Fix frame off-by-one bug.
1143 * frame-unwind.h (frame_this_id_ftype): Replace
1144 frame_unwind_id_ftype.
1145 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
1146 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
1147 with "prev_register".
1148 * frame-unwind.c (frame_unwind_find_by_pc): Return
1149 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
1151 * dummy-frame.c (cached_find_dummy_frame): Delete function.
1152 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
1153 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
1154 (dummy_frame_unwind): Update.
1155 * sentinel-frame.c (sentinel_frame_prev_register): Replace
1156 sentinel_frame_register_unwind.
1157 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
1158 (sentinel_frame_unwinder): Update.
1159 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1160 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
1161 * frame.c (create_sentinel_frame): Update. Initialize
1162 "prologue_cache" instead of "unwind_cache".
1163 (frame_register_unwind): Call this frame's prev_register with the
1164 next frame and this frame's prologue cache.
1165 (get_prev_frame): Simplify. Always call prev frame's this_id with
1166 this frame and prev frame's prologue cache. Document that this
1167 call is shifted one to the left when compared to the
1168 frame_register_unwind call.
1169 (legacy_saved_regs_prev_register): Replace
1170 frame_saved_regs_register_unwind.
1171 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
1172 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
1173 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
1174 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
1175 (d10v_frame_unwind): Update.
1176 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
1177 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
1178 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
1179 "saved_regs" with "this_saved_regs".
1181 2003-03-16 Andrew Cagney <cagney@redhat.com>
1183 * frame.c (frame_pop): Don't call target_store_registers. Fix
1184 problem reported by Mark Kettenis.
1186 2003-03-16 Mark Kettenis <kettenis@gnu.org>
1188 * i386-tdep.c (i386_register_type): Renamed from
1189 i386_register_virtual_type. Adjust function signature.
1190 (i386_gdbarch_init): Set register_type instead of
1191 deprecated_max_register_raw_size,
1192 deprecated_max_register_virtual_size and register_virtual_type.
1194 2003-03-14 Andrew Cagney <cagney@redhat.com>
1196 * frame.c (get_prev_frame): When a legacy frame, always call
1197 legacy_get_prev_frame. Simplify unwind code using assumption that
1198 the unwinder is new.
1199 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
1200 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
1201 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
1203 2003-03-14 Andrew Cagney <cagney@redhat.com>
1205 * frame.c (get_saved_register): Delete function.
1206 * frame.h (get_saved_register): Delete declaration.
1207 * xstormy16-tdep.c: Update comment.
1208 * regcache.h: Update comments.
1209 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
1210 get_saved_register and extract_address, use
1211 frame_read_unsigned_register.
1212 (sparc_frame_saved_pc): Ditto.
1213 (sparc_get_saved_register): Instead of get_saved_register, use
1215 (sparc_pop_frame): Ditto.
1216 * findvar.c: Update comments.
1217 (value_of_register): Call frame_register instead of
1219 (value_from_register): Ditto.
1220 * config/sparc/tm-sparc.h: Update comment.
1221 * breakpoint.c: Update comment.
1223 2003-03-14 Andrew Cagney <cagney@redhat.com>
1225 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
1227 * gdbarch.h, gdbarch.c: Re-generate.
1228 * frame.h: Update comments.
1229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1230 * x86-64-tdep.c (x86_64_init_abi): Update.
1231 * sparc-tdep.c (sparc_gdbarch_init): Update.
1232 * sh-tdep.c (sh_gdbarch_init): Update.
1233 * mips-tdep.c (mips_gdbarch_init): Update.
1234 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1235 * cris-tdep.c (cris_gdbarch_init): Update.
1236 * ia64-tdep.c (ia64_gdbarch_init): Update.
1237 * frame.c (frame_register): Update.
1238 (get_saved_register): Update.
1239 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
1241 2003-03-13 Andrew Cagney <cagney@redhat.com>
1243 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
1244 * gdbarch.h, gdbarch.c: Regenerate.
1245 * valops.c (hand_function_call): Update comment.
1246 * stack.c (return_command): Update comment.
1247 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
1248 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
1249 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1250 * x86-64-tdep.c (x86_64_init_abi): Update.
1251 * vax-tdep.c (vax_gdbarch_init): Update.
1252 * v850-tdep.c (v850_gdbarch_init): Update.
1253 * sparc-tdep.c (sparc_gdbarch_init): Update.
1254 * sh-tdep.c (sh_gdbarch_init): Update.
1255 * s390-tdep.c (s390_gdbarch_init): Update.
1256 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1257 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1258 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1259 * mips-tdep.c (mips_gdbarch_init): Update.
1260 * mcore-tdep.c (mcore_gdbarch_init): Update.
1261 * m68k-tdep.c (m68k_gdbarch_init): Update.
1262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1263 * ia64-tdep.c (ia64_gdbarch_init): Update.
1264 * i386-tdep.c (i386_gdbarch_init): Update.
1265 * hppa-tdep.c (hppa_gdbarch_init): Update.
1266 * h8300-tdep.c (h8300_gdbarch_init): Update.
1267 * frv-tdep.c (frv_gdbarch_init): Update.
1268 * cris-tdep.c (cris_gdbarch_init): Update.
1269 * avr-tdep.c (avr_gdbarch_init): Update.
1270 * arm-tdep.c (arm_gdbarch_init): Update.
1271 * alpha-tdep.c (alpha_gdbarch_init): Update.
1273 2003-03-13 Andrew Cagney <cagney@redhat.com>
1275 * frame.c (legacy_frame_p): New function.
1276 (get_prev_frame): Use legacy_frame_p.
1277 * frame.h (legacy_frame_p): Declare.
1279 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1281 * MAINTAINERS (write after approval): Alphabetically
1284 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1286 * MAINTAINERS (write after approval): Add myself.
1288 2003-03-12 Andrew Cagney <cagney@redhat.com>
1290 * frame.c (get_prev_frame): Rename the frame parameter to
1292 (get_next_frame, legacy_get_prev_frame): Ditto.
1294 2003-03-12 Andrew Cagney <cagney@redhat.com>
1296 * frame.c (get_current_frame): Check target_has_registers before
1297 checking target_has_stack.
1298 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
1299 instead of deprecated_selected_frame.
1300 * findvar.c (value_of_register): Pass "frame", not
1301 deprecated_selected_frame, to value_of_builtin_reg.
1303 2003-03-12 Andrew Cagney <cagney@redhat.com>
1305 * regcache.c (regcache_cooked_write_signed): New function.
1306 (regcache_cooked_write_unsigned): New function.
1307 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
1308 (regcache_cooked_read_signed): Fix regnum in range assertion.
1309 * regcache.h (regcache_cooked_write_signed): Declare.
1310 (regcache_cooked_write_unsigned): Declare.
1312 2003-03-12 Andrew Cagney <cagney@redhat.com>
1314 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1315 * gdbarch.h, gdbarch.c: Re-generate.
1316 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1317 * x86-64-tdep.h: Update.
1318 * x86-64-tdep.c (x86_64_init_abi): Update.
1319 * v850-tdep.c (v850_gdbarch_init): Update.
1320 * sparc-tdep.c (sparc_gdbarch_init): Update.
1321 * sh-tdep.c (sh_gdbarch_init): Update.
1322 * s390-tdep.c (s390_gdbarch_init): Update.
1323 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1324 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1325 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1326 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1327 * mips-tdep.c (mips_gdbarch_init): Update.
1328 * mcore-tdep.c (mcore_gdbarch_init): Update.
1329 * m68k-tdep.c (m68k_gdbarch_init): Update.
1330 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1331 * ia64-tdep.c (ia64_gdbarch_init): Update.
1332 * i386-tdep.c (i386_gdbarch_init): Update.
1333 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1334 * hppa-tdep.c (hppa_gdbarch_init): Update.
1335 * h8300-tdep.c (h8300_gdbarch_init): Update.
1336 * frv-tdep.c (frv_gdbarch_init): Update.
1337 * cris-tdep.c (cris_gdbarch_init): Update.
1338 * avr-tdep.c (avr_gdbarch_init): Update.
1339 * arm-tdep.c (arm_gdbarch_init): Update.
1340 * alpha-tdep.c (alpha_gdbarch_init): Update.
1341 * sh-tdep.c (sh_init_extra_frame_info): Update.
1342 (sh64_init_extra_frame_info): Update.
1343 * ns32knbsd-nat.c (frame_num_args): Update.
1344 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1345 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1346 (xstormy16_frame_chain_valid): Update.
1347 * vax-tdep.c (vax_saved_pc_after_call): Update.
1348 * v850-tdep.c (v850_frame_chain): Update.
1349 (v850_pop_frame): Update.
1350 (v850_init_extra_frame_info): Update.
1351 * sparc-tdep.c (setup_arbitrary_frame): Update.
1352 * ns32k-tdep.c (umax_frame_num_args): Update.
1353 * s390-tdep.c (s390_pop_frame_regular): Update.
1354 * mn10300-tdep.c (mn10300_frame_chain): Update.
1355 (mn10300_pop_frame_regular): Update.
1356 (mn10300_init_extra_frame_info): Update.
1357 * mips-tdep.c (mips_init_frame_pc_first): Update.
1358 (mips_frame_chain): Update.
1359 (mips_pop_frame): Update.
1360 * mcore-tdep.c (mcore_frame_chain): Update.
1361 (mcore_pop_frame): Update.
1362 (mcore_init_extra_frame_info): Update.
1363 * arch-utils.c (init_frame_pc_default): Update.
1364 * m68k-tdep.c (isi_frame_num_args): Update.
1365 (delta68_frame_num_args): Update.
1366 (news_frame_num_args): Update.
1367 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1368 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1369 (alpha_frame_chain): Update.
1370 (alpha_pop_frame): Update.
1371 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1372 (hppa_init_extra_frame_info): Update.
1373 (hppa_frame_chain): Update.
1374 (hppa_frame_chain_valid): Update.
1375 * cris-tdep.c (cris_init_extra_frame_info): Update.
1376 * avr-tdep.c (avr_init_extra_frame_info): Update.
1377 * arm-tdep.c (arm_frame_chain_valid): Update.
1378 (arm_init_extra_frame_info): Update.
1379 (arm_pop_frame): Update.
1380 * frame.c (frame_pc_unwind): Update.
1381 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1382 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1383 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1384 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1385 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1386 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1388 2003-03-12 Andrew Cagney <cagney@redhat.com>
1390 Eliminate the need for POP_FRAME.
1391 * frame.c (do_frame_unwind_register): New function.
1392 (frame_pop): When no POP_FRAME, pop the frame using register
1393 unwind and a scratch regcache.
1394 (frame_saved_regs_pop): Delete function.
1395 (trad_frame_unwinder): Update.
1396 * d10v-tdep.c (d10v_frame_pop): Delete function.
1397 (d10v_frame_unwind): Update.
1398 * sentinel-frame.c (sentinel_frame_pop): Delete function.
1399 (sentinel_frame_unwinder): Update.
1400 * dummy-frame.c (dummy_frame_pop): Delete function.
1401 (dummy_frame_unwind): Update.
1402 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
1403 (struct frame_unwind): Update.
1405 2003-03-11 Kevin Buettner <kevinb@redhat.com>
1407 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
1408 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
1409 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
1410 Do range checks on register number obtained from debugging info.
1411 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
1412 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
1413 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
1415 (do_fp_register_row): Fix typo which caused double type to be
1416 used when attempting to unpack a float.
1418 2003-03-11 J. Brobecker <brobecker@gnat.com>
1420 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
1422 2003-03-11 Andrew Cagney <cagney@redhat.com>
1424 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
1425 frame. Problem found by Corinna Vinschen.
1427 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
1429 * doublest.c (floatformat_from_length): Accept also
1430 the real size of 'long double' type.
1432 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
1434 From Klee Dienes <kdienes@apple.com>:
1435 * breakpoint.c (bpstat_copy): Copy the command lines as well
1436 as the old value, to match what is freed in bpstat_clear.
1438 2003-03-10 David Carlton <carlton@math.stanford.edu>
1440 * minsyms.c (add_minsym_to_hash_table): Replace
1441 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1442 (compare_minimal_symbols, compact_minimal_symbols)
1443 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
1444 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
1445 of DEPRECATED_SYMBOL_MATCHES_NAME.
1446 (lookup_minimal_symbol_solib_trampoline): Ditto.
1448 2003-03-10 Andrew Cagney <cagney@redhat.com>
1450 * regcache.h (regcache_cooked_read_ftype): Define.
1451 (regcache_save, regcache_restore): Add a cooked_read parameter.
1452 * regcache.c (regcache_save, regcache_restore): Update.
1453 (do_cooked_read): New function.
1454 (regcache_cpy): Pass do_cooked_read to regcache_save and
1457 2003-03-10 Andrew Cagney <cagney@redhat.com>
1459 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1460 * gdbarch.h, gdbarch.c: Re-generate.
1461 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1462 * x86-64-tdep.h: Update.
1463 * x86-64-tdep.c (x86_64_init_abi): Update.
1464 * v850-tdep.c (v850_gdbarch_init): Update.
1465 * sparc-tdep.c (sparc_gdbarch_init): Update.
1466 * sh-tdep.c (sh_gdbarch_init): Update.
1467 * s390-tdep.c (s390_gdbarch_init): Update.
1468 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1469 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1470 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1471 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1472 * mips-tdep.c (mips_gdbarch_init): Update.
1473 * mcore-tdep.c (mcore_gdbarch_init): Update.
1474 * m68k-tdep.c (m68k_gdbarch_init): Update.
1475 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1476 * ia64-tdep.c (ia64_gdbarch_init): Update.
1477 * i386-tdep.c (i386_gdbarch_init): Update.
1478 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1479 * hppa-tdep.c (hppa_gdbarch_init): Update.
1480 * h8300-tdep.c (h8300_gdbarch_init): Update.
1481 * frv-tdep.c (frv_gdbarch_init): Update.
1482 * cris-tdep.c (cris_gdbarch_init): Update.
1483 * avr-tdep.c (avr_gdbarch_init): Update.
1484 * arm-tdep.c (arm_gdbarch_init): Update.
1485 * alpha-tdep.c (alpha_gdbarch_init): Update.
1486 * sh-tdep.c (sh_init_extra_frame_info): Update.
1487 (sh64_init_extra_frame_info): Update.
1488 * ns32knbsd-nat.c (frame_num_args): Update.
1489 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1490 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1491 (xstormy16_frame_chain_valid): Update.
1492 * vax-tdep.c (vax_saved_pc_after_call): Update.
1493 * v850-tdep.c (v850_frame_chain): Update.
1494 (v850_pop_frame): Update.
1495 (v850_init_extra_frame_info): Update.
1496 * sparc-tdep.c (setup_arbitrary_frame): Update.
1497 * ns32k-tdep.c (umax_frame_num_args): Update.
1498 * s390-tdep.c (s390_pop_frame_regular): Update.
1499 * mn10300-tdep.c (mn10300_frame_chain): Update.
1500 (mn10300_pop_frame_regular): Update.
1501 (mn10300_init_extra_frame_info): Update.
1502 * mips-tdep.c (mips_init_frame_pc_first): Update.
1503 (mips_frame_chain): Update.
1504 (mips_pop_frame): Update.
1505 * mcore-tdep.c (mcore_frame_chain): Update.
1506 (mcore_pop_frame): Update.
1507 (mcore_init_extra_frame_info): Update.
1508 * arch-utils.c (init_frame_pc_default): Update.
1509 * m68k-tdep.c (isi_frame_num_args): Update.
1510 (delta68_frame_num_args): Update.
1511 (news_frame_num_args): Update.
1512 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1513 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1514 (alpha_frame_chain): Update.
1515 (alpha_pop_frame): Update.
1516 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1517 (hppa_init_extra_frame_info): Update.
1518 (hppa_frame_chain): Update.
1519 (hppa_frame_chain_valid): Update.
1520 * cris-tdep.c (cris_init_extra_frame_info): Update.
1521 * avr-tdep.c (avr_init_extra_frame_info): Update.
1522 * arm-tdep.c (arm_frame_chain_valid): Update.
1523 (arm_init_extra_frame_info): Update.
1524 (arm_pop_frame): Update.
1525 * frame.c (frame_pc_unwind): Update.
1526 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1527 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1528 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1529 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1530 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1531 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1533 2003-03-10 Andrew Cagney <cagney@redhat.com>
1535 * gdbarch.sh (gdbarch_unwind_pc): New method.
1536 * gdbarch.h, gdbarch.c: Regenerate.
1537 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
1538 but use read_pc and FRAME_SAVED_PC as fall backs.
1539 (frame_saved_regs_pc_unwind): Delete function.
1540 (trad_frame_unwinder): Update.
1541 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
1542 (struct frame_unwind): Update.
1543 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
1544 (dummy_frame_unwind): Update.
1545 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
1546 (sentinel_frame_unwinder): Update.
1547 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
1548 (d10v_frame_unwind): Update.
1549 (d10v_unwind_pc): New function.
1550 (d10v_gdbarch_init): Set unwind_pc.
1552 2003-03-10 Andrew Cagney <cagney@redhat.com>
1554 * gdbarch.h: Re-generate.
1556 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
1558 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
1561 2003-03-08 Mark Kettenis <kettenis@gnu.org>
1563 * gdbarch.sh (save_dummy_frame_tos): Add comment.
1565 2003-03-08 Andrew Cagney <cagney@redhat.com>
1567 * cli-out.c: Update copyright.
1568 (cli_out_data): Define typedef. Use instead of ui_out_data.
1570 2003-03-08 Andrew Cagney <cagney@redhat.com>
1572 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
1575 2003-03-07 Andrew Cagney <cagney@redhat.com>
1577 * gdbarch.sh: Don't generate two macro definitions when an
1578 undefined macro taking no arguments.
1579 * gdbarch.h: Regenerate.
1581 2002-03-07 Michal Ludvig <mludvig@suse.cz>
1583 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
1584 (x86_64_unwind_dummy_id): New functions.
1585 (x86_64_init_abi): Register these two new functions.
1587 2003-03-07 Michal Ludvig <mludvig@suse.cz>
1589 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
1590 (x86_64_skip_prologue): Move prologue detection to
1592 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
1594 2003-03-05 Andrew Cagney <cagney@redhat.com>
1596 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
1597 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
1598 * frame.c (get_prev_frame): Restructure the frame ID unwind code
1599 to use unwind_dummy_id when a dummy frame.
1600 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
1602 * gdbarch.h, gdbarch.c: Regneerate.
1604 2003-03-05 Andrew Cagney <cagney@redhat.com>
1606 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
1607 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
1608 Do not use d10v_read_sp or d10v_read_fp when obtaining register
1611 2003-03-05 Andrew Cagney <cagney@redhat.com>
1613 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
1614 (struct d10v_unwind_cache): Delete field "frameless". Replace
1615 "next_addr" with "sp_offset". Add "r11_offset".
1616 (d10v_frame_unwind_cache): Update.
1617 (prologue_find_regs): Update. When "mv r11, sp", save the
1618 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
1619 RN was saved in r11_offset.
1621 2003-03-05 Andrew Cagney <cagney@redhat.com>
1623 * frame.c (deprecated_update_frame_pc_hack): Also update the the
1624 cached PC value in the next frame.
1626 2003-03-05 Andrew Cagney <cagney@redhat.com>
1628 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
1629 "id_unwind_cache" with "id".
1630 (frame_id_unwind): Delete declaration.
1631 * frame.c (frame_id_unwind): Delete function.
1632 (get_prev_frame): Call the frame id unwind method directly. Store
1633 the returned next frame's ID value in NEXT_FRAME. Note that there
1634 is a problem with the wrong unwind ID being called with the wrong
1637 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
1639 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
1641 2003-03-05 James Ingham <jingham@apple.com>
1642 Daniel Jacobowitz <drow@mvista.com>
1644 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
1645 (auto_cp_abi): New variable.
1646 (current_cp_abi, num_cp_abis): Make static.
1647 (CP_ABI_MAX): Define.
1648 (cp_abis): Turn into an array.
1649 (value_virtual_fn_field): Fix formatting.
1650 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
1652 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
1653 (list_cp_abis, _initialize_cp_abi): New functions.
1654 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
1655 declarations for cp_abis, num_cp_abis, current_cp_abi, and
1656 switch_to_cp_abi. Update prototype for register_cp_abi.
1657 * Makefile.in (cp-abi.o): Update dependencies.
1658 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
1659 instead of switch_to_cp_abi.
1660 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
1662 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
1664 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
1666 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
1668 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
1669 * dwarf2loc.c: Include "regcache.h".
1670 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
1672 * Makefile.in (dwarf2loc.o): Update dependencies.
1674 2003-03-04 Theodore A. Roth <troth@openavr.org>
1676 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
1677 number of io registers reported by remote target is not a multiple of
1680 2003-03-04 David Carlton <carlton@math.stanford.edu>
1682 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
1683 (lookup_symbol_aux_psymtabs): Update call to
1684 lookup_partial_symbol.
1685 (lookup_transparent_type, find_main_psymtab)
1686 (make_symbol_overload_list): Ditto.
1688 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
1690 * MAINTAINERS (Write after approval): Update my email address.
1692 2003-03-03 Andrew Cagney <cagney@redhat.com>
1694 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
1695 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
1696 predicate. Replace MAX_REGISTER_RAW_SIZE.
1697 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
1698 MAX_REGISTER_VIRTUAL_SIZE.
1699 * regcache.c (legacy_max_register_raw_size): New function.
1700 (legacy_max_register_virtual_size): New function.
1701 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
1702 (MAX_REGISTER_RAW_SIZE): Define.
1703 (legacy_max_register_raw_size): Declare.
1704 (legacy_max_register_virtual_size): Declare.
1705 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1706 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
1707 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1708 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1709 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1710 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1711 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1712 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1713 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1714 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1715 * vax-tdep.c (vax_gdbarch_init): Update.
1716 * v850-tdep.c (v850_gdbarch_init): Update.
1717 * sparc-tdep.c (sparc_gdbarch_init): Update.
1718 * sh-tdep.c (sh_gdbarch_init): Update.
1719 * s390-tdep.c (s390_gdbarch_init): Update.
1720 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1721 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1722 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1723 * mips-tdep.c (mips_gdbarch_init): Update.
1724 * mcore-tdep.c (mcore_gdbarch_init): Update.
1725 * m68k-tdep.c (m68k_gdbarch_init): Update.
1726 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1727 * ia64-tdep.c (ia64_gdbarch_init): Update.
1728 * i386-tdep.c (i386_gdbarch_init): Update.
1729 * hppa-tdep.c (hppa_gdbarch_init): Update.
1730 * h8300-tdep.c (h8300_gdbarch_init): Update.
1731 * frv-tdep.c (frv_gdbarch_init): Update.
1732 * cris-tdep.c (cris_gdbarch_init): Update.
1733 * avr-tdep.c (avr_gdbarch_init): Update.
1734 * arm-tdep.c (arm_gdbarch_init): Update.
1735 * alpha-tdep.c (alpha_gdbarch_init): Update.
1736 * d10v-tdep.c (d10v_gdbarch_init): Do not set
1737 max_register_raw_size or max_register_virtual_size.
1739 2003-03-03 David Carlton <carlton@math.stanford.edu>
1741 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
1742 SYMBOL_MATCHES_NAME, add comment.
1743 (SYMBOL_MATCHES_NATURAL_NAME): New.
1744 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
1745 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
1746 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
1747 * symtab.c (lookup_partial_symbol): Use
1748 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
1750 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
1751 SYMBOL_MATCHES_NAME.
1754 2003-03-03 David Carlton <carlton@math.stanford.edu>
1756 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
1757 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
1758 by regexp matching against SYMBOL_NATURAL_NAME.
1760 2003-03-03 David Carlton <carlton@math.stanford.edu>
1762 * linespec.c (find_method): Extract code into collect_methods.
1763 (collect_methods): New.
1765 2003-03-02 Mark Kettenis <kettenis@gnu.org>
1767 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
1770 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
1771 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1773 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
1775 * arch-utils.c (generic_register_byte): Fix to use the loop index
1776 and not regnum when summing the size of all registers up to regnum.
1778 2003-03-01 Andrew Cagney <cagney@redhat.com>
1780 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
1781 FRAME_INIT_SAVED_REGS.
1782 * gdbarch.h, gdbarch.c: Regenerate.
1783 * stack.c (frame_info): Update.
1784 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
1785 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
1786 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
1787 * ns32k-tdep.c (ns32k_pop_frame): Update.
1788 * mips-tdep.c (mips_pop_frame): Update.
1789 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
1790 * ia64-tdep.c (ia64_frame_chain): Update.
1791 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
1792 (ia64_frameless_function_invocation): Update.
1793 (ia64_init_extra_frame_info): Update.
1794 (ia64_pop_frame_regular): Update.
1795 * frame.h (struct frame_info): Update comment.
1796 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
1797 * frame.c (frame_saved_regs_register_unwind): Update.
1798 (frame_saved_regs_register_unwind): Update.
1799 (deprecated_generic_get_saved_register): Update.
1800 * cris-tdep.c: Update comment.
1801 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
1803 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1804 * x86-64-tdep.c (x86_64_init_abi): Update.
1805 * vax-tdep.c (vax_gdbarch_init): Update.
1806 * v850-tdep.c (v850_gdbarch_init): Update.
1807 * sparc-tdep.c (sparc_gdbarch_init): Update.
1808 * sh-tdep.c (sh_gdbarch_init): Update.
1809 * s390-tdep.c (s390_gdbarch_init): Update.
1810 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1811 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1812 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1813 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1814 * mips-tdep.c (mips_gdbarch_init): Update.
1815 * mcore-tdep.c (mcore_gdbarch_init): Update.
1816 * m68k-tdep.c (m68k_gdbarch_init): Update.
1817 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1818 * ia64-tdep.c (ia64_gdbarch_init): Update.
1819 * i386-tdep.c (i386_gdbarch_init): Update.
1820 * frv-tdep.c (frv_gdbarch_init): Update.
1821 * avr-tdep.c (avr_gdbarch_init): Update.
1822 * arm-tdep.c (arm_gdbarch_init): Update.
1823 * alpha-tdep.c (alpha_gdbarch_init): Update.
1825 2003-03-01 Andrew Cagney <cagney@redhat.com>
1827 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
1828 option enum and switch. When no windows, set the interpreter to
1831 2003-03-01 Andrew Cagney <cagney@redhat.com>
1833 * main.c (captured_main): Replace magic option characters with an
1836 2003-03-01 Andrew Cagney <cagney@redhat.com>
1838 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
1839 INIT_EXTRA_FRAME_INFO.
1840 * gdbarch.h, gdbarch.c: Regenerate.
1841 * arm-tdep.c: Update comments.
1842 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
1843 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
1844 * frame.h, avr-tdep.c: Ditto.
1845 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
1846 (create_new_frame, legacy_get_prev_frame): Ditto.
1847 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1848 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1849 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
1850 deprecated_init_extra_frame_info instead of init_extra_frame_info.
1851 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1852 * v850-tdep.c (v850_gdbarch_init): Ditto.
1853 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1854 * sh-tdep.c (sh_gdbarch_init): Ditto.
1855 * s390-tdep.c (s390_gdbarch_init): Ditto.
1856 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1857 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1858 * mips-tdep.c (mips_gdbarch_init): Ditto.
1859 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1860 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1861 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1862 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1863 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1864 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1865 * frv-tdep.c (frv_gdbarch_init): Ditto.
1866 * cris-tdep.c (cris_gdbarch_init): Ditto.
1867 * avr-tdep.c (avr_gdbarch_init): Ditto.
1868 * arm-tdep.c (arm_gdbarch_init): Ditto.
1869 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1870 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1872 2003-03-01 Andrew Cagney <cagney@redhat.com>
1874 * gdbarch.sh (register_type): New function with predicate.
1875 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
1876 * gdbarch.h, gdbarch.c: Re-generate.
1877 * arch-utils.c (generic_register_byte): Use generic_register_size.
1878 (generic_register_size): When available, use
1879 gdbarch_register_type.
1880 * regcache.c (init_regcache_descr): When available, initialize the
1881 register type array using gdbarch_register_type. If the
1882 architecture supplies gdbarch_register_type, do not use the legacy
1884 * d10v-tdep.c (d10v_register_type): Replace
1885 d10v_register_virtual_type.
1886 (d10v_gdbarch_init): Set register_type instead of
1887 register_virtual_type.
1889 2003-03-01 Andrew Cagney <cagney@redhat.com>
1891 * Makefile.in (ax-gdb.o): Update dependencies.
1892 * ax-gdb.c: Include "regcache.h".
1893 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
1894 * findvar.c (value_of_register): Ditto.
1895 * infcmd.c (default_print_registers_info): Ditto.
1897 2003-03-01 Mark Kettenis <kettenis@gnu.org>
1899 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
1900 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1902 2003-03-01 Mark Kettenis <kettenis@gnu.org>
1904 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
1907 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
1909 * Makefile.in (dwarf2loc.o): Update dependencies.
1910 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
1911 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
1912 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
1913 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
1914 (locexpr_tracepoint_var_ref): New function.
1915 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
1917 2003-02-28 Andrew Cagney <cagney@redhat.com>
1919 * regcache.c (register_size): New function.
1920 * regcache.h (register_size): Declare
1921 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
1922 max_register_size instead of MAX_REGISTER_RAW_SIZE.
1924 2003-02-28 David Carlton <carlton@math.stanford.edu>
1926 * linespec.c (decode_compound): Extract code into find_method.
1929 2003-02-28 J. Brobecker <brobecker@gnat.com>
1931 * Makefile.in: Add rules to build and link in observer.o.
1933 2003-02-27 J. Brobecker <brobecker@gnat.com>
1935 * observer.c: Minor comments edits.
1937 2003-02-27 J. Brobecker <brobecker@gnat.com>
1939 * observer.h, observer.c: New file.
1941 2003-02-27 Andrew Cagney <cagney@redhat.com>
1943 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
1945 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
1947 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
1948 (M6812_OP_STS_EXT): Likewise.
1949 (m6811_prologue): Use the above to recognize prologue.
1950 (m6812_prologue): Likewise.
1952 2003-02-27 David Carlton <carlton@math.stanford.edu>
1954 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
1956 (compare_psymbols): Ditto.
1957 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
1959 2003-02-27 Michael Snyder <msnyder@redhat.com>
1961 * f-lang.c (build_fortran_types): New function.
1962 (_initialize_f_language): Gdbarch-register built-in fortran types.
1963 * doublest.c (extract_floating): Fix warning text.
1965 2003-02-27 Andrew Cagney <cagney@redhat.com>
1967 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
1968 predicate. Replaces PUSH_DUMMY_FRAME.
1969 * gdbarch.h, gdbarch.c: Regnerate.
1970 * valops.c (hand_function_call): Update. Call
1971 generic_push_dummy_frame directly.
1972 * vax-tdep.c (vax_gdbarch_init): Update.
1973 * sparc-tdep.c (sparc_gdbarch_init): Update.
1974 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1975 * m68k-tdep.c (m68k_gdbarch_init): Update.
1976 * hppa-tdep.c (hppa_gdbarch_init): Update.
1977 * alpha-tdep.c (alpha_gdbarch_init): Update.
1978 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
1979 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
1980 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
1981 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
1982 push_dummy_frame to generic_push_dummy_frame.
1983 * v850-tdep.c (v850_gdbarch_init): Ditto.
1984 * sh-tdep.c (sh_gdbarch_init): Ditto.
1985 * s390-tdep.c (s390_gdbarch_init): Ditto.
1986 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1987 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1988 * mips-tdep.c (mips_gdbarch_init): Ditto.
1989 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1990 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1991 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1992 * i386-tdep.c (i386_gdbarch_init): Ditto.
1993 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1994 * frv-tdep.c (frv_gdbarch_init): Ditto.
1995 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1996 * cris-tdep.c (cris_gdbarch_init): Ditto.
1997 * avr-tdep.c (avr_gdbarch_init): Ditto.
1998 * arm-tdep.c (arm_gdbarch_init): Ditto.
2000 2003-02-26 Kevin Buettner <kevinb@redhat.com>
2002 * mips-tdep.c (show_mips_abi): New function.
2003 (_initialize_mips_tdep): Use show_mips_abi() to implement the
2004 command ``show mips abi''.
2006 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
2008 From Elena Zannoni <ezannoni@redhat.com>
2009 * dbxread.c (process_one_symbol): Only record line 0 if one or
2010 more sline entries have been seen for the function.
2012 2003-02-26 Michael Chastain <mec@shout.net>
2014 * configure: Regenerate with autoconf 000227.
2016 2003-02-26 Michael Chastain <mec@shout.net>
2019 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
2020 for old libc5/glibc.
2021 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
2023 2003-02-26 Kris Warkentin <kewarken@qnx.com>
2025 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
2026 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
2028 2003-02-26 Michael Chastain <mec@shout.net>
2030 * configure.in: New variable HAVE_UINTPTR_T.
2031 * configure, config.in: Regenerated.
2033 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
2036 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
2038 2003-02-25 Andrew Cagney <cagney@redhat.com>
2040 * frame.c (get_prev_frame): Add comment on check for
2041 inside_entry_func. Only check for inside_entry_file when not a
2042 dummy and not a sentinel. Check that the new frame is not inner
2045 2003-02-25 Andrew Cagney <cagney@redhat.com>
2047 * frame.c (frame_debug): New variable.
2048 (_initialize_frame): Add "set/show debug frame" command.
2049 (get_prev_frame): When frame_debug, print reason why unwind
2052 2003-02-25 Michael Chastain <mec@shout.net>
2054 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
2055 to avoid uintptr_t definition problems.
2057 2003-02-25 David Carlton <carlton@math.stanford.edu>
2059 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
2060 (SYMBOL_LINKAGE_NAME): Ditto.
2061 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
2062 SYMBOL_LINKAGE_NAME.
2063 (struct general_symbol_info): Expand comment.
2064 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
2065 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
2066 (SYMBOL_MATCHES_REGEXP): Ditto.
2067 * symtab.c (symbol_natural_name): New function.
2068 * objfiles.h: Replace all uses of SYMBOL_NAME by
2069 DEPRECATED_SYMBOL_NAME.
2070 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
2071 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
2072 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
2073 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
2074 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
2075 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
2076 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
2077 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
2078 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
2079 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
2081 * ada-exp.y: Update copyright.
2082 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
2083 * cp-valprint.c: Ditto.
2085 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
2087 * infptrace.c (detach): Do not flag error if ptrace detach fails
2088 and errno is set to ESRCH.
2090 2003-02-24 Andrew Cagney <cagney@redhat.com>
2092 * infptrace.c (udot_info): Change type of udot_off to long. Use
2093 paddr when printing udot_off's value.
2095 2003-02-24 David Carlton <carlton@math.stanford.edu>
2097 * symtab.c (make_symbol_overload_list): Only read in partial
2098 symtabs containing a matching partial symbol.
2100 2003-02-24 David Carlton <carlton@math.stanford.edu>
2102 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
2103 do the comparison, not strcmp.
2104 * symfile.c (compare_psymbols): Ditto.
2105 * defs.h: Declare strcmp_iw_ordered.
2106 * utils.c (strcmp_iw_ordered): New function.
2108 2003-02-24 Jim Blandy <jimb@redhat.com>
2110 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
2111 support, shared libs): Remove my name from here, to better reflect
2114 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2116 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
2117 (target_ops): Add to_have_continuable_watchpoint.
2118 * target.c (update_current_target): Add INHERIT line for
2119 to_have_continuable_watchpoint.
2120 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
2121 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
2122 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
2123 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
2125 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
2127 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
2130 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2132 * solib.c (solib_open): Call target defined search function after
2133 failing with solib-search-path.
2134 * solist.h (target_so_ops): Add find_and_open_solib function hook and
2135 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2137 2003-02-24 Kris Warkentin <kewarken@qnx.com>
2139 * MAINTAINERS: Add myself to Write After section.
2141 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
2143 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
2145 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
2147 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
2148 (m68hc11_add_reggroups): New function.
2149 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
2150 (m68hc11_gdbarch_init): Install the reggroups.
2151 (_initialize_m68hc11_tdep): Initialize them.
2153 2003-02-21 James E Wilson <wilson@tuliptree.org>
2155 * MAINTAINERS: Update my email address.
2157 2003-02-21 David Carlton <carlton@math.stanford.edu>
2159 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
2161 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
2163 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
2164 * symtab.h: Add opaque declarations of struct axs_value and
2166 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
2167 (struct location_funcs): New type.
2168 (struct symbol): Add "loc" to aux_value.
2169 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
2170 * dwarf2read.c: Include "dwarf2expr.h".
2171 (dwarf2_symbol_mark_computed): New function.
2172 (read_func_scope): Use it.
2173 (var_decode_location): New function.
2174 (new_symbol): Use it.
2175 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
2177 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
2178 (dwarf2expr_h, dwarf2loc_h): New variables.
2179 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
2180 (dwarf2expr.o, dwarf2loc.o): New rules.
2181 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
2182 * buildsym.c (finish_block): Handle LOC_COMPUTED and
2184 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2185 * m2-exp.y (yylex): Likewise.
2186 * printcmd.c (address_info, print_frame_args): Likewise.
2187 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
2188 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2189 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
2190 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
2191 * symtab.c (lookup_block_symbol): Likewise.
2193 2003-02-20 Adam Fedor <fedor@gnu.org>
2195 * symtab.h: Remove objc_specific struct
2196 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
2197 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
2198 Have language_objc use cplus_specific struct.
2200 2003-02-20 Tom Tromey <tromey@redhat.com>
2202 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
2203 TYPE_NAME, when printing a String value. PR java/1075.
2205 2003-02-20 Adam Fedor <fedor@gnu.org>
2207 * objc-lang.h (find_methods): Remove declaration.
2208 * objc-lang.c (find_methods): Make static.
2210 2003-02-20 Christopher Faylor <cgf@redhat.com>
2212 * win32-nat.c (get_image_name): Check return value from
2214 (child_xfer_memory): Ditto.
2216 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2218 * configure.in (TARGET_SYSTEM_ROOT): Set default to
2219 ${exec_prefix}/${target_alias}/sys-root. Match explicit
2220 '${exec_prefix}' (in addition to the expansion thereof) as
2222 * configure: Rebuilt.
2224 2003-02-20 David Carlton <carlton@math.stanford.edu>
2226 * symtab.c (search_symbols): Revert the search_symbols part of my
2227 2002-12-23 patch. Add comment.
2229 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2231 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
2232 * dbxread.c (elfstab_build_psymtabs): Don't call
2233 install_minimal_symbols.
2234 (stabsect_build_psymtabs): Likewise.
2235 * elfread.c (elf_symfile_read): Call install_minimal_symbols
2237 * somread.c (som_symfile_read): Call install_minimal_symbols
2238 and do_cleanups earlier.
2239 * nlmread.c (nlm_symfile_read): Likewise.
2240 * mdebugread.c (elfmdebug_build_psymtabs): Call
2241 install_minimal_symbols and make appropriate cleanups.
2243 2003-02-20 Kevin Buettner <kevinb@redhat.com>
2245 * solib.c (reload_shared_libraries): New function.
2246 (_initialize_solib): Add callbacks for ``set solib-search-path''
2247 and ``set solib-absolute-prefix''.
2249 2003-02-20 David Carlton <carlton@math.stanford.edu>
2251 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
2253 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
2254 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
2255 * ada-typeprint.c (ada_typedef_print): Ditto.
2256 * ax-gdb.c (gen_var_ref): Ditto.
2257 * breakpoint.c (print_one_breakpoint): Ditto.
2258 * buildsym.c (finish_block): Ditto.
2259 * c-valprint.c (c_val_print): Ditto.
2260 * expprint.c (print_subexp): Ditto.
2261 * findvar.c (locate_var_value): Ditto.
2262 * infcmd.c (jump_command): Ditto.
2263 * linespec.c (decode_line_2, decode_compound): Ditto.
2264 * maint.c (maintenance_translate_address): Ditto.
2265 * objc-lang.c (compare_selectors, compare_classes): Ditto.
2266 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
2268 * p-valprint.c (pascal_val_print): Ditto.
2269 * stabsread.c (define_symbol): Ditto.
2270 * stack.c (print_frame, frame_info, print_block_frame_locals)
2271 (print_frame_arg_vars, return_command): Ditto.
2272 * symfile.c (compare_symbols, compare_psymbols): Ditto.
2273 * symmisc.c (print_symbol): Ditto.
2274 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
2275 (compare_search_syms, print_symbol_info, print_msymbol_info)
2276 (rbreak_command): Ditto.
2277 * tracepoint.c (tracepoints_info): Ditto.
2278 * typeprint.c (typedef_print): Ditto.
2279 * valops.c (value_of_variable, hand_function_call): Ditto.
2280 * cli/cli-cmds.c (edit_command, list_command): Ditto.
2281 * ada-typeprint.c: Update Copyright.
2282 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
2283 * tracepoint.c, cli/cli-cmds.c: Ditto.
2285 2003-02-20 Kevin Buettner <kevinb@redhat.com>
2287 * frame.c (generic_unwind_get_saved_register): Make non-static.
2288 * frame.h (generic_unwind_get_saved_register): Declare.
2289 * mips-tdep.c (read_next_frame_reg): Fetch register from
2290 current regcache when frame is NULL.
2291 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
2293 (mips_get_saved_register): Call generic_unwind_get_saved_register()
2294 instead of frame_register_unwind().
2296 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2298 * remote-sim.c (gdbsim_insert_breakpoint)
2299 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
2302 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2304 * remote.c (_initialize_remote): Add commands "set/show remote
2305 hardware-watchpoint-limit" and "set/show remote
2306 hardware-breakpoint-limit".
2307 (remote_hw_watchpoint_limit): Initialize to -1.
2308 (remote_hw_breakpoint_limit): Ditto.
2309 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
2311 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
2313 * coff-pe-read.c: New file - support reading of minimal symbols from a
2314 portable executable using the export table.
2315 * coff-pe-read.h: New file.
2316 * coffread.c: Include coff-pe-read.h.
2317 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
2318 debugging symbols found.
2319 * Makefile.in (SFILES): Add coff-pe-read.o.
2320 (coff_pe_read_h): Define.
2321 (COMMON_OBS): Add coff-pe-read.o.
2322 (coffread.o): Add coff_pe_read_h dependency.
2323 (coff-pe-read.o): New target.
2325 2003-02-19 David Carlton <carlton@math.stanford.edu>
2327 * Makefile.in (SFILES): Add block.c.
2329 (COMMON_OBS): Add block.o.
2331 (x86-64-tdep.o): Add $(block_h).
2332 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
2333 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
2334 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
2335 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
2336 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
2337 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
2338 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
2339 * value.h: Add opaque declaration for struct block.
2340 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
2341 * ada-lang.h: Ditto.
2342 * x86-64-tdep.c: #include "block.h"
2343 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
2344 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
2345 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
2346 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
2347 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
2348 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
2349 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
2350 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
2351 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
2352 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
2353 * symtab.c (block_function): Ditto.
2354 (contained_in): Ditto.
2355 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
2356 block.h. Add opaque declaration for struct block.
2357 * symtab.h: Move block_function and contained_in declarations to
2358 block.h. Add opaque declarations for struct block, struct
2360 (struct block): Move to block.h.
2361 (struct blockvector): Ditto.
2362 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
2363 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
2364 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
2365 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
2366 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
2368 * block.c: New file.
2369 * block.h: New file.
2371 2003-02-19 Theodore A. Roth <troth@openavr.org>
2373 * avr-tdep.c (avr_extract_return_value): Remove function.
2374 (avr_store_return_value): Remove function.
2375 (avr_extract_struct_value_address): Remove function.
2376 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
2378 2003-02-19 Andrew Cagney <ac131313@redhat.com>
2380 * rs6000-tdep.c: Include "gdb_assert.h".
2381 (registers_e500): Add "acc" and "spefscr".
2382 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
2383 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
2384 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
2386 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
2388 2003-02-18 Keith Seitz <keiths@redhat.com>
2390 * Makefile.in: Add gdbtk-interps.c.
2392 2003-02-18 Kevin Buettner <kevinb@redhat.com>
2394 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
2395 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
2397 2003-02-18 Andrew Cagney <cagney@redhat.com>
2399 * symtab.h (struct objfile): Add opaque declaration.
2401 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
2403 From Jim Ingham <jingham@apple.com>:
2404 * dbxread.c (process_one_symbol): Use last_function_start rather
2405 than function_start_offset to find the real beginning of the
2406 current function. The latter is just the text section offset on
2407 some systems, the former is always the real function start.
2409 2003-02-17 Andrew Cagney <cagney@redhat.com>
2411 * configure.in: Revert ${target} != ${host}.
2413 2003-02-17 Andrew Cagney <ac131313@redhat.com>
2415 * configure.in (Makefile): Use the test ${target} != ${host},
2416 instead of the absence of the "nm.h" file, to determine of the
2417 configuration non-native.
2418 * configure: Regenerate.
2420 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
2422 From Brian Ford <ford@vss.fsi.com>
2424 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
2425 conditionalize tui_active test.
2426 (lookup_cmd_1): Ditto.
2428 2003-02-14 Mark Kettenis <kettenis@gnu.org>
2430 * configure.in: Add check for _etext.
2431 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
2433 * config.in, configure: regenerated.
2435 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
2437 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
2439 2003-02-14 Andrew Cagney <ac131313@redhat.com>
2441 * main.c (tui_version): Delete variable.
2442 (captured_main): When --tui, set interpreter_p to "tui" instead of
2443 enabling tui_version.
2444 * printcmd.c (display_command) [TUI]: Test tui_active instead of
2446 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
2447 * cli/cli-cmds.c (disassemble_command): Ditto.
2448 * defs.h (tui_version): Delete declaration.
2449 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
2450 (tui-interp.o): Add rules.
2451 (SUBDIR_TUI_OBS): Add "tui-interp.o".
2453 2003-02-14 Christopher Faylor <cgf@redhat.com>
2455 * win32-nat.c (register_loaded_dll): Correctly set address range for
2458 2003-02-12 Jason Molenda (jmolenda@apple.com)
2460 * symmisc.c (print_objfile_statistics): Include information about
2461 the number of psymtabs and symtabs in each object file.
2463 2003-02-13 Keith R Seitz <keiths@redhat.com>
2465 * main.h (struct captured_main_args): Add interpreter_p.
2466 * main.c (captured_main): Initialize interpreter_p from context.
2467 * gdb.c (main): Set interpreter_p argument.
2468 * Makefile.in (gdb.o): Add dependency for interps.h.
2470 2003-02-12 Andrew Cagney <ac131313@redhat.com>
2472 * event-top.c (cli_command_loop): Delete declaration.
2473 (_initialize_event_loop): Delete function setting event_loop_hook.
2474 * event-top.h (cli_command_loop): Declare. Update copyright.
2475 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
2476 * interps.c (current_interp_command_loop): When event_loop_p, call
2479 2003-02-12 Andrew Cagney <ac131313@redhat.com>
2481 * interps.h (interp_command_loop_ftype): Change return type to
2484 2003-02-12 Michal Ludvig <mludvig@suse.cz>
2486 * x86-64-tdep.c (x86_64_extract_return_value)
2487 (x86_64_store_return_value): Use regcache instead of regbuf.
2488 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
2489 * x86-64-linux-nat.c (fill_gregset): Use regcache.
2491 2003-02-11 Andrew Cagney <ac131313@redhat.com>
2493 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
2494 * aclocal.m4: Regenerate.
2495 * configure: Regenerate.
2497 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
2498 TCL_LD_SEARCH_FLAGS.
2500 2003-02-10 Michal Ludvig <mludvig@suse.cz>
2502 * dwarf2cfi.c: Reindented.
2504 2003-02-09 Andrew Cagney <ac131313@redhat.com>
2506 * interps.c (clear_interpreter_hooks): Convert function definition
2509 2003-02-07 David Carlton <carlton@math.stanford.edu>
2511 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
2513 2003-02-07 Kevin Buettner <kevinb@redhat.com>
2515 * gdbtypes.h (struct main_type): Move ``length'' field from here...
2516 (struct type): ...to here.
2517 (TYPE_LENGTH): Adjust to reflect different location of ``length''
2519 * gdbtypes.c (make_qualified_type): Set length on newly created type.
2520 (replace_type): Set length on all type variants for a given type.
2522 2003-02-07 Andrew Cagney <ac131313@redhat.com>
2524 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
2526 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
2528 2003-02-06 Andrew Cagney <ac131313@redhat.com>
2530 * Makefile.in (symm-nat.o): Update dependencies.
2531 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
2532 (lynx-nat.o, ia64-linux-nat.): Ditto.
2533 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
2534 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
2535 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
2537 * Makefile.in (inflow_h): Define.
2538 (procfs.o, inflow.o, procfs.o): Update dependencies.
2539 * inftarg.c (child_stop): Delete extern declaration of
2540 inferior_process_group. Include "inflow.h".
2541 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
2542 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
2543 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
2544 (our_process_group, inferior_process_group): Extern declarations.
2546 * procfs.c: Include "gdb_assert.h".
2548 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2549 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
2550 * jv-typeprint.c (java_type_print_base): Ditto.
2551 * typeprint.c (typedef_print): Eliminate STREQ.
2552 * cli/cli-script.c (define_command, define_command): Ditto.
2553 * main.c (captured_main): Ditto.
2554 * values.c (lookup_internalvar): Ditto.
2555 * utils.c (safe_strerror, parse_escape): Eliminate assignment
2556 within `if' conditional.
2557 * linespec.c (decode_line_2): Ditto.
2558 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
2559 (bfd_openw_with_cleanup): Ditto.
2561 2003-02-07 Mark Kettenis <kettenis@gnu.org>
2563 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
2564 legacy_extract_return_value and store_return_value to
2565 legacy_return_value.
2567 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
2569 * win32-nat.c (get_relocated_section_addrs): New function. Find
2570 section load addresses for symbol handling in relocated DLLs.
2571 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
2573 2003-02-05 Fred Fish <fnf@intrinsity.com>
2575 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
2577 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
2579 (angel_RDI_info): Ditto.
2580 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
2582 (threads_continue_all_with_signals): Ditto.
2584 2003-02-05 Jim Ingham <jingham@apple.com>
2585 Keith Seitz <keiths@redhat.com>
2586 Elena Zannoni <ezannoni@redhat.com>
2587 Andrew Cagney <ac131313@redhat.com>
2589 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
2590 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
2591 (SUBDIR_MI_OBS): Add "mi-interp.o".
2592 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
2593 (SFILES): Add "interps.c".
2594 (COMMON_OBS): Add "interps.o".
2595 (interps_h, mi_main_h): Define.
2596 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
2597 (mi-main.o, main.o, event-top.o): Update dependencies.
2598 * cli/cli-interp.c: New file.
2599 * interps.h, interps.c: New files.
2600 * top.c: (gdb_init): Don't install the default interpreter, handed
2602 * main.c: Include "interps.h".
2603 (interpreter_p): Note that it should malloc'ed.
2604 (captured_command_loop): Call current_interp_command_loop.
2605 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
2606 xfree and xstrdup when updating interpreter_p. Install the
2607 default interpreter. Add hack to stop mi1's copyright notice
2609 * event-top.h (gdb_setup_readline): Declare.
2610 (gdb_disable_readline): Declare.
2611 * event-top.c: Include "interps.h".
2612 (display_gdb_prompt): Call current_interp_display_prompt_p.
2613 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
2614 gdb_stdlog, and gdb_stdtarg.
2615 (_initialize_event_loop): Don't call gdb_setup_readline.
2616 * cli-out.c (cli_out_set_stream): New function.
2617 * cli-out.h (cli_out_set_stream): Declare.
2619 2003-02-06 Mark Kettenis <kettenis@gnu.org>
2621 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
2622 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
2623 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
2624 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
2625 config/i386/i386v42mp.mt: Removed.
2627 2003-02-05 Mark Kettenis <kettenis@gnu.org>
2629 * configure.tgt (*-*-solaris*): Set gdb_osabi to
2632 2003-02-05 Michael Chastain <mec@shout.net>
2634 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
2635 2.12.1 and earlier versions.
2637 2003-02-05 Andrew Cagney <ac131313@redhat.com>
2639 Remove orphaned hosts, targets and files.
2640 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
2641 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
2642 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
2643 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
2644 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
2645 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
2646 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
2647 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
2648 * config/sparc/tm-sp64sim.h: Delete.
2649 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
2651 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
2652 mips*-dec-mach3* targets.
2654 2003-02-04 Michael Chastain <mec@shout.net>
2656 * NEWS: Fix typo: sepcifying -> specifying.
2658 2003-02-04 Michael Chastain <mec@shout.net>
2660 * dwarfread.c: Add documentation on the state of dwarf-1,
2661 looking towards obsoletion.
2663 2003-02-03 Michael Chastain <mec@shout.net>
2665 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
2666 gdb/testsuite/gdb.c++/pr-1023.exp.
2668 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2670 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
2671 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
2673 * utils.c (init_page_info): Delete reference to MPW in comments.
2674 * main.c (captured_main): Delete #ifdef MPW.
2676 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2678 * NEWS: Note that the m32r-*-elf* is obsolete.
2679 * monitor.c (monitor_expect): Obsolete reference to m32r.
2680 * configure.tgt: Mark m32r-*-elf* as obsolete.
2681 * MAINTAINERS: Mark m32k as obsolete.
2682 * m32r-rom.c: Obsolete file.
2683 * config/m32r/m32r.mt: Obsolete file.
2684 * config/m32r/tm-m32r.h: Obsolete file.
2685 * m32r-stub.c: Obsolete file.
2686 * m32r-tdep.c: Obsolete file.
2688 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2690 * NEWS: Mention that the z8k-zilog-none is obsolete.
2691 * MAINTAINERS: Mark z8k as obsolete.
2692 * configure.tgt: Obsolete the z8k-*-coff* target.
2693 * config/z8k/z8k.mt: Obsolete file.
2694 * config/z8k/tm-z8k.h: Obsolete file.
2695 * z8k-tdep.c: Obsolete file.
2697 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2699 * NEWS: Mention that the mn10200-elf is obsolete.
2700 * configure.tgt: Obsolete mn10200-*-* target.
2701 * breakpoint.c (update_breakpoints_after_exec): Update comment to
2702 mention that the mn10200 is obsolete.
2703 * breakpoint.h: Ditto.
2704 * MAINTAINERS: Mark the mn10200-elf as obsolete.
2705 * config/mn10200/mn10200.mt: Obsolete file.
2706 * config/mn10200/tm-mn10200.h: Obsolete file.
2707 * mn10200-tdep.c: Obsolete file.
2709 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2711 * MAINTAINERS: Mark h8500 as obsolete.
2712 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
2713 * findvar.c (value_from_register): Ditto.
2714 * h8500-tdep.c: Mark file as obsolete.
2715 * config/h8500/h8500.mt: Ditto.
2716 * config/h8500/tm-h8500.h: Ditto.
2717 * NEWS: Mention that h8500 is obsolete.
2719 2003-02-04 David Carlton <carlton@math.stanford.edu>
2721 * objfiles.c (allocate_objfile): Always set name. Add comment at
2723 * jv-lang.c (get_dynamics_objfile): Add comment.
2725 2003-02-04 David Carlton <carlton@math.stanford.edu>
2727 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
2728 * printcmd.c (build_address_symbolic): Replace uses of
2729 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
2730 SYMBOL_NAME, and asm_demangle.
2733 2003-02-04 David Carlton <carlton@math.stanford.edu>
2735 * linespec.c (decode_compound): Extract code into
2737 (lookup_prefix_sym): New function.
2739 2003-02-04 David Carlton <carlton@math.stanford.edu>
2741 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
2742 FLOAT_COERCION_BADNESS.
2743 * gdbtypes.c (rank_one_type): Replace all uses of
2744 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
2746 2003-02-04 Jim Blandy <jimb@redhat.com>
2748 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
2749 section, let dwarf_macinfo_section point to it, not
2752 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
2754 Pointed out by Anton Blanchard <anton@samba.org>.
2755 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
2756 (ppc_linux_at_sigtramp_return_path): Use it.
2758 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
2760 * defs.h (streq): Add prototype.
2761 * utils.c (streq): New function.
2763 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
2764 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
2765 * mdebugread.c (new_symbol): Likewise.
2766 * stabsread.c (define_symbol): Likewise.
2767 * coffread.c (process_coff_symbol): Likewise.
2768 * dwarfread.c (new_symbol): Likewise.
2770 * minsyms.c (prim_record_minimal_symbol_and_info): Use
2771 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
2773 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
2774 SYMBOL_INIT_DEMANGLED_NAME.
2775 * objfiles.c: Include "hashtab.h".
2776 (allocate_objfile): Call htab_set_functions_ex for the
2777 demangled_names_hash.
2778 (free_objfile): Call htab_delete for the demangled_names_hash.
2779 * objfiles.h (struct htab): Add declaration.
2780 (struct objfile): Add demangled_names_hash.
2781 * symfile.c: Include "hashtab.h".
2782 (reread_symbols): Call htab_delete for the demangled_names_hash.
2783 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
2784 SYMBOL_NAME in the bcache.
2785 * symtab.c: Include "hashtab.h". Update comments.
2786 (create_demangled_names_hash, symbol_set_names): New functions.
2787 (symbol_find_demangled_name): New function, broken out from
2788 symbol_init_demangled_names.
2789 (symbol_init_demangled_names): Use it.
2790 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
2791 (SYMBOL_SET_NAMES): New macro.
2792 (symbol_set_names): Add prototype.
2794 2003-02-03 Jim Blandy <jimb@redhat.com>
2796 Use a single, consistent representation for an empty minimal
2797 symbol table in an objfile.
2798 * objfiles.c (terminate_minimal_symbol_table): New function.
2799 (allocate_objfile): Call it.
2800 * objfiles.h (terminate_minimal_symbol_table): New declaration.
2801 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
2803 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
2804 objfile has minimal symbols, compare minimal_symbol_count to zero,
2805 instead of comparing msymbols with NULL.
2806 * objfiles.c (have_minimal_symbols): Same.
2807 * solib-sunos.c (solib_add_common_symbols): Call
2808 terminate_minimal_symbol_table.
2809 * symfile.c (reread_symbols): Same.
2811 2003-02-03 Kevin Buettner <kevinb@redhat.com>
2813 * s390-tdep.c (s390_address_class_type_flags)
2814 (s390_address_class_type_flags_to_name)
2815 (s390_address_class_name_to_type_flags): New functions.
2816 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
2817 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
2819 2003-02-03 Michael Snyder <msnyder@redhat.com>
2821 * arm-tdep.c: Fix spell-o in comment.
2823 2003-02-03 Michal Ludvig <mludvig@suse.cz>
2825 * dwarf2cfi.c (pointer_encoding): Added new parameter.
2826 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
2827 error messages to contain BFD filename.
2829 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
2831 Fix PR gdb/742 gdb/743 gdb/877
2832 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
2833 (do_mixed_source_and_assembly): Use
2834 make_cleanup_ui_out_tuple_begin_end and
2835 make_cleanup_ui_out_tuple_begin_end.
2836 (do_mixed_source_and_assembly): Ditto.
2837 * thread.c (do_captured_list_thread_ids): Ditto.
2838 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
2839 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
2840 ui_out_tuple_end): Delete prototypes.
2841 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
2842 ui_out_list_end, ui_out_tuple_end): Delete.
2844 From Kevin Buettner <kevinb@redhat.com>:
2845 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
2846 * ui-out.c (make_cleanup_ui_out_table_begin_end)
2847 (do_cleanup_table_end): New functions.
2848 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
2849 Use cleanups to invoke_ui_out_tuple_end().
2850 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
2851 * cli/cli-setshow.c (cmd_show_list): Use
2852 make_cleanup_ui_out_tuple_begin_end.
2854 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2856 * frame.c (frame_unwind_register): New function.
2857 (frame_unwind_unsigned_register): Use.
2858 (frame_unwind_signed_register): Use.
2859 (frame_read_register): New function.
2860 * frame.h (frame_unwind_register): Declare.
2861 (frame_read_register): Declare.
2863 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
2864 and frame_unwind_register instead of read_memory, write_register
2865 and deprecated_write_register_bytes.
2867 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2869 * frame.h: Note that namelen can be negative.
2870 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
2873 * NEWS: Mention that the d10v's `regs' command is deprecated.
2874 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
2875 (d10v_print_registers_info): New function.
2876 (show_regs): Call d10v_print_registers_info.
2877 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
2879 2003-02-02 Mark Kettenis <kettenis@gnu.org>
2881 * stack.c (print_frame_info): Restore call to annotate_frame_begin
2882 lost in the previous patch.
2884 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2886 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
2887 * stack.c (print_frame_info_base): Output complete FRAME tuple
2888 for synthesized frames.
2890 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2892 * mips-nat.c (zerobuf): Delete.
2893 (fetch_inferior_registers): Alloc local zerobuf.
2894 (fetch_core_registers): Alloc local zerobuf.
2895 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
2896 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
2897 * thread-db.c (thread_db_store_registers): Ditto.
2898 * sh-tdep.c (sh_do_register): Ditto.
2899 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2900 * remote-sim.c (gdbsim_store_register): Ditto.
2901 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2902 * remote-e7000.c (fetch_regs_from_dump): Ditto.
2903 * monitor.c (monitor_supply_register): Ditto.
2904 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
2905 * mips-nat.c (fetch_inferior_registers): Ditto.
2906 * m68klinux-nat.c (fetch_register): Ditto.
2907 * lynx-nat.c (fetch_inferior_registers): Ditto.
2908 (fetch_inferior_registers): Ditto.
2909 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
2910 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
2911 (hpux_thread_store_registers): Ditto.
2912 * hppah-nat.c (fetch_register): Ditto.
2913 * hppab-nat.c (fetch_register): Ditto.
2914 * hppa-tdep.c (pa_register_look_aside): Ditto.
2915 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
2916 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
2918 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2920 * gdbarch.sh: Explictly specify all method levels. When a
2921 variable with an empty level, provide a non-multi-arch default.
2922 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
2923 * gdbarch.h: Re-generate.
2924 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
2925 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
2927 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2929 * defs.h (host_pointer_to_address): Delete declaration.
2930 (address_to_host_pointer): Delete declaration.
2931 * utils.c (host_pointer_to_address): Delete function.
2932 (address_to_host_pointer): Delete function.
2933 * procfs.c (procfs_address_to_host_pointer): New function.
2934 * procfs.c (proc_set_watchpoint): Use.
2935 (procfs_can_use_hw_breakpoint): Update comments.
2936 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
2937 (som_solib_add): Use.
2938 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
2939 * hppa-tdep.c (unwind_command): Use.
2941 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2943 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
2946 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
2947 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
2948 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
2949 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
2950 (define_symbol): Update.
2951 * symfile.c (generic_load): Remove references to nindy.
2952 * symtab.c: Remove references to nindy.
2954 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2956 * infcmd.c (print_float_info): Delete code conditional on
2958 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
2959 * config/m68k/nm-apollo68b.h: Ditto.
2960 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
2961 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
2962 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
2964 2003-02-01 Mark Kettenis <kettenis@gnu.org>
2966 * config/i386/tm-i386os9k.h: Removed.
2968 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
2969 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
2970 they're identical to i[3456]86-*-sysv* now.
2971 * config/i386/i386v32.mh: Removed.
2972 * config/i386/xm-i386v32.h: Removed.
2973 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
2975 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
2977 * config/i386/i386dgux.mh: Removed.
2978 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
2980 * configure.in: Fix typo.
2981 * configure: Regenerated.
2983 2003-01-31 David Carlton <carlton@math.stanford.edu>
2985 * dwarf2read.c (dwarf2_locate_sections): Set
2986 dwarf_ranges_section.
2988 2003-01-31 Andrew Cagney <ac131313@redhat.com>
2990 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
2991 * utils.c: Update comments documenting legitimate uses of PTR.
2993 * utils.c: Re-indent.
2995 * config/djgpp/fnchange.lst: Delete nindy files.
2996 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
2997 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
2998 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
2999 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
3000 * nindy-share/README, nindy-share/Onindy.c: Delete files.
3001 * nindy-tdep.c, nindy-share/Makefile: Delete files.
3002 * Makefile.in (init.c): Remove nindy references.
3003 (saber_gdb): Delete rule.
3004 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
3005 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
3007 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
3008 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
3009 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
3010 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
3012 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
3013 * saber.suppress: Delete file.
3015 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
3017 * dbxread.c (stabs_data): New static variable.
3018 (fill_symbuf): Support an in-memory buffer for stabs data.
3019 (stabs_seek): New function.
3020 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
3021 (read_ofile_symtab): Use stabs_seek.
3022 (elfstab_build_psymtabs): Take an asection* instead of
3023 an offset and size. Relocate the stabs data if necessary.
3024 Save the section* for dbx_psymtab_to_symtab.
3025 * dwarf2read.c: Add section variables for each debug section.
3026 (dwarf2_locate_sections): Fill them in.
3027 (dwarf2_read_section): Take an asection* argument.
3028 Relocate the section contents if necessary.
3029 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
3030 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
3031 it to dwarf2_read_section.
3032 (dwarf2_build_frame_info): Update callers.
3033 * elfread.c (elf_symfile_read): Update call to
3034 elfstab_build_psymtabs.
3035 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
3036 (DBX_STAB_SECTION): New macro.
3037 * stabsread.h (elfstab_build_psymtabs): Update prototype.
3038 * symfile.c (symfile_dummy_outputs): New function.
3039 (symfile_relocate_debug_section): New function.
3040 * symfile.h (symfile_relocate_debug_section): Add prototype.
3042 2003-01-31 Richard Henderson <rth@redhat.com>
3044 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
3045 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
3046 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
3047 * alpha-tdep.c (alpha_register_name): Add "unique".
3048 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
3049 (ALPHA_UNIQUE_REGNUM): New.
3050 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
3052 2003-01-31 Andrew Cagney <ac131313@redhat.com>
3054 * README: Remove reference to Ericsson 1800 monitor.
3055 * Makefile.in (remote-es.o): Delete rule.
3056 (ALLDEPFILES): Delete remote-es.c.
3057 * remote-es.c: Delete file.
3058 * config/m68k/es1800.mt: Delete file.
3059 * config/djgpp/fnchange.lst: Update.
3060 * configure.tgt: Delete m68*-ericsson-* target.
3062 2003-01-31 Adam Fedor <fedor@gnu.org>
3064 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
3065 Remove duplicate/shadowing variable of same name.
3067 2003-01-30 Jim Blandy <jimb@redhat.com>
3069 * symfile.c (find_separate_debug_file): Assert that the objfile's
3070 directory name we compute ends with a slash, and then assume that
3071 that's so everywhere we use it.
3073 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
3075 * valops.c (value_assign): Flush frame cache after stores to memory
3078 2003-01-30 Andrew Cagney <ac131313@redhat.com>
3080 * Makefile.in (mon960-rom.o): Delete rule.
3081 * mon960-rom.c: Delete file.
3083 2003-01-30 Andrew Cagney <ac131313@redhat.com>
3085 * d10v-tdep.c: Include "frame-unwind.h".
3086 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
3088 (next_addr, uses_frame): Delete.
3089 (struct d10v_unwind_cache): Define.
3090 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
3091 Use info instead of next_addr and uses_frame globals.
3092 (d10v_frame_init_saved_regs): Delete function.
3093 (d10v_init_extra_frame_info): Delete function.
3094 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
3095 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
3096 init_frame_pc or frame_saved_pc.
3097 (d10v_pop_frame): Delete function.
3098 (do_d10v_pop_frame): Delete function.
3099 (d10v_frame_chain): Delete function.
3100 (d10v_frame_chain_valid): Delete function.
3101 (d10v_frame_pc_unwind): New function.
3102 (d10v_frame_id_unwind): New function.
3103 (saved_regs_unwinder): New function.
3104 (d10v_frame_register_unwind): New function.
3105 (d10v_frame_pop): New function.
3106 (d10v_frame_unwind): New variable.
3107 (d10v_frame_p): New function.
3108 (d10v_frame_saved_pc): Delete function.
3109 * Makefile.in (d10v-tdep.o): Update dependencies.
3111 2003-01-30 J. Brobecker <brobecker@gnat.com>
3113 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
3114 causing some regressions due to a change in the default value
3117 2003-01-29 Richard Henderson <rth@redhat.com>
3118 Elena Zannoni <ezannoni@redhat.com>
3119 Daniel Jacobowitz <drow@mvista.com>
3122 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
3124 (RANGES_SECTION): New.
3125 (dwarf_ranges_buffer): New variable.
3126 (struct comp_unit_head): Add member "die".
3127 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
3128 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
3129 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
3130 (dwarf2_locate_sections): Likewise.
3131 (dwarf2_build_psymtabs): Read .debug_ranges.
3132 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
3133 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
3134 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
3135 Look for DW_AT_ranges and return the bounding box.
3137 2003-01-29 Brian Ford <ford@vss.fsi.com>
3139 * win32-nat.c (cygwin_pid): Removed as unused.
3140 (child_attach): Try fall back to Cygwin pid.
3142 2003-01-29 Jim Blandy <jimb@redhat.com>
3144 * objfiles.h (struct objfile): Doc fix.
3146 2003-01-29 Andrew Cagney <ac131313@redhat.com>
3148 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
3149 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
3150 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
3151 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
3152 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
3153 (FRAME_SAVED_PC): Change to a function with predicate.
3154 * gdbarch.h, gdbarch.c: Re-generate.
3156 2003-01-28 Andrew Cagney <ac131313@redhat.com>
3158 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
3160 * complaints.c (complain): Delete function.
3161 * complaints.h (struct deprecated_complaint): Delete definition.
3162 (complain): Delete declaration.
3164 2003-01-28 Kevin Buettner <kevinb@redhat.com>
3166 * mips-tdep.c (mips_init_extra_frame_info): Return early for
3169 2003-01-27 Andrew Cagney <ac131313@redhat.com>
3171 * sentinel-frame.h, sentinel-frame.c: New files.
3172 * Makefile.in (frame.o): Update dependencies.
3173 (SFILES): Add sentinel-frame.c.
3174 (sentinel_frame_h): Define.
3175 (COMMON_OBS): Add sentinel-frame.o.
3176 (sentinel-frame.o): Specify dependencies.
3177 * frame.c: Include "sentinel-frame.h".
3178 (frame_register_unwind): Rewrite assuming that there is always a a
3180 (frame_register, generic_unwind_get_saved_register): Ditto.
3181 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
3182 (create_sentinel_frame, unwind_to_current_frame): New functions.
3183 (get_current_frame): Rewrite using create_sentinel_frame and
3184 unwind_to_current_frame. When possible, always create a frame.
3185 (create_new_frame): Set next to the sentinel frame.
3186 (get_next_frame): Rewrite. Don't go below the level 0 frame.
3187 (deprecated_update_frame_pc_hack): Update the next frame's PC and
3188 ID cache when necessary.
3189 (frame_saved_regs_id_unwind): Use frame_relative_level.
3190 (deprecated_generic_get_saved_register): Use frame_relative_level,
3191 get_frame_saved_regs, get_frame_pc, get_frame_base and
3193 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
3196 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3198 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
3200 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3202 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
3203 (maintenance_set_profile_cmd): Use error () instead of warning ().
3205 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
3207 * configure.in: Check that -pg works if using --enable-profiling.
3208 Check for monstartup and _mcleanup regardless of --enable-profiling.
3209 * maint.c: Check for monstartup and _mcleanup before using them.
3210 * config.in: Regenerated.
3211 * configure: Regenerated.
3213 2003-01-24 Nick Clifton <nickc@redhat.com>
3217 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
3219 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
3220 (sh2e_show_regs): New.
3221 (sh_gdbarch_init): Handle bfd_mach_sh2e.
3222 * config/sh/tm-sh.h: Added sh2e to comments.
3224 2003-01-23 Jim Blandy <jimb@redhat.com>
3226 * symfile.c (syms_from_objfile): Don't print the "(no debugging
3227 symbols found)" message here; we haven't checked for a separate
3228 debug info file yet, so we don't know yet.
3229 (symbol_file_add_with_addrs_or_offsets): Print it here, after
3230 we've looked everywhere. Also, there's no need to print a special
3231 message when we're loading the separate debug info file: the one
3232 symbol_file_add prints is fine.
3234 2003-01-23 Alexander Larsson <alexl@redhat.com>
3235 Jim Blandy <jimb@redhat.com>
3237 Add support for executables whose debug info has been separated
3238 out into a separate file, leaving only a link behind.
3239 * objfiles.h (struct objfile): New fields: separate_debug_objfile
3240 and separate_debug_objfile_backlink.
3241 (put_objfile_before): New declaration.
3242 * symfile.c: #include "filenames.h".
3243 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
3244 debug info in a separate file, read that, too. Save the addrs
3245 argument, so we can use it again to read the separated debug info;
3246 syms_from_objfile modifies the table we pass it.
3247 (reread_symbols): After re-reading an objfile, call
3248 reread_separate_symbols to refresh its separate debug info
3249 objfile, if it has one.
3250 (reread_separate_symbols, find_separate_debug_file,
3251 get_debug_link_info, separate_debug_file_exists): New functions.
3252 (debug_file_directory): New global var.
3253 (_initialize_symfile): Initialize debug_file_directory, and
3254 provide the new `set debug-file-directory' command to let the user
3256 * objfiles.c (free_objfile): If this objfile has its debug info in
3257 a separate objfile, free that one too. If this is itself a
3258 separate debug info objfile, clear our parent's backlink.
3259 (put_objfile_before): New function.
3260 * utils.c (gnu_debuglink_crc32): New function.
3261 * defs.h (gnu_debuglink_crc32): New declaration.
3262 * Makefile.in (symfile.o): Note dependency on "filenames.h".
3263 * configure.in: Handle --with-separate-debug-dir config option.
3264 * acinclude.m4 (AC_DEFINE_DIR): New macro.
3265 * acconfig.h (DEBUGDIR): New macro.
3266 * configure, aclocal.m4, config.in: Regenerated.
3268 2003-01-22 Jim Blandy <jimb@redhat.com>
3270 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
3271 like the old symbol_file_add, but taking new arguments: you can
3272 now pass in either a `struct section_addr_info' list to say where
3273 each section is loaded, or a `struct section_offsets' table. Pass
3274 these new arguments through to syms_from_objfile as appropriate.
3275 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
3276 with the appropriate quiescent values for the new arguments.
3278 * symfile.c: #include "gdb_assert.h".
3279 (syms_from_objfile): Add the ability to pass in a section offset
3280 table directly, as an alternative to the section_addr_info table.
3281 Document arguments better.
3282 (symbol_file_add): Pass extra arguments to syms_from_objfile.
3283 * symfile.h (syms_from_objfile): Update declaration.
3284 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
3286 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
3288 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
3290 Original patch by Tom Tromey <tromey@cygnus.com> and
3291 Jason Molenda <jmolenda@apple.com>.
3292 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
3293 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
3294 * NEWS: Mention profiling.
3295 * configure.in (--enable-gdbtk): Fix typo.
3296 (--enable-profiling): New. Set PROFILE_CFLAGS.
3297 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
3299 (profiling_state): New variable.
3300 (mcleanup_wrapper): New function.
3301 (_initialize_maint): Remove NOTYET, fix call to
3302 add_setshow_boolean_cmd for "maint set profile".
3303 * configure: Regenerated.
3305 2003-01-21 Martin M. Hunt <hunt@redhat.com>
3307 * Makefile.in (install-gdbtk): Install PNG images too.
3309 2003-01-21 Andrew Cagney <ac131313@redhat.com>
3311 * exec.c (text_start): Delete global variable.
3312 (exec_file_attach): Make text_start local to the function.
3313 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
3314 * valops.c (hand_function_call): Delete code that handles
3315 BEFORE_TEXT_END and AFTER_TEXT_END.
3316 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
3317 of CALL_DUMMY_LOCATION.
3318 * gdbarch.c: Regenerate.
3319 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
3320 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
3321 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
3322 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
3323 (text_end): Delete extern declaration.
3325 2003-01-21 Andrew Cagney <ac131313@redhat.com>
3327 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
3328 * blockframe.c (backtrace_below_main): Move to "frame.c".
3329 (frame_chain_valid): Delete check for backtrace_below_main.
3330 (_initialize_blockframe): Delete initialization, move ``set
3331 backtrace-below-main'' command to "frame.c".
3332 (do_flush_frames_sfunc): Delete function.
3333 * frame.c: Include "command.h" and "gdbcmd.h".
3334 (frame_type_from_pc): New function.
3335 (create_new_frame): Use frame_type_from_pc.
3336 (legacy_get_prev_frame): New function.
3337 (get_prev_frame): Rewrite. When an old style frame, call
3338 legacy_get_prev_frame. Otherwize, unwind the PC first.
3339 (_initialize_frame): Add ``set backtrace-below-main'' command.
3340 * Makefile.in (frame.o): Update dependencies.
3342 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3344 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
3345 DEPRECATED_REGISTERS_INFO.
3347 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3349 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
3350 Maintainers'. Update `Various Maintainers'.
3352 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3354 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
3355 * gdbarch.sh (POP_FRAME): Change to function with predicate.
3356 Suppress actual parameters when `-'.
3357 * gdbarch.h, gdbarch.c: Regenerate.
3359 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3361 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
3362 code handling dummy frames.
3364 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3366 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
3367 (struct frame_unwind): Add field pop.
3368 * frame.h (frame_pop): Declare.
3369 * frame.c (frame_saved_regs_pop): New function.
3370 (trad_frame_unwinder): Add frame_saved_regs_pop.
3371 (frame_pop): New function.
3372 * dummy-frame.c (dummy_frame_pop): New function.
3373 (discard_innermost_dummy): New function.
3374 (generic_pop_dummy_frame): Use discard_innermost_dummy.
3375 (dummy_frame_unwind): Add dummy_frame_pop.
3376 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
3377 * valops.c (hand_function_call): Ditto.
3378 * stack.c (return_command): Ditto.
3380 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3382 * cris-tdep.c: Fix function declaration indentation.
3383 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
3384 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
3385 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
3386 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
3387 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
3388 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
3390 2003-01-18 Michael Chastain <mec@shout.net>
3392 * README (Unpacking and Installation -- quick overview):
3393 Warn against ".../gdb-5.3/gdb/configure".
3395 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3397 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
3398 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3399 (struct frame_unwind): Declare opaque.
3400 (dummy_frame_p): Declare function.
3401 * dummy-frame.c (dummy_frame_id_unwind): Make static.
3402 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3403 * dummy-frame.c: Include "frame-unwind.h".
3404 (dummy_frame_p): New function.
3405 (dummy_frame_unwind): New variable.
3406 * frame.c: Include "frame-unwind.h".
3407 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
3408 to use the new unwind field.
3409 (set_unwind_by_pc): Delete function.
3410 (create_new_frame, get_prev_frame): Set unwind field using
3411 frame_unwind_find_by_pc.
3412 (trad_frame_unwind, trad_frame_unwinder): New variables.
3413 * frame.h (trad_frame_unwind): Declare variable.
3414 (frame_id_unwind_ftype): Delete declaration.
3415 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
3416 (struct frame_unwind): Declare opaque.
3417 (struct frame_info): Replace the fields id_unwind, pc_unwind and
3418 register_unwind with a single unwind pointer.
3419 * frame-unwind.h, frame-unwind.c: New files.
3420 * Makefile.in (SFILES): Add frame-unwind.c.
3421 (frame_unwind_h): Define.
3422 (COMMON_OBS): Add frame-unwind.o.
3423 (frame-unwind.o): Specify dependencies.
3424 (frame.o, dummy-frame.o): Update dependencies.
3426 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3428 * ada-valprint.c: Eliminate PTR.
3429 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
3430 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
3431 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
3432 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
3433 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
3434 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
3435 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
3437 2003-01-17 Andrew Cagney <ac131313@redhat.com>
3439 * main.c (captured_main): Don't use PTR.
3440 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
3441 * gdbtypes.c (lookup_primitive_typename): Ditto.
3442 (lookup_struct_elt_type): Ditto.
3443 * f-valprint.c (info_common_command): Ditto.
3444 (list_all_visible_commons): Ditto.
3445 * jv-typeprint.c (java_type_print_base): Ditto.
3447 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
3448 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
3449 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
3450 i386-interix-nat.c and i386-interix-tdep.c. Rename
3451 m68klinux-nat.c and m68klinux-tdep.c. Rename
3452 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
3453 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
3454 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
3455 * main.c (captured_main): Use xfree, not free.
3457 2003-01-16 Andrew Cagney <ac131313@redhat.com>
3459 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
3460 ID back using a parameter.
3461 * frame.c (frame_id_unwind): Update call.
3462 (frame_saved_regs_id_unwind): Update.
3463 * dummy-frame.c (dummy_frame_id_unwind): Update function.
3464 * dummy-frame.h (struct frame_id): Add opaque declaration.
3465 (dummy_frame_id_unwind): Update declaration.
3467 2003-01-15 Andrew Cagney <ac131313@redhat.com>
3469 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
3471 2003-01-15 Stephen P. Smith <ischis2@cox.net>
3473 * MAINTAINERS (Stephen P. Smith): Updated email address.
3475 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
3478 * breakpoint.c (until_break_command): Add new argument. Use it to
3479 decide whether to stop only at the current frame or not.
3480 * breakpoint.h (until_break_command): Update prototype.
3481 * infcmd.c (until_command): Add new argument to until_break_command
3483 (advance_command): New function.
3484 (_initialize_infcmd): Update help string for 'until' command.
3485 Add new 'advance' command.
3487 2003-01-14 David Carlton <carlton@math.stanford.edu>
3489 * linespec.c (decode_line_1): Normalize comments.
3491 (locate_first_half): Ditto.
3492 (decode_compound): Ditto.
3493 (symtab_from_filename): Ditto.
3494 (decode_all_digits): Ditto.
3495 (decode_dollar): Ditto.
3496 (find_methods): Ditto.
3497 (find_toplevel_char): Ditto.
3499 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3501 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
3502 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
3503 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
3504 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
3505 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
3506 * language.c, language.h, m32r-tdep.c: Update copyright.
3507 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
3508 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
3509 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
3510 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
3511 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
3512 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
3514 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3516 * stabsread.h (process_later, resolve_cfront_continuation):
3518 Update copyright years.
3519 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
3520 Update copyright year.
3521 * dbxread.c(struct cont_elem): Obsolete.
3522 (process_later, process_now): Obsolete functions.
3523 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
3524 Update copyright year.
3525 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
3526 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
3527 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
3528 (parse_partial_symbols): Obsolete cfront support.
3530 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
3532 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
3533 read_cfront_baseclasses, read_cfront_member_functions,
3534 resolve_cfront_continuation,read_cfront_static_fields,
3535 copy_cfront_struct_fields): Obsolete functions.
3536 (define_symbol, read_one_struct_field): Obsolete cfront support.
3537 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
3538 Update Copyright year.
3540 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3542 * stack.c (print_frame_info, print_stack_frame_base_stub,
3543 print_stack_frame_base, show_and_print_stack_frame_stub,
3544 show_and_print_stack_frame, print_only_stack_frame_stub,
3545 print_only_stack_frame): Delete functions.
3546 (print_stack_frame_stub): Call print_frame_info instead of
3547 print_frame_info_base.
3548 (print_frame_info_base): Rename to print_frame_info.
3549 (backtrace_command_1): Call print_frame_info, instead of
3550 print_frame_info_base.
3551 (current_frame_command): Call print_stack_frame, instead of
3552 print_only_stack_frame.
3553 (frame_command): Call print_stack_frame, instead of
3554 show_and_print_stack_frame.
3555 (up_command): Ditto.
3556 (down_command): Ditto.
3557 * frame.h (print_only_stack_frame): Delete prototype.
3558 * infrun.c (normal_stop): Call print_stack_frame, instead of
3559 show_and_print_stack_frame.
3560 * thread.c (info_threads_command): Call print_stack_frame, instead
3561 of print_only_stack_frame.
3563 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3565 * README (Graphical interface to GDB): Update URL. Point at
3568 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
3571 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3573 * symtab.c (find_pc_sect_line): Don't consider end-of-function
3576 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3578 * thread-db.c (attach_thread): Prototype.
3579 (struct private_thread_info): Remove lwpid. Add thread handle (th),
3580 thread information (ti), and valid flags (th_valid, ti_valid).
3581 (attach_thread): Move target_pid_to_str call to after the thread
3582 is added to GDB's list. Initialize the cache.
3583 (thread_get_info_callback, thread_db_map_id2thr)
3584 (thread_db_get_info): New functions.
3585 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
3586 (thread_db_store_registers, thread_db_thread_alive)
3587 (thread_db_get_thread_local_address): Use them.
3588 (thread_db_pid_to_str): Likewise. Return "Missing" instead
3589 of calling error() for threads in unknown state.
3591 (clear_lwpid_callback): New function.
3592 (thread_db_resume): Use it to clear the cache.
3594 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3596 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
3597 (resume_callback): Remove dead code.
3599 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3601 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
3603 * gdbarch.h, gdbarch.c: Regenerate.
3604 * stack.c (frame_info): Only initialize the saved registers when
3605 FRAME_INIT_SAVED_REGS_P.
3606 * frame.c (frame_saved_regs_register_unwind): Assert
3607 FRAME_INIT_SAVED_REGS_P.
3608 (deprecated_generic_get_saved_register): Ditto.
3610 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3612 * source.c (openp): Squelch warning about "filename".
3614 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3616 * source.c (openp): If the file does not exist don't necessarily
3619 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3622 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
3623 (integer_types_same_name_p): New function.
3624 (rank_one_type): Use it.
3625 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
3627 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3629 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
3631 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
3632 * configure.in: Add --with-sysroot.
3633 * configure: Regenerated.
3634 * main.c (gdb_sysroot): New variable.
3635 (captured_main): Initialize gdb_sysroot.
3636 * defs.h (gdb_sysroot): New extern declaration.
3637 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
3639 2003-01-12 Michael Chastain <mec@shout.net>
3641 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
3643 2003-01-12 Michael Chastain <mec@shout.net>
3645 * top.c (print_gdb_version): Bump copyright year to 2003.
3647 2003-01-12 David Carlton <carlton@bactrian.org>
3649 * linespec.c (symtab_from_filename): Rename variable 's' to
3652 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3654 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
3656 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
3658 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3660 * d10v-tdep.c: Include "gdb_assert.h".
3661 (d10v_store_return_value): Rewrite to match current interface.
3662 (d10v_extract_struct_value_address): Ditto.
3663 (d10v_extract_return_value): Ditto.
3664 (d10v_gdbarch_init): Set store_restore_value,
3665 extract_struct_value_address and extract_return_value.
3667 2003-01-12 J. Brobecker <brobecker@gnat.com>
3669 * hpread.c (set_namestring): New procedure replacing the
3670 SET_NAMESTRING macro.
3671 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
3672 by calls to set_namestring.
3674 2003-01-11 J. Brobecker <brobecker@gnat.com>
3676 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
3677 a compilation warning.
3678 (hpread_process_one_debug_symbol): Likewise.
3680 2003-01-10 David Carlton <carlton@math.stanford.edu>
3682 * linespec.c (decode_line_1): Rename variable 's' to
3684 (decode_all_digits): Rename argument 's' to 'file_symtab'.
3685 (decode_dollar): Ditto.
3686 (decode_variable): Ditto.
3687 (symbol_found): Ditto.
3689 2003-01-09 Michael Chastain <mec@shout.net>
3691 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
3693 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
3695 * win32-nat.c (set_process_privilege): New function.
3696 (child_attach): Call set_process_privilege() to enable the
3697 SE_DEBUG_NAME user privilege if available in process token.
3699 2003-01-10 J. Brobecker <brobecker@gnat.com>
3701 * hpread.c (hpread_process_one_debug_symbol): Fix a small
3702 compilation error in the previous revision.
3704 2003-01-09 David Carlton <carlton@math.stanford.edu>
3706 * linespec.c: Update copyright.
3708 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
3710 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
3712 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
3714 2003-01-09 Andrew Cagney <ac131313@redhat.com>
3716 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
3718 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
3719 (frame_saved_regs_zalloc): Update.
3720 (frame_saved_regs_register_unwind): Update.
3721 (create_new_frame): Update.
3722 (get_prev_frame): Update.
3723 (frame_extra_info_zalloc): Update.
3724 (deprecated_get_frame_saved_regs): Update.
3725 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
3726 * cris-tdep.c: Update comment.
3728 * somsolib.h: Fix function indentation.
3729 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
3730 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
3731 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
3732 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
3733 * somsolib.c, inftarg.c: Remove assignment in if conditional.
3735 * infrun.c (follow_fork): Use ISO C definition.
3736 * expprint.c (print_subexp): Use xfree instead of free.
3737 * charset.c: Include "gdb_string.h" instead of <string.h>.
3738 (register_iconv_charsets): Use ISO C definition.
3739 (host_charset, target_charset): Ditto.
3740 * Makefile.in (charset.o): Update dependencies.
3741 (mi-cmd-env.o): Update dependencies.
3743 2003-01-08 Andrew Cagney <cagney@redhat.com>
3745 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
3748 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3750 * gdb_mbuild.sh: Add --keep option. When specified, keep the
3751 build directories. Save edited gdb output in Mbuild.log. If a
3752 build fails, remove any final GDB executable.
3754 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3756 * gdb_mbuild.sh: Edit the output of `maint print architecture'
3757 replacing hex constants with function names and stripping leading
3758 file name directory prefixes.
3760 2003-01-08 Andrew Cagney <cagney@redhat.com>
3762 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
3765 2003-01-08 David Carlton <carlton@math.stanford.edu>
3767 * linespec.c (decode_line_1): Move code into decode_variable.
3768 (decode_variable): New function.
3770 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3772 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
3774 2003-01-08 Andrew Cagney <cagney@redhat.com>
3776 * cris-tdep.c (cris_frame_init_saved_regs): Use
3777 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
3779 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
3780 (sh64_nofp_frame_init_saved_regs): Ditto.
3781 (sh_fp_frame_init_saved_regs): Ditto.
3782 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
3783 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3784 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3785 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3787 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
3789 * minsyms.c (lookup_minimal_symbol): Update comment.
3790 (lookup_minimal_symbol_text): Update comment. Use the hash table.
3791 (lookup_minimal_symbol_solib_trampoline): Likewise.
3793 2003-01-08 Andrew Cagney <cagney@redhat.com>
3795 * d10v-tdep.c (d10v_init_extra_frame_info): Use
3796 frame_relative_level.
3798 * alpha-tdep.c: Use get_frame_extra_info.
3799 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3800 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
3801 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3802 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
3804 * alpha-tdep.c: Use get_next_frame.
3805 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3806 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3807 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
3808 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
3809 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
3810 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
3811 * xstormy16-tdep.c: Ditto.
3813 2003-01-07 Andrew Cagney <cagney@redhat.com>
3815 * alpha-tdep.c: Use get_frame_base.
3816 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3817 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3818 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3819 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3820 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
3821 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3822 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
3823 * config/sparc/tm-sparc.h: Ditto.
3825 2003-01-07 Andrew Cagney <cagney@redhat.com>
3827 * frame.c (deprecated_get_frame_context): New function.
3828 (deprecated_set_frame_context): New function.
3829 * frame.h (deprecated_get_frame_context): Declare.
3830 (deprecated_set_frame_context): Declare.
3831 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
3832 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
3834 2003-01-07 Andrew Cagney <cagney@redhat.com>
3836 * frame.c (deprecated_set_frame_next_hack): New function.
3837 (deprecated_set_frame_prev_hack): New function.
3838 * frame.h (deprecated_set_frame_next_hack): Declare.
3839 (deprecated_set_frame_prev_hack): Declare.
3840 * mcore-tdep.c (analyze_dummy_frame): Use
3841 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
3842 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3844 2003-01-07 David Carlton <carlton@math.stanford.edu>
3846 * linespec.c (decode_line_1): Move code into decode_dollar.
3847 (decode_dollar): New function.
3849 2003-01-07 Andrew Cagney <cagney@redhat.com>
3851 * arm-tdep.c (arm_init_extra_frame_info): Use
3852 deprecated_update_frame_base_hack.
3853 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
3854 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3855 (fix_frame_pointer): Ditto.
3856 (mn10300_analyze_prologue): Ditto.
3858 2003-01-07 Andrew Cagney <cagney@redhat.com>
3860 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
3861 extra_info using frame_extra_info_zalloc.
3862 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
3863 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
3864 (sh64_init_extra_frame_info): Ditto.
3865 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
3866 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
3867 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3868 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
3869 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
3870 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
3871 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
3872 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
3873 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
3874 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
3875 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
3876 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
3878 * mn10300-tdep.c (analyze_dummy_frame): Use
3879 deprecated_set_frame_extra_info_hack.
3880 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3882 2003-01-07 J. Brobecker <brobecker@gnat.com>
3884 * mdebugread.c (parse_symbol): Skip stProc entries which storage
3885 class is not scText. These do not define "real" procedures.
3886 (parse_partial_symbols): Likewise.
3888 2003-01-06 Michael Snyder <msnyder@redhat.com>
3890 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
3892 2003-01-06 Andrew Cagney <ac131313@redhat.com>
3894 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
3895 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
3896 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
3897 deprecated_frame_xmalloc_with_cleanup.
3898 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
3899 deprecated_frame_xmalloc.
3900 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
3901 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
3903 2003-01-06 Andrew Cagney <cagney@redhat.com>
3905 * x86-64-linux-tdep.c: Include "osabi.h".
3906 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
3908 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
3910 2003-01-06 Andrew Cagney <cagney@redhat.com>
3912 * MAINTAINERS (Target Instruction Set Architectures): Update
3913 arm-elf. Can be built with -Werror, has been multiarched.
3915 * value.h (unpack_long): Make buffer parameter constant.
3916 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
3917 * scm-lang.h (scm_parse): Ditto.
3918 * defs.h (extract_typed_address, extract_address): Ditto.
3919 (extract_long_unsigned_integer): Ditto.
3920 * inferior.h (unsigned_pointer_to_address): Ditto.
3921 (signed_pointer_to_address): Ditto.
3922 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
3923 * gdbarch.h, gdbarch.c: Regenerate.
3924 * findvar.c (extract_long_unsigned_integer): Update.
3925 (extract_address): Update.
3926 (extract_typed_address): Update.
3927 (unsigned_pointer_to_address): Update.
3928 * values.c (unpack_long): Update.
3929 (unpack_double): Update.
3930 (unpack_pointer): Update.
3931 (unpack_field_as_long): Update.
3932 * d10v-tdep.c (d10v_pointer_to_address): Update.
3933 * avr-tdep.c (avr_pointer_to_address): Update.
3934 * scm-lang.c (scm_unpack): Update.
3935 * findvar.c (signed_pointer_to_address): Update.
3937 2003-01-06 Michal Ludvig <mludvig@suse.cz>
3939 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
3940 since it is in i386-tdep.c.
3942 2003-01-06 J. Brobecker <brobecker@gnat.com>
3944 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
3945 failure introduced in the previous change.
3947 2003-01-05 Michael Chastain <mec@shout.net>
3949 * README: Remove references to deleted remote-*.c files:
3950 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
3951 remote-nrom.c, remote-os9k.c, remote-udi.c.
3953 2003-01-05 Mark Kettenis <kettenis@gnu.org>
3955 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
3956 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
3957 i386_get_longjmp_target.
3959 2003-01-05 Andrew Cagney <ac131313@redhat.com>
3961 * arm-tdep.c (prologue_cache): Change to a pointer.
3962 (_initialize_arm_tdep): Allocate prologue_cache.
3963 (check_prologue_cache): Update.
3964 (save_prologue_cache): Update.
3965 (arm_gdbarch_init): Update.
3967 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3969 * stabsread.c (update_method_name_from_physname): Call complaint()
3972 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3974 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
3975 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
3976 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
3978 * blockframe.c: Include "gdbcmd.h" and "command.h".
3979 (backtrace_below_main): New variable.
3980 (file_frame_chain_valid, func_frame_chain_valid)
3981 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
3982 (generic_func_frame_chain_valid): Remove functions.
3983 (frame_chain_valid, do_flush_frames_sfunc): New functions.
3984 (_initialize_blockframe): New function.
3985 * Makefile.in (blockframe.o): Update dependencies.
3986 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
3987 comment. Call frame_chain_valid ().
3988 * frame.h: Remove old prototypes. Add prototype for
3989 frame_chain_valid and update comments to match.
3990 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
3992 * gdbarch.h: Regenerated.
3993 * gdbarch.c: Regenerated.
3995 * alpha-tdep.c (alpha_gdbarch_init): Don't call
3996 set_gdbarch_frame_chain_valid.
3997 * avr-tdep.c (avr_gdbarch_init): Likewise.
3998 * cris-tdep.c (cris_gdbarch_init): Likewise.
3999 * frv-tdep.c (frv_gdbarch_init): Likewise.
4000 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4001 * i386-tdep.c (i386_svr4_init_abi): Likewise.
4002 (i386_nw_init_abi): Likewise.
4003 (i386_gdbarch_init): Likewise.
4004 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4005 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4006 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4007 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
4008 * mips-tdep.c (mips_gdbarch_init): Likewise.
4009 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4010 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
4011 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
4012 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4013 * s390-tdep.c (s390_gdbarch_init): Likewise.
4014 * sh-tdep.c (sh_gdbarch_init): Likewise.
4015 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4016 * v850-tdep.c (v850_gdbarch_init): Likewise.
4017 * vax-tdep.c (vax_gdbarch_init): Likewise.
4018 * x86-64-tdep.c (x86_64_init_abi): Likewise.
4020 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
4021 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
4022 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
4023 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
4024 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
4025 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
4026 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
4027 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
4029 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4031 * Makefile.in (acconfig_h): Remove incorrect macro.
4033 (osabi.o): Update dependencies.
4034 * configure.tgt: Set gdb_osabi based on target triplet.
4035 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
4036 * configure: Regenerated.
4037 * config.in: Regenerated.
4038 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
4039 (GDB_OSABI_DEFAULT): Define if not already defined.
4040 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
4041 (set_osabi_string): New variables.
4042 (gdbarch_register_osabi): Add new OS ABI to
4043 gdb_osabi_available_names.
4044 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
4045 (set_osabi, show_osabi): New functions.
4046 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
4048 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4050 * arch-utils.c (gdbarch_info_init): Set osabi to
4051 GDB_OSABI_UNINITIALIZED.
4052 * gdbarch.sh: Add osabi to struct gdbarch and to struct
4053 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
4054 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
4055 * gdbarch.c: Regenerated.
4056 * gdbarch.h: Regenerated.
4057 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
4059 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
4060 * osabi.h (enum gdb_osabi): Move to defs.h.
4061 (gdbarch_init_osabi): Update prototype.
4062 * defs.h (enum gdb_osabi): Moved here.
4063 * Makefile.in: Update dependencies.
4065 * alpha-tdep.h: Don't include "osabi.h".
4066 (struct gdbarch_tdep): Remove osabi member.
4067 * alpha-tdep.c: Include "osabi.h".
4068 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4069 iterate over arches. Update call to gdbarch_init_osabi.
4070 (alpha_dump_tdep): Don't dump osabi.
4071 * alpha-linux-tdep.c: Include "osabi.h".
4072 * alpha-osf1-tdep.c: Include "osabi.h".
4073 * alphafbsd-tdep.c: Include "osabi.h".
4074 * alphanbsd-tdep.c: Include "osabi.h".
4076 * arm-tdep.h: Don't include "osabi.h".
4077 (struct gdbarch_tdep): Remove osabi member.
4078 * arm-tdep.c: Include "osabi.h".
4079 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4080 iterate over arches. Update call to gdbarch_init_osabi.
4081 (arm_dump_tdep): Don't dump osabi.
4082 * arm-linux-tdep.c: Include "osabi.h".
4083 * armnbsd-tdep.c: Include "osabi.h".
4085 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
4086 Update call to gdbarch_init_osabi.
4088 * i386-tdep.h: Don't include "osabi.h".
4089 (struct gdbarch_tdep): Remove osabi member.
4090 * i386-tdep.c: Include "osabi.h".
4091 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4092 iterate over arches. Update call to gdbarch_init_osabi.
4093 (i386_dump_tdep): Don't dump osabi.
4094 * i386-linux-tdep.c: Include "osabi.h".
4095 * i386-sol2-tdep.c: Include "osabi.h".
4096 * i386bsd-tdep.c: Include "osabi.h".
4097 * i386gnu-tdep.c: Include "osabi.h".
4098 * i386ly-tdep.c: Include "osabi.h".
4099 * i386nbsd-tdep.c: Include "osabi.h".
4100 * i386obsd-tdep.c: Include "osabi.h".
4102 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
4103 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4104 check osabi when iterating over arches. Update call to
4106 (mips_dump_tdep): Don't dump osabi.
4108 * ns32k-tdep.h: Don't include "osabi.h".
4109 (struct gdbarch_tdep): Remove.
4110 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
4111 gdbarch_lookup_osabi. Don't iterate over arches. Don't
4112 allocate tdep. Update call to gdbarch_init_osabi.
4113 (ns32k_dump_tdep): Remove.
4114 (_initialize_ns32k_tdep): Update call to gdbarch_register.
4115 * ns32knbsd-tdep.c: Include "osabi.h".
4117 * ppc-tdep.h: Don't include "osabi.h".
4118 (struct gdbarch_tdep): Remove osabi member.
4119 * rs6000-tdep.c: Include "osabi.h".
4120 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
4121 osabi when iterating over arches. Update call to
4123 (rs6000_dump_tdep): Don't dump osabi.
4124 * ppc-linux-tdep.c: Include "osabi.h".
4125 * ppcnbsd-tdep.c: Include "osabi.h".
4127 * sh-tdep.h: Don't include "osabi.h".
4128 (struct gdbarch_tdep): Remove osabi member.
4129 * sh-tdep.c: Include "osabi.h".
4130 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4131 iterate over arches. Update call to gdbarch_init_osabi.
4132 (sh_dump_tdep): Don't dump osabi.
4133 * shnbsd-tdep.c: Include "osabi.h".
4135 * sparc-tdep.c: Include "osabi.h".
4136 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4137 iterate over arches. Update call to gdbarch_init_osabi.
4138 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
4141 * vax-tdep.h: Don't include "osabi.h".
4142 (struct gdbarch_tdep): Remove.
4143 * vax-tdep.c: Include "osabi.h".
4144 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
4145 iterate over arches. Don't allocate tdep. Update call
4146 to gdbarch_init_osabi.
4147 (vax_dump_tdep): Remove.
4148 (_initialize_vax_tdep): Update call to gdbarch_register.
4150 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4152 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
4154 (breakpoint_re_set_one): Don't fetch the value for a disabled
4157 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4159 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
4160 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
4161 (COERCE_FLOAT_TO_DOUBLE): Remove.
4162 * gdbarch.c: Regenerate.
4163 * gdbarch.h: Regenerate.
4164 * Makefile.in: Remove value_h from gdbarch_h.
4165 * valops.c (coerce_float_to_double): New variable.
4166 (default_coerce_float_to_double): Remove.
4167 (standard_coerce_float_to_double): Remove.
4168 (value_arg_coerce): Use coerce_float_to_double.
4169 (_initialize_valops): Add "set coerce-float-to-double".
4170 * value.h (default_coerce_float_to_double): Remove prototype.
4171 (standard_coerce_float_to_double): Remove prototype.
4173 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
4175 * mdebugread.c (parse_symbol): Likewise.
4176 * stabsread.c (define_symbol): Mark all functions as prototyped.
4178 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
4179 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
4180 set_gdbarch_coerce_float_to_double.
4181 * arm-tdep.c (arm_gdbarch_init): Likewise.
4182 * frv-tdep.c (frv_gdbarch_init): Likewise.
4183 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
4184 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
4185 * mips-tdep.c (mips_gdbarch_init): Likewise.
4186 (mips_coerce_float_to_double): Remove.
4187 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4188 (rs6000_coerce_float_to_double): Remove.
4189 * s390-tdep.c (s390_gdbarch_init): Likewise.
4190 * sh-tdep.c (sh_gdbarch_init): Likewise.
4191 (sh_coerce_float_to_double): Remove.
4192 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
4193 (sparc_coerce_float_to_double): Remove.
4194 * v850-tdep.c (v850_gdbarch_init): Likewise.
4195 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4196 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4197 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
4198 (hppa_coerce_float_to_double): Remove prototype.
4199 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4201 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4203 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
4205 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
4207 Suggested by Stewart Brown <sb24@avaya.com>:
4208 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
4209 in recursive calls. Handle TYPE_CODE_TYPEDEF.
4210 (c_type_print_varspec_suffix): Likewise.
4212 2003-01-04 Mark Kettenis <kettenis@gnu.org>
4214 * configure.in: Don't set and AC_SUBST SUBDIRS.
4215 * configure: Regenerated.
4217 * configure.in: Remove code dealing with shared libraries.
4218 * Makefile.in: Remove HLDFLAGS and HLDENV.
4219 * configure: Regenerated.
4221 2003-01-04 Andrew Cagney <ac131313@redhat.com>
4223 * frame.c (deprecated_frame_xmalloc): New function.
4224 (deprecated_set_frame_saved_regs_hack): New function.
4225 (deprecated_set_frame_extra_info_hack): New function.
4226 * frame.h (deprecated_frame_xmalloc): Declare.
4227 (deprecated_set_frame_saved_regs_hack): Declare.
4228 (deprecated_set_frame_extra_info_hack): Declare.
4230 2003-01-04 Mark Kettenis <kettenis@gnu.org>
4232 * configure.in: Move code that provides the --enable-gdbtk option
4233 right after the code that handles the --enable-tui option, and
4235 * configure: Regenerated.
4237 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
4238 AC_CHECK_FUNCS and remove the old check for pread64.
4239 * acinclude.m4 (AC_GNU_SOURCE): New macro.
4240 * acconfig.h (_GNU_SOURCE): Add.
4241 (HAVE_PREAD64): Remove.
4242 * configure, aclocal.m4, config.in: Regenerated.
4244 2003-01-03 Andrew Cagney <ac131313@redhat.com>
4246 * alpha-tdep.c: Use get_frame_saved_regs.
4247 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4248 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
4249 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
4250 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
4251 * vax-tdep.c, xstormy16-tdep.c: Ditto.
4253 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4255 * configure.in: Remove all use of the SUBDIRS variable; add
4256 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
4257 code providing the --enable-multi-ice option, and move it right in
4258 front of the code that checks whether gdbserver is supported.
4260 * configure: Regenerated.
4261 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
4264 2003-01-03 Andrew Cagney <cagney@redhat.com>
4266 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
4267 * avr-tdep.c, cris-tdep.c: Ditto.
4268 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
4269 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4271 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4273 * configure.in: Remove --enable-netrom option.
4274 * configure: Regenerated.
4276 2003-01-03 Mark Kettenis <kettenis@gnu.org>
4278 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
4279 declaration for `struct re_pattern_buffer' instead.
4280 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
4282 2003-01-03 J. Brobecker <brobecker@gnat.com>
4284 * mdebugread.c (parse_symbol): Count until the stEnd matching
4287 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4289 * configure.in: Remove --with-cpu option.
4290 subscripts. Remove evil changequotes here.
4291 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
4292 * config.in, configure: Regenerated.
4294 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
4295 * configure.in: Cleanup section that sources GDB and BFD configure
4296 subscripts. Remove evil changequotes here.
4297 * config.in, configure: Regenerated.
4299 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4301 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
4302 frame accessor methods.
4303 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4304 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
4305 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
4306 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
4307 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4308 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
4309 * z8k-tdep.c: Ditto.
4311 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4313 * configure.in: Remove UI_OUT configuration code.
4314 * ada-lang.c: Update assuming UI_OUT is always true.
4315 * Makefile.in (UIOUT_CFLAGS): Remove.
4316 * configure: Regenerated.
4317 * TODO: Remove blurb about elimination of -DUI_OUT.
4319 * configure.in: Move code that provides the --enable-gdbcli,
4320 --enable-gdbmi options right before the code that handles the
4321 --enable-tui option. Polish a bit.
4322 * configure: Regenerated.
4324 * configure.in: Rewrite check for GNU regex and the
4325 --without-included regex option, and move it into the "Checks for
4326 library functions" section. This makes us use the system regex
4327 again by default on systems with version 2 of the GNU C library.
4328 This was apparently broken.
4329 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
4330 * acconfig.h (USE_INCLUDED_REGEX): Remove.
4331 * config.in, configure: Regenerated.
4333 * configure.in: Move code that provides the --enable-tui option
4334 before the "Checks for libraries" section. Polish the code
4335 somewhat and set need_curses to yes if we build the TUI. Rewrite
4336 code that looks for a library providing termcap functionality to
4337 match more closely what's done in the Readline library, and move
4338 it into to the "Checks for libraries" section.
4339 * configure: Regenerated.
4340 * Makefile.in (TERMCAP): Remove variable.
4341 * config/i386/go32.mh (TERMCAP): Remove variable.
4343 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4345 * MAINTAINERS: Mention gdb_mbuild.sh.
4346 * gdb_mbuild.sh: Rewrite.
4348 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4350 * configure.in: Fix typo in last change.
4351 * config.in, configure: Regenerated.
4353 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4355 * valarith.c (value_binop): Delete obsolete code and comments.
4356 * configure.host: Ditto.
4357 * buildsym.h (make_blockvector): Ditto.
4358 * buildsym.c (make_blockvector): Ditto.
4359 * defs.h (enum language): Ditto.
4360 (chill_demangle): Ditto.
4361 * elfread.c (elf_symtab_read): Ditto.
4362 * dwarfread.c (CHILL_PRODUCER): Ditto.
4363 (set_cu_language): Ditto.
4364 (handle_producer): Ditto.
4365 * expprint.c (print_subexp): Ditto.
4366 * gdbtypes.c (chill_varying_type): Ditto.
4367 * gdbtypes.h (builtin_type_chill_bool): Ditto.
4368 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
4369 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
4370 (chill_varying_type): Ditto.
4371 * language.h (_LANG_chill): Ditto.
4372 * language.c (binop_result_type, integral_type): Ditto.
4373 (character_type, string_type, structured_type): Ditto.
4374 (lang_bool_type, binop_type_check): Ditto.
4375 * stabsread.h (os9k_stabs): Ditto.
4376 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
4377 (define_symbol, read_type, read_struct_fields): Ditto.
4378 (read_array_type, read_enum_type, read_huge_number): Ditto.
4379 (read_range_type, start_stabs): Ditto.
4380 * symfile.c (init_filename_language_table): Ditto.
4381 (add_psymbol_with_dem_name_to_list): Ditto.
4382 * symtab.c (symbol_init_language_specific): Ditto.
4383 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
4384 * symtab.h (struct general_symbol_info): Ditto.
4385 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4386 * typeprint.c (typedef_print): Ditto.
4387 * utils.c (fprintf_symbol_filtered): Ditto.
4388 * valops.c (value_cast, search_struct_field, value_slice): Delete
4390 (varying_to_slice): Delete function.
4391 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
4392 (varying_to_slice): Delete declaration.
4393 * MAINTAINERS: Update.
4395 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4397 * configure.in: Reorganize "Checks for library functions section"
4398 a bit. Remove check for `btowc' and `isascii' functions.
4399 * configure: Regenerated.
4401 * acconfig.h (_MSE_INT_H): Remove.
4402 * configure.in: Create "Checks for header files" section, and move
4403 appropriate tests there. Don't check for objlist.h, wchar.h,
4404 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
4405 misdetection fix. Also add "Checks for types", "Checks for
4406 compiler characteristics" and "Checks for library functions"
4408 * config.in, configure: Regenerated.
4410 * configure.in: Create "Checks for programs" section, and move
4411 appropriate tests there.
4413 2003-01-01 Mark Kettenis <kettenis@gnu.org>
4415 * configure.in: Create "Checks for libraries" section, and move
4416 appropriate tests there. Cleanup check for wctype in libw. Use
4417 AC_SEARCH_LIBS to see whether we need libsocket.
4418 * configure: Regenerated.
4420 For older changes see ChangeLog-2002
4426 version-control: never