1 2003-09-12 Andrew Cagney <cagney@redhat.com>
3 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
4 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
6 2003-09-12 Andrew Cagney <cagney@redhat.com>
8 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
9 "entry_file_highpc". Update comments.
10 * defs.h (deprecated_inside_entry_file): Rename
12 * blockframe.c (deprecated_inside_entry_file): Rename
14 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
15 * vax-tdep.c (vax_frame_chain): Update.
16 * sh64-tdep.c (sh64_frame_chain): Update.
17 * sh-tdep.c (sh_frame_chain): Update.
18 * rs6000-tdep.c (rs6000_frame_chain): Update.
19 * ns32k-tdep.c (ns32k_frame_chain): Update.
20 * mips-tdep.c (mips_frame_chain): Update.
21 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
22 * m32r-tdep.c (m32r_frame_this_id): Update.
23 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
24 * frv-tdep.c (frv_frame_this_id): Update.
25 * d10v-tdep.c (d10v_frame_this_id): Update.
26 * cris-tdep.c (cris_frame_chain): Update.
27 * blockframe.c (legacy_frame_chain_valid): Update.
28 * avr-tdep.c (avr_frame_this_id): Update.
29 * arm-tdep.c (arm_prologue_this_id): Update.
30 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
31 * objfiles.c (objfile_relocate): Update.
32 * mipsread.c (mipscoff_symfile_read): Update.
33 (mipscoff_symfile_read): Update.
34 * mdebugread.c (parse_partial_symbols): Update.
35 * dwarfread.c (read_file_scope): Update.
36 * dwarf2read.c (read_file_scope): Update.
37 * dbxread.c (read_dbx_symtab): Update.
38 (read_dbx_symtab): Update.
39 * coffread.c (complete_symtab): Update.
41 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
43 * top.c (quit_target): New static helper function.
44 (quit_force): Moved code to quit_target(). Call quit_target()
45 via catch_errors() to catch errors during quit.
47 2003-09-11 David Carlton <carlton@kealia.com>
49 * buildsym.c (finish_block): Use allocate_block to allocate the
51 * mdebugread.c (new_block): Add FIXME.
53 2003-09-11 David Carlton <carlton@kealia.com>
55 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
56 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
57 (recursive_dump_type): Ditto.
58 * printcmd.c (print_formatted): Ditto.
59 * typeprint.c (print_type_scalar): Ditto.
60 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
61 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
62 * cp-support.h: Declare cp_check_possible_namespace_symbols,
64 * cp-support.c: Make maint_cplus_cmd_list extern.
65 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
67 (lookup_symbol_file): Look in possible namespace blocks when
69 (initialize_namespace_symtab): New.
70 (get_possible_namespace_block, free_namespace_block)
71 (check_possible_namespace_symbols)
72 (check_possible_namespace_symbols_loop)
73 (check_one_possible_namespace_symbol)
74 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
75 (_initialize_cp_namespace): Ditto.
76 * block.h: Declare allocate_block.
77 * block.c (allocate_block): New.
78 * jv-lang.c (get_java_class_symtab): Allocate blocks via
80 * symfile.h: Update declaration of add_psymbol_to_list.
81 * symfile.c (add_psymbol_to_list): Return the partial symbol in
83 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
84 scan_partial_symbols_call.
85 (scan_partial_symbols): Add NAMESPACE argument; update calls to
87 (add_partial_symbol): If necessary, scan mangled names for names
89 (add_partial_namespace): Add NAMESPACE argument; generate partial
90 symbols associated to namespaces.
91 (add_partial_enumeration): Add NAMESPACE argument.
92 (new_symbol): Allow namespace syms.
93 (read_namespace): Generate namespace syms.
94 * objfiles.h: Add opaque declaration of struct symtab.
95 (struct objfile): Add cp_namespace_symtab member.
96 * objfiles.c (allocate_objfile): Set
97 objfile->cp_namespace_symtab.
98 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
99 dictionary_h, command_h.
101 2003-09-11 Andrew Cagney <cagney@redhat.com>
103 * rs6000-tdep.c (rs6000_push_dummy_call): Use
104 regcache_raw_write_signed to set SP_REGNUM, move the operation to
105 near the function's end.
106 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
107 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
108 regcache_raw_write_signed to set SP_REGNUM.
110 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
112 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
113 orig_addrs is set up properly.
115 2003-09-11 Andrew Cagney <cagney@redhat.com>
117 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
118 * gdbarch.h, gdbarch.c: Re-generate.
119 * infcall.c (call_function_by_hand): Update.
120 * hppa-tdep.c (hppa_push_arguments): Update.
121 * ada-lang.c (place_on_stack): Update.
122 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
123 * sparc-tdep.c (sparc_gdbarch_init): Update.
124 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
125 * hppa-tdep.c (hppa_gdbarch_init): Update.
126 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
129 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
131 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
132 register do need a frame.
134 2003-09-11 Andrew Cagney <cagney@redhat.com>
136 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
137 buildable since GDB 5.0.
138 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
139 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
140 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
141 * irix4-nat.c: Delete file.
142 * config/mips/irix4.mh: Delete file.
143 * config/mips/irix3.mh: Delete file.
144 * config/mips/irix3.mt: Delete file.
145 * config/mips/tm-irix3.h: Delete file.
146 * config/mips/nm-irix3.h: Delete file.
147 * config/mips/xm-irix3.h: Delete file.
148 * config/mips/nm-irix4.h: Delete file.
149 * config/mips/xm-irix4.h: Delete file.
150 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
152 2003-09-10 J. Brobecker <brobecker@gnat.com>
154 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
155 * Makefile.in (hppa-tdep.o): Update dependencies.
157 2003-09-10 James E Wilson <wilson@specifixinc.com>
159 * MAINTAINERS: Change my e-mail address. Move to paper trail
162 2003-09-10 Kevin Buettner <kevinb@redhat.com>
164 * MAINTAINERS (frv): New ISA entry.
166 2003-09-10 Kevin Buettner <kevinb@redhat.com>
168 * frv-tdep.c (dis-asm.h): Include.
169 * Makefile.in (frv-tdep.o): Update dependencies.
171 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
173 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
174 Fix typo for high range of floating registers.
176 2003-09-09 David Carlton <carlton@kealia.com>
178 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
179 highpc initialization here out of scan_partial_symbols.
180 (scan_partial_symbols): Restructure into a recursive version,
181 calling add_partial_namespace and add_partial_enumeration when
183 (add_partial_namespace): New.
184 (add_partial_enumeration, locate_pdi_sibling): Ditto.
186 2003-09-09 Andrew Cagney <cagney@redhat.com>
188 * rs6000-tdep.c (ppc_push_return_address): Delete function.
189 (rs6000_push_dummy_call): Set LR to BP_ADDR.
190 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
191 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
193 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
194 (rs6000_push_dummy_call): Set the "TOC" register.
196 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
197 methods "max_register_raw_size", "max_register_virtual_size" or
198 "register_virtual_size".
200 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
202 * MAINTAINERS: Update my e-mail address.
204 2003-09-09 Andrew Cagney <cagney@redhat.com>
206 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
207 (rs6000_push_dummy_call): Store the struct return address.
208 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
210 2003-09-09 Andrew Cagney <cagney@redhat.com>
212 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
213 "ppc_sysv_abi_push_arguments".
214 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
215 "ppc_sysv_abi_push_arguments".
216 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
217 instead of "push_arguments".
218 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
220 2003-09-09 Andrew Cagney <cagney@redhat.com>
222 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
223 instead of CALL_DUMMY_ADDRESS.
225 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
227 * p-lang.c: Eliminate "register".
236 * objc-lang.c: Ditto.
238 2003-09-09 Nick Clifton <nickc@redhat.com>
240 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
242 2003-09-04 Andrew Cagney <cagney@redhat.com>
244 * avr-tdep.c: Include "dis-asm.h".
245 * cris-tdep.c: Include "dis-asm.h".
246 (cris_delayed_get_disassembler): Use "struct disassemble_info"
247 instead of corresponding typedef.
248 * h8300-tdep.c: Include "dis-asm.h".
249 * ia64-tdep.c: Include "dis-asm.h".
250 * i386-tdep.c: Include "dis-asm.h".
251 (i386_print_insn): Use "struct disassemble_info" instead of
252 corresponding typedef.
253 * m68k-tdep.c: Include "dis-asm.h".
254 * mcore-tdep.c: Include "dis-asm.h".
255 * mips-tdep.c: Include "dis-asm.h".
256 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
257 instead of corresponding typedef.
258 * ns32k-tdep.c: Include "dis-asm.h".
259 * s390-tdep.c: Include "dis-asm.h".
260 * sparc-tdep.c: Include "dis-asm.h".
261 * vax-tdep.c: Include "dis-asm.h".
262 * v850-tdep.c: Include "dis-asm.h".
263 * mn10300-tdep.c: Include "dis-asm.h".
264 * rs6000-tdep.c: Include "dis-asm.h".
265 * xstormy16-tdep.c: Include "dis-asm.h".
266 (_initialize_xstormy16_tdep): Delete "extern" declaration of
267 print_insn_xstormy16.
268 * Makefile.in (v850-tdep.o): Update dependencies.
269 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
270 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
271 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
272 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
273 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
274 (gdbarch_h): Remove $(dis_asm_h).
275 * disasm.c: Include "dis-asm.h".
276 (dis_asm_read_memory): Use "struct disassemble_info" instead of
277 corresponding typedef.
278 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
279 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
280 * gdbarch.sh: Do not include "dis-asm.h".
281 (struct disassemble_info): Declare opaque.
282 (TARGET_PRINT_INSN): Update declaration.
283 * gdbarch.h, gdbarch.c: Re-generate.
285 2003-09-08 Andrew Cagney <cagney@redhat.com>
287 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
288 CALL_DUMMY_ADDRESS, change to a predicate.
289 * gdbarch.h, gdbarch.c: Re-generate.
290 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
291 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
292 * infcall.c (call_function_by_hand): Ditto.
293 * sparc-tdep.c (sparc_push_return_address): Ditto.
294 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
295 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
296 CALL_DUMMY_ADDRESS with entry_point_address.
297 * v850-tdep.c (v850_push_return_address): Ditto.
298 * s390-tdep.c (s390_push_return_address): Ditto.
299 * rs6000-tdep.c (ppc_push_return_address): Ditto.
300 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
301 * mcore-tdep.c (mcore_push_return_address): Ditto.
302 * cris-tdep.c (cris_push_return_address): Ditto.
303 * arm-tdep.c (arm_push_return_address): Ditto.
305 2003-09-08 Andrew Cagney <cagney@redhat.com>
307 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
308 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
309 and REG_UNMODIFIED to REG_SAME_VALUE.
310 (execute_cfa_program): Update.
311 (dwarf2_frame_cache): Update. Initialize table to
312 REG_UNSPECIFIED, complain if CFI fails to specify a register's
314 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
316 2003-09-08 Andrew Cagney <cagney@redhat.com>
318 * gnu-nat.c: Remove "inline" function attribute.
319 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
321 2003-09-08 Kevin Buettner <kevinb@redhat.com>
323 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
326 2003-09-08 Kevin Buettner <kevinb@redhat.com>
328 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
329 (frame_extra_info): Rename this struct to frv_unwind_cache.
330 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
331 Add fields ``prev_sp'' and ``base''.
332 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
333 (frv_saved_pc_after_call, frv_init_extra_frame_info)
334 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
336 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
337 Revise all callers. Fill in the unwind cache argument and make
338 other adjustments to account for new frame mechanisms.
339 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
340 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
341 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
342 (frv_frame_unwind, frv_frame_base): New structs.
343 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
344 additional arguments expected by this method and adjust function
346 (frv_gdbarch_init): Remove calls to the following functions:
347 set_gdbarch_deprecated_init_frame_pc(),
348 set_gdbarch_deprecated_saved_pc_after_call(),
349 set_gdbarch_deprecated_frame_chain(),
350 set_gdbarch_deprecated_frame_saved_pc(),
351 set_gdbarch_deprecated_frame_init_saved_regs(),
352 set_gdbarch_deprecated_push_arguments(),
353 set_gdbarch_deprecated_push_return_address(),
354 set_gdbarch_deprecated_pop_frame(),
355 set_gdbarch_deprecated_call_dummy_words(),
356 set_gdbarch_deprecated_sizeof_call_dummy_words(),
357 set_gdbarch_deprecated_init_extra_frame_info(),
358 set_gdbarch_deprecated_dummy_write_sp(), and
359 set_gdbarch_deprecated_pc_in_call_dummy().
360 Add calls to the following functions:
361 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
362 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
363 frame_base_set_default().
364 * Makefile.in (frv-tdep.o): Update dependencies.
366 2003-09-09 Mark Kettenis <kettenis@gnu.org>
368 * dwarf2-frame.c (read_encoded_value): Add support for
369 DW_EH_PE_aligned encoding.
371 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
373 * infrun.c (normal_stop): Don't print a message if the inferior
376 2003-09-08 Jim Blandy <jimb@redhat.com>
378 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
379 * dbxread.c: #include "gdb_assert.h".
380 (read_dbx_symtab): If the objfile has no .data section, use the
381 section index for the .bss section instead.
383 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
385 * frame.c (deprecated_safe_get_selected_frame): New function.
386 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
387 * findvar.c (read_var_value): Call it.
389 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
391 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
392 (sh64-tdep.o): Add dependencies.
393 * configure.tgt: Add FIXME to sh-*-linux*.
394 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
395 (sh_gdbarch_init): Always set correct sh_show_regs function
396 pointer. Call sh64_gdbarch_init() if machine type is sh5.
397 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
398 * sh64-tdep.c: New file, containing all sh64 related code from
400 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
401 * config/sh/linux.mt (TDEPFILES): Ditto.
402 * config/sh/nbsd.mt (TDEPFILES): Ditto.
403 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
404 * config/sh/wince.mt (TDEPFILES): Ditto.
406 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
408 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
409 (stop_wait_callback): Handle !lp->signalled also.
410 (lin_lwp_has_pending, flush_callback): New functions.
411 (lin_lwp_wait): Call flush_callback.
412 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
413 (linux_proc_pending_signals): New function.
414 * linux-nat.h (linux_proc_pending_signals): Add prototype.
416 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
418 From Nick Kelsey <nickk@ubicom.com>:
419 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
420 when the stop PC is at the beginning of a function also.
422 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
424 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
425 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
427 2003-09-06 Mark Kettenis <kettenis@gnu.org>
429 * sol-thread.c: Include "gdb_string.h".
431 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
433 * gcore.c: Reorder include files in alphabetical order. Include
434 "gdb_assert.h". Various coding style fixes.
435 (derive_stack_segment, derive_heap_segment): Replace check for
436 non-null BOTTOM and TOP with gdb_assert.
437 (derive_heap_segment): Replace check for successful creation of
438 ZERO with gdb_assert.
439 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
441 2003-09-04 Andrew Cagney <cagney@redhat.com>
443 * thread-db.c (verbose_dlsym): New function.
444 (thread_db_load): Use verbose_dlsym
445 (thread_db_new_objfile): Print that libthread_db was loaded, and
446 that thread debugging was enabled.
448 2003-09-04 Andrew Cagney <cagney@redhat.com>
450 * configure.tgt: Add "mips64*-*-*" target. Delete
451 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
452 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
453 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
454 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
455 mips*-sony-*, and mips64*-*-elf* targets.
456 * config/mips/embedl.mt: Delete file.
457 * config/mips/embedl64.mt: Delete file.
458 * config/mips/mips.mt: Delete file.
459 * config/mips/mips64.mt: Delete file.
460 * config/mips/tm-embed.h: Delete file.
461 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
462 * config/mips/embed64.mt: Delete out-of-date comment.
464 2003-09-04 Andrew Cagney <cagney@redhat.com>
466 * hppa-tdep.c (hppa_gdbarch_init): Set
467 "have_nonsteppable_watchpoint".
468 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
469 * mips-tdep.c (mips_dump_tdep): Do not print
470 HAVE_NONSTEPPABLE_WATCHPOINT.
471 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
472 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
473 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
474 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
476 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
478 * breakpoint.c (watchpoint_check): Remove accidentally checked in
479 unused code. Add comment.
481 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
483 * breakpoint.c (watchpoint_check): Check for pc being in an
484 epilogue if watchpoint frame couldn't be found.
486 2003-09-04 Andrew Cagney <cagney@redhat.com>
488 * Makefile.in: Re-generate all dependencies.
490 2003-09-03 Andrew Cagney <cagney@redhat.com>
492 * arch-utils.h (legacy_print_insn): Delete declaration.
493 * arch-utils.c (legacy_print_insn): Delete function.
494 * disasm.c (deprecated_tm_print_insn_info): Delete.
495 (_initialize_disasm): Delete function, contained code initializing
496 deprecated_tm_print_insn_info.
497 * gdbarch.sh (deprecated_tm_print_insn): Delete.
498 (deprecated_tm_print_insn_info): Delete.
499 (TARGET_PRINT_INSN): Do not provide a default.
500 * gdbarch.h, gdbarch.c: Re-generate.
502 2003-09-03 Andrew Cagney <cagney@redhat.com>
504 * disasm.c (fprintf_disasm): New function.
505 (gdb_disassemble_info): Call "init_disassemble_info", instead of
506 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
507 reverts 2003-08-14 change.
508 (_initialize_disasm): Call "init_disassemble_info", instead of
509 INIT_DISASSEMBLE_INFO_NO_ARCH.
511 2003-09-03 Michael Snyder <msnyder@redhat.com>
513 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
515 2003-09-03 Andrew Cagney <cagney@redhat.com>
517 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
518 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
519 * symfile.c (syms_from_objfile): Update.
520 (reread_symbols): `Update
521 * exec.c (exec_file_attach): Update.
522 (exec_file_attach): Update.
523 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
525 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
527 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
529 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
531 (arm_get_cache): Delete macro.
532 (struct arm_prologue_cache): Update comments. Make saved_regs into
533 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
535 (thumb_scan_prologue): Update for cache changes. Don't call
536 DEPRECATED_PC_IN_CALL_DUMMY.
537 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
538 argument and use it in desperation search for our prologue. Do not
539 search past the specified PC.
540 (arm_make_prologue_cache): Simplify.
542 (arm_prologue_this_id, arm_prologue_prev_register)
543 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
544 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
545 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
546 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
547 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
549 (arm_frame_chain_valid, arm_find_callers_reg)
550 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
551 (arm_pop_frame): Delete obsolete methods.
552 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
554 (arm_gdbarch_init): Update for new frame methods. Register prologue
555 and sigtramp unwinders. Set the default frame base method.
557 * Makefile.in (arm-tdep.o): Update dependencies.
558 * varobj.c (find_frame_addr_in_frame_chain): Call
559 get_frame_base_address.
560 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
562 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
564 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
565 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
566 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
567 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
568 Take NEXT_FRAME and CACHE arguments. Call
569 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
570 Set unwound_pc in CACHE instead of modifying the frame argument.
571 Don't bother checking the frame type when looking for sigtramp
573 (arm_make_prologue_cache, arm_frame_chain)
574 (arm_init_extra_frame_info): New functions.
576 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
578 * arm-tdep.c (arm_get_cache): Define.
579 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
580 unwound_sp, unwound_pc, and saved_regs.
581 (thumb_scan_prologue): Take a cache instead of the frame.
582 (arm_scan_prologue): Likewise.
583 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
584 instead of a temporary frame.
585 (arm_init_extra_frame_info): Allocate and use a cache.
586 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
588 2003-09-03 Andrew Cagney <cagney@redhat.com>
590 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
591 * config/mips/wince.mt (TM_CLIBS): Ditto.
592 * config/sh/wince.mt (TM_CLIBS): Ditto.
593 * config/pa/hppa64.mt (TM_CLIBS): Delete.
594 * config/sparc/sp64.mt (CC): Delete.
596 2003-09-03 Andrew Cagney <cagney@redhat.com>
598 * defs.h: Do not include "arch-utils.h".
599 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
601 * configure.in (GDB_MULTI_ARCH): Do not define.
602 * configure, config.in: Regenerate.
603 * configure.tgt: Do not set variable "gdb_multi_arch".
604 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
605 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
606 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
607 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
608 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
609 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
610 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
611 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
612 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
613 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
614 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
615 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
616 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
617 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
618 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
619 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
620 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
621 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
623 2003-08-30 Michael Chastain <mec@shout.net>
625 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
626 * config/m68k/nm-hp300hpux.h: Delete.
627 * config/m68k/tm-hp300hpux.h: Delete.
628 * config/m68k/xm-hp300hpux.h: Delete.
629 * config/m68k/xm-hp300bsd.h: Delete.
630 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
631 tm-hp300hpux.h, xm-hp300hpux.h.
632 * somsolib.c: Remove comment about hp300 shared libraries.
634 2003-08-31 Mark Kettenis <kettenis@gnu.org>
636 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
637 Only define PTRACE_GET_THREAD_AREA is not already defined.
638 Various style fixes in code and comments and some additional
639 spelling fixes in comments. Move after functions dealing with
641 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
644 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
645 frame_unwind_register_unsigned instead of
646 frame_unwind_unsigned_register.
648 2003-08-30 Mark Kettenis <kettenis@gnu.org>
650 * configure.in: Search for gethostbyname in libnsl.
651 * configure: Regenerated.
653 2003-08-29 Mark Kettenis <kettenis@gnu.org>
655 * configure.in: Remove redundant AC_MSG_RESULT in check for
656 uintptr_t in stdint.h.
657 * configure: Regenerated.
659 * amd64-nat.h (struct regcache): Add opaque declaration.
661 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
662 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
663 Change "register array" to "register cache" in comments.
664 (x86_64_linux_gregset64_reg_offset): New variable.
665 (GETREGS_SUPPLIES): Remove macro.
666 (supply_gregset): Call amd64_supply_native_gregset instead of
667 x86_64_linux_supply_gregset.
668 (fill_gregset): Rename `regno' to `regnum'. Call
669 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
670 (store_regs): Rename `regno' to `regnum'.
671 (store_fpregs): Rename `regno' to `regnum'.
672 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
673 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
674 Reorganize function a bit.
675 (store_inferior_registers): Rename `regno' to `regnum'. Use
676 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
677 Reorganize function a bit.
678 (_initialize_x86_64_linux_nat): New function.
679 * config/i386/x86-64linux.mh.
681 2003-08-29 Andrew Cagney <cagney@redhat.com>
683 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
684 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
685 (target_remove_watchpoint): Delete macro.
686 (target_insert_watchpoint): Delete macro.
687 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
688 (remote_mips_stopped_by_watchpoint): Delete declaration.
689 (remote_mips_remove_watchpoint): Delete declaration.
690 (remote_mips_set_watchpoint): Delete declaration.
691 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
692 * remote-mips.c (_initialize_remote_mips): Set
693 "to_insert_watchpoint", "to_stopped_by_watchpoint",
694 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
695 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
696 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
697 (mips_stopped_by_watchpoint): Rename
698 remote_mips_stopped_by_watchpoint.
699 (mips_can_hardware_watchpoint): Rename
700 remote_mips_can_use_hardware_watchpoint, update function
703 2003-08-29 Mark Kettenis <kettenis@gnu.org>
705 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
706 USER_DS. We haven't given them a register number yet.
708 * amd64-nat.h: New file.
709 * amd64-nat.c: New file.
710 * amd64fbsd-nat.c: Include "amd64-nat.h".
711 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
712 (amd64fbsd32_r_reg_offset): New variable.
713 (supply_gregset): Simply call amd64_supply_native_gregset.
714 (fill_gregset): Rename `regno' to `regnum'. Simply call
715 amd64_collect_native_gregset.
716 (fill_fpregset): Rename `regno' to `regnum'.
717 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
718 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
719 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
720 `fpregset_t'. Call amd64_supply_native_gregset instead of
721 supply_gregset. Call x86_64_supply_fxsave instead of
723 (store_inferior_registers): Rename `regno' to `regnum'. Replace
724 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
725 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
726 `fpregset_t'. Call amd64_collect_native_gregset instead of
727 fill_gregset. Call x86_64_collect_fxsave instead of
729 (_initialize_am64fbsd_nat): Initialize
730 amd64_native_gregset32_reg_offset and
731 amd64_native_gregset64_reg_offset.
732 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
734 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
735 null pointer. Fix typo in comment.
737 * regcache.c (supply_register): Reimplement to call
739 (regcache_collect): Reimplement by calling regcache_raw_collect.
741 2003-08-28 Mark Kettenis <kettenis@gnu.org>
743 * regcache.c (register_buffer): Consitify first argument.
744 (regcache_raw_supply, regcache_raw_collect): New
747 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
749 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
750 by Nathan J. Williams.
752 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
754 * lin-lwp.c (wait_lwp): New function, copied from
755 stop_wait_callback. Clean up.
756 (stop_wait_callback): Use wait_lwp.
758 2003-08-28 Andrew Cagney <cagney@redhat.com>
760 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
761 flavour and disassembler options.
762 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
763 (mips_gdbarch_init): Set "print_insn". Delete initialization of
764 deprecated_tm_print_insn_info.
766 2003-08-27 Andrew Cagney <cagney@redhat.com>
768 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
769 Use target_read_memory.
770 (s390_get_frame_info): Update. Do not reference
771 deprecated_tm_print_insn_info.
772 (s390_check_function_end, s390_is_sigreturn): Ditto.
774 2003-08-27 Andrew Cagney <cagney@redhat.com>
776 * Makefile.in (cris-tdep.o): Update dependencies.
777 * cris-tdep.c: Include "gdb_assert.h".
778 (cris_gdbarch_init): Set print_insn.
779 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
780 (cris_delayed_get_disassembler): Simplify, directly call the
781 disassembler returned by cris_get_disassembler.
782 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
783 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
784 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
785 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
786 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
787 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
788 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
789 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
790 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
791 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
792 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
793 (gdb_print_insn_sparc): Delete function.
794 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
795 deprecated_tm_print_insn_info.
796 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
797 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
798 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
799 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
800 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
801 * s390-tdep.c (gdb_print_insn_s390): Delete function.
802 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
803 (s390_gdbarch_init): Set print_insn.
805 2003-08-27 Andrew Cagney <cagney@redhat.com>
807 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
808 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
809 * infcall.c (call_function_by_hand): Convert the entry point
810 address into a code address.
812 2003-08-27 Andrew Cagney <cagney@redhat.com>
814 * dsrec.c: Include "gdb_string.h".
815 * Makefile.in (dsrec.o): Update dependencies.
817 2003-08-27 Michael Chastain <mec@shout.net>
819 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
821 2003-08-27 Andrew Cagney <cagney@redhat.com>
823 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
824 (alpha_osf1_init_abi): Do not set call_dummy_address.
826 2003-08-27 David Carlton <carlton@kealia.com>
828 From Randolph Chung <tausq@debian.org>:
829 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
830 compiles with -Wformat-nonliteral -Werror.
832 2003-08-26 Jim Blandy <jimb@redhat.com>
834 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
835 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
836 bfd_lookup_symbol, since we only want symbols in code sections.
837 (look_for_base): Pass zero as the SECT_FLAGS argument to
838 bfd_lookup_symbol, since we're not concerned about which section
841 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
843 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
844 we are frameless or the return address register is already known.
846 2003-08-26 Andrew Cagney <cagney@redhat.com>
848 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
849 in size. Add comments.
851 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
853 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
854 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
856 2003-08-26 Jason Merrill <jason@redhat.com>
858 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
859 case out of #ifdef MIPS block.
861 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
864 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
865 available before calling SECT_OFF_TEXT.
866 * PROBLEMS: Remove description of java/1322.
868 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
870 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
871 bof, and nat0-nat127 as pseudo-registers.
872 (ia64_frame_cache): New struct used to cache frame info.
873 (ia64_register_reggroup_p): New routine used to override default
874 register grouping so registers without names are still saved and
876 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
878 (ia64_pseudo_register_read): New routine to read pseudo-registers.
879 (ia64_pseudo_register_write): New routine to write pseudo-registers.
880 (ia64_alloc_frame_cache): New routine to create a new
882 (examine_prologue): Change prototype to add next_frame pointer.
883 Assume frameless until otherwise proven. Verify that the cfm for
884 current frame matches the cfm that should occur for the prologues
885 alloc insn and if equal, mark as not frameless. At end of routine,
886 if not frameless, calculate registers for the previous frame and store
887 in the cache, if a cache is provided.
888 (ia64_skip_prologue): Use new prototype when calling examine_prologue
889 and pass 0 for next_frame.
890 (ia64_store_return_value): Change to use convert_typed_floating()
891 instead of calling ia64_convert_to_raw().
892 (ia64_extract_return_value): Change to use convert_typed_floating()
893 instead of calling ia64_convert_to_virtual().
894 (ia64_frame_cache): New routine to support new frame model.
895 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
896 (ia64_frame_sniffer): Ditto.
897 (ia64_sigtramp_frame_init_saved_regs): Ditto.
898 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
899 (ia64_sigtramp_frame_prev_register): Ditto.
900 (ia64_sigtramp_frame_sniffer): Ditto.
901 (ia64_frame_base_address): Ditto.
902 (ia64_extract_struct_value_address): Change to issue error message.
903 (ia64_frame_align): New routine to align sp.
904 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
905 (ia64_push_arguments): Removed. Logic moved to
906 ia64_push_dummy_call().
907 (ia64_push_return_address): Ditto.
908 (ia64_unwind_dummy_id): New function.
909 (ia64_unwind_pc): Ditto.
910 (ia64_convert_register_p): Ditto.
911 (ia64_register_to_value): Ditto.
912 (ia64_value_to_register): Ditto.
913 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
914 (ia64_register_byte, ia64_register_raw_size): Ditto.
915 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
916 (ia64_saved_pc_after_call): Ditto.
917 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
918 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
919 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
920 (ia64_register_convert_to_raw): Ditto.
921 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
922 (ia64_init_extra_frame_info): Ditto.
923 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
924 (ia64_gdbarch_init): Remove registering of deprecated functions that
925 are no longer used. Add registration of new gdbarch functions.
926 Remove registering deprecated_write_sp. Replace
927 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
928 Delete set_gdbarch_deprecated_register_convertible(),
929 set_gdbarch_deprecated_register_convert_to_virtual(), and
930 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
931 set_gdbarch_deprecated_register_size(),
932 set_gdbarch_deprecated_register_bytes(),
933 set_gdbarch_pcregnum(),
934 set_gdbarch_deprecated_register_byte(),
935 set_gdbarch_deprecated_register_raw_size(),
936 set_gdbarch_deprecated_max_register_raw_size(),
937 set_gdbarch_deprecated_register_virtual_size(),
938 and set_gdbarch_deprecated_max_register_virtual_size() calls.
939 Replace set_gdbarch_deprecated_extract_return_value() with
940 set_gdbarch_extract_return_value(). Remove calls to:
941 set_gdbarch_deprecated_saved_pc_after_call();
942 set_gdbarch_deprecated_frame_chain(),
943 set_gdbarch_deprecated_frame_saved_pc(),
944 set_gdbarch_deprecated_frame_init_saved_regs(),
945 set_gdbarch_deprecated_get_saved_register(),
946 set_gdbarch_deprecated_call_dummy_words(),
947 set_gdbarch_deprecated_sizeof_call_dummy_words(),
948 set_gdbarch_deprecated_init_extra_frame_info(),
949 set_gdbarch_deprecated_frame_args_address(),
950 set_gdbarch_deprecated_frame_locals_address(),
951 and set_gdbarch_deprecated_dummy_write_sp().
952 Add set_gdbarch_convert_register_p(),
953 set_gdbarch_register_to_value(),
954 set_gdbarch_value_to_register(),
955 set_gdbarch_push_dummy_call(),
956 set_gdbarch_frame_align(),
957 set_gdbarch_unwind_dummy_id(),
958 set_gdbarch_unwind_pc(),
959 frame_unwind_append_sniffer(),
960 frame_unwind_append_sniffer(),
961 and frame_base_set_default().
963 2003-08-25 Chris Demetriou <cgd@broadcom.com>
965 * configure.tgt: Document need for special "mipsisa64" handling.
966 (mipsisa64*-*-linux64): Handle as target linux64.
967 (mipsisa64*-*-*): Handle as target embed64.
969 2003-08-18 Michael Chastain <mec@shout.net>
971 * PROBLEMS: Document pr gdb/1322, the Java anonymous
974 2003-08-24 Mark Kettenis <kettenis@gnu.org>
976 * i387-tdep.h: Update copyright date.
977 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
979 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
980 CFLAGS games to reflect reality.
982 2003-08-24 Andrew Cagney <cagney@redhat.com>
984 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
985 GDB_MULTI_ARCH is always non-zero.
986 * osabi.c (_initialize_gdb_osabi): Ditto.
987 (gdbarch_init_osabi): Ditto.
988 * sparc-tdep.c: Ditto for #if code.
990 2003-08-23 Mark Kettenis <kettenis@gnu.org>
992 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
994 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
996 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
997 x86_64_supply_fxsave.
998 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
999 x86_64_supply_fxsave.
1000 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1001 x86_64_supply_fxsave.
1003 2003-08-23 Andreas Jaeger <aj@suse.de>
1005 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1008 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1010 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1011 i387_supply_register.
1012 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1013 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1015 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1017 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1019 * i386bsd-nat.c (supply_fpregset): Adjust call to
1021 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1022 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1024 (store_inferior_registers): Remove extraneous whitespace. Call
1025 i387_fill_fsave instead of fill_fpregset.
1026 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1027 (supply_fpregset): Likewise.
1028 * i386v4-nat.c (supply_fpregset): Adjust call to
1030 * i386-interix-nat.c (supply_fpregset): Adjust call to
1032 * i386-linux-nat.c (supply_fpregset): Adjust call to
1034 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1035 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1036 i387supply_fsave and i387_supply_fxsave.
1037 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1038 Incorporate code from `i387_supply_register.
1039 (i387_supply_register): Remove.
1040 (i387_supply_fxsave): Add `regnum' argument.
1042 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1044 (i387_supply_register): remove prototype.
1047 2003-08-22 Michael Chastain <mec@shout.net>
1049 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1050 Add lines for files in gdb/testsuite/gdb.cp/* that are
1051 still not 8.3 unique.
1053 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1055 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1056 TYPE_VPTR_FIELDNO is valid.
1058 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1060 * utils.c (set_width_command): Remove prototypes.
1061 (set_screen_size): New prototype.
1062 (init_page_info): Simplify by fetching the screen size from
1063 Readline. Call set_screen_size.
1064 (set_screen_size): New function.
1065 (set_width): Add missing whitespace in comment.
1066 (set_width_command): Call set_screen_size.
1067 (set_height_command): New function.
1068 (initialize_utils): Fix formatting. Make "set height" command
1069 call set_height_command. Remove redundant code that turns off
1070 pagination if output isn't a terminal. Remove redundant call to
1073 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1075 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1076 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1077 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1078 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1080 (sparc64_register_info): Give the reister with number
1081 SPARC64_STATE_REGNUM a name.
1082 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1084 (sparc64_push_dummy_call): Take BIAS into account when checking
1086 (sparc_software_single_step): Remove assertions that check whether
1087 NPC and NNPC were zero.
1088 (sparc_supply_rwindow): Make public. Merge functionality with
1089 sparc64_supply_rwindow.
1090 (sparc_fill_rwindow): Make public. Merge functionality with
1091 sparc64_fill_rwindow.
1092 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1093 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1094 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1095 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1096 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1098 * reggroups.c: Add whitespace after declarations of local
1099 variables in functions.
1101 2003-08-21 Michael Chastain <mec@shout.net>
1103 * gdbtypes.h: Change array bound type from an int to enum.
1105 2003-08-21 Andrew Cagney <cagney@redhat.com>
1107 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1108 * config/sparc/tm-sparc.h: Ditto.
1109 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1111 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1113 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1115 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1116 (register_objfile_data, set_objfile_data, objfile_data): New
1118 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1120 (allocate_objfile): Call objfile_alloc_data.
1121 (free_objfile): Call objfile_free_data.
1122 (struct objfile_data): New.
1123 (struct objfile_data_registration): New.
1124 (struct objfile_data_registry): New.
1125 (objfile_data_registry): New variable.
1126 (register_objfile_data): New function.
1127 (objfile_alloc_data, objfile_free_data): New functions.
1128 (set_objfile_data, objfile_data): New functions.
1129 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1130 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1131 (_initialize_dwarf2_frame): New function and prototype.
1133 2003-08-21 Andrew Cagney <cagney@redhat.com>
1135 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1136 a specific architecture.
1137 * arch-utils.h (set_architecture_from_arch_mach): Delete
1139 (target_architecture_hook): Delete declaration.
1140 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1141 (default_float_format): Assume GDB_MULTI_ARCH.
1142 (default_double_format): Assume GDB_MULTI_ARCH.
1143 (set_endian_from_file): Delete function.
1144 (arch_ok): Delete function.
1145 (set_arch): Delete function.
1146 (set_architecture_from_arch_mach): Delete function.
1147 (set_architecture_from_file): Delete function.
1148 (set_architecture): Assume GDB_MULTI_ARCH.
1149 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1151 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1153 Rewrite FreeBSD/sparc64 native configuration.
1154 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1155 * sparc64fbsd-nat.c: New file.
1156 * sparc64fbsd-tdep.c: New file.
1157 * sparc64-tdep.c sparc64-tdep.h: New files.
1158 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1159 sparc64fbsd-tdep.o): New dependencies.
1160 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1161 and sparc64fbsd-tdep.c.
1162 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1163 * config/sparc/fbsd.mh: Remove copyright notice.
1164 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1166 * config/sparc/fbsd.mt: Remove copyright notice.
1167 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1168 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1169 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1170 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1171 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1172 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1173 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1174 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1176 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1177 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1179 2003-08-21 Michael Chastain <mec@shout.net>
1181 * symtab.h: Add doco on the space critical structures and
1182 some measurements of space usage.
1184 2003-08-21 Michael Snyder <msnyder@redhat.com>
1186 * tracepoint.c (trace_dump_command): Trace break address
1187 is subject to DECR_PC_AFTER_BREAK.
1188 (set_traceframe_context): Make "trace_line" an int.
1189 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1191 2003-08-20 Michael Snyder <msnyder@redhat.com>
1193 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1194 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1195 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1197 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1198 functions, replace sh_push_dummy_call.
1199 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1201 2003-08-20 Michael Chastain <mec@shout.net>
1203 * gdbtypes.h (struct main_type): Rearrange to save space.
1205 2003-08-20 Michael Snyder <msnyder@redhat.com>
1207 * trad-frame.c: Comment typo fix.
1209 2003-08-20 Michael Snyder <msnyder@redhat.com>
1210 Kevin Buettner <kevinb@redhat.com>
1212 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1213 (frv_frame_init_saved_regs): Add declaration.
1214 (frame_extra_info): Add new field ``saved_regs''.
1215 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1216 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1217 Update frame related code.
1218 (frv_extract_struct_value_address): Adjust formatting.
1219 * Makefile.in (frv-tdep.o): Update dependencies.
1220 * config/frv/tm-frv.h (target_insert_watchpoint)
1221 (target_remove_watchpoint, target_insert_hw_breakpoint)
1222 (target_remove_hw_breakpoint): Delete these macros.
1223 (remote_insert_watchpoint, remote_remove_watchpoint)
1224 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1227 2003-08-20 Michael Chastain <mec@shout.net>
1229 * defs.h (ENUM_BITFIELD): New macro.
1230 * symtab.h (ENUM_BITFIELD): Use it.
1231 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1233 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1235 * MAINTAINERS (write after approval): Add myself.
1237 2003-08-18 Andrew Cagney <cagney@redhat.com>
1239 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1240 * gdbarch.h, gdbarch.c: Re-generate.
1241 * infcall.c (call_function_by_hand): Adjust the SP by
1242 frame_red_zone_size before allocating any stack space.
1243 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1244 * x86-64-tdep.c (x86_64_frame_align): New function.
1245 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1247 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1248 Remove code adjusting SP so that it skips over the Red Zone.
1250 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1252 * NEWS (New native configurations): Mention FreeBSD/amd64.
1254 2003-08-18 Andrew Cagney <cagney@redhat.com>
1256 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1257 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1259 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1261 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1263 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1265 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1267 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1269 * i386-linux-nat.c: Include "linux-nat.h".
1270 (child_post_startup_inferior): New function.
1272 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1274 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1275 at the start of a frameless function. This probably fixes PR
1278 2003-08-17 Michael Chastain <mec@shout.net>
1280 * symfile.c (find_sym_fns): Remove special case for apollo target.
1282 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1284 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1285 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1286 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1287 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1288 (linux_supports_tracevforkdone): New function.
1289 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1291 (child_follow_fork): Handle vfork.
1292 (linux_handle_extended_wait): Likewise. Also handle exec.
1293 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1294 * NEWS: Mention fork tracing.
1296 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1298 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1300 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1302 * Makefile.in (i386-linux-nat.o): Update dependencies.
1303 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1304 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1305 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1306 * i386-linux-nat.c: Include "linux-nat.h".
1307 (child_post_startup_inferior): New function.
1308 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1309 * infptrace.c (kill_inferior): Wrap in #ifdef.
1310 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1311 attaching to each LWP.
1312 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1313 (init_lin_lwp_ops): Fill in some more operations.
1314 * linux-nat.h (linux_enable_event_reporting)
1315 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1317 * linux-nat.c (linux_enable_event_reporting): New function.
1318 (child_post_attach, linux_child_post_startup_inferior)
1319 (child_post_startup_inferior, child_follow_fork)
1320 (linux_handle_extended_wait, kill_inferior): New functions.
1322 2003-08-16 Andrew Cagney <cagney@redhat.com>
1324 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1325 * gdbarch.h, gdbarch.c: Re-generate.
1327 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1329 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1331 2003-08-16 Andrew Cagney <cagney@redhat.com>
1333 * NEWS: Mention that "set prompt-escape-char" was deleted.
1334 * top.c (get_prompt_1): Delete function.
1335 (gdb_prompt_escape):
1336 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1337 prompt-escape-char" command.
1338 (MAX_PROMPT_SIZE): Delete macro.
1339 (get_prompt): Simplify, do not call get_prompt_1.
1341 2003-08-16 Andrew Cagney <cagney@redhat.com>
1343 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1344 -Werror. -Wformat-nonliteral problems.
1346 2003-08-15 J. Brobecker <brobecker@gnat.com>
1348 Further multiarching work mostly for hppa64-*-hpux11:
1349 * hppa-tdep.h: New file.
1350 * hppa-tdep.c: #include hppa-tdep.c.
1351 (hppa32_num_regs): Renamed from hppa_num_regs.
1352 (hppa64_num_regs): New constant.
1353 (hppa64_call_dummy_breakpoint_offset): New constant.
1354 (hppa32_call_dummy_length): New constant.
1355 (hppa64_call_dummy_length): New constant.
1356 (hppa32_stack_align): Make name 32bit explicit.
1357 (hppa32_register_virtual_type): Likewise.
1358 (hppa32_extract_return_value): Likewise.
1359 (hppa32_use_struct_convention): Likewise.
1360 (hppa32_store_return_value): Likewise.
1361 (hppa64_register_virtual_type): New function.
1362 (hppa64_extract_return_value): New function.
1363 (hppa64_use_struct_convention): New function.
1364 (hppa64_store_return_value): New function.
1365 (hppa_frame_locals_address): Remove declaration, function does
1367 (hppa_register_byte): Add support for PA64 ABI.
1368 (hppa_gdbarch_init): Add support for PA64 ABI.
1369 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1370 Make name 32bit explicit.
1371 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1372 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1373 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1374 (hppa64_hpux_frame_base_before_sigtramp): New function.
1375 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1376 * config/pa/tm-hppa64.h: Remove macros that are no longer
1377 necessary now that the gdbarch vector is properly setup.
1378 Transform some macros into function calls. Some minor cleanup.
1379 * config/pa/tm-hppah.h: Update function calls in macros
1380 following the function renaming in hppa-hpux-tdep.c.
1381 * Makefile.in (hppa_tdep_h): New variable.
1382 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1384 2003-08-14 Michael Snyder <msnyder@redhat.com>
1386 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1388 2003-08-13 J. Brobecker <brobecker@gnat.com>
1390 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1391 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1394 2003-08-13 Michael Snyder <msnyder@redhat.com>
1396 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1397 (frv_saved_pc_after_call): Use deprecated ftype.
1398 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1399 (frv_remote_translate_xfer_address): Remove.
1400 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1402 2003-08-13 J. Brobecker <brobecker@gnat.com>
1404 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1405 initialization after the common gdbarch initialization, not before.
1407 2003-08-13 J. Brobecker <brobecker@gnat.com>
1409 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1410 (ADDR_BITS_REMOVE): Remove, redundant.
1412 2003-08-13 J. Brobecker <brobecker@gnat.com>
1414 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1415 gdbarch method to clear the 2 low bits of text addresses.
1417 2003-08-12 Andrew Cagney <cagney@redhat.com>
1419 * Makefile.in (dsrec.o): Update dependencies.
1420 * dsrec.c: Include "gdb_assert.h".
1421 (make_srec): Use snprintf instead of sprintf, use a literal format
1424 2003-08-12 Andrew Cagney <cagney@redhat.com>
1426 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1427 FRAME_OBSTACK_ZALLOC.
1429 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1431 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1434 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1436 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1437 amd64fbsd_sc_reg_offset): Add extern declarations.
1438 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1441 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1443 * MAINTAINERS (write after approval): Update my mail address.
1445 2003-08-10 Andrew Cagney <cagney@redhat.com>
1447 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1449 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1451 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1452 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1453 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1454 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1455 i386bsd_sc_reg_offset): Add extern declarations.
1456 * i386obsd-nat.c: Include "i386-tdep.h"
1457 (_initialize_i386obsd_nat): Remove extern declarations.
1458 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1460 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1463 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1464 instead of frame_read_register.
1465 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1466 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1468 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1469 instead of frame_unwind_unsigned_register. Use
1470 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1471 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1472 instead of read_register. Use builtin_type_void_data_ptr instead
1473 of builtin_type_void_func_ptr when extracting the address of the
1475 (i386_extract_return_value, i386_store_return_value,
1476 i386_pseudo_register_read, i386_pseudo_register_write): Use
1477 register_size instead REGISTER_RAW_SIZE.
1479 2003-08-10 Andrew Cagney <cagney@redhat.com>
1481 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1482 sprintf. Make "name" constant.
1484 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1486 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1487 instead of frame_read_register.
1488 (i387_print_float_info): Use get_frame_register and
1489 get_frame_register_unsigned instead of frame_register_read.
1491 * i386fbsd-nat.c: Include "i386-tdep.h".
1492 (child_resume): Make `eflags' an ULONGEST. Use
1493 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1494 instead of register_read and register_write.
1496 * i386bsd-nat.c (fetch_inferior_registers,
1497 store_inferior_registers): Don't use && at the end of a line.
1498 (_initialize_i386bsd_nat): Fix typo.
1500 * frame.c (_initialize_frame): Add missing backslash.
1502 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1503 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1504 and supply_register instead of manipulating the register buffer
1507 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1508 * config/i386/nm-i386sol2.h
1509 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1511 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1512 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1513 instructions that GCC likes to mingle into the prologue. Fixes
1514 gdb/1253 and gdb/1255.
1516 2003-08-09 Andrew Cagney <cagney@redhat.com>
1519 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1520 * command.h (add_setshow_uinteger_cmd): Declare.
1521 * frame.c (set_backtrace_cmd): New function.
1522 (show_backtrace_cmd): New function.
1523 * frame.c (_initialize_frame): Replace "set/show
1524 backtrace-below-main" with "set/show backtrace past-main". Add
1525 command "set/show backtrace limit".
1526 (backtrace_past_main): Rename "backtrace_below_main".
1527 (backtrace_limit): New variable.
1528 (get_prev_frame): Update. Check the backtrace_limit.
1530 2003-08-09 Andrew Cagney <cagney@redhat.com>
1532 * defs.h (xstrprintf): Declare.
1533 * utils.c (xstrprintf): New function.
1534 * breakpoint.c (insert_breakpoints): Replace sprintf and
1535 non-literal format strings, with xstrprintf and cleanups.
1536 (delete_breakpoint,breakpoint_re_set): Ditto.
1537 (commands_command, insert_breakpoints): Ditto.
1538 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1539 (break_at_finish_command_1): Ditto.
1541 2003-08-09 Andrew Cagney <cagney@redhat.com>
1543 * MAINTAINERS (language support): List Adam Fedor as Objective C
1546 2003-08-08 J. Brobecker <brobecker@gnat.com>
1548 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1549 are now multiarched.
1551 2003-08-08 J. Brobecker <brobecker@gnat.com>
1553 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1554 longer necessary now that hppa64 is partially multiarch'ed.
1556 2003-08-08 Andrew Cagney <cagney@redhat.com>
1558 * interps.c (interp_set): Check for a NULL "old_interp".
1560 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1562 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1563 (install-only): Support DESTDIR.
1564 (uninstall): Likewise.
1565 (install-gdbtk): Likewise.
1567 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1569 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1570 contains something meaningful at all times.
1572 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1574 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1576 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1578 * MAINTAINERS (write after approval): Added self.
1580 2003-08-07 Andrew Cagney <cagney@redhat.com>
1582 * inferior.h (AT_SYMBOL): Define.
1583 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1584 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1585 * mips-tdep.c (mips_call_dummy_address): Delete function.
1586 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1587 set call_dummy_address.
1589 2003-08-07 Andrew Cagney <cagney@redhat.com>
1591 * language.c (op_error): Delete function.
1592 (binop_type_check): Delete function.
1593 * language.h (type_op_error, range_op_error): Delete macros.
1594 (op_error): Delete declaration.
1596 2003-08-07 Andrew Cagney <cagney@redhat.com>
1598 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1600 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1602 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1603 (x86_64_push_arguments): Skip the red zone.
1605 2003-08-05 Andrew Cagney <cagney@redhat.com>
1607 * reggroups.c (reggroup_next): Check for the final entry.
1609 2003-08-04 Andrew Cagney <cagney@redhat.com>
1611 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1612 * cli/cli-script.c (define_command): Call query directly, instead
1613 of passing it a buffer.
1614 * ocd.c (ocd_error): Pass error a constant format string.
1615 * remote-mips.c (mips_error): Use fputs_filtered.
1617 * solib-svr4.c (_initialize_svr4_solib): Update
1618 register_gdbarch_data call.
1619 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1621 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1622 (register_gdbarch_data): Delete "free" parameter. Update
1624 * gdbarch.h, gdbarch.c: Re-generate.
1625 * reggroups.c (_initialize_reggroup): Update.
1626 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1627 * frame-base.c (_initialize_frame_base): Update.
1628 * frame-unwind.c (_initialize_frame_unwind): Update.
1629 * user-regs.c (_initialize_user_regs): Update.
1630 * remote.c (_initialize_remote): Update.
1631 * regcache.c (_initialize_regcache): Update.
1633 * regcache.c (xfree_regcache_descr): Delete function.
1634 (_initialize_regcache): Update call to register_gdbarch_data.
1635 (init_regcache_descr, init_legacy_regcache_descr): Use
1636 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1638 * remote.c (free_remote_state): Delete function.
1639 (_initialize_remote): Update register_gdbarch_data.
1640 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1641 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1643 2003-08-04 Andrew Cagney <cagney@redhat.com>
1645 * reggroups.c (struct reggroup_el): Define.
1646 (struct reggroups): Delete field "nr_group". Replace array
1647 "group" with a "first" to "last" linked list.
1648 (reggroups_init): Update. Allocate using gdbarch's obstack.
1649 (reggroups_free): Delete function.
1650 (add_group): Update. Add "el" parameter.
1651 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1652 (default_groups): Update.
1653 (reggroup_next): Replace reggroups.
1654 (reggroups_dump): Update.
1655 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1656 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1657 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1659 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1661 * Makefile.in (tui-interp.o): Update dependencies.
1663 2003-08-04 David Carlton <carlton@kealia.com>
1665 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1666 to internal_error call.
1667 * source.c (forward_search_command): Add "%s" format argument.
1668 (reverse_search_command): Ditto.
1669 * top.c (quit_confirm): Ditto.
1670 * cli/cli-setshow.c (do_setshow_command): Ditto.
1671 * cp-valprint.c (cp_print_class_method): Replace
1672 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1673 (cp_print_class_member): Ditto.
1674 * event-top.c (command_line_handler): Ditto.
1675 * linux-proc.c (linux_info_proc_cmd): Ditto.
1676 * p-typeprint.c (pascal_type_print_base): Ditto.
1677 * p-valprint.c (pascal_object_print_class_method): Ditto.
1678 (pascal_object_print_class_member): Ditto.
1679 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1680 * remote.c (remote_cisco_section_offsets): Ditto.
1681 * top.c (command_line_input): Ditto.
1682 * utils.c (vwarning,error_stream,quit): Ditto.
1683 * valprint.c (print_floating,print_binary_chars)
1684 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1686 2003-08-04 Andrew Cagney <cagney@redhat.com>
1688 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1690 2003-08-02 Andrew Cagney <cagney@redhat.com>
1692 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1693 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1696 2003-08-02 Andrew Cagney <cagney@redhat.com>
1698 * Makefile.in: Update all dependencies and definitions.
1700 2003-08-02 Adam Fedor <fedor@gnu.org>
1702 * linespec.c (is_objc_method_format): New function
1703 (decode_line_1, locate_first_half): Use it.
1706 2003-08-01 Andrew Cagney <cagney@redhat.com>
1708 * NEWS: Mention that m32r is multi-arch.
1709 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1710 * configure.tgt: Recognize m32r-*-*.
1711 * config/m32r/tm-m32r.h: Delete file.
1712 * config/m32r/m32r.mt: New file.
1713 * m32r-rom.c (m32r_upload_command): Use hostent only when
1714 gethostname succeeds, in order to avoid a compilation
1716 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1719 2003-08-01 Michael Snyder <msnyder@redhat.com>
1721 * sh-tdep.c (sh_frame_align): New gdbarch method.
1722 (sh_gdbarch_init): Set up frame_align method.
1724 2003-07-31 Michael Snyder <msnyder@redhat.com>
1726 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1727 which is already covered by the new frames infrastructure.
1729 2003-07-31 Andrew Cagney <cagney@redhat.com>
1731 * user-regs.c (struct user_reg): Add "next" link.
1732 (struct user_regs): Replace "user" with "first" and "last" links.
1733 (append_user_reg): Add pre-allocated "reg" parameter.
1734 (builtin_user_regs): Provide initial value for "last".
1735 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1736 (user_regs_init): Allocate memory from the gdbarch obstack.
1737 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1738 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1740 (usernum_to_user_reg): New function.
1741 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1742 (value_of_user_reg): Use usernum_to_user_reg.
1743 (user_regs_free): Delete function.
1744 (_initialize_user_regs): Update register_gdbarch_data call.
1746 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1748 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1750 2003-07-30 Michael Snyder <msnyder@redhat.com>
1752 * value.h (value_being_returned): Add a struct_addr argument.
1753 * infcall.c (call_function_by_hand): Pass struct_addr to
1754 value_being_returned.
1755 * infcmd.c (print_return_value): Pass zero as struct_addr.
1756 * values.c (value_being_returned): If struct_addr is passed,
1757 use it instead of trying to recover it from the inferior.
1759 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1761 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1762 the prologue analyzer won't need to attempt to extract the pc
1763 value from the woefully incomplete dummy frame.
1764 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1765 possible. Disable code which modifies the frame.
1767 2003-07-28 Andrew Cagney <cagney@redhat.com>
1769 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1771 (annotate_breakpoints_table, annotate_record): Ditto.
1772 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1773 (annotate_field_name_end, annotate_field_value): Ditto.
1774 (annotate_field_end, annotate_frame_source_begin): Ditto.
1775 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1776 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1777 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1778 (annotate_frame_address_end, annotate_frame_address): Ditto.
1779 (annotate_frame_args, annotate_frame_end): Ditto.
1780 (annotate_frame_where, annotate_arg_begin): Ditto.
1781 (annotate_arg_name_end, annotate_arg_value): Ditto.
1782 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1783 (annotate_function_call, annotate_signal_name): Ditto.
1784 (annotate_signal_string, annotate_signal_name_end): Ditto.
1785 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1786 (annotate_value_begin, annotate_value_history_value): Ditto.
1787 (annotate_value_history_end, annotate_value_end): Ditto.
1788 (annotate_display_begin, annotate_display_number_end): Ditto.
1789 (annotate_display_format, annotate_display_expression): Ditto.
1790 (annotate_display_expression_end, annotate_display_value): Ditto.
1791 (annotate_display_end, annotate_array_section_begin): Ditto.
1792 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1793 (annotate_elt, annotate_array_section_end): Ditto.
1795 2003-07-28 Andrew Cagney <cagney@redhat.com>
1797 * regcache.c (struct regcache_descr): Update comments on
1799 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1800 sizeof_raw_register_valid_p.
1801 (init_regcache_descr): Set nr_raw_registers and
1802 sizeof_raw_register_valid_p before calling
1803 init_legacy_regcache_descr.
1805 2003-07-28 Andrew Cagney <cagney@redhat.com>
1807 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1810 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1812 * thread.c (info_threads_command): Use get_selected_frame ().
1813 Check that there is at least one non-sentinel frame.
1815 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1817 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1818 (m68hc11_pop_frame): Remove.
1819 (m68hc11_frame_saved_pc): Remove.
1820 (m68hc11_frame_chain): Remove.
1821 (m68hc11_frame_init_saved_regs): Remove.
1822 (m68hc11_init_extra_frame_info): Remove.
1823 (m68hc11_store_struct_return): Remove.
1824 (m68hc11_saved_pc_after_call): Remove.
1826 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1828 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1829 frame unwind information.
1830 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1831 and adapted for frame unwinding.
1832 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1833 (m68hc11_unwind_pc): New function.
1834 (m68hc11_frame_unwind_cache): New function to analyze frames.
1835 (m68hc11_frame_this_id): New function to create new frame struct.
1836 (m68hc11_frame_prev_register): New function to unwind a register from
1838 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1839 (m68hc11_frame_p): New function for the above.
1840 (m68hc11_frame_base_address): New function to return fp of frame.
1841 (m68hc11_frame_args_address): Update for frame.
1842 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1843 (m68hc11_unwind_sp): New function.
1844 (m68hc11_unwind_dummy_id): New function.
1845 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1848 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1850 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1851 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1852 when we are beyond the current pc.
1854 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1856 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1857 from m68hc11_push_arguments.
1858 (m68hc11_push_arguments): Remove.
1859 (m68hc11_push_return_address): Remove.
1860 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1861 handlers; remove deprecated_extra_stack_alignment_needed.
1863 2003-07-27 Andrew Cagney <cagney@redhat.com>
1865 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1866 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1867 REAL_PC and not the pointer.
1868 * hppa-hpux-tdep.c: Include frame.h
1870 2003-07-27 Andrew Cagney <cagney@redhat.com>
1872 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1873 GDB_MULTI_ACH_PARTIAL.
1875 2003-07-27 Andrew Cagney <cagney@redhat.com>
1877 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1878 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1879 operator at start and not end of line.
1880 (decode_prologue): Ditto.
1881 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1882 frame_unwind_register_unsigned instead of
1883 frame_unwind_unsigned_register.
1884 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1886 (m32r_push_dummy_call): Use register_size instead of
1888 (m32r_frame_sniffer): Replace m32r_frame_p.
1889 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1890 * m32r-rom.c (report_transfer_performance): Delete extern
1892 (m32r_load, m32r_upload_command): Use print_transfer_performance
1893 instead of report_transfer_performance.
1894 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1895 / add_show_from_set.
1897 2003-07-26 Andrew Cagney <cagney@redhat.com>
1899 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1900 store_return_value and extract_struct_value_address.
1902 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1905 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1906 NULL, default to the section containing PC.
1908 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1910 * NEWS: Mention "regs" deprecated for m68hc11 too.
1912 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1913 (m68hc11_print_register): New function to print out one register.
1914 (m68hc11_print_registers_info): New function to print registers.
1915 (show_regs): Deprecate and use the above.
1916 (m68hc11_gdbarch_init): Install the print_registers_info.
1918 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1920 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1921 that we have a SIGTRAP before returning non-zero.
1923 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1924 Elena Zannoni <ezannoni@redhat.com>
1926 * linespec.c (decode_line_2): Avoid crash if
1927 find_function_start_sal() returns empty record.
1929 2003-07-23 Andreas Schwab <schwab@suse.de>
1931 * ia64-tdep.c (ia64_print_insn): New function.
1932 (ia64_gdbarch_init): Set print_insn to it.
1933 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1934 deprecated_tm_print_insn_info.
1936 2003-07-22 Michael Snyder <msnyder@redhat.com>
1938 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1939 handle 8-bit returns (long long).
1940 (h8300h_extract_return_value): Ditto.
1941 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1943 2003-07-22 Andrew Cagney <cagney@redhat.com>
1945 * gdbarch.c Include "gdb_obstack.h".
1946 (struct gdbarch): Add an "obstack".
1947 (alloc_gdbarch_data): Allocate the gdbarch data using
1948 GDBARCH_OBSTACK_CALLOC.
1949 (free_gdbarch_data): Delete function.
1950 (gdbarch_obstack_zalloc): New function.
1951 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1952 Assert that the architecture is not initialized.
1953 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1954 vector from the obstack.
1955 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1956 architecture obstack.
1957 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1958 (set_gdbarch_data): Assert that the data is not initialized.
1959 (struct gdbarch_data): Delete member "free".
1960 (register_gdbarch_data): Do not initialize "free".
1961 * gdbarch.h, gdbarch.c: Re-generate.
1963 2003-07-22 Andrew Cagney <cagney@redhat.com>
1965 * configure.in (build_warnings): Add -Wformat-nonliteral.
1966 * configure: Re-generate.
1968 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1970 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1972 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1974 * findvar.c (read_var_value): Remove case for thread local storage
1975 variables. It is now entirely handled by the dwarf2 location
1977 * printcmd.c (address_info): Ditto.
1978 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1980 (struct symbol): Remove objfile field, which was used by
1981 LOC_THREAD_LOCAL_STATIC only.
1982 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1983 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1984 usage of objfile pointer.
1985 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1986 thread local variables.
1987 Add include of objfiles.h.
1988 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1990 * Makefile.in (dwarf2loc.o): Update dependencies.
1992 2003-07-22 Andrew Cagney <cagney@redhat.com>
1994 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1996 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1997 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1998 (struct value): Add opaque declaration.
1999 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2001 2003-07-21 Andrew Cagney <cagney@redhat.com>
2003 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2004 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2006 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2008 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2009 regcache_cooked_read_unsigned instead of read_register.
2010 (m68hc11_saved_pc_after_call): Likewise.
2011 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2012 instead of write_register.
2013 (m68hc11_register_type): New function.
2014 (m68hc11_register_virtual_type): Remove.
2015 (m68hc11_store_return_value): Convert to use the regcache.
2016 (m68hc11_extract_struct_value_address): Likewise.
2017 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2018 m68hc11_register_type; undeprecate store_return_value and
2019 extract_struct_value_address.
2021 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2023 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2024 and translate to use regcache.
2025 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2027 2003-07-18 Andrew Cagney <cagney@redhat.com>
2029 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2030 * gdbarch.h, gdbarch.c: Re-generate.
2031 * i386-tdep.c (i386_gdbarch_init): Do not set
2032 DWARF2_BUILD_FRAME_INFO.
2033 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2035 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2036 DWARF2_BUILD_FRAME_INFO.
2038 2003-07-18 Andrew Cagney <cagney@redhat.com>
2040 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2041 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2043 2003-07-18 Andrew Cagney <cagney@redhat.com>
2045 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2046 frame_unwind_address_in_block, instead of frame_pc_unwind.
2047 (dwarf2_frame_cache): Ditto.
2049 2003-07-18 Andrew Cagney <cagney@redhat.com>
2051 * user-regs.h (struct gdbarch): Declare opaque.
2052 * ui-out.h (struct ui_file): Declare opaque.
2053 * dwarf2-frame.h (struct frame_info): Declare opaque.
2055 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2057 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2059 (procfs_meminfo): Change strerror to safe_strerror.
2060 (procfs_can_run): Remove K&R badness.
2062 2003-07-17 Michael Snyder <msnyder@redhat.com>
2064 * remote-sim.c: Comment typo fix.
2066 2003-07-17 Andrew Cagney <cagney@redhat.com>
2068 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2070 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2071 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2072 GDB_MULTI_ARCH_PARTIAL.
2074 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2076 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2077 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2078 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2080 2003-07-16 Theodore A. Roth <troth@openavr.org>
2082 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2084 (avr_frame_unwind_cache): Don't unwind FP for main.
2086 Save the computed prev_sp.
2087 (avr_saved_regs_unwinder): Remove function.
2088 (avr_frame_prev_register): Use PC unwind logic from
2089 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2091 2003-07-16 Andrew Cagney <cagney@redhat.com>
2093 * frame-base.h (frame_base_p_ftype): Delete definition.
2094 (frame_base_append_predicate): Delete declaration.
2095 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2096 (frame_unwind_append_predicate): Delete declaration.
2097 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2098 (append_predicate): Delete parameter "p".
2099 (frame_unwind_append_predicate): Delete function.
2100 (frame_unwind_append_sniffer): Update call to append_predicate.
2101 (frame_unwind_free): Delete function.
2102 (_initialize_frame_unwind): Pass NULL as "free" to
2103 register_gdbarch_data.
2104 (frame_unwind_init): Append the dummy_frame_sniffer.
2105 (frame_unwind_find_by_frame): Simplify.
2106 * frame-base.c (struct frame_base_table): Delete field "p".
2107 (append_predicate): Delete parameter "p".
2108 (frame_base_append_predicate): Delete function.
2109 (frame_base_append_sniffer): Update call to append_predicate.
2110 (frame_base_free): Delete function.
2111 (frame_base_find_by_frame): Simplify.
2112 (_initialize_frame_base): Pass NULL as "free" to
2113 register_gdbarch_data.
2114 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2115 (x86_64_sigtramp_frame_sniffer): Replace
2116 "x86_64_sigtramp_frame_p".
2117 (x86_64_init_abi): Set the frame unwind sniffers.
2118 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2119 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2120 (m68k_gdbarch_init): Set the frame unwind sniffers.
2121 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2122 "i386_sigtramp_frame_p".
2123 (i386_frame_sniffer): Replace "i386_frame_p".
2124 (i386_gdbarch_init): Set the frame unwind sniffers.
2125 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2126 (avr_gdbarch_init): Set the frame unwind sniffers.
2127 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2128 "alpha_sigtramp_frame_p"
2129 (alpha_heuristic_frame_sniffer): Replace
2130 "alpha_heuristic_frame_p".
2131 (alpha_gdbarch_init): Set the frame unwind sniffers.
2132 (alpha_dwarf2_init_abi): Ditto.
2133 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2134 "alpha_debug_frame_p".
2135 (alpha_mdebug_frame_base_sniffer): Replace
2136 "alpha_mdebug_frame_base_p".
2137 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2138 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2139 (d10v_gdbarch_init): Set the frame unwind sniffer.
2140 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2141 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2142 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2143 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2144 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2145 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2147 2003-07-16 Michael Snyder <msnyder@redhat.com>
2149 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2150 should go thru sh_dsp_register_sim_regno, else the dsp regs
2151 will not get the right values.
2153 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2155 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2156 deprecated_store_floating by call to store_typed_floating.
2157 (sh_sh4_register_convert_to_raw): Substitute call to
2158 deprecated_extract_floating by call to extract_typed_floating.
2160 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2162 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2164 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2166 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2167 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2168 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2170 (do_pseudo_register): Remove.
2171 (sh_push_dummy_code): New function.
2172 (sh64_store_struct_return): Rename from sh_store_struct_return.
2173 Only called for sh64 now.
2174 (sh_extract_struct_value_address): Regcache'ify.
2175 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2176 and accomodate new tasks.
2177 (sh64_push_return_address): Rename from sh_push_return_address.
2178 Only called for sh64 now.
2179 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2181 (sh3e_sh4_extract_return_value): Regcache'ify.
2182 (sh_default_store_return_value): Ditto.
2183 (sh3e_sh4_store_return_value): Ditto.
2184 (sh_default_register_byte): Remove.
2185 (sh_sh4_register_byte): Remove.
2186 (sh_default_register_raw_size): Remove.
2187 (sh_sh4_register_raw_size): Remove.
2188 (sh_register_virtual_size): Remove.
2189 (sh_sh3e_register_virtual_type): Remove.
2190 (sh_sh3e_register_type): New function.
2191 (sh_sh4_register_virtual_type): Remove.
2192 (sh_sh4_register_type): New function.
2193 (sh_default_register_virtual_type): Remove.
2194 (sh_default_register_type): New function.
2195 (do_fv_register_info): Add parameters to accomodate call from
2196 sh_print_registers_info.
2197 (do_dr_register_info): Ditto.
2198 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2199 Add parameters to accomodate call from sh_print_registers_info.
2200 (sh_do_fp_register): Ditto.
2201 (sh64_do_pseudo_register): Call do_dr_register_info,
2202 do_fv_register_info and sh_do_fp_register with default parameters.
2203 (sh_do_register): Add parameters to accomodate call from
2204 sh_print_registers_info.
2205 (sh_print_register): Ditto.
2206 (sh_print_registers_info): Rename from sh_do_registers_info.
2207 Add parameters to be used as gdbarch_print_registers_info
2208 implementation. Accomodate removed do_pseudo_register function
2210 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2211 function pointer. Call sh_print_register with default parameters.
2212 (sh64_do_registers_info): Call sh_print_registers_info instead of
2213 sh_do_registers_info.
2214 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2215 detection of deprecated vs. non-deprecated functionality.
2216 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2217 function pointer assignments by direct function calls.
2219 2003-07-15 Andrew Cagney <cagney@redhat.com>
2221 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2222 (frame_register_unwind, create_new_frame): Ditto.
2223 (legacy_get_prev_frame, get_frame_type): Ditto.
2224 (get_frame_base_address): Use frame_base_find_by_frame.
2225 (get_frame_locals_address): Use frame_base_find_by_frame.
2226 (get_frame_args_address): Use frame_base_find_by_frame.
2227 * frame-base.h (frame_base_sniffer_ftype): Declare.
2228 (frame_base_append_sniffer): Declare.
2229 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2230 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2231 (frame_base_append_sniffer): New function.
2232 (frame_base_append_predicate): Add a NULL sniffer.
2233 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2234 (struct frame_base_table): Add "sniffer".
2235 (frame_base_free): Free the "sniffer" table.
2236 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2237 (frame_unwind_append_sniffer): Declare.
2238 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2239 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2240 (struct frame_unwind_table): Add "sniffer", delete "middle".
2241 (append_predicate): Add "sniffer" parameter, append the sniffer.
2242 (frame_unwind_init): Update append_predicate call.
2243 (frame_unwind_append_sniffer): New function.
2244 (frame_unwind_append_predicate): Update append_predicate call.
2245 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2247 2003-07-15 Andrew Cagney <cagney@redhat.com>
2249 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2250 before code inhibiting repeated unwind attempts. Add to
2251 commentary on that test's problems.
2252 * blockframe.c (inside_main_func): Look for "main" in the minimal
2254 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2257 2003-07-15 Andrew Cagney <cagney@redhat.com>
2259 * complaints.c (struct explanation): Define.
2260 (struct complaints): Change type of "explanation" to "struct
2262 (symfile_explanations): Convert to a "struct explanation" table.
2263 (vcomplaint): Update.
2265 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2267 * x86-64-linux-nat.c (regmap): Removed.
2268 (supply_gregset, fill_gregset): Call
2269 x86_64_linux_(fill,supply)_gregset functions.
2270 * x86-64-linux-tdep.c (USER_*): New defines.
2271 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2272 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2274 (fetch_core_registers): Ditto.
2275 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2276 * x86-64-linux-tdep.h: New file.
2277 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2279 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2281 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2283 * x86-64-tdep.c (x86_64_store_return_value): Use
2284 regcache_cooked_write_part instead of regcache_cooked_write.
2286 * configure.host: Add x86_64-*-freebsd*.
2287 * configure.tgt: Add x86_64-*-freebsd*.
2288 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2289 * amd64fbsd-nat.c: New file.
2290 * amd64fbsd-tdep.c: New file.
2291 * config/i386/nm-fbsd64.h: New file.
2292 * config/i386/fbsd64.mh: New file.
2293 * config/i386/fbsd64.mt: New file.
2295 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2297 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2298 `sc_regs_offset' and `sc_fpregs_offset'.
2299 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2300 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2301 (alpha_sigtramp_register_address): Rewrite to use new members of
2302 `struct gdbarch_tdep'.
2303 (alpha_gdbarch_init): Initialize new members of struct
2305 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2306 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2307 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2308 (alphafbsd_pc_in_sigtramp): Implement.
2309 (alphafbsd_sigtramp_offset): New function.
2310 (alphafbsd_sigcontext_addr): New function.
2311 (alphafbsd_init_abi): Initialize signal trampoline related members
2312 of `struct gdbarch_tdep'.
2313 (_initialize_alphafbsd_tdep): Add prototype.
2315 2003-07-11 Theodore A. Roth <troth@openavr.org>
2317 * Makefile.in (install-only): Quote sed expression when generating
2320 2003-07-11 Richard Henderson <rth@redhat.com>
2322 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2323 * dwarf2-frame.c: Include complaints.h.
2324 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2325 variable initialization; return NULL on error.
2326 (decode_frame_entry): New.
2328 2003-07-11 Andrew Cagney <cagney@redhat.com>
2330 * frame.h (frame_address_in_block): Delete declaration.
2331 * blockframe.c (frame_address_in_block): Delete function.
2332 (get_frame_block): Use get_frame_address_in_block.
2333 (block_innermost_frame): Ditto.
2334 * stack.c (print_frame, backtrace_command_1): Ditto.
2336 * frame.h (get_frame_address_in_block): Declare.
2337 (frame_unwind_address_in_block): Declare.
2338 * frame.c (frame_unwind_address_in_block): New function.
2339 (get_frame_address_in_block): New function.
2341 2003-07-10 Andrew Cagney <cagney@redhat.com>
2343 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2344 pre-default. Note: re-generate has no effect.
2346 2003-07-10 Andrew Cagney <cagney@redhat.com>
2348 * gdbarch.sh: When a variable, but not a function, compare against
2349 0. Fix problem in previous patch.
2350 * gdbarch.c: Re-generate.
2352 2003-07-10 Andrew Cagney <cagney@redhat.com>
2354 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2355 functions against NULL, not 0.
2356 * gdbarch.c: Re-generate.
2358 2003-07-10 Fred Fish <fnf@ninemoons.com>
2360 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2361 null string instead of a null pointer.
2362 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2364 2003-07-09 Michael Snyder <msnyder@redhat.com>
2366 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2368 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2370 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2371 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2372 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2373 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2374 * x86-64-tdep.c: ... from here.
2376 2003-07-09 Andreas Schwab <schwab@suse.de>
2378 * m68k-tdep.h (enum struct_return): Define.
2379 (struct gdbarch_tdep): Add struct_return.
2380 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2381 bytes are padded to the right, not to the left. Pass struct value
2382 address in register %a1, not on stack.
2383 (m68k_use_struct_convention): New function.
2384 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2385 struct_return in tdep to pcc_struct_return.
2386 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2389 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2391 * somread.c (som_symfile_offsets): Fix compilation error.
2393 2003-07-09 Andrew Cagney <cagney@redhat.com>
2395 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2396 Add comments about the checks.
2398 2003-07-08 Andrew Cagney <cagney@redhat.com>
2400 * Makefile.in: Make dependency section headers consistent.
2401 (config_h): Move to $BUILD headers section.
2402 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2403 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2404 (ada-exp.tab.c): Move to YACC/LEX section.
2405 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2406 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2408 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2410 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2411 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2412 of strerror with safe_strerror, use ISO C function definitions,
2413 and replace instances of sprintf with snprintf.
2415 2003-07-07 Andrew Cagney <cagney@redhat.com>
2417 * frame.c (get_prev_frame): Enable check for identical frames.
2418 Update comments. Update error messages.
2420 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2422 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2424 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2426 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2427 sort_symtab_syms, no longer necessary.
2429 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2431 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2433 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2435 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2436 (mips_register_byte): Likewise.
2438 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2440 * Makefile.in (sparc_tdep_h): New.
2441 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2442 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2443 * sparc-linux-nat.c: Include "sparc-tdep.h".
2444 * sparc-nat.c: Likewise.
2445 * sparc-tdep.c: Likewise.
2446 * sparc64nbsd-nat.c: Likewise.
2447 * sparcnbsd-nat.c: Likewise.
2448 * sparcnbsd-tdep.c: Likewise.
2449 * sparc-tdep.h: New file.
2450 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2451 and sparc_npc_regnum.
2453 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2455 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2456 (mips_linux_cannot_store_register): List supported instead of
2457 unsupported registers.
2459 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2461 * disasm.c (dump_insns): Separate instructions from addresses.
2463 2003-07-07 Andreas Schwab <schwab@suse.de>
2465 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2467 * m68k-tdep.c (NUM_FREGS): Delete.
2468 (SIG_PC_FP_OFFSET): Delete.
2469 (TARGET_M68K): Delete.
2470 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2471 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2472 P_MOVEL_SP, P_MOVEML_SP): Define.
2473 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2475 (m68k_register_raw_size): Delete.
2476 (m68k_register_virtual_size): Delete.
2477 (m68k_register_type): Renamed from m68k_register_virtual_type and
2478 add gdbarch argument.
2479 (m68k_store_struct_return): Delete.
2480 (m68k_deprecated_extract_return_value): Delete.
2481 (m68k_deprecated_extract_struct_value_address): Delete.
2482 (m68k_frame_chain): Delete.
2483 (m68k_frame_saved_pc): Delete.
2484 (m68k_fix_call_dummy): Delete.
2485 (m68k_push_dummy_frame): Delete.
2486 (m68k_pop_frame): Delete.
2487 (m68k_extract_return_value): New function.
2488 (m68k_store_return_value): Rewrite using regcache.
2489 (m68k_extract_struct_value_address): Rewrite using regcache.
2490 (m68k_push_dummy_call): New function.
2491 (struct m68k_frame_cache): Define.
2492 (m68k_alloc_frame_cache): New function.
2493 (m68k_analyze_frame_setup): New function.
2494 (m68k_analyze_register_saves): New function.
2495 (m68k_analyze_prologue): New function.
2496 (m68k_skip_prologue): Rewrite using above functions.
2497 (m68k_unwind_pc): New function.
2498 (m68k_frame_cache): New function.
2499 (m68k_frame_this_id): New function.
2500 (m68k_frame_prev_register): New function.
2501 (m68k_frame_unwind): New variable.
2502 (m68k_frame_p): New function.
2503 (m68k_sigtramp_frame_cache): New function.
2504 (m68k_sigtramp_frame_this_id): New function.
2505 (m68k_sigtramp_frame_prev_register): New function.
2506 (m68k_sigtramp_frame_unwind): New variable.
2507 (m68k_sigtramp_frame_p): New function.
2508 (m68k_frame_base_address): New function.
2509 (m68k_frame_base): New function.
2510 (m68k_unwind_dummy_id): New function.
2511 (fill_gregset): Use regcache_collect.
2512 (fill_fpregset): Likewise.
2513 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2515 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2516 deprecated_init_frame_pc, deprecated_store_struct_return,
2517 deprecated_extract_return_value, deprecated_store_return_value,
2518 deprecated_frame_chain, deprecated_frame_saved_pc,
2519 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2520 deprecated_register_virtual_size,
2521 deprecated_max_register_raw_size,
2522 deprecated_max_register_virtual_size,
2523 deprecated_register_virtual_type, deprecated_register_size,
2524 deprecated_register_byte, deprecated_register_bytes,
2525 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2526 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2527 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2528 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2529 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2530 deprecated_push_dummy_frame, deprecated_pop_frame,
2531 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2532 only if SYSCALL_TRAP is defined. Set extract_return_value,
2533 store_return_value, extract_struct_value_address, register_type,
2534 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2536 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2537 M68K_MAX_REGISTER_SIZE): Define.
2538 (struct m68k_sigtramp_info): Define.
2539 (struct gdbarch_tdep): Add get_sigtramp_info.
2540 * m68klinux-nat.c (fetch_register): Use register_size instead of
2541 REGISTER_RAW_SIZE. Don't put assignment in if.
2542 (store_register): Likewise.
2543 (fetch_inferior_registers): Likewise.
2544 (store_inferior_registers): Likewise.
2545 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2546 (m68k_linux_frame_saved_pc): Delete.
2547 (m68k_linux_sigcontext_reg_offset,
2548 m68k_linux_ucontext_reg_offset): Define.
2549 (m68k_linux_get_sigtramp_info): New function.
2550 (m68k_linux_extract_return_value): Rewrite using regcache.
2551 (m68k_linux_store_return_value): Likewise.
2552 (m68k_linux_extract_struct_value_address): Likewise.
2553 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2554 Don't set deprecated_frame_saved_pc,
2555 deprecated_extract_return_value, deprecated_store_return_value,
2556 deprecated_extract_struct_value_address. Set
2557 extract_return_value, store_return_value,
2558 extract_struct_value_address.
2560 2003-07-07 Andrew Cagney <cagney@redhat.com>
2562 * expprint.c: Include "user-regs.h" instead of "frame.h".
2563 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2564 frame_map_regnum_to_name.
2565 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2566 (frame_map_name_to_regnum): Simplify, call
2567 user_reg_map_name_to_regnum.
2568 (frame_map_regnum_to_name): Simplify, call
2569 user_reg_map_regnum_to_name.
2570 (frame_register_unwind): Update.
2571 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2572 (_initialize_frame_reg): Call user_reg_add_builtin.
2573 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2574 (value_of_register): Use value_of_user_reg.
2575 * eval.c (evaluate_subexp_standard): Update.
2576 * parse.c (write_dollar_variable): Update.
2577 * d10v-tdep.c (d10v_print_registers_info): Update.
2578 * infcmd.c (registers_info): Update.
2579 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2580 (builtin_regs_h): Delete macro.
2581 (user_regs_h): Define.
2582 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2583 (builtin-regs.o): Delete target.
2584 (user-regs.o): Specify dependencies.
2585 (expprint.o): Update dependencies.
2586 (findvar.o): Update dependencies.
2587 (frame.o): Update dependencies.
2588 (std-regs.o): Update dependencies.
2590 2003-07-06 Christopher Faylor <cgf@redhat.com>
2592 * win32-nat.c (solib_symbols_add): Use one variable for all section
2593 address stuff. Pass variable rather than address of variable to
2594 safe_symbol_file_add.
2596 2003-07-06 Andreas Schwab <schwab@suse.de>
2598 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2600 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2602 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2604 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2606 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2608 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2610 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2611 * config/i386/nto.mh: New file.
2612 * config/i386/nm-nto.h: New file.
2613 * configure.host: Add i[3456]86-*-nto*.
2615 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2617 * remote-vx.c (vx_add_symbols): Fix compilation error.
2619 2003-07-03 Andrew Cagney <cagney@redhat.com>
2621 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2622 * gdbarch.h, gdbarch.c: Re-generate.
2623 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2624 (legacy_register_name): Declare.
2625 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2626 (REGISTER_NAME): Define.
2627 * sparc-tdep.c (legacy_register_name): New function.
2628 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2629 (REGISTER_NAME): Define.
2630 (hppa64_register_name): Declare.
2631 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2632 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2633 (hppa64_register_name): New function.
2634 (hppa_register_name): New function.
2635 * arch-utils.c (legacy_register_name): Delete.
2636 * arch-utils.h (legacy_register_name): Delete.
2638 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2640 * cli/cli-interp.c (cli_interpreter_resume): Update the
2641 cli_uiout's stream to gdb_stdout.
2643 2003-07-03 Andrew Cagney <cagney@redhat.com>
2645 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2647 * gdbarch.h, gdbarch.c: Re-generate.
2648 * regcache.c (init_regcache_descr): Use legacy code when either
2649 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2651 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2653 * NEWS: Move "set logging" entry into GDB 6.0 section.
2655 2003-07-02 Jim Blandy <jimb@redhat.com>
2657 * s390-tdep.c (struct frame_extra_info): new member:
2658 'stack_bought_valid'.
2659 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2660 initialize fextra_info->stack_bought.
2661 (s390_frameless_function_invocation): Don't trust the value of
2662 fextra_info_ptr->stack_bought unless
2663 fextra_info->stack_bought_valid is set.
2665 New S390 prologue analyzer.
2666 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2667 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2668 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2669 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2670 compute_x_addr, s390_on_stack, s390_store,
2671 s390_get_signal_frame_info): New functions.
2672 (S390_NUM_SPILL_SLOTS): New macro.
2673 (s390_get_frame_info): Rewritten.
2674 (is_arg_reg): Deleted.
2676 Break out the decoding of S/390 instructions into separate
2677 functions, to make it more legible, and easier to check
2679 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2680 is_rx, is_rxe): New functions.
2681 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2682 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2683 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2684 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2685 enums for opcode values. (Is this an improvement?)
2687 2003-07-02 Andrew Cagney <cagney@redhat.com>
2689 * i386-tdep.c: Revert change committed as part of trad-frame code
2692 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2694 * breakpoint.c (insert_catchpoint): Make static.
2696 2003-07-02 Andreas Schwab <schwab@suse.de>
2698 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2699 former ia64_push_arguments and ia64_push_return_address, and use
2700 regcache functions instead of read/write_register.
2701 (ia64_gdbarch_init): Set push_dummy_call instead of
2702 deprecated_push_arguments and deprecated_push_return_address.
2704 2003-07-01 Andreas Jaeger <aj@suse.de>
2706 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2708 Set %rax only to number of SSE registers used.
2710 2003-07-01 Andrew Cagney <cagney@redhat.com>
2712 * trad-frame.h: Update comments, a -1 .addr is reserved.
2713 (trad_frame_value_p, trad_frame_addr_p): Declare.
2714 (trad_frame_reg_p): Declare.
2715 (trad_frame_set_value): Rename trad_frame_register_value.
2716 (trad_frame_set_unknown): Declare.
2717 * trad-frame.c (trad_frame_realreg_p): New function.
2718 (trad_frame_addr_p, trad_frame_value_p): New function.
2719 (trad_frame_set_unknown): New function.
2720 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2721 (trad_frame_prev_register): Use trad_frame_realreg_p,
2722 trad_frame_addr_p and trad_frame_value_p.
2723 (trad_frame_set_value): Rename trad_frame_register_value.
2724 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2725 and trad_frame_set_value.
2727 2003-06-30 Jim Blandy <jimb@redhat.com>
2729 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2730 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2731 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2732 for 16 registers, and then 32 more bytes.
2733 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2735 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2736 Move up in the file, since it's now used by is_simple_arg.
2737 (is_simple_arg): Don't assume registers are four bytes long.
2738 Exclude all double arguments. Extended floats are not simple
2740 (is_power_of_two): New function.
2741 (pass_by_copy_ref): Call is_power_of_two, and check that the
2742 length fits in a register, rather than listing all the acceptable
2743 sizes. Extended floats are not passed by reference.
2744 (s390_push_arguments): Don't assume registers are four bytes long.
2745 Reserve an argument register to point to the buffer for structures
2746 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2747 S390_STACK_FRAME_OVERHEAD.
2749 2003-06-30 Andreas Schwab <schwab@suse.de>
2751 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2752 format error message.
2754 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2756 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2758 2003-06-30 David Carlton <carlton@kealia.com>
2760 Band-aid for PR c++/1245.
2761 * Makefile.in (cp-support.o): Depend on complaints_h.
2762 * cp-support.c: Include complaints.h. Add declaration for
2763 find_last_component.
2764 (cp_find_first_component): Separate code into
2765 cp_find_first_component_aux.
2766 (cp_find_first_component_aux): Call demangled_name_complaint.
2767 (demangled_name_complaint): New.
2769 2003-06-30 Andrew Cagney <cagney@redhat.com>
2771 * remote.c (remote_write_bytes): Explicitly compute and then use
2772 the payload size. Update comments to reflect. Fixes problem of
2773 GDB not sending small packets as found by Fred Fish.
2775 2003-06-30 Andrew Cagney <cagney@redhat.com>
2777 * remote.c (remote_async_wait): Fix -Wformat problem.
2779 2003-06-29 Andrew Cagney <cagney@redhat.com>
2781 * remote.c (remote_wait): Call error, and not warning, when the
2783 (remote_async_wait): Ditto.
2785 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2787 * sparc-tdep.c (sparc_y_regnum): Make external again.
2789 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2791 * cli/cli-logging.c (pop_output_files): Add void to function
2794 2003-06-29 Andrew Cagney <cagney@redhat.com>
2796 * frame.c (frame_register_unwind): Use unsigned char when dumping
2797 the buffer contents.
2799 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2801 * cli/cli-logging.c: New file.
2802 * cli-out.c (struct ui_out_data): Add original_stream.
2803 (cli_redirect): New function.
2804 (cli_ui_out_impl): Add cli_redirect.
2805 (cli_out_new): Initialize original_stream.
2806 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2807 (uo_redirect, ui_out_redirect): New.
2808 * ui-out.h (struct ui_out_impl): Add redirect member.
2809 (redirect_ftype): New.
2810 (ui_out_redirect): Add prototype.
2811 * Makefile.in: Add rules for cli-logging.c.
2812 * NEWS: Mention "set logging".
2814 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2816 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2818 2003-06-27 Andrew Cagney <cagney@redhat.com>
2820 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2821 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2822 * avr-tdep.c (avr_call_dummy_address): Delete function.
2823 (avr_gdbarch_init): Do not set call_dummy_address.
2825 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2827 * symfile.c (syms_from_objfile): Move variables to inner block.
2828 Move the checks for the non-mainline case a bit earlier to avoid
2829 doing some useless computations.
2831 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2833 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2835 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2837 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2840 2003-06-26 Michael Chastain <mec@shout.net>
2842 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2843 gdb/testsuite/gdb.c++/pr-1210.exp.
2845 2003-06-26 Andrew Cagney <cagney@redhat.com>
2847 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2848 altivec_expression.h and altivec_registers.h.
2850 2003-06-26 Andrew Cagney <cagney@redhat.com>
2852 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2853 info->mach when MIPS16. Patch suggested by Fred Fish.
2855 2003-06-26 Andrew Cagney <cagney@redhat.com>
2857 * utils.c (internal_vproblem): Print the problem to a reason
2858 buffer and then pass to query. Make the msg variable more local.
2860 2003-06-26 Andrew Cagney <cagney@redhat.com>
2862 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2863 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2864 * gdbarch.h, gdbarch.c: Re-generate.
2865 * frame-base.c (default_frame_args_address): Update. Use
2866 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2868 (default_frame_locals_address): Ditto for
2869 DEPRECATED_FRAME_LOCALS_ADDRESS.
2870 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2871 (vax_frame_num_args): Update.
2872 (vax_gdbarch_init): Update.
2873 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2874 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2875 * mcore-tdep.c (mcore_gdbarch_init): Update.
2876 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2877 * ia64-tdep.c (ia64_gdbarch_init): Update.
2878 * symtab.h (address_class): Update comments.
2879 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2880 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2881 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2882 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2883 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2884 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2885 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2886 * alpha-mdebug-tdep.c: Update.
2887 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2889 2003-06-26 Andreas Jaeger <aj@suse.de>
2891 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2892 of SSE registers so that varargs functions work. Rework handling
2893 of passing arguments on the stack.
2894 (x86_64_store_return_value): Return double and float values in SSE
2897 2003-06-24 Michael Chastain <mec@shout.net>
2899 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2900 the "constructor breakpoints ignored" bug.
2902 2003-06-25 David Carlton <carlton@kealia.com>
2904 * MAINTAINERS: Update e-mail address.
2906 2003-06-24 Jim Blandy <jimb@redhat.com>
2908 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2910 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2912 (ppc_linux_init_abi): Register it as the
2913 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2915 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2916 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2919 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2920 (ppc64_standard_linkage_target): Use it.
2922 2003-06-23 Andrew Cagney <cagney@redhat.com>
2924 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2925 for 0 "int0" and 4 "int32" sized registers.
2926 * gdbtypes.c (builtin_type_int0): Define.
2927 (build_gdbtypes): Initialize builtin_type_int0.
2928 * gdbtypes.h (builtin_type_int0): Declare.
2930 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2932 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2933 as characters are unsigned.
2935 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2938 * dwarfread.c (struct_type): Skip static fields without crashing.
2940 2003-06-22 Andrew Cagney <cagney@redhat.com>
2942 GDB 6.0 branch created.
2944 * PROBLEMS: Update. Empty.
2947 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2949 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2950 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2952 2003-06-22 Andrew Cagney <cagney@redhat.com>
2954 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2955 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2958 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2960 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2963 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2965 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2966 argument of val_print.
2967 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2968 to the address argument of baseclass_offset or target_read_memory.
2969 Do add it to the argument of cp_print_value_fields.
2971 2003-06-21 Andrew Cagney <cagney@redhat.com>
2973 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2974 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2975 instead of 0..NUM_REGS.
2976 (mips_register_reggroup_p): New function.
2977 (mips_pseudo_register_write): New function.
2978 (mips_pseudo_register_read): New function.
2979 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2980 based on the register's type.
2981 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2983 (mips_get_saved_register): Simplify. Assert that REGNO is a
2985 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2986 (mips_register_type): Replace mips_register_virtual_type. Map
2987 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2989 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2990 that the register is cooked / virtual.
2991 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2992 Only get the extra info when needed.
2993 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2994 (mips32_heuristic_proc_desc): Fetch the cooked register.
2995 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2996 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2997 (mips_print_register): Use gdbarch_register_type, instead of
2998 REGISTER_VIRTUAL_TYPE.
2999 (print_gp_register_row): Use gdbarch_register_type, instead of
3000 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3001 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3002 Print the pseudo / cooked registers.
3003 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3004 Print the pseudo / cooked registers.
3005 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3006 REG_NUM is pseudo / cooked.
3007 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3008 (mips_n32n64_xfer_return_value): Ditto.
3009 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3010 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3011 (mips_register_sim_regno): New function.
3012 (mips_gdbarch_init): Set deprecated_register_byte,
3013 register_group_p, pseudo_register_write, pseudo_register_read,
3014 register_sim_regno, and num_pseudo_regs. Set register_type,
3015 instead of register_virtual_type.
3016 * Makefile.in (mips-tdep.o): Update dependencies.
3017 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3018 REGISTER_VIRTUAL_TYPE.
3019 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3020 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3021 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3022 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3023 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3025 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3027 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3028 * cli/cli-cmds.c: Include "gdb_vfork.h".
3029 (shell_escape): Use vfork.
3031 2003-06-21 Andrew Cagney <cagney@redhat.com>
3033 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3034 32 bit floating-point register saves.
3036 * frame.h (deprecated_unwind_get_saved_register): Delete.
3037 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3038 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3039 and deprecated_get_next_frame_hack instead of
3040 deprecated_unwind_get_saved_register.
3042 * mips-tdep.c (mips_dump_tdep): Do not print
3043 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3045 * frame.c (get_frame_register): New function.
3046 (frame_unwind_register_signed): New function.
3047 (get_frame_register_signed): New function.
3048 (frame_unwind_register_unsigned): New function.
3049 (get_frame_register_unsigned): New function.
3050 * frame.h: Add comments on naming schema.
3051 (get_frame_register, frame_unwind_register_signed): Declare.
3052 (get_frame_register_signed, get_frame_register_signed): Declare.
3053 (frame_unwind_register_unsigned): Declare.
3054 (get_frame_register_unsigned): Declare.
3056 2003-06-20 Theodore A. Roth <troth@openavr.org>
3058 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3060 2003-06-20 Theodore A. Roth <troth@openavr.org>
3062 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3063 (avr_read_sp): Ditto.
3065 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3067 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3068 * config/arm/nm-linux.h: Likewise.
3069 * config/arm/tm-linux.h: Likewise.
3070 * config/ia64/nm-linux.h: Likewise.
3071 * config/ia64/tm-ia64.h: Likewise.
3072 * config/s390/tm-linux.h: Likewise.
3073 * config/s390/tm-s390.h: Likewise.
3074 * s390-nat.c: Likewise.
3075 * s390-tdep.c: Likewise.
3077 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3078 * config/ia64/linux.mt: Likewise.
3079 * config/m68k/linux.mh: Likewise.
3080 * config/mips/linux.mt: Likewise.
3081 * config/powerpc/linux.mh: Likewise.
3082 * config/sh/linux.mt: Likewise.
3084 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3086 * solib.c (solib_open): Change tests for whether to search
3087 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3090 2003-06-19 Theodore A. Roth <troth@openavr.org>
3092 * avr-tdep.c (avr_frame_address): Delete function.
3093 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3094 set_gdbarch_frame_args_address.
3096 2003-06-19 Andrew Cagney <cagney@redhat.com>
3098 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3099 (REGISTER_CONVERT_FROM_TYPE): Delete.
3100 (mips_register_convert_to_type): Delete declaration.
3101 (mips_register_convert_from_type): Delete declaration.
3102 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3105 2003-06-19 Michael Snyder <msnyder@redhat.com>
3107 * linux-nat.h: New file.
3108 * linux-nat.c: Include linux-nat.h.
3109 * lin-lwp.c: Include linux-nat.h.
3110 Move struct lwp_info def to linux-nat.h.
3111 * linux-proc.c: Include linux-nat.h.
3112 (linux_make_note_section): Iterate over lwps instead of threads.
3113 (linux_do_thread_registers): Use lwp instead of merged pid.
3114 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3115 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3116 Add dependency on linux_nat_h.
3118 2003-06-19 Theodore A. Roth <troth@openavr.org>
3120 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3122 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3124 * varobj.c (get_type, get_target_type): Use check_typedef.
3126 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3128 * breakpoint.c (insert_catchpoint): Call internal_error.
3130 2003-06-19 Theodore A. Roth <troth@openavr.org>
3132 * avr-tdep.c (avr_push_dummy_code): Delete function.
3133 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3135 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3137 * arch-utils.c (default_prepare_to_proceed): Remove.
3138 (generic_prepare_to_proceed): Remove.
3139 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3140 (generic_prepare_to_proceed): Remove prototype.
3141 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3142 * gdbarch.c: Regenerate.
3143 * gdbarch.h: Regenerate.
3144 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3145 * hppah-nat.c (hppa_switched_threads): Remove.
3146 * infrun.c (prepare_to_proceed): New static function, copied from
3147 generic_prepare_to_proceed. Remove select_it argument.
3148 (proceed): Call prepare_to_proceed.
3149 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3151 (ptrace_wait): Don't set the removed variables.
3152 (hppa_switched_threads): Remove.
3153 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3154 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3155 (lin_lwp_prepare_to_proceed): Remove prototype.
3156 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3157 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3159 2003-06-18 Theodore A. Roth <troth@openavr.org>
3161 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3163 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3164 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3165 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3166 (AVR_PROLOGUE_*): Enumerate prologue types.
3167 (struct frame_extra_info): Remove.
3168 (struct avr_unwind_cache): Define.
3169 (avr_write_sp): Delete function.
3170 (avr_read_fp): Ditto.
3171 (avr_init_extra_frame_info): Ditto.
3172 (avr_pop_frame): Ditto.
3173 (avr_frame_saved_pc): Ditto.
3174 (avr_saved_pc_after_call): Ditto.
3175 (avr_push_return_address): Ditto.
3176 (avr_frame_chain): Ditto.
3177 (avr_store_struct_return): Ditto.
3178 (avr_push_arguments): Ditto.
3179 (avr_scan_prologue): Update comments. Changed to set up the info for
3180 cache unwinding. Now returns end of prologue PC.
3181 (avr_skip_prologue): Better handling of functions lacking a prologue
3182 by using avr_scan_prologue.
3183 (avr_scan_arg_moves): New function.
3184 (avr_saved_regs_unwinder): Ditto.
3185 (avr_frame_unwind_cache): Ditto.
3186 (avr_unwind_pc): Ditto.
3187 (avr_frame_this_id): Ditto.
3188 (avr_frame_prev_register): Ditto.
3189 (avr_frame_p): Ditto.
3190 (avr_frame_base_address ): Ditto.
3191 (avr_unwind_dummy_id): Ditto.
3192 (avr_push_dummy_code): Ditto.
3193 (push_stack_item): Ditto.
3194 (pop_stack_item): Ditto.
3195 (avr_push_dummy_call): Ditto.
3196 (struct stack_item): Define.
3197 (avr_frame_unwind): Declare structure.
3198 (avr_frame_base): Ditto.
3199 (avr_gdbarch_init): Remove calls to
3200 set_gdbarch_deprecated_init_frame_pc,
3201 set_gdbarch_deprecated_target_read_fp,
3202 set_gdbarch_deprecated_dummy_write_sp,
3203 set_gdbarch_deprecated_fp_regnum,
3204 set_gdbarch_deprecated_push_arguments,
3205 set_gdbarch_deprecated_push_return_address,
3206 set_gdbarch_deprecated_pop_frame,
3207 set_gdbarch_deprecated_store_struct_return,
3208 set_gdbarch_deprecated_frame_init_saved_regs,
3209 set_gdbarch_deprecated_init_extra_frame_info,
3210 set_gdbarch_deprecated_frame_chain,
3211 set_gdbarch_deprecated_frame_saved_pc,
3212 set_gdbarch_deprecated_saved_pc_after_call.
3213 Add calls to set_gdbarch_push_dummy_call,
3214 set_gdbarch_push_dummy_code,
3215 frame_unwind_append_predicate,
3216 frame_base_set_default,
3217 set_gdbarch_unwind_dummy_id,
3218 set_gdbarch_unwind_pc.
3221 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3223 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3224 registers for H8/300S.
3225 (h8300_print_registers_info): Ditto.
3226 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3228 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3230 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3231 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3232 (lin_lwp_wait): Likewise. Update comments.
3233 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3234 (pull_pid_from_list, linux_record_stopped_pid): New.
3236 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3238 * ada-lang.c (scan_discrim_bound): Name first argument.
3239 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3240 declared by ALL_BLOCK_SYMBOLS.
3242 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3244 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3245 ("regcache.h"): Include it.
3246 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3248 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3250 * NEWS: Mention gdbserver detach change and "disconnect" command.
3251 * infcmd.c (disconnect_command): New function.
3252 (_initialize_infcmd): Add ``disconnect'' command.
3253 * remote.c (remote_async_detach): Delete.
3254 (remote_detach): Merge remote_async_detach.
3255 (remote_disconnect): New.
3256 (init_remote_ops): Set to_disconnect.
3257 (init_remote_cisco_ops): Likewise.
3258 (init_remote_async_ops): Likewise. Use remote_detach.
3259 * target.c (cleanup_target): Default to_disconnect.
3260 (update_current_target): Inherit to_disconnect.
3261 (target_disconnect, debug_to_disconnect): New functions.
3262 (setup_target_debug): Set to_disconnect.
3263 * target.h (struct target_ops): Add to_disconnect.
3264 (target_disconnect): Add prototype.
3266 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3268 * breakpoint.c (insert_catchpoint): New function.
3269 (insert_breakpoints): Use catch_exceptions to call
3270 insert_catchpoint. Disable catchpoints if they fail to insert.
3272 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3274 * symfile.c (reread_symbols): Clear sym_private.
3276 2003-06-17 Andrew Cagney <cagney@redhat.com>
3278 * trad-frame.h (struct frame_info): Add opaque declaration.
3279 * remote-fileio.h (struct cmd_list_element): Add opaque
3281 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3284 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3286 * remote.c (remote_prepare_to_store): Replace call to
3287 deprecated_read_register_bytes with multiple regcache_raw_read
3290 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3292 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3293 (nto_find_and_open_solib): Likewise.
3294 (nto_init_solib_absolute_prefix): Likewise.
3295 (_initialize_nto_tdep): Fix indentation.
3297 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3299 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3301 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3303 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3305 2003-06-17 Jim Blandy <jimb@redhat.com>
3307 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3309 2003-06-16 Theodore A. Roth <troth@openavr.org>
3311 * avr-tdep.c (avr_extract_return_value): New function.
3312 (avr_gdbarch_init): Set extract_return_value method.
3314 2003-06-16 Andrew Cagney <cagney@redhat.com>
3316 * frame.h (deprecated_get_next_frame_hack): Declare.
3317 * frame.c (legacy_saved_regs_prev_register): Only require
3318 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3319 there are always saved regs.
3320 (deprecated_generic_get_saved_register): Do not require
3321 DEPRECATED_FRAME_INIT_SAVED_REGS.
3322 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3323 use frame ID unwind instead.
3324 (deprecated_get_next_frame_hack): New function.
3326 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3328 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3329 (h8300_push_dummy_call): ...this function. Some minor optimization.
3330 (h8300_push_return_address): Remove.
3331 (h8300_gdbarch_init): Remove calls to
3332 set_gdbarch_deprecated_dummy_write_sp,
3333 set_gdbarch_deprecated_push_arguments and
3334 set_gdbarch_deprecated_push_return_address.
3335 Add call to set_gdbarch_push_dummy_call.
3337 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3339 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3340 (E_PSEUDO_EXR_REGNUM): Ditto.
3341 (h8300_is_argument_spill): Check for instructions moving argument
3342 registers into safe registers.
3343 (h8300_skip_prologue): Check for stm instruction to push registers
3344 used for register variables onto stack.
3345 (gdb_print_insn_h8300): Remove.
3346 (h8300_examine_prologue): Add a comment.
3347 (h8300_register_name): Take pseudo registers into account.
3348 (h8300s_register_name): Ditto.
3349 (h8300sx_register_name): Ditto.
3350 (h8300_print_register): Ditto.
3351 (h8300_print_registers_info): Define "nice" printing order.
3352 (h8300_saved_pc_after_call): Take pseudo registers into account.
3353 (h8300_register_type): Ditto. Return type used for remote connection
3354 when requesting real CCR or EXR register, return actual type when
3355 requesting pseudo CCR or EXR.
3356 (h8300_pseudo_register_read): New function.
3357 (h8300_pseudo_register_write): Ditto.
3358 (h8300_dbg_reg_to_regnum): Ditto.
3359 (h8300s_dbg_reg_to_regnum): Ditto.
3360 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3361 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3362 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3363 set_gdbarch_print_insn architecture dependent.
3364 Call set_gdbarch_pseudo_register_read and
3365 set_gdbarch_pseudo_register_write.
3366 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3368 2003-06-16 Andrew Cagney <cagney@redhat.com>
3370 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3371 * gdbarch.h, gdbarch.c: Re-generate.
3372 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3373 * s390-tdep.c (s390_gdbarch_init): Update.
3374 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3375 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3376 * mips-tdep.c (mips_gdbarch_init): Update.
3377 * mcore-tdep.c (mcore_gdbarch_init): Update.
3378 * cris-tdep.c (cris_gdbarch_init): Update.
3379 * infcall.c (call_function_by_hand): Update.
3380 * ia64-tdep.c (ia64_push_arguments): Update comment.
3381 * frame.c (legacy_get_prev_frame): Do not assume
3382 SAVE_DUMMY_FRAME_TOS_P.
3383 * dummy-frame.c (find_dummy_frame): Update comment.
3385 2003-06-16 Andrew Cagney <cagney@redhat.com>
3387 * regcache.c (do_cooked_read): Do not use register_valid_p.
3389 2003-06-15 Theodore A. Roth <troth@openavr.org>
3391 * avr-tdep.c (avr_register_type): Remove a blank line.
3392 (avr_scan_prologue): Correct some comments.
3394 2003-06-15 Theodore A. Roth <troth@openavr.org>
3396 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3398 Properly scan prologues generated by gcc with the -mcall-prologues
3400 Add code to scan -mcall-prologues for mega devices.
3402 2003-06-15 Theodore A. Roth <troth@openavr.org>
3404 * avr-tdep.c (avr_register_byte): Delete function.
3405 (avr_register_raw_size): Delete function.
3406 (avr_register_virtual_size): Delete function.
3407 (avr_register_virtual_type): Delete function.
3408 (avr_register_type): New function.
3409 (avr_address_to_pointer): Remove unused code.
3410 (avr_read_fp): Need to read FP as two separate bytes due to change to
3411 avr_register_type() usage.
3412 (avr_gdbarch_init): Don't set deprecated_register_size.
3413 Don't set deprecated_register_bytes.
3414 Don't set deprecated_register_byte.
3415 Don't set deprecated_register_raw_size.
3416 Don't set deprecated_max_register_raw_size.
3417 Don't set deprecated_register_virtual_size.
3418 Don't set deprecated_max_register_virtual_size.
3419 Don't set deprecated_register_virtual_type.
3420 Set register_type method.
3422 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3424 * Makefile.in (linux-nat.o): Add rule.
3425 * linux-nat.c: New file.
3426 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3427 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3428 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3429 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3430 * config/arm/linux.mh (NATDEPFILES): Likewise.
3431 * config/i386/linux.mh (NATDEPFILES): Likewise.
3432 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3433 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3434 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3435 * config/mips/linux.mh (NATDEPFILES): Likewise.
3436 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3437 * config/s390/s390.mh (NATDEPFILES): Likewise.
3438 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3440 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3442 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3443 replace out-of-date comment.
3445 2003-06-15 Andrew Cagney <cagney@redhat.com>
3447 * rdi-share/host.h (Fail): Change to a varargs function.
3448 * remote-rdi.c (Fail): Update.
3450 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3452 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3453 (i386_convert_register_p, i386_register_to_value,
3454 i386_register_from_value): Handle types longer than 8 bytes.
3456 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3458 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3459 Move floating-point code to new function in i387-tdep.c.
3460 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3461 New functions containing code moved here from i386-tdep.c.
3462 * i387-tdep.h: Add opaque declaration for `struct type'.
3463 (i387_register_to_value, i387_value_to_register): New prototypes.
3464 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3465 (x86_64_init_abi): Set convert_register_p, register_to_value and
3466 value_to_register here.
3468 2003-06-14 Andrew Cagney <cagney@redhat.com>
3470 * mips-tdep.c (mips_register_to_value): Make static.
3471 (mips_value_to_register): Make static.
3472 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3473 * ia64-tdep.c (ia64_register_raw_size): Make static.
3474 (ia64_register_virtual_size): Make static.
3475 (ia64_register_byte): Make static.
3476 * i387-tdep.c: Include "i387-tdep.h".
3477 (print_387_control_word): Delete function.
3478 (print_387_status_word): Delete function.
3479 (print_387_status_bits): Delete function.
3480 (print_387_control_bits): Delete function.
3481 * Makefile.in (i387-tdep.o): Update dependencies.
3482 * rdi-share/host.h (Fail): Declare.
3483 * remote-rdi.c (Fail): Update to match declaration.
3485 2003-06-14 Andrew Cagney <cagney@redhat.com>
3487 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3488 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3489 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3490 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3491 * README: Delete reference to remote-array.
3492 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3493 (remote-array.o): Delete target.
3494 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3495 * remote-array.c: Delete file.
3497 2003-06-14 Andrew Cagney <cagney@redhat.com>
3498 Mark Kettenis <kettenis@gnu.org>
3500 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3501 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3502 parameter with "frame".
3503 * gdbarch.h, gdbarch.c: Re-generate.
3504 * frame.h (put_frame_register): Declare.
3505 * frame.c (put_frame_register): New function.
3506 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3507 (legacy_register_to_value): Rewrite, use "frame" to get the
3509 (legacy_value_to_register): Rewrite, use "frame" to find the
3510 register's location before storing.
3511 * arch-utils.h (legacy_convert_register_p): Update.
3512 (legacy_register_to_value, legacy_value_to_register): Update.
3513 * findvar.c (value_from_register): Rewrite, eliminate use of
3514 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3515 "frame" to REGISTER_TO_VALUE.
3516 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3517 lval_reg_frame_relative + lval_register branch of the switch. Do
3518 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3519 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3520 I386_EDI_REGNUM): New defines.
3521 (i386_next_regnum, i386_convert_register_p,
3522 i386_register_to_value, i386_value_to_register): New functions.
3523 (i386_register_convertible, i386_register_convert_to_virtual,
3524 i386_convert_to_raw): Remove functions.
3525 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3526 value_to_register instead of register_convertible,
3527 register_convert_to_virtual and register_convert_to_raw.
3528 * mips-tdep.c (mips_convert_register_p): New function.
3529 (mips_value_to_register): Replace mips_register_convert_from_type.
3530 (mips_register_to_value): Replace mips_register_convert_to_type.
3531 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3533 * alpha-tdep.c (alpha_convert_register_p): Update.
3534 (alpha_value_to_register): Update, store the register.
3535 (alpha_register_to_value): Update, fetch the register.
3537 2003-06-14 Theodore A. Roth <troth@openavr.org>
3539 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3540 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3541 Don't set deprecated_call_dummy_words.
3542 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3543 Don't set remote_translate_xfer_address.
3544 (avr_io_reg_read_command): Remove commented out debug printf.
3547 2003-06-14 Theodore A. Roth <troth@openavr.org>
3549 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3550 causes gdb to seg fault.
3552 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3554 * sparc-nat.c (fetch_inferior_registers): Correct
3555 a reference to "registers".
3557 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3559 * Makefile.in (exc_request_U_h): Define
3560 (exc_request_S_h): Likewise.
3561 (msg_reply_S_h): Likewise.
3562 (msg_U_h): Likewise.
3563 (notify_S_h): Likewise.
3564 (process_reply_S_h): Likewise.
3565 (gnu-nat.o): Depend on gdb_obstack_h
3566 * gnu-nat.c: Include "gdb_obstack.h".
3568 2003-06-13 Andrew Cagney <cagney@redhat.com>
3570 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3571 * gdbarch.h, gdbarch.c: Re-generate.
3573 2003-06-13 Andrew Cagney <cagney@redhat.com>
3575 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3576 when deprecated REGISTER macros can be deleted.
3577 * gdbarch.h, gdbarch.c: Re-generate.
3579 2003-06-13 Jim Blandy <jimb@redhat.com>
3581 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3582 Linux entry point symbols for _dl_debug_state, too.
3584 2003-06-13 Andrew Cagney <cagney@redhat.com>
3586 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3587 available, do not use the FP register, and always save the TOS.
3588 * dummy-frame.c (dummy_frame_this_id): Do not assert
3589 SAVE_DUMMY_FRAME_TOS.
3590 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3591 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3592 (i386_push_dummy_call): Add 8 to the returned SP.
3593 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3594 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3595 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3596 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3597 (x86_64_push_dummy_call): Return "sp + 16".
3598 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3599 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3600 save_dummy_frame_tos.
3602 2003-06-13 Jim Blandy <jimb@redhat.com>
3604 * frv-tdep.c (frv_use_struct_convention): Delete static
3605 declaration for function deleted in my change of 2003-06-12.
3607 2003-06-13 Theodore A. Roth <troth@openavr.org>
3609 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3610 (avr_pointer_to_address): Shift code addrs left 1 bit.
3611 (avr_convert_from_func_ptr_addr): Delete function since operation is
3612 better handled by avr_address_to_pointer and avr_pointer_to_address.
3613 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3615 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3617 From Kelley Cook <kelleycook@wideopenwest.com>:
3618 * configure.host: Accept i[34567]86 variants.
3619 * configure.tgt: Likewise.
3620 * nlm/configure.in: Likewise.
3621 * nlm/configure: Regenerated.
3623 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3625 * arm-tdep.c (solib-svr4.h): Dont' include it.
3626 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3627 * arm-linux-tdep.c: ... here. Make static.
3628 (arm_linux_init_abi): Register it.
3629 (solib-svr4.h): Include it.
3630 * Makefile.in: Update dependencies.
3631 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3632 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3634 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3636 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3637 indicate registers used for return values.
3638 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3639 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3641 (h8300_init_extra_frame_info): Ditto.
3642 (h8300_frame_locals_address): Removed.
3643 (h8300_frame_args_address): Removed.
3644 (h8300_extract_return_value): Use new regcache structure. Only care
3646 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3647 (h8300_store_return_value): Use new regcache structure. Only care
3649 (h8300h_store_return_value): Same function for 32 bit CPUs.
3650 (h8300_store_struct_return): Removed.
3651 (h8300_extract_struct_value_address): Use new regcache structure.
3652 (h8300h_extract_struct_value_address): Removed.
3653 (h8300_push_dummy_code): New function.
3654 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3655 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3656 set_gdbarch_store_return_value architecture dependent.
3657 Call set_gdbarch_push_dummy_code and
3658 set_gdbarch_extract_struct_value_address.
3659 Remove calls to set_gdbarch_frame_args_address,
3660 set_gdbarch_frame_locals_address,
3661 set_gdbarch_deprecated_store_struct_return,
3662 set_gdbarch_deprecated_extract_return_value,
3663 set_gdbarch_deprecated_extract_struct_value_address,
3664 set_gdbarch_deprecated_call_dummy_words and
3665 set_gdbarch_deprecated_sizeof_call_dummy_words.
3667 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3669 * h8300-tdep.c (h8300_register_byte): Remove.
3670 (h8300h_register_byte): Remove.
3671 (h8300_register_virtual_type): Remove. Substitute by...
3672 (h8300_register_type): New function.
3673 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3674 (h8300h_extract_struct_value_address): Ditto.
3675 (h8300_gdbarch_init): Drop calls to
3676 set_gdbarch_deprecated_register_byte and
3677 set_gdbarch_deprecated_register_virtual_type.
3678 Add call to set_gdbarch_register_type.
3680 2003-06-13 Andrew Cagney <cagney@redhat.com>
3682 * gdbarch.sh: Update comments on registers.
3683 (deprecated_register_byte): Rename register_byte.
3684 (deprecated_register_raw_size): Rename register_raw_size.
3685 (deprecated_register_virtual_size): Rename register_virtual_size.
3686 (deprecated_register_virtual_type): Rename register_virtual_type.
3687 * gdbarch.h, gdbarch.c: Re-generate.
3688 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3689 * vax-tdep.c (vax_gdbarch_init): Update.
3690 * v850-tdep.c (v850_gdbarch_init): Update.
3691 * sparc-tdep.c (sparc_gdbarch_init): Update.
3692 * sh-tdep.c (sh_gdbarch_init): Update.
3693 * s390-tdep.c (s390_gdbarch_init): Update.
3694 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3695 * ns32k-tdep.c: Update.
3696 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3697 * mips-tdep.c (mips_gdbarch_init): Update.
3698 * mcore-tdep.c (mcore_gdbarch_init): Update.
3699 * m68k-tdep.c (m68k_gdbarch_init): Update.
3700 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3701 * ia64-tdep.c (ia64_gdbarch_init): Update.
3702 * hppa-tdep.c (hppa_gdbarch_init): Update.
3703 * h8300-tdep.c (h8300_gdbarch_init): Update.
3704 * frv-tdep.c (frv_gdbarch_init): Update.
3705 * cris-tdep.c (cris_gdbarch_init): Update.
3706 * avr-tdep.c (avr_gdbarch_init): Update.
3707 * alpha-tdep.c (alpha_gdbarch_init): Update.
3708 * arm-tdep.c (arm_gdbarch_init): Update.
3710 2003-06-13 Andrew Cagney <cagney@redhat.com>
3712 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3713 mips_o32_use_struct_convention with always_use_struct_convention.
3715 2003-06-12 David Carlton <carlton@kealia.com>
3717 * cp-namespace.c (cp_set_block_scope): Comment out
3718 processing_has_namespace_info branch.
3720 2003-06-12 Jim Blandy <jimb@redhat.com>
3722 Recognize and skip 64-bit PowerPC Linux linkage functions.
3723 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3724 insn_pattern, insns_match_pattern, d_field, ds_field): New
3725 functions, macros, and types for working with PPC instructions.
3726 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3727 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3728 ppc64_skip_trampoline_code): New functions, variables, and macros
3729 for recognizing and skipping linkage functions.
3730 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3731 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3733 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3734 register offsets for both the 32- and 64-bit interfaces.
3736 Actually finish the job started by my change of 2003-05-29.
3737 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3738 other #definition of this.
3739 (ppc_linux_skip_trampoline_code): Remove declaration.
3740 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3742 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3745 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3746 'long' on ppc64-*-linux*.
3748 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3749 isn't #defined, assume the register doesn't exist: act as if
3750 tdep->ppc_mq_regnum were -1.
3752 * configure.host, configure.tgt: Add entries for
3753 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3755 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3758 * arch-utils.c (always_use_struct_convention): New function.
3759 * arch-utils.h (always_use_struct_convention): New prototype.
3760 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3761 (alpha_gdbarch_init): Register always_use_struct_convention,
3762 instead of alpha_use_struct_convention.
3763 * cris-tdep.c (cris_use_struct_convention): Delete.
3764 (cris_gdbarch_init): Register always_use_struct_convention,
3765 instead of cris_use_struct_convention.
3766 * frv-tdep.c (frv_use_struct_convention): Delete.
3767 (frv_gdbarch_init): Register always_use_struct_convention,
3768 instead of frv_use_struct_convention.
3769 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3770 (h8300_gdbarch_init): Register always_use_struct_convention,
3771 instead of h8300_use_struct_convention.
3772 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3773 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3774 instead of mips_o32_use_struct_convention.
3776 2003-06-12 Andrew Cagney <cagney@redhat.com>
3778 * wince.c: Include "mips-tdep.h".
3779 * mips-tdep.h (mips_next_pc): Declare.
3780 * mcore-tdep.c: Make more local functions static.
3781 * Makefile.in (wince.o): Update dependencies.
3783 2003-06-12 David Carlton <carlton@kealia.com>
3785 * symtab.c (lookup_symbol_aux_minsyms): Replace
3786 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3787 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3788 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3789 SYMBOL_NATURAL_NAME.
3791 2003-06-12 Andreas Schwab <schwab@suse.de>
3793 * Makefile.in (tuiDisassem.o): Update dependencies.
3795 2003-06-12 David Carlton <carlton@bactrian.org>
3797 * symtab.h: Delete declaration of make_symbol_overload_list.
3798 Add declaration of lookup_partial_symbol.
3799 * symtab.c (remove_params): Move to cp-support.c.
3800 (overload_list_add_symbol, make_symbol_overload_list)
3801 (sym_return_val_size, sym_return_val_index): Ditto.
3802 (lookup_partial_symbol): Make extern.
3803 * cp-support.h: Add declaration of make_symbol_overload_list.
3804 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3805 symtab.h, and block.h.
3806 (remove_params): Move here from symtab.c.
3807 (overload_list_add_symbol, make_symbol_overload_list)
3808 (sym_return_val_size, sym_return_val_index): Ditto.
3809 * valops.c: Include cp-support.h.
3810 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3811 frame_h, and block_h.
3812 (valops.o): Depend on cp_support_h.
3814 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3816 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3817 substitute by NUM_REGS throughout.
3818 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3819 (h8300s_register_name): New function for H8S registers.
3820 (h8300sx_register_name): Ditto for H8SX registers.
3821 (h8300_print_register): Revise register printing, avoid depending
3823 (h8300_register_byte): Only care for H8/300 registers.
3824 (h8300h_register_byte): New function for any other architecture.
3825 (h8300_register_raw_size): Remove.
3826 (h8300_register_virtual_type): Revise to return actually useful
3828 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3829 (h8300h_extract_struct_value_address): New function for any other
3831 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3832 set_gdbarch_register_name, set_gdbarch_register_byte,
3833 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3834 Remove calls to set_gdbarch_deprecated_register_size,
3835 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3836 set_gdbarch_deprecated_max_register_raw_size,
3837 set_gdbarch_register_virtual_size and
3838 set_gdbarch_deprecated_max_register_virtual_size entirely.
3839 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3840 set_gdbarch_long_double_bit.
3842 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3844 * doublest.c (convert_doublest_to_floatformat): When dealing
3845 with the implied integer bit, only alter mant_bits if we are
3846 processing a full 32 bits of mantissa.
3848 2003-06-11 David Carlton <carlton@bactrian.org>
3850 * dictionary.h: New.
3851 * dictionary.c: New.
3852 * block.h: Add opaque declaration for struct dictionary.
3853 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3855 (BLOCK_DICT): New macro.
3856 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3857 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3859 (ALL_BLOCK_SYMBOLS): Update definition.
3860 * Makefile.in (SFILES): Add dictionary.c.
3861 (dictionary_h): New.
3862 (COMMON_OBS): Add dictionary.o.
3863 (dictionary.o): New.
3864 (ada-lang.o): Depend on dictionary_h.
3865 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3866 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3867 (mi-cmd-stack.o): Ditto.
3868 (gdbtk-cmds.o): Update dependencies.
3869 (gdbtk-stack.o): Ditto.
3870 * ada-lang.c: Include dictionary.h.
3871 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3872 (fill_in_ada_prototype, debug_print_block): Ditto.
3873 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3874 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3876 * mdebugread.c: Include dictionary.h.
3877 (struct parse_stack): Delete 'maxsyms' member.
3878 (parse_symbol): Update calls to new_block. Delete calls to
3879 shrink_block. Use dictionary methods.
3880 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3881 Update calls to new_symtab. Don't maintain maxsyms data.
3882 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3883 (add_symbol): Just call dict_add_symbol.
3884 (new_symtab): Delete 'maxsyms' argument.
3885 (new_symtab): Update calls to new_block.
3886 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3887 (shrink_block): Delete function.
3888 (fixup_sigtramp): Update call to new_block. Add symbol via
3890 * jv-lang.c: Include dictionary.h.
3891 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3892 appropriately. Set class_symtab->free_func. Make sure the
3893 blockvector is big enough to hold two blocks.
3894 (add_class_symtab_symbol): Use dictionary methods.
3895 (free_class_block): New function.
3896 (type_from_class): Replace explicit iteration by
3898 * symtab.h (struct symtab): Replace 'free_ptr' method by
3900 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3902 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3904 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3905 Include dictionary.h.
3906 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3907 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3909 * objfiles.c: Include dictionary.h.
3910 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3911 * buildsym.c: Include dictionary.h.
3912 (finish_block): Use dictionary methods.
3913 (end_symtab): Set free_func to NULL, not free_ptr.
3914 * tracepoint.c: Include dictionary.h.
3915 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3916 (scope_info): Ditto.
3917 * stack.c: Include dictionary.h.
3918 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3919 (print_block_frame_labels, print_frame_arg_vars)
3920 (print_frame_args): Ditto.
3921 * symmisc.c (free_symtab_block): Use dictionary methods.
3922 (dump_symtab): Ditto.
3923 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3924 Include dictionary.h.
3925 * symfile.h: Delete declarations of sort_block_syms,
3927 * symfile.c (sort_block_syms): Delete.
3928 (sort_symtab_syms): Delete.
3929 * symtab.c: Include dictionary.h.
3930 (lookup_block_symbol): Use dictionary iterators.
3931 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3932 (search_symbols, make_symbol_completion_list): Ditto.
3933 (make_symbol_overload_list): Ditto.
3934 * valops.c (value_of_local): Use dict_empty.
3935 Include dictionary.h.
3937 2003-06-11 J. Brobecker <brobecker@gnat.com>
3939 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3941 2003-06-11 David Carlton <carlton@bactrian.org>
3943 * block.h (BLOCK_SHOULD_SORT): Delete.
3944 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3946 * ada-lang.c (ada_add_block_symbols): Ditto.
3947 * symfile.c (sort_block_syms): Delete.
3948 (sort_symtab_syms): Ditto.
3949 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3951 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3952 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3953 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3954 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3955 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3956 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3957 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3959 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3961 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3964 2003-06-11 Andrew Cagney <cagney@redhat.com>
3966 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3967 REGISTER_CONVERTIBLE.
3968 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3969 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3970 * gdbarch.h, gdbarch.c: Re-generate.
3971 * arch-utils.h (deprecated_register_convertible_not): Rename
3972 generic_register_convertible_not.
3973 * arch-utils.c (deprecated_register_convertible_not): Rename
3974 generic_register_convertible.
3975 (legacy_convert_register_p, legacy_register_to_value): Update.
3976 * sh-tdep.c (sh64_push_arguments): Update.
3977 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3978 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3979 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3980 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3981 * arch-utils.c (legacy_value_to_register): Update.
3982 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3983 (rs6000_register_convert_to_raw): Make parameter "from" const.
3984 * mips-tdep.c (mips_gdbarch_init): Update.
3985 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3986 * infcmd.c (default_print_registers_info): Update.
3987 * ia64-tdep.c (ia64_gdbarch_init): Update.
3988 (ia64_register_convert_to_raw): Make parameter "from" const.
3989 * i386-tdep.c (i386_gdbarch_init): Update.
3990 (i386_register_convert_to_raw): Update.
3992 2003-06-11 Andrew Cagney <cagney@redhat.com>
3994 * remote-fileio.c: Include "remote-fileio.h".
3995 * Makefile.in (remote-fileio.o): Update dependencies.
3996 (remote_fileio_h): Fix typo.
3998 2003-06-11 Andrew Cagney <cagney@redhat.com>
4000 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4001 (xstormy16_save_dummy_frame_tos): Make static.
4002 (_initialize_xstormy16_tdep): Add declaration.
4003 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4004 * v850-tdep.c: Make local functions static.
4005 (_initialize_v850_tdep): Add declaration.
4006 * sparc-tdep.c: Make local functions static.
4007 (_initialize_sparc_tdep): Add declaration.
4008 * sh-tdep.c: Make local functions static.
4009 (_initialize_sh_tdep): Add declaration.
4010 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4011 * s390-tdep.c: Make local functions static.
4012 (_initialize_s390_tdep): Add declaration.
4013 * dbxread.c (find_stab_function_addr): Make static.
4014 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4015 * ocd.c (_initialize_remote_ocd): Add declaration.
4016 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4017 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4018 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4019 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4020 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4021 * remote-array.c (_initialize_array): Add declaration.
4022 (_initialize_remote_monitors): Add declaration.
4023 * remote-mips.c: Make local functions static.
4024 (_initialize_remote_mips): Add declaration.
4025 * mcore-tdep.c: Make all local functions static.
4026 (_initialize_mcore_tdep): Add declaration.
4027 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4028 * abug-rom.c (_initialize_abug_rom): Add declaration.
4029 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4030 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4031 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4032 * remote-est.c (_initialize_est): Add declaration.
4033 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4034 (m68hc11_call_dummy_address): Make static.
4035 * ia64-tdep.c: Make local functions static.
4036 (_initialize_ia64_tdep): Add declaration.
4037 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4038 * monitor.c (monitor_wait_filter): Make static.
4039 (_initialize_remote_monitors): Add declaration.
4040 * remote-hms.c (_initialize_remote_hms): Add declaration.
4041 * remote-e7000.c (fetch_regs_from_dump): Make static.
4042 (expect_n): Make static.
4043 (_initialize_remote_e7000): Add declaration.
4044 * ser-e7kpc.c: Always include "defs.h".
4045 (_initialize_ser_e7000pc): Add declaration.
4046 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4047 * cris-tdep.c: Make all but one function static.
4048 (_initialize_cris_tdep): Add declaration.
4049 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4050 * solib.c (update_solib_list): Make static.
4051 (_initialize_solib): Add declaration.
4052 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4053 (_initialize_avr_tdep): Add declaration.
4054 * remote-rdi.c (voiddummy): Make static.
4055 (_initialize_remote_rdi): Add declaration.
4056 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4057 * remote-rdp.c (send_rdp): Make static.
4058 (_initialize_remote_rdp): Add declaration.
4059 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4061 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4063 * remote-fileio.c: Make ari happy.
4065 2003-06-10 J. Brobecker <brobecker@gnat.com>
4067 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4068 fetching the trailing bytes of the buffer we are about to write.
4070 2003-06-10 Andrew Cagney <cagney@redhat.com>
4072 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4073 * Makefile.in (remote-fileio.o): Update dependencies.
4074 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4075 include <setjmp.h>, or <sys/types.h> conditional on USG.
4076 (remote_fio_jmp_buf): Delete global variable.
4078 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4079 Martin M. Hunt <hunt@redhat.com>
4081 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4082 (SFILES): Add remote-fileio.c.
4083 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4084 dependencies for building remote.o.
4085 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4086 * remote-fileio.h: New header file defining remote File-I/O interface.
4087 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4088 static storage class.
4089 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4091 (_initialize_remote): Call initialize_remote_fileio().
4092 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4093 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4094 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4095 (captured_main): Initialize new ui_files.
4096 * ui-file.c: Add read and fgets input functions.
4097 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4098 (null_file_read): New function.
4099 (ui_file_read): New function.
4100 (set_ui_file_read): New function.
4101 (stdio_file_read): New function.
4102 * ui-file.h: New type ui_file_read_ftype.
4103 (set_ui_file_read): Declare.
4104 (ui_file_read): Declare.
4106 2003-06-09 Andrew Cagney <cagney@redhat.com>
4108 * frame.h (deprecated_unwind_get_saved_register): Rename
4109 generic_unwind_get_saved_register, update comments.
4110 * mips-tdep.c (mips_get_saved_register): Update.
4111 * frame.c (deprecated_unwind_get_saved_register): Update.
4113 2003-06-09 Andrew Cagney <cagney@redhat.com>
4115 * vax-tdep.c (vax_frame_locals_address): Delete function.
4116 (vax_gdbarch_init): Do not set frame_locals_address.
4117 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4118 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4119 * s390-tdep.c (s390_frame_args_address): Delete function.
4120 (s390_gdbarch_init): Do not set frame_args_address or
4121 frame_locals_address.
4122 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4123 (ns32k_gdbarch_init): Do not set frame_locals_address.
4124 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4125 (hppa_frame_locals_address): Delete function.
4126 (hppa_gdbarch_init): Do not set frame_args_address, or
4127 frame_locals_address.
4128 * arm-tdep.c (arm_frame_args_address): Delete.
4129 (arm_frame_locals_address): Delete.
4130 (arm_gdbarch_init): Do not set frame_args_address, or
4131 frame_locals_address.
4133 2003-06-09 Andrew Cagney <cagney@redhat.com>
4135 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4136 * gdbarch.h, gdbarch.c: Re-generate.
4137 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4138 * arch-utils.c (frame_num_args_unknown): Delete function.
4139 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4140 (frame_info): Use FRAME_NUM_ARGS_P.
4141 * arm-tdep.c (arm_frame_num_args): Delete function.
4142 (arm_gdbarch_init): Do not set frame_num_args.
4143 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4144 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4145 (hppa_gdbarch_init): Do not set frame_num_args.
4146 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4147 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4148 frame_num_args to default frame_num_args_unknown.
4149 * v850-tdep.c (v850_gdbarch_init): Ditto.
4150 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4151 * sh-tdep.c (sh_gdbarch_init): Ditto.
4152 * s390-tdep.c (s390_gdbarch_init): Ditto.
4153 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4154 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4155 * mips-tdep.c (mips_gdbarch_init): Ditto.
4156 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4157 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4158 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4159 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4160 * i386-tdep.c (i386_gdbarch_init): Ditto.
4161 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4162 * frv-tdep.c (frv_gdbarch_init): Ditto.
4163 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4164 * cris-tdep.c (cris_gdbarch_init): Ditto.
4165 * avr-tdep.c (avr_gdbarch_init): Ditto.
4166 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4168 2003-06-09 Andrew Cagney <cagney@redhat.com>
4170 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4171 (print_frame_args): Moved to "stack.c".
4172 * stack.c: Include "gdb_assert.h".
4173 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4174 (print_frame_args): Moved from "printcmd.c".
4175 * frame.h (print_frame_args): Delete declaration.
4176 * Makefile.in (stack.o): Update dependencies.
4178 2003-06-08 Andrew Cagney <cagney@redhat.com>
4180 * frame.c (get_prev_frame): Remove reference to
4181 frame_args_address_correct in comments.
4182 * frame-base.c (default_frame_args_address): Delete code
4183 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4184 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4185 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4186 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4187 (vax_frame_args_address_correct): Delete declaration.
4189 2003-06-08 Andrew Cagney <cagney@redhat.com>
4191 * gdbarch.sh (UNWIND_SP): Add.
4192 * gdbarch.h, gdbarch.c: Re-generate.
4193 * frame.c (frame_sp_unwind): New function.
4194 (get_frame_sp): New function.
4195 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4196 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4197 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4199 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4200 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4202 2003-06-08 Andrew Cagney <cagney@redhat.com>
4204 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4207 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4208 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4209 * config/m68k/tm-sun3.h: Update.
4210 * config/m68k/tm-m68klynx.h: Update.
4211 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4213 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4214 trad_frame". Update comments.
4215 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4216 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4217 (trad_frame_register_value, trad_frame_prev_register): Update.
4219 2003-06-08 Andrew Cagney <cagney@redhat.com>
4221 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4222 from GCC's acinclude.m4.
4223 * configure.in: Check for getopt's delcaration.
4224 * aclocal.m4, config.in, configure: Re-generate.
4225 * main.c (error_init): Delete declaration.
4226 * defs.h (error_init): Declare.
4227 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4228 (rs6000_convert_from_func_ptr_addr): Make static.
4229 (_initialize_rs6000_tdep): Add declaration.
4230 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4231 (show_commands, set_verbose, show_history): Delete declaration.
4232 * top.h (set_verbose): Add declaration.
4233 (show_history, set_history, show_commands): Add declaration.
4234 (do_restore_instream_cleanup): Add declaration.
4235 * objc-lang.c (specialcmp): Make static.
4236 (print_object_command): Make static.
4237 (find_objc_msgsend): Make static.
4238 (find_objc_msgcall_submethod_helper): Make static.
4239 (find_objc_msgcall_submethod): Make static.
4240 (_initialize_objc_language): Add declaration.
4241 (find_implementation_from_class): Make static.
4242 (find_implementation): Make static.
4243 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4244 * objc-lang.h (lookup_struct_typedef): Add declaration.
4245 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4246 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4247 (do_restore_user_call_depth): Make static.
4248 (do_restore_instream_cleanup): Delete declaration.
4249 (dont_repeat): Delete declaration.
4250 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4251 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4252 * reggroups.c (_initialize_reggroup): Add declaration.
4253 * cp-support.c (_initialize_cp_support): Add declaration.
4254 * cp-abi.c (_initialize_cp_abi): Add declaration.
4255 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4256 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4257 (_initialize_gnu_v3_abi): Add declaration.
4258 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4259 (_initialize_gnu_v2_abi): Add declaration.
4260 * frame-base.c (_initialize_frame_base): Add declaration.
4261 * doublest.c (floatformat_from_length): Make static.
4262 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4263 * frame.c (create_sentinel_frame): Make static.
4264 (_initialize_frame): Add declaration.
4265 * top.c (do_catch_errors): Make static.
4266 (gdb_rl_operate_and_get_next_completion): Make static.
4267 * typeprint.c: Include "typeprint.h".
4268 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4269 (sentinel_frame_this_id): Make static.
4270 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4271 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4272 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4273 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4274 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4275 * maint.c (maintenance_print_architecture): Make static.
4276 * signals/signals.c (_initialize_signals): Add declaration.
4277 * std-regs.c (_initialize_frame_reg): Add declaration.
4278 * jv-exp.y (push_variable): ISO C definition.
4279 (push_qualified_expression_name): Ditto.
4280 * memattr.c (_initialize_mem): Add declaration.
4281 * remote.c (remote_check_watch_resources): Make static.
4282 (remote_stopped_by_watchpoint): Make static.
4283 (remote_stopped_data_address): Make static.
4284 * d10v-tdep.c (nr_dmap_regs): Make static.
4285 (a0_regnum): Make static.
4286 (d10v_frame_unwind_cache): Make static.
4287 (d10v_frame_p): Make static.
4288 * osabi.c (show_osabi): Make static.
4289 (_initialize_gdb_osabi): Add extern declaration.
4290 * gdbtypes.c (make_qualified_type): Make static.
4291 (safe_parse_type): Make static.
4292 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4293 * macrotab.c (macro_bcache_free): Make static.
4294 * interps.c (interp_set_quiet): Make static.
4295 (interpreter_exec_cmd): Make static.
4296 * stack.h (select_frame_command): New file.
4297 * stack.c: Include "stack.h".
4298 (select_frame_command_wrapper): Delete function.
4299 (select_frame_command): Make global.
4300 * infcall.c: Include "infcall.h".
4301 * linespec.c: Include "linespec.h".
4302 * symfile.c (sections_overlap): Make static.
4303 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4304 * charset.c (_initialize_charset): Add missing prototype.
4305 * regcache.c (init_legacy_regcache_descr): Make static.
4306 (do_regcache_xfree): Make static.
4307 (regcache_xfer_part): Make static.
4308 (_initialize_regcache): Add missing prototype.
4309 * breakpoint.c (parse_breakpoint_sals): Make static.
4310 (breakpoint_sals_to_pc): Make static.
4311 * interps.h (clear_interpreter_hooks): ISO C declaration.
4312 * Makefile.in (stack_h): Define.
4313 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4314 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4316 2003-06-08 Andrew Cagney <cagney@redhat.com>
4318 * Makefile.in (d10v-tdep.o): Update dependencies.
4319 (SFILES): Add trad-frame.c.
4320 (trad_frame_h): Define.
4321 (COMMON_OBS): Add trad-frame.o.
4322 (trad-frame.o): Specify dependencies.
4323 * d10v-tdep.c: Include "trad-frame.h".
4324 (saved_regs_unwinder): Delete function.
4325 (d10v_frame_prev_register): Use trad_frame_prev_register.
4326 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4327 trad_frame", delete "regs" and "prev_sp".
4328 (prologue_find_regs): Use trad-frame.
4329 * trad-frame.h, trad-frame.c: New files.
4331 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4333 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4335 2003-06-07 Adam Fedor <fedor@gnu.org>
4337 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4338 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4339 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4340 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4341 resolve_msgsend_super, resolve_msgsend_super_stret):
4344 2003-06-07 Andrew Cagney <cagney@redhat.com>
4346 * symfile.h: Re-indent, clean up comments.
4348 2003-06-07 Andrew Cagney <cagney@redhat.com>
4350 * inferior.h (deprecated_write_sp): Replace
4351 generic_target_write_sp.
4352 * regcache.c (deprecated_write_sp): Replace
4353 generic_target_write_sp.
4354 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4355 * vax-tdep.c (vax_gdbarch_init): Update.
4356 * v850-tdep.c (v850_gdbarch_init): Update.
4357 * sparc-tdep.c (sparc_gdbarch_init): Update.
4358 * sh-tdep.c (sh_gdbarch_init): Update.
4359 * s390-tdep.c (s390_gdbarch_init): Update.
4360 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4361 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4362 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4363 * mcore-tdep.c (mcore_gdbarch_init): Update.
4364 * m68k-tdep.c (m68k_gdbarch_init): Update.
4365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4366 * ia64-tdep.c (ia64_gdbarch_init): Update.
4367 * h8300-tdep.c (h8300_gdbarch_init): Update.
4368 * frv-tdep.c (frv_gdbarch_init): Update.
4369 * cris-tdep.c (cris_gdbarch_init): Update.
4370 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4372 2003-06-07 Andrew Cagney <cagney@redhat.com>
4374 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4375 Assert that PC_REGNUM is valid.
4376 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4378 2003-06-07 Andrew Cagney <cagney@redhat.com>
4380 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4381 * gdbarch.h, gdbarch.c: Regenerate.
4382 * mn10300-tdep.c: Include "gdb_assert.h".
4383 (mn10300_read_fp): New function.
4384 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4385 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4386 * ia64-tdep.c: Include "gdb_assert.h".
4387 (ia64_read_fp): New function.
4388 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4389 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4390 * regcache.c (generic_target_read_sp): Delete function.
4391 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4392 * inferior.h (generic_target_read_sp): Delete declaration.
4393 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4394 generic_target_read_sp.
4395 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4396 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4397 * sh-tdep.c (sh_gdbarch_init): Ditto.
4398 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4399 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4401 2003-06-07 Andrew Cagney <cagney@redhat.com>
4403 * gdbarch.sh: Comment each field of startup_gdbarch.
4404 * gdbarch.h, gdbarch.c: Re-generate.
4406 2003-06-07 Andrew Cagney <cagney@redhat.com>
4408 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4409 * gdbarch.h, gdbarch.c: Re-generate.
4410 * regcache.c: Update comments on read_pc et.al.
4411 (generic_target_read_pc): Delete function.
4412 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4413 * inferior.h (generic_target_read_pc): Delete declaration.
4414 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4415 generic_target_read_pc.
4416 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4417 * sh-tdep.c (sh_gdbarch_init): Ditto.
4418 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4419 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4421 2003-06-07 Andrew Cagney <cagney@redhat.com>
4423 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4424 "index" with "special_local_sect". Use strcmp instead of STREQ.
4425 Append period to coments.
4427 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4429 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4430 (elfstab_offset_sections): Likewise.
4431 * gdb-stabs.h (stab_section_info): Likewise.
4432 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4433 * objfiles.c (objfile_relocate): Likewise.
4434 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4435 * remote.c (get_offsets): Likewise.
4436 (remote_cisco_objfile_relocate): Likewise.
4437 * somread.c (som_symfile_offsets): Likewise.
4438 * symfile.c (alloc_section_addr_info): New function.
4439 (build_section_addr_info_from_section_tab): Use it.
4440 (free_section_addr_info): Adjust.
4441 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4442 (syms_from_objfile): Allocate local_addr dynamically.
4443 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4445 (add_symbol_file_command): Allocate sect_opts dynamically.
4446 (reread_symbols): Avoid use of SECT_OFF_MAX.
4447 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4448 (alloc_section_addr_info): Declare it.
4449 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4450 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4452 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4454 2003-06-06 Andrew Cagney <cagney@redhat.com>
4456 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4457 (d10v_frame_unwind_cache): Do not set "return_pc".
4459 2003-06-06 Michael Snyder <msnyder@redhat.com>
4461 * h8300-tdep.c: Make tidy (long lines).
4463 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4465 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4466 to regcache_collect().
4468 2003-06-05 J. Brobecker <brobecker@gnat.com>
4470 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4471 pc_in_sigtramp multiarch method.
4472 (hppa_hpux_som_init_abi): Use it.
4473 (hppa_hpux_elf_init_abi): Likewise.
4474 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4475 macro has been multiarched.
4476 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4477 macro here, as hppa64 isn't multiarched yet.
4479 2003-06-05 Andrew Cagney <cagney@redhat.com>
4481 * Makefile.in (value_h): Add $(frame_h).
4482 * value.h: Include "frame.h".
4483 (struct value): Replace "frame_addr" with "frame_id".
4484 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4485 * values.c (allocate_value): Use VALUE_FRAME_ID.
4486 (value_copy): Use VALUE_FRAME_ID.
4487 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4488 * valops.c (value_assign): Update. Use frame_find_by_id.
4490 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4492 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4495 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4497 * thread-db.c (check_event): For create/death event breakpoints,
4498 loop through all messages to ensure that we read the message
4499 corresponding to the breakpoint we are at.
4501 2003-06-04 Michael Snyder <msnyder@redhat.com>
4503 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4505 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4507 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4508 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4509 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4510 when handling .eh_frame sections.
4512 2003-06-04 J. Brobecker <brobecker@gnat.com>
4514 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4515 prepare_to_proceed procedure instead of the hppa-specific one.
4516 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4518 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4520 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4521 * config.in: Regenerated.
4522 * configure.in: Add test for syscall function and check for
4523 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4524 * configure: Regenerated.
4525 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4527 (kill_lwp): New function that uses tkill syscall or
4528 uses kill, depending on whether threading model is nptl or not.
4529 All callers of kill() changed to use kill_lwp().
4530 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4531 see if all threads have already exited in the nptl model.
4532 (stop_and_resume_callback): New callback function used by the
4533 lin_lwp_wait thread exit handling code.
4534 (stop_wait_callback): Check for threads already having exited and
4535 delete such threads fromt the lwp list when discovered.
4536 (stop_callback): Don't assert retcode of kill call.
4538 Roland McGrath <roland@redhat.com>
4539 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4542 2003-06-03 Richard Henderson <rth@redhat.com>
4544 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4545 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4546 (alpha_sigtramp_frame_prev_register): Likewise.
4547 (alpha_heuristic_frame_prev_register): Likewise.
4548 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4550 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4551 alpha-specific register id names.
4552 (alpha_mdebug_frame_unwind_cache): Likewise.
4553 (alpha_mdebug_frame_prev_register): Likewise.
4555 2003-06-03 Richard Henderson <rth@redhat.com>
4557 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4558 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4559 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4560 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4562 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4563 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4564 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4566 * alpha-linux-tdep.c: Remove unnecessary includes.
4567 * Makefile.in (alpha-linux-tdep.o): Update.
4569 2003-06-03 Richard Henderson <rth@redhat.com>
4571 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4572 (alphabsd_fill_fpreg): Likewise.
4574 2003-06-03 J. Brobecker <brobecker@gnat.com>
4576 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4577 references to struct frame_info fields by calls to the equivalent
4578 accessors. Necessary now that frame_info is opaque.
4580 2003-06-03 J. Brobecker <brobecker@gnat.com>
4582 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4583 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4584 structure, field no longer exists.
4586 2003-06-03 J. Brobecker <brobecker@gnat.com>
4588 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4589 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4591 2003-06-03 J. Brobecker <brobecker@gnat.com>
4593 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4594 references to struct frame_info fields by calls to the equivalent
4595 accessors. Necessary now that frame_info is opaque.
4597 2003-06-03 J. Brobecker <brobecker@gnat.com>
4599 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4600 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4601 structure, field no longer exists.
4603 2003-06-03 Theodore A. Roth <troth@openavr.org>
4605 * remote.c (init_remote_state): Compute sizeof_g_packet by
4606 accumulation of the size of all registers instead of blindly using
4607 DEPRECATED_REGISTER_BYTES.
4609 2003-06-03 Michael Snyder <msnyder@redhat.com>
4611 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4612 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4615 2003-06-03 J. Brobecker <brobecker@gnat.com>
4617 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4618 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4620 2003-06-03 Andrew Cagney <cagney@redhat.com>
4622 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4623 (sparc_convert_to_raw): Delete function.
4624 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4625 register_convert_to_virtual.
4627 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4629 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4630 layer if not dealing with a statically-linked threaded program.
4632 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4634 * solib.c (solib_open): Update comment to reflect actual search order.
4636 2003-06-03 Andrew Cagney <cagney@redhat.com>
4638 * frame.c (get_frame_memory_signed): New function.
4639 (get_frame_memory, get_frame_memory_unsigned): New function.
4640 (get_frame_arch): New function.
4641 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4642 (get_frame_memory, get_frame_unsigned_memory): Declare.
4643 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4644 get_frame_memory_unsigned and get_frame_arch.
4645 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4647 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4649 * MAINTAINERS (write after approval): Add myself.
4651 2003-06-03 Jim Blandy <jimb@redhat.com>
4653 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4654 elements of gregset_t are 64 bits each, but access registers
4655 are still 32 bits, so they're packed two per gregset_t
4656 element. Unpack/pack them properly.
4658 2003-06-02 David Carlton <carlton@bactrian.org>
4660 * linespec.c (find_methods): Break out code into
4661 add_matching_methods and add_constructors.
4662 (add_matching_methods): New.
4663 (add_constructors): Ditto.
4665 2003-06-02 Andrew Cagney <cagney@redhat.com>
4667 * sparc-tdep.c (sparc_print_registers): Delete call to
4668 REGISTER_CONVERTIBLE.
4669 (sparc_gdbarch_init): Do not set register_convertible.
4670 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4671 * frv-tdep.c (frv_gdbarch_init): Ditto.
4672 * cris-tdep.c (cris_gdbarch_init): Ditto.
4674 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4676 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4677 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4678 (syms_from_objfile): Ditto.
4680 2003-06-03 Andreas Schwab <schwab@suse.de>
4682 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4683 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4685 2003-06-02 Richard Henderson <rth@redhat.com>
4687 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4688 a member of all_reggroup.
4690 2003-06-02 Richard Henderson <rth@redhat.com>
4692 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4693 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4694 (alpha_lds, alpha_sts): New.
4695 (alpha_convert_register_p): Change from _register_convertible.
4696 (alpha_register_to_value): Change from _convert_to_virtual;
4697 restructure and fail for type sizes other than 4 or 8.
4698 (alpha_value_to_register): Similarly.
4699 (alpha_extract_return_value): Use alpha_sts.
4700 (alpha_store_return_value): Use alpha_lds.
4701 (alpha_gdbarch_init): Update hooks.
4703 2003-06-02 Richard Henderson <rth@redhat.com>
4705 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4707 (alpha_sigtramp_register_address): Likewise.
4709 2003-06-02 Richard Henderson <rth@redhat.com>
4711 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4712 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4713 * alpha-tdep.h: Declare them.
4715 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4716 Remove zerobuf. Don't error on UNIQUE.
4717 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4718 (ALPHA_REGSET_UNIQUE): Provide default.
4719 (supply_gregset): Use alpha_supply_int_regs.
4720 (fill_gregset): Use alpha_fill_int_regs.
4721 (supply_fpregset): Use alpha_supply_fp_regs.
4722 (fill_fpregset): Use alpha_fill_fp_regs.
4723 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4724 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4725 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4726 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4727 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4728 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4730 2003-06-02 Richard Henderson <rth@redhat.com>
4732 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4734 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4735 (alpha_store_return_value): Likewise.
4737 2003-06-02 David Carlton <carlton@math.stanford.edu>
4739 * block.c (contained_in): Add 'const' to arguments.
4740 (block_function): Ditto.
4741 * block.h: Update declarations for block_function and
4744 2003-06-02 David Carlton <carlton@math.stanford.edu>
4746 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4747 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4748 * p-valprint.c (pascal_val_print): Ditto.
4749 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4751 2003-06-02 Richard Henderson <rth@redhat.com>
4753 * alpha-tdep.c (alpha_push_dummy_call): Use
4754 builtin_type_ieee_double_little instead of builtin_type_double.
4756 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4757 sign-extension of 32-bit values.
4758 (alpha_store_return_value): Similarly.
4760 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4761 (alpha_extract_return_value): Likewise.
4762 (alpha_store_return_value): Likewise.
4764 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4765 (alpha_store_return_value): Error on IEEE Quad floats.
4767 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4768 (alpha_extract_struct_value_address): Likewise.
4769 (alpha_store_return_value): Likewise.
4770 (alpha_store_struct_return): Remove.
4771 (alpha_gdbarch_init): Update hook registration to match.
4773 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4774 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4775 macros where appropriate.
4776 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4777 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4779 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4780 for SP, GP; void_func_ptr for PC; non-language-specific types
4782 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4784 2003-06-02 Richard Henderson <rth@redhat.com>
4786 * top.h (lim_at_start): Declare.
4787 * main.c (captured_main): Set it.
4788 * top.c (lim_at_start): Define.
4789 (command_loop): Use it instead of &environ.
4790 * event-top.c (command_handler): Likewise.
4792 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4794 * mipsnbsd-tdep.c: Update copyright years.
4795 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4797 2003-06-01 Richard Henderson <rth@redhat.com>
4799 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4800 (alpha-linux-tdep.o): Update dependencies.
4801 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4802 * alpha-mdebug-tdep.c: Remove unneeded includes.
4804 2003-06-01 Richard Henderson <rth@redhat.com>
4806 * alpha-tdep.c (alpha_register_reggroup_p): New.
4807 (alpha_gdbarch_init): Register it.
4809 2003-06-02 Andrew Cagney <cagney@redhat.com>
4811 * dwarfread.c: Eliminate "register"
4812 (decode_die_type): Eliminate assignment within "if".
4813 (struct_type, decode_array_element_type): Ditto.
4814 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4815 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4816 (decode_modified_type, completedieinfo): Ditto.
4817 * block.c: Eliminate "register".
4818 (blockvector_for_pc_sect): Eliminate assignment within "if".
4819 * cp-support.h (struct symbol): Opaque declaration.
4820 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4822 2003-06-01 Richard Henderson <rth@redhat.com>
4824 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4825 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4827 2003-06-01 Adam Fedor <fedor@gnu.org>
4829 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4830 * gdbarch.[ch]: Regenerate.
4831 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4832 (hppa_gdbarch_init): Set it in the gdbarch vector.
4833 * i386-tdep.c (i386_fetch_pointer_argument): New
4834 (i386_gdbarch_init): Set it into gdbarch.
4835 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4836 (rs6000_gdbarch_init): Set it in gdbarch.
4837 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4838 (sparc_gdbarch_init): Set it in gdbarch.
4840 2003-06-01 Andrew Cagney <cagney@redhat.com>
4842 * defs.h (extract_address): Delete declaration.
4843 * findvar.c (extract_address): Delete function.
4844 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4845 extract_address with the inline equivalent,
4846 extract_unsigned_integer.
4847 (xstormy16_extract_struct_value_address): Ditto.
4848 (xstormy16_pointer_to_address): Ditto.
4849 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4850 * v850-tdep.c (v850_push_arguments): Ditto.
4851 (v850_extract_return_value): Ditto.
4852 (v850_extract_struct_value_address): Ditto.
4853 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4854 (sparcnbsd_get_longjmp_target_64): Ditto.
4855 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4856 (get_longjmp_target): Ditto.
4857 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4858 (sh64_extract_struct_value_address): Ditto.
4859 (sh_push_arguments): Ditto.
4860 (sh64_push_arguments): Ditto.
4861 * remote-vxsparc.c (vx_read_register): Ditto.
4862 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4863 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4864 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4865 * mipsv4-nat.c (get_longjmp_target): Ditto.
4866 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4867 * mips-nat.c (get_longjmp_target): Ditto.
4868 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4869 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4870 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4871 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4872 * irix5-nat.c (get_longjmp_target): Ditto.
4873 * irix4-nat.c (get_longjmp_target): Ditto.
4874 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4875 (ia64_push_arguments): Ditto.
4876 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4877 * h8300-tdep.c (h8300_push_arguments): Ditto.
4878 (h8300_store_return_value): Ditto.
4879 (h8300_extract_struct_value_address): Ditto.
4880 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4881 (frv_push_arguments): Ditto.
4882 * avr-tdep.c (avr_pointer_to_address): Ditto.
4883 (avr_push_arguments): Ditto.
4884 * arm-tdep.c (arm_push_dummy_call): Ditto.
4885 (arm_get_longjmp_target): Ditto.
4886 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4887 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4888 (alpha_get_longjmp_target): Ditto.
4890 * solib-irix.c (extract_mips_address): Inline extract_address,
4891 replacing it with extract_signed_integer.
4892 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4893 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4894 (first_link_map_member, open_symbol_file_object): Ditto.
4895 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4896 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4897 (LM_NEXT, LM_NAME): Ditto.
4899 2003-06-01 Richard Henderson <rth@redhat.com>
4901 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4902 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4903 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4904 (alpha_cannot_store_register): Likewise.
4905 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4906 * alpha-nat.c (supply_gregset): Likewise.
4907 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4909 2003-06-01 Andrew Cagney <cagney@redhat.com>
4911 * infcall.c (call_function_by_hand): Update comment on
4912 DEPRECATED_DUMMY_WRITE_SP.
4914 * mips-tdep.c (mips_gdbarch_init): Do not set
4915 deprecated_dummy_write_sp.
4916 (mips_eabi_push_dummy_call): Set the SP register.
4917 (mips_o64_push_dummy_call): Set the SP register.
4918 (mips_o32_push_dummy_call): Set the SP register.
4919 (mips_n32n64_push_dummy_call): Set the SP register.
4921 2003-06-01 Richard Henderson <rth@redhat.com>
4923 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4924 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4925 (supply_gregset): Likewise.
4926 * alpha-tdep.c (alpha_store_return_value): Likewise.
4927 (alpha_get_longjmp_target): Likewise.
4928 (alpha_register_name): Constify array.
4929 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4930 deprecated_register_size, deprecated_register_bytes,
4931 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4932 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4933 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4935 2003-06-01 Richard Henderson <rth@redhat.com>
4937 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4938 from arg_reg_buffer to regcache to avoid double conversion.
4940 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4942 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4944 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4945 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4947 2003-06-01 Richard Henderson <rth@redhat.com>
4949 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4950 (decode_frame_entry): Set it. Skip FDE augmentation.
4952 2003-06-01 Richard Henderson <rth@redhat.com>
4954 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4955 not overlapping PC_REGNUM.
4957 2003-06-01 Richard Henderson <rth@redhat.com>
4959 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4960 alpha_push_arguments. Don't dump argument register data to
4961 the target stack. Fix float and 128-bit long double semantics.
4962 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4963 (alpha_fix_call_dummy): Remove.
4964 (alpha_call_dummy_words): Remove.
4965 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4967 2003-06-01 Richard Henderson <rth@redhat.com>
4969 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4971 2003-06-01 Andrew Cagney <cagney@redhat.com>
4973 * mips-tdep.c (is_mips16_addr): New function.
4974 (make_mips16_addr, unmake_mips16_addr): New functions.
4975 (pc_is_mips16, mips_fetch_instruction): Use.
4976 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4977 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4978 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4979 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4981 * config/mips/tm-mips.h: Update copyright.
4982 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4983 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4984 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4985 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4986 (TM_PRINT_INSN_MACH): Delete.
4987 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4989 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4990 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4991 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4992 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4993 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4994 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4995 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4996 mips*-*-riscos* and mips*-*-sysv* onto mips.
4997 * config/mips/mips64.mt: New file.
4998 * config/mips/mips.mt: New file.
4999 * config/mips/littlemips.mt: Delete file.
5000 * config/mips/decstation.mt: Delete file.
5001 * config/mips/vr4300el.mt: Delete file.
5002 * config/mips/vr5000el.mt: Delete file.
5003 * config/mips/vr5000.mt: Delete file.
5004 * config/mips/vr4100.mt: Delete file.
5005 * config/mips/vr4xxxel.mt: Delete file.
5006 * config/mips/vr4300.mt: Delete file.
5007 * config/mips/vr4xxx.mt: Delete file.
5008 * config/mips/bigmips.mt: Delete file.
5009 * config/mips/bigmips64.mt: Delete file.
5010 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5011 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5012 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5013 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5014 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5016 * config/mips/tm-irix3.h: Ditto.
5017 * config/mips/tm-mipsv4.h: Ditto.
5018 * config/mips/tm-embed.h: Ditto.
5019 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5021 * config/mips/tm-vr5000el.h: Delete file.
5022 * config/mips/tm-tx39l.h: Delete file.
5023 * config/mips/tm-vr4300el.h: Delete file.
5024 * config/mips/tm-vr4xxxel.h: Delete file.
5025 * config/mips/tm-vr4300.h: Delete file.
5026 * config/mips/tm-vr4100.h: Delete file.
5027 * config/mips/tm-vr4xxx.h: Delete file.
5028 * config/mips/tm-vr5000.h: Delete file.
5029 * config/mips/tm-embedl64.h: Delete file.
5030 * config/mips/tm-embedl.h: Delete file.
5031 * config/mips/tm-embed64.h: Delete file.
5032 * config/mips/tm-bigmips64.h: Delete file.
5033 * config/mips/tm-bigmips.h: Delete file.
5035 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5038 * shnbsd-nat.c: Include "sh-tdep.h".
5040 From Richard Henderson <rth@redhat.com>:
5041 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5043 2003-05-31 Andrew Cagney <cagney@redhat.com>
5045 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5046 forward declaration.
5047 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5048 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5049 (mips_find_saved_regs): Use set_reg_offset.
5050 (mips_frame_init_saved_regs): Delete function.
5051 (mips_pop_frame): Call mips_find_saved_regs instead of
5052 DEPRECATED_FRAME_INIT_SAVED_REGS.
5054 2003-05-31 Andrew Cagney <cagney@redhat.com>
5056 * mips-tdep.c (mips_gdbarch_init): Do not set
5057 deprecated_max_register_raw_size, register_virtual_size, and
5058 deprecated_max_register_virtual_size.
5060 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5062 * i386-tdep.c: Include "dwarf2-frame.h".
5063 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5064 * Makefile.in (i386-tdep.o): Update dependencies.
5066 * dwarf2-frame.c, dwarf2-frame.h: New files.
5067 * Makefile.in (SFILES): Add dwarf2-frame.c.
5068 (dwarf2_frame_h): Define.
5069 (COMMON_OBS): Add dwarf2-frame.o.
5070 (dwarf2-frame.o): Add dependencies.
5072 2003-05-31 Andreas Jaeger <aj@suse.de>
5074 * x86-64-linux-nat.c: Fix comment.
5076 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5078 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5081 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5082 have a sigcontext_addr handler.
5083 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5084 sigcontext_addr handler.
5086 2003-05-31 Andrew Cagney <cagney@redhat.com>
5088 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5089 (print_fp_register_row): Replace do_fp_register_row.
5090 (mips_print_fp_register): Add "file" and "frame" parameters.
5091 (mips_print_register): Add "file" and "frame" parameters.
5092 (mips_print_registers_info): Replace mips_do_registers_info.
5093 (mips_gdbarch_init): Set print_registers_info instead of
5094 deprecated_do_registers_info.
5095 (mips_read_fp_register_single): Add "frame" parameter.
5096 (mips_read_fp_register_double): Add "frame" parameter.
5098 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5100 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5101 Fixes a bug where GDB would print the wrong register names for
5102 targets without SSE.
5104 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5105 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5108 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5109 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5110 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5113 From Michal Ludvig <mludvig@suse.cz>:
5114 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5116 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5117 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5118 I386_ST0_REGNUM): Move here from...
5119 * i386-tdep.c: ... here.
5120 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5121 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5122 registers if possible.
5123 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5124 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5126 (i386bsd_sc_reg_offset): New variable.
5127 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5128 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5130 (i386fbsd_sc_reg_offset): New variable.
5131 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5133 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5135 (i386fbsd4_sc_reg_offset): New variable.
5136 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5137 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5139 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5140 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5141 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5143 (i386nbsd_sc_reg_offset): New variable.
5144 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5145 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5147 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5149 (i386obsd_sc_reg_offset): New variable.
5150 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5151 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5153 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5154 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5155 for frame pointer offset in `struct sigcontext'.
5157 2003-05-31 Andrew Cagney <cagney@redhat.com>
5159 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5160 architecture methods call_dummy_words, sizeof_call_dummy_words,
5161 push_return_address, store_struct_return, and fix_call_dummy. Set
5162 push_dummy_call instead of deprecated_push_arguments.
5163 (mips_store_struct_return): Delete function.
5164 (mips_fix_call_dummy): Delete function.
5165 (mips_push_return_address): Delete function.
5166 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5167 RA_REGNUM and T9_REGNUM.
5168 (mips_n32n64_push_dummy_call): Ditto for
5169 mips_n32n64_push_arguments.
5170 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5171 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5173 2003-05-31 Andrew Cagney <cagney@redhat.com>
5175 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5176 "dummy_addr" to "bp_addr".
5177 * infcall.c (call_function_by_hand): Pass "funaddr" to
5178 gdbarch_push_dummy_call.
5179 * gdbarch.h, gdbarch.c: Re-generate.
5180 * i386-tdep.c (i386_push_dummy_call): Update.
5181 * arm-tdep.c (arm_push_dummy_call): Update.
5182 * d10v-tdep.c (d10v_push_dummy_call): Update.
5184 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5186 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5187 variable declarations.
5188 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5189 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5190 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5191 x86_64_init_frame_pc, x86_64_init_frame_pc,
5192 x86_64_function_has_prologue): Remove prototypes.
5193 (X86_64_NUM_GREGS): New define.
5194 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5195 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5196 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5197 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5198 XMM1_REGNUM): Remove defines.
5199 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5200 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5201 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5202 X86_64_XMM1_REGNUM): New defines.
5203 (struct x86_64_register_info): Renamed from `struct
5204 register_info'. Remove `size' member.
5205 (x86_64_register_info_table): Remove variable.
5206 (x86_64_register_info): New variable.
5207 (X86_64_NUM_REGS): New define.
5208 (X86_64_NUM_GREGS): Remove define.
5209 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5210 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5212 (x86_54_dwarf2_reg_to_regnum): Remove function.
5213 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5214 (x86_64_dwarf_reg_to_regnum): New function.
5215 (x86_64_register_name): Rewrite.
5216 (x86_64_register_raw_size): Remove function.
5217 (x86_64_register_byte_table): Remove variable.
5218 (x86_64_register_byte): Remove function.
5219 (x86_64_register_virtual_type): Remove function.
5220 (x86_64_register_type): New function.
5221 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5222 x86_64_register_convert_to_raw): Remove functions.
5223 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5224 (x86_64_use_struct_convention): Make static. Adjust for renamed
5226 (x86_64_frame_init_saved_regs): Remove function.
5227 (x86_64_push_arguments): Make static. Change to accept a regcache
5229 (x86_64_store_return_value, x86_64_extract_return_value): Make
5230 static. Rewrite based on i386 counterparts.
5231 (x86_64_push_dummy_call): New function.
5232 (X86_64_NUM_SAVED_REGS): New define.
5233 (x86_64_register_number): Remove function.
5234 (x86_64_store_struct_return): Remove function.
5235 (x86_64_frameless_function_invocation,
5236 x86_64_function_has_prologue): Remove functions.
5237 (PROLOG_BUFSIZE): Remove define.
5238 (struct x86_64_frame_cache): New structure.
5239 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5240 x86_64_frame_cache, x86_64_frame_this_id,
5241 x86_64_frame_prev_register, x86_64_frame_p,
5242 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5243 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5245 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5247 (x86_64_skip_prologue): Rewrite in terms of
5248 x86_64_analyze_prologue.
5249 (x86_64_frame_base_address): New function.
5250 (x86_64_frame_base): New variable.
5251 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5252 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5253 set deprecated_fp_regnum, deprecated_register_size,
5254 deprecated_register_bytes, register_raw_size, register_byte,
5255 register_virtual_type, register_convertiable,
5256 register_convert_to_virtual, convert_to_raw,
5257 deprecated_get_saved_register, deprecated_target_read_fp,
5258 deprecated_push_arguments, deprecated_push_return_address,
5259 deprecated_pop_frame, deprecated_store_struct_return,
5260 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5261 frameless_function_invocation, deprecated_frame_saved_pc,
5262 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5263 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5264 deprecated_init_frame_pc and virtual_frame_pointer. Call
5265 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5266 and x86_64_frame_p. Call frame_base_set_default to register
5268 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5269 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5270 (_initialize_x86_64_tdep): Remove function.
5271 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5272 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5273 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5275 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5276 (x86_64_linux_sigcontext_addr): Rewrite.
5277 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5278 x86_64_linux_frame_saved_pc): Remove functions.
5279 (x86_64_linux_pc_in_sigtramp): Renamed from
5280 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5282 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5284 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5285 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5286 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5287 (x86_64_regmap): Rename to regmap.
5288 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5290 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5292 (x86_64_fxsave_offset): Remove function.
5293 (supply_fpregset): Simply call x86_64_supply_fxsave.
5294 (fill_fpregset): Simply call x86_64_fill_fxsave.
5295 (fetch_inferior_registers, store_inferior_registers): Avoid
5296 asignment in if-statement.
5297 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5298 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5299 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5300 (fetch_core_registers): Remove function.
5301 (linux_elf_core_fns): Remove.
5302 (offsetoff): Don't define.
5303 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5304 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5305 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5307 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5308 protection against multiple includes instead of NM_X86_64_h. Add
5309 various comments. Include "config/nm-linux.h". Don't include
5311 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5312 GET_THREAD_SIGNALS): Remove defines.
5313 (x86_64_register_u_addr, kernel_u_size,
5314 lin_thread_get_thread_signals): Remove prototypes.
5315 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5316 [HAVE_LINK_H]: Don't include "solib.h".
5317 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5318 * config/i386/tm-x86-64linux.h: Fix comments.
5319 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5320 x86-64-tdep.o): Update dependencies.
5322 2003-05-30 Andrew Cagney <cagney@redhat.com>
5324 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5325 Change parameter type to a "struct regcache *".
5327 * gdbarch.sh: Regardless of the multi-arch level, always define
5328 the macro when not already defined.
5329 * gdbarch.h, gdbarch.c: Re-generate.
5331 2003-05-30 Richard Henderson <rth@redhat.com>
5333 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5334 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5335 (alpha_mdebug_frame_this_id): Likewise.
5336 (alpha_mdebug_frame_prev_register): Likewise.
5337 (alpha_mdebug_frame_base_address): Likewise.
5338 (alpha_mdebug_frame_locals_address): Likewise.
5339 (alpha_mdebug_frame_args_address): Likewise.
5340 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5341 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5342 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5344 (alpha_heuristic_frame_this_id): Make static.
5345 (alpha_heuristic_frame_prev_register): Likewise.
5346 (alpha_heuristic_frame_base_address): Likewise.
5347 * alpha-tdep.h: Update.
5349 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5351 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5352 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5354 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5355 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5356 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5357 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5358 I386_ST0_REGNUM): New defines.
5359 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5360 codestream_get): Remove define.
5361 (codestream_next_addr, condestream_addr, condestream_buf,
5362 codestream_off, codestream_cnt): Remove variables.
5363 (codestream_fill, codestream_seek, codestream_read): Remove
5365 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5367 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5368 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5369 i386_frame_saved_pc, i386_saved_pc_after_call,
5370 i386_frame_num_args, i386_frame_init_saved_regs,
5371 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5372 i386_push_arguments): Remove functions.
5373 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5374 functionality. Use i386_analyze_prologue instead of
5375 i386_get_frame_setup.
5376 (I386_NUM_SAVED_REGS): New define.
5377 (struct i386_frame_cache): New structure.
5378 (i386_alloc_frame_cache, i386_analyze_struct_return,
5379 i386_skip_probe, i386_analyze_frame_setup,
5380 i386_analyze_register_saves, i386_analyze_prologue,
5381 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5382 i386_frame_prev_register, i386_sigtramp_frame_cache,
5383 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5384 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5385 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5387 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5389 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5390 I386_EAX_REGNUM and I386_EDX_REGNUM.
5391 (i386_extract_return_value, i386_store_return_value): Use
5392 I386_ST0_REGNUM where appropriate.
5393 (i386_extract_struct_value_address): Rewrite to use extract_address.
5394 (i386_svr4_pc_in_sigtramp): Add comment.
5395 (i386_svr4_sigcontext_addr): Rewrite.
5396 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5398 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5399 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5400 of new defines. Set push_dummy_call, don't set
5401 deprecated_push_arguments, deprecated_push_return_address,
5402 deprecated_pop_frame. Don't set parm_boundary. Don't set
5403 deprecated_frame_chain, deprecated_frame_saved_pc,
5404 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5405 save_dummy_frame_tos, unwind_pc. Call
5406 frame_unwind_append_predicate and frame_base_set_default. Don't
5407 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5408 Don't set frameless_function_invocation. Don't set
5409 deprecated_register_bytes, deprecated_register_size,
5410 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5411 * i386-linux-tdep.c: Fix formatting in some comments.
5412 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5413 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5414 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5415 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5416 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5417 redundant parentheses.
5418 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5419 (i386_linux_sigcontext_addr): Use it. Rewrite.
5420 (find_minsym_and_objfile): Change name of second argument.
5421 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5422 changed. Use frame_pc_unwind instead of
5423 DEPRECATED_SAVED_PC_AFTER_CALL.
5424 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5425 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5426 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5428 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5430 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5431 (_initialize_i386_cygwin_tdep): New prototype.
5432 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5433 deprecated_frame_chain_valid.
5434 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5435 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5436 Rely on the SVR4 defaults.
5437 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5438 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5440 2003-05-30 Andrew Cagney <cagney@redhat.com>
5442 * infcall.c (call_function_by_hand): Always call
5443 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5445 2003-05-30 Richard Henderson <rth@redhat.com>
5447 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5450 2003-05-29 Jim Blandy <jimb@redhat.com>
5452 Use gdbarch methods for solib stuff on PowerPC Linux.
5453 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5454 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5456 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5457 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5458 giving the same effect as the #definitions above.
5460 2003-05-29 Adam Fedor <fedor@gnu.org>
5462 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5463 (find_implementation_from_class): Replace it with the standard
5464 case i.e. do nothing.
5466 2003-05-29 Richard Henderson <rth@redhat.com>
5468 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5469 (alpha_linux_sigtramp_offset): Use it. Make static.
5470 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5471 update for new frame model.
5472 * alpha-mdebug-tdep.c: New file.
5473 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5474 (alpha_osf1_init_abi): Install it.
5475 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5476 (linked_proc_desc_table): Remove.
5477 (alpha_frame_past_sigtramp_frame): Remove.
5478 (alpha_dynamic_sigtramp_offset): Remove.
5479 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5480 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5481 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5482 (push_sigtramp_desc): Remove.
5483 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5484 (alpha_cannot_store_register): Likewise.
5485 (alpha_sigcontext_addr): Remove.
5486 (alpha_find_saved_regs): Remove.
5487 (alpha_frame_init_saved_regs): Remove.
5488 (alpha_init_frame_pc_first): Remove.
5489 (read_next_frame_reg): Remove.
5490 (alpha_frame_saved_pc): Remove.
5491 (alpha_saved_pc_after_call): Remove.
5492 (temp_proc_desc, temp_saved_regs): Remove.
5493 (alpha_about_to_return): Remove.
5494 (cached_proc_desc): Remove.
5495 (alpha_frame_chain): Remove.
5496 (alpha_print_extra_frame_info): Remove.
5497 (alpha_init_extra_frame_info): Remove.
5498 (alpha_frame_locals_address): Remove.
5499 (alpha_frame_args_address): Remove.
5500 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5501 (alpha_push_dummy_frame): Remove.
5502 (alpha_pop_frame): Remove.
5503 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5504 (alpha_read_insn): New.
5505 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5506 for different insn encodings.
5507 (alpha_in_lenient_prologue): Remove.
5508 (struct alpha_sigtramp_unwind_cache): New.
5509 (alpha_sigtramp_frame_unwind_cache): New.
5510 (alpha_sigtramp_register_address): New.
5511 (alpha_sigtramp_frame_this_id): New.
5512 (alpha_sigtramp_frame_prev_register): New.
5513 (alpha_sigtramp_frame_unwind): New.
5514 (alpha_sigtramp_frame_p): New.
5515 (struct alpha_heuristic_unwind_cache): New.
5516 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5517 don't count nop insns that occur between functions.
5518 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5519 heuristic_proc_desc, but without the mdebug wrapping.
5520 (alpha_heuristic_frame_this_id): New.
5521 (alpha_heuristic_frame_prev_register): New.
5522 (alpha_heuristic_frame_unwind): New.
5523 (alpha_heuristic_frame_p): New.
5524 (alpha_heuristic_frame_base_address): New.
5525 (alpha_heuristic_frame_base): New.
5526 (alpha_unwind_dummy_id): New.
5527 (alpha_unwind_pc): New.
5528 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5529 frame related deprecated initializations; install replacements.
5530 (alpha_dump_tdep): Remove.
5531 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5532 (alpha_read_insn, alpha_after_prologue,
5533 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5534 alpha_heuristic_frame_prev_register,
5535 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5536 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5537 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5538 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5540 2003-05-29 Andrew Cagney <cagney@redhat.com>
5542 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5543 dependant on the availability of ASSERT_FUNCTION.
5544 (ASSERT_FUNCTION): Do not define when there is no function name.
5546 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5548 From Jimi X <jimix@watson.ibm.com>:
5549 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5551 2003-05-28 Jim Blandy <jimb@redhat.com>
5553 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5554 argument to ptrace to int; the system headers should give it the
5555 right type, and pointers don't fit in ints on powerpc64-*-*.
5557 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5559 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5562 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5564 * stabsread.c (dbx_lookup_type): Make static.
5566 (add_undefined_type): Ditto.
5567 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5570 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5572 * hpread.c (hpread_has_name): Make static.
5573 (hpread_psymtab_to_symtab): Ditto.
5574 (file_exists): Ditto.
5575 (hpread_call_pxdb): Ditto.
5576 (hpread_pxdb_needed): Ditto.
5577 (hpread_quick_traverse): Ditto.
5578 (hpread_get_header): Ditto.
5579 (hpread_get_lntt): Ditto.
5580 (hpread_get_slt): Ditto.
5583 2003-05-25 Andreas Schwab <schwab@suse.de>
5585 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5586 stack_align and deprecated_extra_stack_alignment_needed.
5587 (m68k_stack_align): Delete.
5589 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5590 (m68k_register_virtual_size): Likewise.
5591 (altos_skip_prologue): Remove obsolete function.
5592 (isi_frame_num_args): Likewise.
5593 (news_frame_num_args): Likewise.
5594 (m68k_fix_call_dummy): Make static.
5595 (m68k_push_dummy_frame): Likewise.
5596 (m68k_pop_frame): Likewise.
5597 (m68k_skip_prologue): Likewise.
5598 (m68k_frame_init_saved_regs): Likewise.
5599 (m68k_saved_pc_after_call): Likewise.
5600 (m68k_get_longjmp_target): Make multi-arch.
5601 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5602 structure. Register m68k_get_longjmp_target if enabled.
5603 * m68k-tdep.h (struct gdbarch_tdep): Define.
5604 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5606 * Makefile.in (config.status): Also depend on configure.tgt
5608 (m68klinux-tdep.o): Update dependencies.
5609 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5610 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5611 (M68K_LINUX_JB_PC): Define.
5612 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5613 and take additional parameter.
5614 (m68k_linux_sigtramp_saved_pc): Update.
5615 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5616 m68k_linux_pc_in_sigtramp, in_plt_section,
5617 find_solib_trampoline_target.
5618 * config/m68k/tm-linux.h: Don't include any tm headers.
5619 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5620 (JB_ELEMENT_SIZE): Likewise.
5622 (GET_LONGJMP_TARGET): Likewise.
5623 (IN_SIGTRAMP): Likewise.
5624 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5626 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5628 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5629 (sparc32_push_arguments): Re-implement by calling
5630 sparc32_do_push_arguments.
5632 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5634 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5635 SPARC_O1_REGNUM): New defines.
5636 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5637 (sparc32_store_return_value): New function.
5638 (sparc_extract_struct_value_address): Rewrite to operate on a
5640 (sparc_gdbarch_init): Don't set
5641 deprecated_extract_struct_value_address. Set
5642 extract_struct_value_address instead. Don't set
5643 deprecated_extract_return_value and deprecated_store_return_value
5644 for 32-bit targets. Set extract_return_value and
5645 store_return_value instead.
5646 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5647 DEPRECTAED_EXTRACT_RETURN_VALUE,
5648 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5649 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5650 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5651 (sparc_store_return_value): Remove prototype.
5652 (sparc32_store_return_value): New prototype.
5653 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5656 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5658 * sparcnbsd-tdep.c: Include "gdb_string.h".
5660 2003-05-23 Andrew Cagney <cagney@redhat.com>
5662 * p-valprint.c (pascal_val_print): Replace extract_address with
5663 the inline equivalent extract_unsigned_integer.
5664 * jv-valprint.c (java_value_print): Ditto.
5665 * ada-valprint.c (ada_val_print_1): Ditto.
5666 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5668 2003-05-23 Theodore A. Roth <troth@openavr.org>
5670 * blockframe.c (frameless_look_for_prologue): Remove unused
5671 after_prologue variable.
5673 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5675 * blockframe.c (get_pc_function_start): Rewrite to avoid
5676 asignments in if-statements.
5678 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5680 Committed by Elena Zannoni <ezannoni@redhat.com>.
5681 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5682 files, don't relocate absolute symbols (and do use mst_abs).
5684 2003-05-23 Andrew Cagney <cagney@redhat.com>
5686 * objc-lang.c: Include "gdb_assert.h".
5687 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5688 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5689 (gdb_check, gdb_check_fatal): Delete functions.
5690 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5692 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5693 * Makefile.in (objc-lang.o): Update dependencies.
5695 2003-05-22 Ian Lance Taylor <ian@airs.com>
5697 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5698 with fprintf_filtered, not fprintf_unfiltered.
5700 2003-05-22 Andrew Cagney <cagney@redhat.com>
5702 * stack.c (frame_info): Inline extract_address, replacing it with
5703 extract_unsigned_integer.
5704 * findvar.c (unsigned_pointer_to_address): Ditto.
5705 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5706 * dwarf2expr.c (dwarf2_read_address): Ditto.
5707 * frame.c (frame_pc_unwind): Update comment.
5708 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5710 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5712 * infptrace.c (detach): Call print_sys_errmsg rather than
5713 perror_with_name to issue warning message when errno is non-zero
5714 after calling ptrace detach.
5716 2003-05-21 J. Brobecker <brobecker@gnat.com>
5718 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5719 macro definitions from here...
5720 * hppa-tdep.c: ...to there.
5722 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5724 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5725 register_ptrace_addr(). Fix all callers.
5727 2003-05-21 Andreas Schwab <schwab@suse.de>
5729 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5731 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5733 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5734 (_initialize_m68k_linux_tdep): New function.
5735 (m68k_linux_frame_saved_pc): Make static.
5736 (m68k_linux_extract_return_value): Likewise.
5737 (m68k_linux_store_return_value): Likewise.
5738 (m68k_linux_extract_struct_value_address): Likewise.
5739 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5741 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5742 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5743 (DEPRECATED_FRAME_SAVED_PC): Remove.
5745 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5747 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5748 regset numbering rather than our own.
5750 2003-05-19 David Carlton <carlton@bactrian.org>
5752 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5754 2003-05-19 David Carlton <carlton@bactrian.org>
5756 Partial fix for PR c++/827.
5757 * cp-support.h: Include symtab.h.
5758 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5759 * cp-namespace.c: Update contributors.
5760 (cp_lookup_symbol_nonlocal): New.
5761 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5762 (lookup_symbol_file): Ditto.
5763 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5764 * block.h: Declare block_scope, block_using, block_global_block.
5765 * block.c (block_scope): New.
5766 (block_using, block_global_block): Ditto.
5767 * Makefile.in (cp_support_h): Depend on symtab_h.
5768 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5770 2003-05-19 David Carlton <carlton@bactrian.org>
5772 * language.h (struct language_defn): Add 'la_value_of_this'
5773 and 'la_lookup_symbol_nonlocal' members.
5774 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5775 lookup_symbol_static, lookup_symbol_global,
5776 lookup_symbol_aux_block.
5777 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5778 if we should search fields of this and how to do static/global
5780 (lookup_symbol_aux_block): Make extern.
5781 (basic_lookup_symbol_nonlocal): New.
5782 (lookup_symbol_static, lookup_symbol_global): Ditto.
5783 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5784 'la_lookup_symbol_nonlocal' members.
5785 * c-lang.c (c_language_defn, cplus_language_defn)
5786 (asm_language_defn, minimal_language_defn): Ditto.
5787 * jv-lang.c (java_language_defn): Ditto.
5788 * language.c (unknown_language_defn, auto_language_defn)
5789 (local_language_defn): Ditto.
5790 * m2-lang.c (m2_language_defn): Ditto.
5791 * objc-lang.c (objc_language_defn): Ditto.
5792 * scm-lang.c (scm_language_defn): Ditto.
5793 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5794 * p-lang.c (pascal_language_defn): Ditto for both.
5795 * Makefile.in (f-lang.o): Depend on value_h.
5798 2003-05-19 David Carlton <carlton@bactrian.org>
5800 * block.h: Declare block_static_block.
5801 * block.c (block_static_block): New.
5802 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5803 lookup_symbol_aux_local, calling block_static_block instead.
5804 (lookup_symbol_aux_local): Delete 'static_block' argument.
5806 2003-05-19 David Carlton <carlton@bactrian.org>
5808 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5810 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5812 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5813 register numbers mapping.
5815 2003-05-18 Adam Fedor <fedor@gnu.org>
5817 * symtab.c (completion_list_objc_symbol): New function.
5818 (make_symbol_completion_list): Use it to add ObjC symbols
5819 when looking though the list.
5820 (language_search_unquoted_string): New function.
5821 (make_file_symbol_completion_list): Use it.
5823 2003-05-18 Andreas Schwab <schwab@suse.de>
5825 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5827 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5828 as m68k_linux_extract_return_value.
5829 (DEPRECATED_STORE_RETURN_VALUE): Define as
5830 m68k_linux_store_return_value.
5831 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5832 m68k_linux_extract_struct_value_address.
5833 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5834 get_next_frame, get_frame_base, get_frame_pc.
5835 (m68k_linux_frame_saved_pc): Use get_frame_base.
5836 (m68k_linux_extract_return_value): New function.
5837 (m68k_linux_store_return_value): New function.
5838 (m68k_linux_extract_struct_value_address): New function.
5839 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5841 * c-exp.y (typebase): Remove duplicate occurence of
5842 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5843 of lookup_signed_typename.
5845 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5847 * dwarf2loc.c (find_location_expression): Change type of second
5848 argument to `size_t *'.
5849 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5852 2003-05-18 David Carlton <carlton@bactrian.org>
5854 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5855 'linkage_name'. Add comment.
5856 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5858 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5859 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5860 (lookup_block_symbol): Ditto.
5862 2003-05-16 Andrew Cagney <cagney@redhat.com>
5864 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5865 * gdbarch.h, gdbarch.c: Re-generate.
5866 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5867 * TODO (REGISTER_BYTES): Delete reference.
5868 * alpha-tdep.c (alpha_gdbarch_init): Update.
5869 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5870 * x86-64-tdep.c (x86_64_init_abi): Update.
5871 * vax-tdep.c (vax_gdbarch_init): Update.
5872 * v850-tdep.c (v850_gdbarch_init): Update.
5873 * sparc-tdep.c (sparc_gdbarch_init): Update.
5874 * sh-tdep.c (sh_gdbarch_init): Update.
5875 * s390-tdep.c (s390_gdbarch_init): Update.
5876 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5877 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5878 (ns32k_gdbarch_init_32382): Update.
5879 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5880 * mcore-tdep.c (mcore_gdbarch_init): Update.
5881 * m68k-tdep.c (m68k_gdbarch_init): Update.
5882 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5883 * ia64-tdep.c (ia64_gdbarch_init): Update.
5884 * i386-tdep.c (i386_gdbarch_init): Update.
5885 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5886 * hppa-tdep.c (hppa_gdbarch_init): Update.
5887 * h8300-tdep.c (h8300_gdbarch_init): Update.
5888 * frv-tdep.c (frv_gdbarch_init): Update.
5889 * cris-tdep.c (cris_gdbarch_init): Update.
5890 * avr-tdep.c (avr_gdbarch_init): Update.
5891 * arm-tdep.c (arm_gdbarch_init): Update.
5892 * sparc-tdep.c (sparc_pop_frame): Update.
5893 * rs6000-tdep.c (rs6000_pop_frame): Update.
5894 * remote.c (init_remote_state): Update.
5895 (remote_prepare_to_store): Update.
5896 * remote-vx.c (vx_prepare_to_store): Update.
5897 * remote-sds.c (sds_fetch_registers): Update.
5898 (sds_prepare_to_store): Update.
5899 * remote-array.c: Update.
5900 * regcache.c (init_legacy_regcache_descr): Update.
5901 (init_regcache_descr): Update.
5902 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5903 (mips_o64_extract_return_value): Update.
5904 * irix5-nat.c (fetch_core_registers): Update.
5905 * irix4-nat.c (fetch_core_registers): Update.
5906 * i386-tdep.h: Update.
5907 * hppa-tdep.c (pa_do_registers_info): Update.
5908 (pa_do_strcat_registers_info): Update.
5909 * cris-tdep.c (cris_register_bytes_ok): Update.
5910 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5911 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5912 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5913 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5914 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5915 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5916 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5917 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5918 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5919 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5920 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5921 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5922 (REGISTER_BYTES_OK): Update.
5923 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5924 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5926 2003-05-16 Ian Lance Taylor <ian@airs.com>
5928 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5929 (vax_print_insn, print_insn_arg): Remove static functions.
5930 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5931 print_insn_vax from opcodes library.
5932 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5934 2003-05-15 Andrew Cagney <cagney@redhat.com>
5936 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5937 * target.h (memory_breakpoint_from_pc): Delete declaration.
5938 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5939 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5940 * monitor.c (monitor_insert_breakpoint): Use
5941 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5942 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5943 * gdbarch.h, gdbarch.c: Re-generate.
5944 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5945 (sparc_gdbarch_init): Set breakpoint_from_pc to
5946 sparc_breakpoint_from_pc.
5947 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5948 (BREAKPOINT_FROM_PC): Define.
5949 (sparc_breakpoint_from_pc): Declare.
5950 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5951 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5952 (BREAKPOINT_FROM_PC): Define.
5953 (BREAKPOINT): Delete macro.
5954 * target.h: Update comment.
5955 * s390-tdep.c (s390_gdbarch_init): Update comments.
5956 * remote.c: Update comments.
5957 * remote-mips.c: Update comments.
5958 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5959 * mem-break.c: Update comment.
5960 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5961 (ia64_memory_insert_breakpoint): Update.
5962 * config/sparc/tm-sparc.h: Update comment.
5963 * config/pa/tm-hppa64.h: Update comment.
5964 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5965 (rs6000_breakpoint_from_pc): Update.
5966 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5967 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5968 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5969 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5970 (mips_breakpoint_from_pc): Update.
5971 (mips_dump_tdep): Update.
5973 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5974 * minsyms.c (lookup_minimal_symbol): Inline
5975 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5977 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5978 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5979 * p-lang.c (pascal_printstr): Ditto.
5980 * objc-lang.c (objc_printstr): Ditto.
5981 * m2-lang.c (m2_printstr): Ditto.
5982 * jv-valprint.c (java_print_value_fields): Ditto.
5983 * f-lang.c (f_printstr): Ditto.
5984 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5985 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5986 for repeat_count_threshold.
5987 * Makefile.in (cp-valprint.o): Update dependencies.
5989 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5991 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5992 (examine_prologue): Support looking through leaf functions, knowing
5993 they start with mov r2,r12. Support skipping over indirect stores
5994 of the input registers. Upon hitting a non-nop branch instruction
5995 or predicated instruction, bail out by setting lim_pc to the current
5996 pc value in the loop. At the end, if the lim_pc value is still
5997 beyond our calculated value and we have trust_limit set,
5998 use the lim_pc value.
6000 2003-05-15 Andrew Cagney <cagney@redhat.com>
6002 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6003 generic_find_dummy_frame.
6004 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6005 (deprecated_generic_find_dummy_frame): Update.
6006 (deprecated_read_register_dummy): Update.
6007 * frame.c (deprecated_generic_get_saved_register): Update.
6009 2003-05-15 Theodore A. Roth <troth@openavr.org>
6011 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6012 (avr_gdbarch_init): Set breakpoint_from_pc method.
6014 2003-05-15 Andrew Cagney <cagney@redhat.com>
6016 * regcache.c (build_regcache): Set deprecated_register_valid
6018 (deprecated_grub_regcache_for_register_valid): Delete function.
6019 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6022 2003-05-15 David Carlton <carlton@bactrian.org>
6024 Committed by Elena Zannoni <ezannoni@redhat.com>
6025 * symtab.c (lookup_symbol_aux): Delete calls to
6026 lookup_symbol_aux_minsyms.
6027 (lookup_symbol_aux_minsyms): Comment out function and
6028 prototype. Delete lookup by mangled name.
6030 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6032 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6033 correctly indicate an empty stack and ``stack_allocated'' to the
6034 indicate the number of elements initially allocated.
6035 (dwarf_expr_grow_stack): Simplify method for computing new
6036 stack size. Don't loop infinitely if ``stack_len'' is zero.
6037 (execute_stack_op): Move ``ctx->in_reg'' initialization
6038 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6039 be used in conjuction with DW_OP_piece. Revise error message
6042 2003-05-14 Theodore A. Roth <troth@openavr.org>
6044 * MAINTAINERS: Update my email address.
6045 * avr-tdep.c: Ditto.
6047 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6049 * symtab.h (enum domain_enum): Rename from namespace_enum.
6050 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6051 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6052 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6053 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6054 TYPES_NAMESPACE, METHODS_NAMESPACE.
6055 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6056 (struct symbol, struct partial_symbol): Rename field
6057 'namespace_enum namespace' to 'domain_enum domain'.
6058 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6059 Delete old define kludge for namespace.
6061 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6062 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6063 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6064 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6065 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6066 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6067 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6068 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6069 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6070 occurrences of the above.
6072 2003-05-14 Ian Lance Taylor <ian@airs.com>
6074 * Makefile.in (install-only): Use $(SHELL) when running
6077 2003-05-13 Ian Lance Taylor <ian@airs.com>
6079 * MAINTAINERS (write after approval): Add myself.
6081 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6082 second and third arguments.
6083 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6084 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6086 2003-05-13 Andrew Cagney <cagney@redhat.com>
6088 * defs.h (store_address): Delete declaration.
6089 findvar.c (store_address): Delete function.
6090 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6091 store_unsigned_integer.
6092 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6093 * v850-tdep.c (v850_push_arguments): Ditto.
6094 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6095 * sh-tdep.c (sh64_get_saved_register): Ditto.
6096 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6097 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6098 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6099 (mips_get_saved_register): Ditto.
6100 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6101 (find_func_descr, ia64_push_arguments): Ditto.
6102 * i386-tdep.c (i386_push_arguments): Ditto.
6103 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6104 * frv-tdep.c (frv_push_arguments): Ditto.
6105 * frame.c (legacy_saved_regs_prev_register): Ditto.
6106 (deprecated_generic_get_saved_register): Ditto.
6107 * findvar.c (unsigned_address_to_pointer): Ditto.
6108 * dwarf2read.c (dwarf2_const_value): Ditto.
6109 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6110 * alpha-tdep.c (alpha_push_arguments): Ditto.
6112 2003-05-12 J. Brobecker <brobecker@gnat.com>
6114 * NEWS: Mention that the hppa-hpux port has been partially
6115 multiarched (32bit ABIT only, so far).
6117 2003-05-11 Andrew Cagney <cagney@redhat.com>
6119 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6120 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6121 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6122 sim/testsuite/sim/arm/misaligned2.ms, and
6123 sim/testsuite/sim/arm/misaligned3.ms.
6124 * disasm.h (struct ui_file): Add opaque struct declaration.
6125 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6126 * frame.h (struct ui_file): Ditto.
6128 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6130 * value.h: Pretty print.
6132 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6134 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6136 2003-05-08 Andrew Cagney <cagney@redhat.com>
6138 * regcache.h (max_register_size): Delete declaration.
6139 * regcache.c (max_register_size): Delete function.
6140 (struct regcache_descr): Delete field "max_register_size".
6141 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6142 registers fit in MAX_REGISTER_SIZE.
6143 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6144 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6145 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6146 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6147 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6148 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6149 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6150 * dve3900-rom.c, hppa-tdep.c: Ditto.
6152 2003-05-08 David Carlton <carlton@math.stanford.edu>
6154 * valops.c (push_word): Fix typo.
6156 2003-05-08 Andrew Cagney <cagney@redhat.com>
6158 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6159 * gdbarch.h: Re-generate.
6160 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6161 (legacy_max_register_raw_size): Delete declaration.
6162 * regcache.c (legacy_max_register_raw_size): Delete function.
6163 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6164 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6165 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6166 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6167 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6168 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6169 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6170 * findvar.c, dwarf2cfi.c: Ditto.
6172 2003-05-08 Andrew Cagney <cagney@redhat.com>
6174 * mips-tdep.c (read_signed_register): New function, moved to here
6176 (read_signed_register_pid): Ditto.
6177 * regcache.c (read_signed_register_pid): Delete function, moved to
6179 (read_signed_register): Ditto.
6180 * regcache.h (read_signed_register): Delete declaration.
6181 (read_signed_register_pid): Delete declaration.
6183 2003-05-08 Andrew Cagney <cagney@redhat.com>
6185 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6186 * gdbarch.h: Re-generate.
6187 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6188 (legacy_max_register_virtual_size): Delete declaration.
6189 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6190 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6191 * tracepoint.c (memrange_sortmerge): Ditto.
6192 * sparc-tdep.c (sparc_print_registers): Ditto.
6193 * regcache.c (legacy_max_register_virtual_size): Delete function.
6195 2002-05-08 J. Brobecker <brobecker@gnat.com>
6197 * fork-child.c (escape_bang_in_quoted_argument): New function.
6198 (fork_inferior): Escape '!' characters in quoted arguments
6201 2003-05-08 J. Brobecker <brobecker@gnat.com>
6203 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6204 the language of the CU is not currently supported by GDB.
6206 2003-05-08 J. Brobecker <brobecker@gnat.com>
6208 * defs.h (language): Add language_minimal enum value.
6209 * c-lang.c (minimal_language_defn): New language definition.
6210 (_initialize_c_language): Add the new minimal language to the list
6211 of languages known to GDB.
6213 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6215 * frame.c (get_frame_type): Don't attempt to lazily initialize
6216 frame's unwinder for legacy frames.
6218 2003-05-07 Andrew Cagney <cagney@redhat.com>
6220 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6221 and "regcache" parameters.
6222 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6224 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6226 * dwarf2read.c (dwarf_decode_lines): Only use output of
6227 check_cu_functions() when calling record_line(). Do not update
6228 the current address.
6230 2003-05-07 Andrew Cagney <cagney@redhat.com>
6232 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6235 2003-05-07 Jim Blandy <jimb@redhat.com>
6237 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6238 'maint info symtabs' and 'maint info psymtabs'.
6239 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6240 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6241 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6242 Declarations updated.
6243 * maint.c (maintenance_list_command): Delete.
6244 (_initialize_maint_cmds): Update calls to add_cmd.
6245 * gdbcmd.h (maintenancelistlist): Delete declaration.
6246 * cli/cli-cmds.c (maintenancelistlist): Delete.
6247 (init_cmd_lists): Don't initialize it.
6248 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6250 2003-05-07 Andrew Cagney <cagney@redhat.com>
6252 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6254 (d10v_print_registers_info): Update.
6255 (d10v_dmap_register, d10v_imap_register): Delete functions.
6256 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6257 and "imap_register".
6258 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6259 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6260 * arch-utils.c (generic_remote_translate_xfer_address): Add
6261 "regcache" and "gdbarch" parameters.
6262 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6263 parameter. Change class to multi-arch.
6264 * gdbarch.h, gdbarch.c: Re-generate.
6265 * remote.c (remote_xfer_memory): Use
6266 gdbarch_remote_translate_xfer_address.
6268 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6270 * infrun.c (prev_pc): Move declaration ahead of proceed().
6271 (proceed): Refresh prev_pc value before resuming.
6272 (stop_stepping): Remove code to refresh prev_pc.
6274 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6276 * nto-tdep.c: Removed stray comment.
6278 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6280 * i386-nto-tdep.c: Fix old K&R function definitions.
6281 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6282 Also change add_show_from_set() call to add_setshow_cmd().
6283 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6285 2003-05-05 Andrew Cagney <cagney@redhat.com>
6287 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6288 (fprint_dummy_frames): New function.
6289 (maintenance_print_dummy_frames): New function.
6290 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6291 * frame.c (fprint_frame_id): Make global.
6292 * frame.h (fprint_frame_id): Declare.
6293 * Makefile.in (dummy-frame.o): Update dependencies.
6295 2003-05-05 Andrew Cagney <cagney@redhat.com>
6297 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6298 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6299 SIZEOF_CALL_DUMMY_WORDS.
6300 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6301 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6302 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6303 CALL_DUMMY_BREAKPOINT_OFFSET.
6304 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6305 CALL_DUMMY_START_OFFSET.
6306 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6307 * gdbarch.h, gdbarch.c: Re-generate.
6308 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6309 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6310 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6311 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6312 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6313 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6314 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6315 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6316 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6317 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6318 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6319 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6320 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6321 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6322 * config/sparc/tm-sparc.h: Update.
6324 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6326 * configure.tgt: Add i[3456]86-*-nto*.
6327 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6328 * nto-tdep.c: New file. Neutrino target support routines.
6329 * nto-tdep.h: New file. Neutrino target header.
6330 * config/tm-qnxnto.h: New file.
6331 * config/i386/i386nto.mt: New file.
6332 * config/i386/tm-i386nto.h: New file.
6334 2003-05-04 Andrew Cagney <cagney@redhat.com>
6336 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6337 (load_infrun_state): Ditto.
6338 (struct thread_info): Drop "prev_func_name" field.
6339 * thread.c (load_infrun_state): Update.
6340 (save_infrun_state): Update.
6341 * infrun.c (prev_func_name): Delete variable.
6342 (init_wait_for_inferior): Do not clear prev_func_name.
6343 (stop_stepping, keep_going, context_switch): Do not swap
6345 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6346 instead of PC_IN_SIGTRAMP.
6348 2003-05-04 Andrew Cagney <cagney@redhat.com>
6350 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6351 REGISTER_BYTE with register_offset_hack.
6352 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6353 that REGISTER_BYTE is consistent with the regcache.
6354 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6355 * gdbarch.h, gdbarch.c: Regenerate.
6357 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6359 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6360 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6362 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6364 2003-05-03 J. Brobecker <brobecker@gnat.com>
6366 From Thierry Schneider <tpschneider1@yahoo.com>
6367 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6368 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6369 (mi-cmd-symbol.o): Add rule.
6371 2003-05-03 Andrew Cagney <cagney@redhat.com>
6373 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6374 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6375 * gdbarch.h, gdbarch.c: Re-generate.
6376 * d10v-tdep.c (d10v_push_dummy_code): New function.
6377 (d10v_gdbarch_init): Set push_dummy_code.
6378 * infcall.c (legacy_push_dummy_code): New function.
6379 (generic_push_dummy_code): New function.
6380 (push_dummy_code): New function.
6381 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6382 instead of dummy_addr, to push_dummy_call. Move call to
6383 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6385 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6387 2003-05-03 Andrew Cagney <cagney@redhat.com>
6389 * disasm.h (print_insn): Declare.
6390 * disasm.c (init_gdb_disassemble_info): New function.
6391 (gdb_disassembly): Call init_gdb_disassemble_info.
6392 (gdb_print_insn): New function.
6393 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6394 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6395 * mcore-tdep.c: Include "disasm.h"
6396 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6397 * d10v-tdep.c: Include "disasm.h".
6398 (display_trace): Call gdb_print_insn, instead of print_insn.
6399 (print_insn): Delete function.
6400 * printcmd.c: Include "disasm.h".
6401 (print_insn): Delete function.
6402 (print_formatted): Call gdb_print_insn, instead of print_insn.
6403 * Makefile.in (printcmd.o): Update dependencies.
6404 (mcore-tdep.o, d10v-tdep.o): Ditto.
6406 2003-05-02 Andrew Cagney <cagney@redhat.com>
6408 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6409 PC_REGNUM, re-indent.
6410 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6411 PC_REGNUM isn't set.
6413 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6414 * gdbarch.h, gdbarch.c: Re-generate.
6415 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6416 register_virtual_size, pc_regnum, or register_bytes.
6417 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6418 (d10v_register_type): Use D10V_PC_REGNUM.
6419 (d10v_print_registers_info, d10v_read_pc): Ditto.
6420 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6421 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6423 2003-05-02 David Carlton <carlton@bactrian.org>
6425 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6426 the name with mstrsave.
6428 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6430 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6431 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6432 (host_charset_name, target_charset_name): New vars for use by
6434 (host_charset_enum, target_charset_enum): New enums for set/show
6436 (set_charset_sfunc, set_host_charset_sfunc,
6437 set_target_charset_sfunc): New functions.
6438 (set_host_charset, set_target_charset): Make static.
6439 (list_charsets, set_host_charset_command,
6440 set_target_charset_command): Delete functions.
6441 (show_charset_command): Rewrite as....
6442 (show_charset): Hook this up with the set/show command mechanism.
6443 (_initialize_charset): Change names of charsets to match the
6444 set/show enums. Use host_charset_name and target_charset_name.
6445 Use set/show mechanism for charset, host-charset, target-charset
6446 commands. Do not make 'show host-charset' and 'show
6447 target-charset' be aliases of 'show charset'.
6449 * charset.h (set_host_charset, set_target_charset): Don't export,
6450 they are not used outside the file.
6452 2003-05-01 Andrew Cagney <cagney@redhat.com>
6454 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6455 (gdb_disassembly): Make "di" non static, always initialize and
6456 cleanup. Always use dis_asm_read_memory.
6457 (gdb_dis_asm_read_memory): Delete function.
6459 2003-05-01 Andrew Cagney <cagney@redhat.com>
6461 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6462 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6464 2003-04-30 Andrew Cagney <cagney@redhat.com>
6466 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6467 "tm_print_insn_info".
6468 (TARGET_PRINT_INSN_INFO): Delete macro.
6469 (dis_asm_read_memory): Delete function declaration.
6470 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6471 (tm_print_insn_info): Delete variable definition.
6472 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6473 * gdbarch.h, gdbarch.c: Re-generate.
6474 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6475 "deprecated_tm_print_insn_info".
6476 * mcore-tdep.c (mcore_dump_insn): Ditto.
6477 * mips-tdep.c (mips_gdbarch_init): Ditto.
6478 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6479 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6480 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6481 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6482 instead of TARGET_PRINT_INSN_INFO, add comment.
6483 * s390-tdep.c (s390_get_frame_info): Instead of
6484 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6485 (s390_check_function_end, s390_is_sigreturn): Ditto.
6486 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6487 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6488 * disasm.c: Include "gdbcore.h".
6489 (_initialize_disasm): New function, initialize
6490 "deprecated_tm_print_insn_info".
6491 (deprecated_tm_print_insn_info): New variable.
6492 (dis_asm_read_memory): Moved from "corefile.c", made static.
6493 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6494 * Makefile.in (disasm.o): Update dependencies.
6496 2003-04-30 Andrew Cagney <cagney@redhat.com>
6498 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6500 2003-04-29 Adam Fedor <fedor@gnu.org>
6502 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6503 * infcall.c (find_function_addr): Make non-static.
6504 * infcall.h (find_function_addr): Declare.
6505 * Makefile.in (eval.o): Update dependencies.
6507 2003-04-28 Adam Fedor <fedor@gnu.org>
6509 * symtab.c (symbol_find_demangled_name): Check for and demangle
6511 (symbol_init_demangled_name): Init for language_objc as well.
6513 2003-04-28 Andrew Cagney <cagney@redhat.com>
6515 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6516 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6517 * gdbarch.h, gdbarch.c: Re-generate.
6518 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6519 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6520 * inferior.h (deprecated_read_fp): Rename read_fp.
6521 (generic_target_read_fp): Delete declaration.
6522 * regcache.c (generic_target_read_fp): Delete function.
6523 (deprecated_read_fp): Replace read_fp, use
6524 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6525 * d10v-tdep.c (d10v_read_fp): Delete function.
6526 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6528 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6529 deprecated_target_read_fp to generic_target_read_fp.
6530 * sh-tdep.c (sh_gdbarch_init): Ditto.
6531 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6532 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6533 * frv-tdep.c (frv_gdbarch_init): Ditto.
6535 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6536 deprecated_fp_regnum.
6537 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6538 * vax-tdep.c (vax_gdbarch_init): Ditto.
6539 * v850-tdep.c (v850_gdbarch_init): Ditto.
6540 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6541 * sh-tdep.c (sh_gdbarch_init): Ditto.
6542 * s390-tdep.c (s390_gdbarch_init): Ditto.
6543 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6544 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6545 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6546 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6547 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6548 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6549 * i386-tdep.c (i386_gdbarch_init): Ditto.
6550 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6551 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6552 * frv-tdep.c (frv_gdbarch_init): Ditto.
6553 * cris-tdep.c (cris_gdbarch_init): Ditto.
6554 * avr-tdep.c (avr_gdbarch_init): Ditto.
6555 * arm-tdep.c (arm_gdbarch_init): Ditto.
6556 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6558 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6559 * v850-tdep.c (v850_gdbarch_init): Ditto.
6560 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6561 * sh-tdep.c (sh_gdbarch_init): Ditto.
6562 * s390-tdep.c (s390_gdbarch_init): Ditto.
6563 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6564 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6565 * mips-tdep.c (mips_gdbarch_init): Ditto.
6566 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6567 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6568 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6569 * frv-tdep.c (frv_gdbarch_init): Ditto.
6570 * avr-tdep.c (avr_gdbarch_init): Ditto.
6571 * arm-tdep.c (arm_gdbarch_init): Ditto.
6573 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6574 DEPRECATED_FP_REGNUM.
6575 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6576 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6577 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6578 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6579 (sparc32_register_virtual_type): Ditto.
6580 * sh-tdep.c (sh64_frame_chain): Ditto.
6581 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6582 (sh_nofp_frame_init_saved_regs): Ditto.
6583 (sh64_nofp_frame_init_saved_regs): Ditto.
6584 (sh_fp_frame_init_saved_regs): Ditto.
6585 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6586 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6587 * procfs.c (procfs_fetch_registers): Ditto.
6588 (procfs_store_registers): Ditto.
6589 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6590 (store_inferior_registers, fetch_core_registers): Ditto.
6591 (fetch_kcore_registers, clear_regs): Ditto.
6592 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6593 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6594 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6595 * nlm/i386.c (do_status): Ditto.
6596 * mipsv4-nat.c (supply_gregset): Ditto.
6597 * mips-tdep.c: Ditto for comments.
6598 * mips-nat.c (fetch_inferior_registers): Ditto.
6599 (store_inferior_registers, fetch_core_registers): Ditto.
6600 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6601 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6602 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6603 (i386_do_pop_frame, i386_register_type): Ditto.
6604 * hppa-tdep.c (hppa_frame_chain): Ditto.
6605 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6606 (hppa_pop_frame, hppa_read_fp): Ditto.
6607 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6608 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6609 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6610 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6611 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6612 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6613 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6614 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6615 * blockframe.c: Ditto for comments.
6616 * arch-utils.h: Ditto for comments.
6617 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6618 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6619 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6620 * alpha-tdep.h: Ditto for comments.
6621 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6622 (alpha_cannot_store_register): Ditto.
6623 (alpha_push_dummy_frame): Ditto.
6624 * alpha-nat.c (supply_gregset): Ditto.
6626 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6627 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6628 * config/sparc/tm-sparc.h: Update comment.
6630 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6631 deprecated_read_fp instead of TARGET_READ_FP.
6632 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6633 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6634 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6635 deprecated_read_fp instead of read_fp.
6636 * s390-tdep.c (s390_push_arguments): Ditto.
6637 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6638 * frame.h: Ditto in comments.
6639 * frame.c (legacy_get_prev_frame): Ditto.
6640 * dummy-frame.c (dummy_frame_this_id): Ditto.
6641 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6643 2003-04-28 Andrew Cagney <cagney@redhat.com>
6645 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6646 * gdbarch.h, gdbarch.c: Re-generate.
6647 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6648 * vax-tdep.c (_initialize_vax_tdep): Update.
6649 * v850-tdep.c (_initialize_v850_tdep): Update.
6650 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6651 * s390-tdep.c (_initialize_s390_tdep): Update.
6652 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6653 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6654 * mips-tdep.c (_initialize_mips_tdep): Update.
6655 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6656 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6657 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6658 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6659 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6660 * frv-tdep.c (_initialize_frv_tdep): Update.
6661 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6662 (_initialize_cris_tdep): Update.
6663 * arch-utils.c (legacy_print_insn): Update.
6664 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6666 2003-04-26 Adam Fedor <fedor@gnu.org>
6668 * linespec.c (decode_objc): New function to decode ObjC calls
6669 (decode_line_1): Check for ObjC calls (using decode_objc)
6670 * Makefile (linespec.o): Update dependencies.
6672 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6674 * breakpoint.h (struct breakpoint_ops): New.
6675 (struct breakpoint): Add ops member.
6677 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6678 (mention): Use new breakpoint ops member.
6679 (set_raw_breakpoint): Initialize ops field to NULL.
6680 (print_exception_catchpoint, print_one_exception_catchpoint)
6681 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6682 (gnu_v3_exception_catchpoint_ops): New.
6683 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6685 2003-04-25 Adam Fedor <fedor@gnu.org>
6687 * Makefile.in (COMMON_OBS): Add objc-lang.o
6689 2003-04-25 Andrew Cagney <cagney@redhat.com>
6691 * d10v-tdep.c (print_insn): Delete function.
6692 (display_trace): Use TARGET_PRINT_INSN.
6693 (_initialize_d10v_tdep): Do not set tm_print_insn.
6694 (d10v_gdbarch_init): Set print_insn.
6696 2003-04-25 Andrew Cagney <cagney@redhat.com>
6698 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6699 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6700 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6701 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6702 (nr_dmap_regs, a0_regnum): ... new functions.
6703 (d10v_print_registers_info): Use a0_regnum, use register_size.
6704 (d10v_register_byte): Delete function.
6705 (d10v_register_raw_size): Delete function.
6706 (d10v_register_type): Use a0_regnum.
6707 (d10v_print_registers_info): Use a0_regnum.
6708 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6709 (d10v_gdbarch_init): Do not set register_byte or
6710 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6711 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6713 (trace_command): Use XCALLOC.
6714 (print_insn): Delete reference to tm_print_insn.
6715 (saved_regs_unwinder): Use store_unsigned_integer instead of
6717 * frame.h (FRAME_OBSTACK_CALLOC): Define
6719 2003-04-25 David Carlton <carlton@bactrian.org>
6721 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6723 2003-04-24 Adam Fedor <fedor@gnu.org>
6725 * objc-lang.c: Include "valprint.h"
6726 * Makefile.in (objc-lang.o): Update dependencies.
6728 2003-04-24 Adam Fedor <fedor@gnu.org>
6730 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6731 architecture dependant compilation and mark as unimplemented
6732 (until they get put in the gdbarch vector).
6734 2003-04-23 David Carlton <carlton@bactrian.org>
6736 * cp-support.c (cp_find_first_component): Accept 'operator' in
6739 2003-04-23 Andrew Cagney <cagney@redhat.com>
6741 * infcall.c (call_function_by_hand): Eliminate redundant
6742 indentation. Move "saved_async" and "old_cleanups" to where they
6745 2003-04-23 Andrew Cagney <cagney@redhat.com>
6747 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6748 and "buffer". Move the "name" code to where it is needed.
6750 2003-04-23 Andrew Cagney <cagney@redhat.com>
6752 * infcall.c (call_function_by_hand): Move variables "start_sp",
6753 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6754 code to ON_STACK switch branch.
6756 2003-04-23 Andrew Cagney <cagney@redhat.com>
6758 * infcall.c (call_function_by_hand): Make declaration of "i",
6759 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6762 2003-04-23 Andrew Cagney <cagney@redhat.com>
6764 * infcall.c (call_function_by_hand): Delete variable
6765 "n_method_args". Localize "param_type"'s declaration to the loop
6766 that it is used. Reinstate code assigning to said variable -
6767 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6768 Rationalize code using "param_type".
6770 2003-04-22 Andrew Cagney <cagney@redhat.com>
6772 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6773 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6774 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6775 to DEPRECATED_PUSH_RETURN_ADDRESS.
6777 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6779 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6780 on the DWARF2 register number prior to fetching a register.
6782 2003-04-22 J. Brobecker <brobecker@gnat.com>
6784 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6785 Update all the tests using SOFT_FLOAT considering the fact that
6786 this macro was always set to 0.
6787 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6788 considering the fact that this macro was always set to 0.
6789 * hppa-tdep.h (hppa_store_return_value): Likewise.
6790 (hppa_extract_return_value): Likewise.
6792 2003-04-22 J. Brobecker <brobecker@gnat.com>
6794 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6795 the hppa-pro target only.
6797 2003-04-21 J. Brobecker <brobecker@gnat.com>
6799 Ongoing multi-arch conversion effort for HP/UX:
6800 * config/pa/tm-hppa.h: Move all macro that are no longer
6801 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6802 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6804 2003-04-21 J. Brobecker <brobecker@gnat.com>
6806 * config/pa/tm-hppa.h: Obsolete a section that was only used
6809 2003-04-21 J. Brobecker <brobecker@gnat.com>
6811 Ongoing multi-arch conversion for HP/UX.
6812 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6813 if already defined (allows hppa64 to stay non-multiarched for now).
6814 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6816 2003-04-21 Andrew Cagney <cagney@redhat.com>
6818 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6820 2003-04-21 Andrew Cagney <cagney@redhat.com>
6822 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6823 "i386_num_mmx_regs".
6825 2003-04-21 Andrew Cagney <cagney@redhat.com>
6827 * infcall.c: New file.
6828 * infcall.h: New file.
6829 * valarith.c: Include "infcall.h".
6830 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6831 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6832 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6833 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6834 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6835 (SFILES): Add "infcall.c"
6836 (COMMON_OBS): Add "infcall.o".
6837 (infcall.o): Specify dependencies.
6838 * value.h (call_function_by_hand): Delete declaration.
6839 * inferior.h (run_stack_dummy): Delete declaration.
6840 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6841 (run_stack_dummy): Move to "infcall.c", merged into
6842 call_function_by_hand.
6843 * valops.c (call_function_by_hand): Moved to "infcall.c".
6844 (find_function_addr, value_arg_coerce): Ditto.
6845 (unwindonsignal_p, coerce_float_to_double): Ditto.
6846 (_initialize_valops): Move "set/show coerce-float-to-double", and
6847 "set/show unwindonsignal" commands to "infcall.c".
6848 * v850-tdep.c, target.h: Update comments.
6849 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6850 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6851 (sh64_init_extra_frame_info): Update comments.
6852 * mn10300-tdep.c: Update comments.
6853 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6854 * config/sparc/tm-sparc.h: Update comments.
6855 * breakpoint.h: Update comments.
6856 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6857 * arm-tdep.c: Update comment.
6859 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6861 * i386-tdep.c (i386_num_register_names): New variable.
6862 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6863 (MM0_REGNUM): Remove redundant parentheses in define.
6864 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6865 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6866 i386_mxcsr_regnum_p): Remove redundant parentheses.
6867 (i386_register_name): Use i386_num_register_names.
6869 * i386-tdep.c (i386_extract_return_value,
6870 i386_store_return_value): Correct check for availability of
6871 floating-point registers.
6873 * i386-tdep.c (i386_frame_num_args): Remove function.
6874 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6876 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6877 mmx_regnum_to_fp_regnum. Adjust all callers.
6879 * i386-tdep.c (i386_get_longjmp_target): Use
6880 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6881 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6884 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6886 * core-regset.c: Update comments to reflect reality. Re-order
6888 (fetch_core_registers): Use switch instead of if. Remove
6889 redundant prototype.
6891 2003-04-18 Jim Blandy <jimb@redhat.com>
6893 * s390-tdep.c (s390_frame_align): New function.
6894 (s390_gdbarch_init): Register it with the gdbarch object.
6896 2003-04-17 Richard Henderson <rth@redhat.com>
6898 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6900 2003-04-17 Michael Snyder <msnyder@redhat.com>
6901 Karen Bennet <bennet@redhat.com>
6903 Committed by Elena Zannoni <ezannoni@redhat.com>
6904 * gdb_gcore.sh: New script to create a core dump of a process.
6906 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6908 * values.c (value_being_returned): Don't fetch the return
6909 value if the return type is void.
6911 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6913 * thread-db.c: Reindented.
6915 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6917 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6918 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6945 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6947 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6948 the size of ``long double'' to 16, instead of 8.
6950 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6952 * i386-linux-nat.c: Add some whitespace to make things more
6954 (fetch_register, store_register, fetch_inferior_registers,
6955 store_inferior_registers): Get rid of assignment in if-statement.
6956 (store_register): Fix typo in error message.
6958 2003-04-16 Andrew Cagney <cagney@redhat.com>
6960 * utils.c (xmmalloc): Always allocate something, matches
6961 libiberty/xmalloc's semantics.
6962 (xmrealloc, xmcalloc): Ditto.
6964 2003-04-16 Andrew Cagney <cagney@redhat.com>
6966 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6968 (get_frame_type): Initialize unwind and type when needed.
6969 (get_frame_id, frame_register_unwind): Ditto.
6971 2003-04-16 Andrew Cagney <cagney@redhat.com>
6973 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6975 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6976 * sparcl-stub.c: Obsolete file.
6977 * config/sparc/tm-sparclet.h: Obsolete file.
6978 * sparclet-stub.c: Obsolete file.
6979 * sparclet-rom.c: Obsolete file.
6980 * sparcl-tdep.c: Obsolete file.
6981 * config/sparc/tm-sparclite.h: Obsolete file.
6982 * config/sparc/sparclite.mt: Obsolete file.
6983 * config/sparc/sparclet.mt: Obsolete file.
6984 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6985 sparc86x-*-* obsolete.
6987 2003-04-15 David Carlton <carlton@math.stanford.edu>
6989 * Makefile.in (SFILES): Add cp-namespace.c.
6990 (COMMON_OBS): Add cp-namespace.o.
6991 (block.o): Depend on gdb_obstack_h and cp_support_h.
6992 (buildsym.o): Depend on cp_support_h.
6993 (cp-namespace.o): New.
6994 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6995 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6996 (dwarf2read.o): Depend on cp_support_h.
6997 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6998 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6999 processing_current_namespace.
7000 (read_namespace): Update processing_current_namespace; check for
7001 anonymous namespaces.
7002 (dwarf2_name): New function.
7003 (dwarf2_extension): Ditto.
7004 * cp-support.h: Update copyright, contributors.
7005 Add inclusion guards.
7006 Add opaque declaration for structs obstack, block, symbol.
7007 (struct using_direct): New struct.
7008 Add declarations for cp_find_first_component,
7009 cp_entire_prefix_len, processing_has_namespace_info,
7010 processing_current_namespace, cp_is_anonymous,
7011 cp_add_using_directive, cp_initialize_namespace,
7012 cp_finalize_namespace, cp_set_block_scope,
7013 cp_scan_for_anonymous_namespaces.
7014 * cp-namespace.c: New file.
7015 * cp-support.c: Update copyright.
7016 Include ctype.h, gdb_assert.h, gdbcmd.h.
7017 New variable maint_cplus_cmd_list.
7018 (cp_find_first_component): New function.
7019 (cp_entire_prefix_len, maint_cplus_command)
7020 (first_component_command, _initialize_cp_support): Ditto.
7021 * buildsym.c: Include cp-support.h.
7022 New variable using_list.
7023 (add_symbol_to_list): Check for anonymous namespaces.
7024 (finish_block): Set block's scope.
7025 (start_symtab): Initialize C++ namespace support.
7026 (end_symtab): Finalize C++ namespace support.
7027 * block.h: Add opaque declarations for structs
7028 block_namespace_info, using_direct, and obstack.
7029 Add declarations for block_set_scope and block_set_using.
7030 (struct block): Add 'language_specific' member.
7031 (BLOCK_NAMESPACE): New macro.
7032 * block.c: Include gdb_obstack.h and cp-support.h.
7033 (struct block_namespace_info): New struct.
7034 (block_set_scope): New function.
7035 (block_set_using, block_initialize_namespace): Ditto.
7037 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7039 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7040 (locate_base): Return early if there aren't any link map offsets.
7041 (svr4_solib_create_inferior_hook): Warn if shared library support
7044 2003-04-14 David Carlton <carlton@math.stanford.edu>
7046 * symtab.c (symbol_set_names): Add prefix when storing Java names
7047 in hash table. Fix for PR java/1039.
7049 2003-04-14 David Carlton <carlton@math.stanford.edu>
7051 * symtab.c (symbol_set_names): Rename 'name' arg to
7052 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7053 * symtab.h: Change 'name' argument in declaration of
7054 symbol_set_names to 'linkage_name'.
7055 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7057 2003-04-14 Andrew Cagney <cagney@redhat.com>
7059 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7060 return the fully sign-extended register value.
7061 (get_frame_pointer): Ditto.
7062 (mips_pop_frame): Initialize "proc_desc" after checking for a
7065 2003-04-14 Andrew Cagney <cagney@redhat.com>
7067 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7068 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7069 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7070 (mips_push_register): Delete function.
7071 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7074 2003-04-14 Jim Blandy <jimb@redhat.com>
7076 * symmisc.c: #include "gdb_regex.h".
7077 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7079 * maint.c (maintenance_list_command): New function.
7080 (_initialize_maint_cmds): Register the above as commands.
7081 * symtab.h (maintenance_list_symtabs,
7082 maintenance_list_psymtabs): New declarations.
7083 * cli/cli-cmds.c (maintenancelistlist): New variable.
7084 (init_cmd_lists): Initialize it.
7085 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7086 * gdbcmd.h (maintenancelistlist): New declaration.
7087 * Makefile.in (symmisc.o): Update dependencies.
7089 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7091 * s390-nat.c: Include asm/types.h for addr_t.
7093 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7095 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7096 actually incoming type.
7098 2003-04-13 Andrew Cagney <cagney@redhat.com>
7100 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7101 get_next_frame and get_frame_saved_regs.
7103 2003-04-13 Andrew Cagney <cagney@redhat.com>
7105 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7106 of gdbarch_num_regs.
7108 2003-04-13 Andrew Cagney <cagney@redhat.com>
7110 * frame.h: Mention what replaced what in "struct frame_info".
7111 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7112 deprecated_update_frame_base_hack and
7113 deprecated_update_frame_pc_hack.
7114 * hppa-tdep.c: Ditto.
7116 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7118 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7119 to read_reg and update its comment. Remove regnum member.
7120 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7121 Don't call read_reg when setting in_reg. Call read_reg to get
7122 the frame base if it's in a register. Return the register number
7123 on the stack instead of in the context. Remove extra arguments
7125 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7126 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7127 the register number on the expression stack.
7128 (needs_frame_read_reg): Remove extra arguments.
7130 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7132 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7134 (execute_stack_op): All callers updated.
7135 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7136 * dwarf2loc.c (find_location_expression): New function.
7137 (dwarf_expr_frame_base): Call it.
7138 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7139 (dwarf2_tracepoint_var_ref): New function, broken out from
7140 locexpr_tracepoint_var_ref.
7141 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7143 (loclist_read_variable, loclist_read_needs_frame): New functions.
7144 (loclist_describe_location, loclist_tracepoint_var_ref): New
7146 (dwarf2_loclist_funcs): New struct location_funcs.
7147 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7148 (struct dwarf2_locexpr_baton): Add comments.
7149 (dwarf2_loclist_funcs): New extern.
7150 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7151 base_address and base_known.
7152 (dwarf_loc_buffer): New variable.
7153 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7154 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7155 (dwarf2_has_info): Initialize dwarf_loc_offset.
7156 (dwarf2_build_psymtabs): Read in .debug_loc.
7157 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7159 (psymtab_to_symtab_1): Likewise. Move base address calculation
7161 (dwarf2_get_pc_bounds): ... here. Use the base address from
7163 (dwarf2_symbol_mark_computed): Handle location lists.
7165 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7167 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7168 if the linkage name demangled successfully.
7170 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7172 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7173 disassmbly_flavour): Removed.
7175 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7177 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7179 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7181 2003-04-12 Andrew Cagney <cagney@redhat.com>
7183 * frame.h (struct frame_info): Move definition from here ...
7184 * frame.c (struct frame_info): ... to here.
7186 2003-04-12 Andrew Cagney <cagney@redhat.com>
7188 * gdbthread.h (save_infrun_state): Delete parameter
7190 (struct thread_info): Delete field "prev_func_start".
7191 (load_infrun_state): Ditto.
7192 * thread.c (load_infrun_state, save_infrun_state): Update.
7193 * infrun.c (prev_func_start): Delete variable.
7194 (context_switch, init_wait_for_inferior): Update.
7195 (stop_stepping, keep_going): Update.
7197 2003-04-12 Andrew Cagney <cagney@redhat.com>
7199 * gdbarch.sh: Add missing opaque declarations.
7200 * gdbarch.h: Regnerate.
7201 * symtab.h: Add missing opaque declarations.
7202 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7203 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7204 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7205 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7206 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7207 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7208 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7209 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7210 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7211 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7212 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7213 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7214 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7216 2003-04-11 Andrew Cagney <cagney@redhat.com>
7218 * frame.c (get_frame_id): Return this frame's "id".
7219 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7221 (legacy_saved_regs_this_id): Replace function body with
7223 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7224 FRAME_OBSTACK_ZALLOC.
7225 (create_new_frame): Mark the frame ID as valid.
7227 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7229 * Makefile.in (libbfd_h): Added missing setting.
7230 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7231 according to the selected ABI.
7233 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7235 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7237 2003-04-11 Andrew Cagney <cagney@redhat.com>
7239 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7240 SAVED_PC_AFTER_CALL.
7241 * gdbarch.h, gdbarch.c: Regenerate.
7242 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7243 * x86-64-tdep.c (x86_64_init_abi): Update.
7244 * vax-tdep.c (vax_gdbarch_init): Update.
7245 * v850-tdep.c (v850_gdbarch_init): Update.
7246 * sparc-tdep.c (sparc_gdbarch_init): Update.
7247 * sh-tdep.c (sh_gdbarch_init): Update.
7248 * s390-tdep.c (s390_gdbarch_init): Update.
7249 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7250 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7251 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7252 * mips-tdep.c (mips_gdbarch_init): Update.
7253 * mcore-tdep.c (mcore_gdbarch_init): Update.
7254 * m68k-tdep.c (m68k_gdbarch_init): Update.
7255 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7256 * ia64-tdep.c (ia64_gdbarch_init): Update.
7257 (ia64_saved_pc_after_call): Update declaration.
7258 * i386ly-tdep.c (i386lynx_init_abi): Update.
7259 * i386-tdep.c (i386_gdbarch_init): Update.
7260 * hppa-tdep.c (hppa_gdbarch_init): Update.
7261 * h8300-tdep.c (h8300_gdbarch_init): Update.
7262 * frv-tdep.c (frv_gdbarch_init): Update.
7263 * cris-tdep.c (cris_gdbarch_init): Update.
7264 * avr-tdep.c (avr_gdbarch_init): Update.
7265 * arm-tdep.c (arm_gdbarch_init): Update.
7266 * alpha-tdep.c (alpha_gdbarch_init): Update.
7267 * ns32knbsd-nat.c (frame_num_args): Update.
7268 * ns32k-tdep.c (umax_frame_num_args): Update.
7269 * mips-tdep.c (mips_init_frame_pc_first): Update.
7270 * infrun.c (step_over_function): Update.
7271 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7272 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7273 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7274 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7275 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7276 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7277 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7278 * arch-utils.c (init_frame_pc_default): Update.
7279 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7280 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7283 2003-04-11 Andrew Cagney <cagney@redhat.com>
7285 * i387-tdep.c: Update copyright.
7286 (i387_to_double): Delete function.
7287 (double_to_i387): Delete function.
7289 2003-04-10 Andrew Cagney <cagney@redhat.com>
7291 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7292 frame's function's address. Simplify.
7293 (d10v_frame_unwind_cache): Check that the frame's function is
7296 2003-04-10 Jim Blandy <jimb@redhat.com>
7298 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7299 call to set_gdbarch_deprecated_push_arguments.
7301 2003-04-10 Andrew Cagney <cagney@redhat.com>
7303 * frame.c (fprint_frame_id): New function.
7304 (fprint_frame_type, fprint_frame): New function.
7305 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7306 (create_sentinel_frame, get_frame_id): Ditto.
7307 (frame_id_p, frame_id_eq): Ditto.
7308 (frame_id_inner, create_new_frame): Ditto.
7309 (legacy_get_prev_frame, get_prev_frame): Ditto.
7310 (deprecated_update_frame_pc_hack): Ditto.
7311 (frame_register_unwind): Ditto.
7312 (deprecated_update_frame_base_hack): Ditto.
7314 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7316 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7317 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7318 frame_chain function.
7319 * Makefile.in: Add dependencies due to above change.
7321 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7323 * blockframe.c (legacy_frame_chain_valid): Move call to
7324 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7327 2003-04-09 Andrew Cagney <cagney@redhat.com>
7329 * frame.h (struct frame_id): Replace "pc" and "base" with
7330 "stack_addr" and "code_addr". Update comments.
7331 (frame_id_build): Update parameter names and comment.
7332 (struct frame_info): Replace "id_p" and "id" with "this_id".
7333 * dummy-frame.c (dummy_frame_this_id): Update.
7334 * breakpoint.c (print_one_breakpoint): Update.
7335 * frame.c (get_frame_id): Update.
7336 (get_frame_base, frame_id_build): Update.
7337 (create_sentinel_frame, legacy_get_prev_frame): Update.
7338 (deprecated_update_frame_base_hack): Update.
7339 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7340 (frame_id_inner): Ditto.
7342 2003-04-09 Andrew Cagney <cagney@redhat.com>
7344 * defs.h (gdb_print_host_address): Make "addr" parameter a
7346 * utils.c (gdb_print_host_address): Update.
7348 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7350 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7351 register number for R0 is 0.
7353 2003-04-09 J. Brobecker <brobecker@gnat.com>
7355 * frame.h (struct gdbarch): Add opaque structure definition
7356 to avoid a compilation warning on LynxOS 4.0.
7358 2003-04-09 Andrew Cagney <cagney@redhat.com>
7360 * frame.h (struct frame_info): Delete field "pc". Replace
7361 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7363 * frame.c (frame_pc_unwind): Update.
7364 (create_sentinel_frame): Do not set "pc".
7365 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7366 (get_frame_pc): Call frame_pc_unwind.
7367 (deprecated_update_frame_pc_hack): Update.
7368 (create_new_frame): Use "pc" not "->pc".
7370 2003-04-09 Andrew Cagney <cagney@redhat.com>
7372 * frame.c (get_frame_id): Eliminate code updating "frame".
7373 (legacy_get_prev_frame): Ditto.
7374 (get_frame_base): Return id.base directly.
7375 (deprecated_update_frame_base_hack): Update "id.base".
7376 * frame.h (struct frame_info): Delete field "frame".
7378 2003-04-09 Andrew Cagney <cagney@redhat.com>
7380 * NEWS: Mention that the "Sequent family" is obsolete.
7381 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7382 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7383 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7384 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7385 * config/i386/tm-ptx4.h: Obsolete file.
7386 * config/i386/tm-ptx.h: Obsolete file.
7387 * symm-tdep.c: Obsolete file.
7388 * config/i386/symmetry.mt: Obsolete file.
7389 * config/i386/tm-symmetry.h: Obsolete file.
7390 * symm-nat.c: Obsolete file.
7391 * config/i386/nm-symmetry.h: Obsolete file.
7392 * config/i386/xm-symmetry.h: Obsolete file.
7393 * config/i386/symmetry.mh: Obsolete file.
7394 * config/i386/nm-ptx4.h: Obsolete file.
7395 * config/i386/ptx4.mh: Obsolete file.
7396 * config/i386/ptx.mt: Obsolete file.
7397 * config/i386/ptx.mh: Obsolete file.
7398 * config/i386/xm-ptx4.h: Obsolete file.
7399 * config/i386/xm-ptx.h: Obsolete file.
7401 2003-04-09 Andrew Cagney <cagney@redhat.com>
7403 Obsolete mips*-*-mach3*.
7404 * NEWS: Mention that mips*-*-mach3* is obsolete.
7405 * m3-nat.c: Obsolete file.
7406 * config/nm-m3.h: Obsolete file.
7407 * config/mips/tm-mipsm3.h: Obsolete file.
7408 * config/mips/mipsm3.mt: Obsolete file.
7409 * config/mips/mipsm3.mh: Obsolete file.
7410 * config/mips/xm-mipsm3.h: Obsolete file.
7411 * mipsm3-nat.c: Obsolete file.
7412 * configure.host: Obsolete mips-dec-mach3*.
7413 * configure.tgt: Obsolete mips*-*-mach3*.
7415 2003-04-09 Andrew Cagney <cagney@redhat.com>
7417 * doublest.h: Update copyright.
7418 (deprecated_store_floating, deprecated_extract_floating): Rename
7419 store_floating and extract_floating. Update comments.
7420 * doublest.c: Update copyright.
7421 (extract_floating_by_length): Replace extract_floating.
7422 (store_floating_by_length): Replace store_floating.
7423 (deprecated_extract_floating): New function.
7424 (deprecated_store_floating): New function.
7425 (extract_typed_floating): Call extract_floating_by_length.
7426 (store_typed_floating): Call store_floating_by_length.
7427 * x86-64-tdep.c (x86_64_store_return_value): Update.
7428 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7429 (sh64_extract_return_value): Update.
7430 (sh_sh4_register_convert_to_virtual): Update.
7431 (sh_sh64_register_convert_to_virtual): Update.
7432 (sh_sh4_register_convert_to_raw): Update.
7433 (sh_sh64_register_convert_to_raw): Update.
7434 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7435 (rs6000_register_convert_to_raw): Update.
7436 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7437 (ia64_register_convert_to_raw): Update.
7438 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7439 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7440 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7441 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7442 (alpha_register_convert_to_raw): Update.
7444 2003-04-08 Andrew Cagney <cagney@redhat.com>
7446 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7447 * gdbarch.h, gdbarch.c: Re-generate.
7448 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7449 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7450 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7451 conditionally, use frame_pc_unwind as an alternative. Add
7453 * arch-utils.c (init_frame_pc_default): Only call
7454 SAVED_PC_AFTER_CALL when available.
7456 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7458 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7459 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7460 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7461 (start_remote): Ditto.
7462 (handle_inferior_event): Ditto.
7463 (save_inferior_status): Ditto.
7464 (restore_inferior_status): Ditto.
7465 * infcmd.c (attach_command): Ditto.
7466 * fork-child.c (startup_inferior): Ditto.
7467 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7468 * alpha-tdep.c (heuristic_proc_start): Ditto.
7469 * mips-tdep.c (heuristic_proc_start): Ditto.
7470 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7471 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7472 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7473 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7474 * remote-vx.c (vx_create_inferior): Ditto.
7476 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7478 * infrun.c (stop_soon_quietly): Make it an enum, to better
7479 override the default behavior of handle_inferior_event.
7480 (clear_proceed_status): Update uses of stop_soon_quietly to
7481 reflect that it is now an enum.
7482 (start_remote): Ditto.
7483 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7484 is set to handle the new GNU/Linux kernel behavior for
7485 attach/sigstop. Update uses of stop_soon_quietly.
7486 * inferior.h (enum stop_kind): New enum.
7487 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7488 Reset normal handle_inferior_event behavior, afterwards.
7489 * fork-child.c (startup_inferior): Update.
7490 * alpha-tdep.c (heuristic_proc_start): Update.
7491 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7492 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7493 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7494 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7495 * remote-vx.c (vx_create_inferior): Update.
7496 * mips-tdep.c (heuristic_proc_start): Update.
7498 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7500 * disasm.c (dump_insns): Move variables inside loop, or they will
7501 be freed more than once, causing wild memory corruptions.
7502 (gdb_disassembly): Look for the substring "-thread",
7503 instead of "-threads" in the target name, to make sure to find
7504 the 'multi-thread' target. Also, make sure we do the right thing
7505 with the "core" target.
7507 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7509 * mips-tdep.c (mips_print_fp_register): New function, created from
7510 do_fp_register_row(). Registers are now (also) printed as hex.
7511 Only one register is printed per row.
7512 (mips_print_register, do_fp_register_row): Print floating point
7513 registers with mips_print_fp_register().
7515 2003-04-06 Andrew Cagney <cagney@redhat.com>
7517 * valprint.h (inspect_it): Add extern declaration.
7518 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7519 (selectors_info, classes_info): Ditto.
7520 (find_objc_msgcall): Fix indentation.
7521 (objc_printstr): Delete extern declarations.
7523 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7525 2003-04-06 Andrew Cagney <cagney@redhat.com>
7527 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7529 * frame.c (legacy_saved_regs_this_id): Update.
7530 (legacy_get_prev_frame): Update.
7531 * xstormy16-tdep.c: Update comment.
7532 * sparc-tdep.c (sparc_frame_chain): Update comment.
7533 * blockframe.c (legacy_frame_chain_valid): Update.
7535 2003-04-06 Andrew Cagney <cagney@redhat.com>
7537 * valprint.c (val_print_type_code_int): Delete #ifdef
7538 PRINT_TYPELESS_INTEGER code.
7540 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7541 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7542 multi-arch definition.
7543 * gdbarch.h: Re-generate.
7545 2003-04-05 Andrew Cagney <cagney@redhat.com>
7547 Eliminate FRAME_FIND_SAVED_REGS.
7548 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7549 Change FSR parameter to a pointer.
7550 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7551 Assume FSR parameter is a pointer.
7552 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7554 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7555 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7556 saved_regs a pointer.
7557 (hppa_frame_saved_pc): Ditto.
7558 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7559 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7561 (restore_pc_queue): Make fsr a pointer.
7562 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7563 (hppa_frame_chain): Make saved_regs a pointer, call
7564 hppa_frame_init_saved_regs.
7565 * sparc-tdep.c: Include "gdb_assert.h".
7566 (sparc_frame_find_saved_regs): Replace internal_error with
7568 * remote-vxsparc.c (vx_read_register): Delete reference to
7569 FRAME_FIND_SAVED_REGS.
7570 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7571 * gdbarch.h: Regenerate.
7572 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7573 (deprecated_get_frame_saved_regs): Delete declaration.
7574 (struct frame_saved_regs): Delete definition.
7575 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7576 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7577 (hppa_frame_find_saved_regs): Delete declaration.
7578 (FRAME_FIND_SAVED_REGS): Delete macro.
7579 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7580 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7581 FRAME_FIND_SAVED_REGS in comment.
7583 2003-04-05 Andrew Cagney <cagney@redhat.com>
7585 * frame.c (frame_func_unwind, get_frame_func): New functions.
7586 * frame.h (get_frame_func, frame_func_unwind): Declare.
7587 (struct frame_info): Add field "prev_func" for caching the
7588 previous frame's function address.
7589 * arm-tdep.c (arm_frameless_function_invocation): Combine
7590 get_pc_function_start and get_frame_pc into get_frame_func.
7591 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7592 (sh64_nofp_frame_init_saved_regs): Ditto.
7593 * s390-tdep.c (s390_function_start): Ditto.
7594 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7595 (rs6000_frameless_function_invocation): Ditto.
7596 (rs6000_frame_saved_pc): Ditto.
7597 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7598 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7599 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7600 (i386_frame_init_saved_regs): Ditto.
7601 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7602 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7603 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7604 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7605 * blockframe.c (frameless_look_for_prologue): Ditto.
7607 2003-04-05 Andrew Cagney <cagney@redhat.com>
7609 * frame.c (legacy_get_prev_frame): Link prev to next at the
7610 function start. Update comments.
7612 2003-04-05 Andrew Cagney <cagney@redhat.com>
7614 * frame.c (get_frame_id): Update comment.
7615 (legacy_get_prev_frame): Update comment.
7616 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7617 * gdbarch.h: Regenerate.
7618 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7619 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7621 2003-04-05 Andrew Cagney <cagney@redhat.com>
7623 * stack.c (print_frame_info): Use get_frame_pc.
7625 2003-04-04 Andrew Cagney <cagney@redhat.com>
7627 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7628 the frame's type from the unwinder.
7629 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7630 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7631 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7632 (get_frame_base_address): Use get_frame_type.
7633 (get_frame_locals_address, get_frame_args_address): Ditto.
7634 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7635 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7636 (struct frame_info): Add comment explaining why the frame contains
7638 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7639 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7640 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7642 * frame-unwind.h: Include "frame.h".
7643 (struct frame_unwind): Add "type" field.
7644 * Makefile.in (frame_unwind_h): Add $(frame_h).
7646 2003-04-04 Andrew Cagney <cagney@redhat.com>
7648 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7649 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7650 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7652 (d10v_unwind_dummy_id): Use frame_id_build.
7653 * frame.c (find_frame_sal): Use get_frame_pc.
7654 (create_new_frame): Use deprecated_update_frame_pc_hack and
7655 deprecated_update_frame_base_hack.
7656 (create_sentinel_frame): Add comment about ->pc going away.
7657 (get_prev_frame): Add comment about ->pc going away.
7658 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7659 frame_id_build, deprecated_update_frame_pc_hack and
7660 deprecated_update_frame_base_hack.
7661 (select_frame): Use get_frame_pc.
7662 (legacy_saved_regs_this_id): Use frame_id_build.
7664 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7666 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7667 signed integer case.
7668 (classify_argument): Handle enumerations and references.
7670 2003-04-04 Andrew Cagney <cagney@redhat.com>
7672 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7675 2003-04-01 Adam Fedor <fedor@gnu.org>
7677 * gdb/objc-lang.c (selectors_info): Replace calls to
7678 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7679 SYMBOL_NATURAL_NAME.
7680 (classes_info, find_methods): Likewise.
7682 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7684 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7685 ``mach'' to the value determined by bfd_default_set_arch_mach().
7687 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7689 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7690 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7691 (mi-cmd-file.o): Update dependencies.
7693 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7695 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7696 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7698 2003-04-01 Adam Fedor <fedor@gnu.org>
7700 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7701 * language.h (struct language_defn): Add la_demangle.
7702 (language_demangle): Declare.
7703 * language.c (language_demangle): New function.
7704 (unk_lang_demangle): Likewise.
7705 (unknown_language_defn, auto_language_defn, local_language_defn):
7706 Add ukn_lang_demangle.
7707 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7708 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7709 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7710 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7711 * jv-lang.c (java_demangle): New function
7712 (java_language_defn): Use it for la_demangle element.
7713 * objc-lang.c (objc_demangle): Add options argument
7714 (objc_language_defn): Use objc_demangle for la_demangle element.
7715 * maint.c (maintenance_demangle): Replace switch with
7716 call to language_demangle.
7717 * utils.c (fprintf_symbol_filtered): Likewise.
7719 2003-04-01 Andrew Cagney <cagney@redhat.com>
7721 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7722 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7723 PRINT_TYPELESS_INTEGER.
7724 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7725 PUSH_RETURN_ADDRESS.
7727 2003-04-01 Andrew Cagney <cagney@redhat.com>
7729 * Makefile.in (d10v-tdep.o): Update dependencies.
7730 * d10v-tdep.c: Include "frame-base.h".
7731 (d10v_frame_unwind): Make constant.
7732 (d10v_frame_base_address): New function.
7733 (d10v_frame_base): New variable.
7734 (d10v_gdbarch_init): Set frame_base default.
7735 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7737 (d10v_frame_unwind_cache): Set and use "prev_sp".
7738 (d10v_frame_this_id): Use the previous frame's inner most stack
7739 address and this frame's func address for the frame ID. Use
7740 frame_id_build. Don't analyze beyond the current instruction.
7742 2003-04-01 Andrew Cagney <cagney@redhat.com>
7744 * frame.h (get_frame_locals_address, get_frame_args_address):
7745 Refer to the base address, instead of the address of the first
7748 2003-04-01 Andrew Cagney <cagney@redhat.com>
7750 Add frame debug info addresses:
7751 * frame-base.c: New file.
7752 * frame-base.h: New file.
7753 * frame.h (struct frame_base): Add opaque declaration.
7754 (get_frame_base): Update comment.
7755 (get_frame_base_address): Declare.
7756 (get_frame_locals_address): Declare.
7757 (get_frame_args_address): Declare.
7758 (struct frame_info): Add "base" and "base_cache". Update
7759 comments on the unwinder.
7760 * frame.c: Include "frame-base.h".
7761 (get_frame_locals_address): New function.
7762 (get_frame_base_address): New function.
7763 (get_frame_args_address): New function.
7764 * findvar.c (read_var_value): Use get_frame_locals_address and
7765 get_frame_args_address.
7766 * stack.c (frame_info): Use get_frame_locals_address and
7767 get_frame_args_address.
7768 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7769 moved to "frame-base.c".
7770 * printcmd.c (print_frame_nameless_args): Ditto.
7771 * symtab.h (address_class): Update comments.
7772 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7773 get_frame_base_address.
7774 * dwarf2expr.c (execute_stack_op): Ditto.
7775 * Makefile.in (frame_base_h): Define.
7776 (frame.o): Update dependencies.
7777 (frame-base.o): Add dependencies.
7778 (SFILES): Add frame-base.c.
7779 (COMMON_OBS): Add frame-base.o.
7781 2003-04-01 Andrew Cagney <cagney@redhat.com>
7783 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7784 CALL_DUMMY_LENGTH): Ditto.
7785 * gdbarch.c: Re-generate.
7786 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7787 (CALL_DUMMY_LENGTH): Delete macro.
7788 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7789 * arm-tdep.c (arm_gdbarch_init): Ditto.
7790 * avr-tdep.c (avr_gdbarch_init): Ditto.
7791 * cris-tdep.c (cris_gdbarch_init): Ditto.
7792 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7793 * frv-tdep.c (frv_gdbarch_init): Ditto.
7794 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7795 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7796 * i386-tdep.c (i386_gdbarch_init): Ditto.
7797 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7798 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7799 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7800 * mips-tdep.c (mips_gdbarch_init): Ditto.
7801 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7802 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7803 * s390-tdep.c (s390_gdbarch_init): Ditto.
7804 * sh-tdep.c (sh_gdbarch_init): Ditto.
7805 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7806 * v850-tdep.c (v850_gdbarch_init): Ditto.
7807 * vax-tdep.c (vax_gdbarch_init): Ditto.
7808 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7810 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7812 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7814 2003-04-01 Andrew Cagney <cagney@redhat.com>
7816 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7817 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7818 * gdbarch.h, gdbarch.c: Re-generate.
7819 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7820 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7821 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7822 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7823 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7824 * infcmd.c (run_stack_dummy): Simplify assuming
7825 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7826 * infrun.c (handle_inferior_event): Ditto.
7827 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7828 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7829 * arm-tdep.c (arm_gdbarch_init): Ditto.
7830 * avr-tdep.c (avr_gdbarch_init): Ditto.
7831 * cris-tdep.c (cris_gdbarch_init): Ditto.
7832 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7833 * frv-tdep.c (frv_gdbarch_init): Ditto.
7834 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7835 * i386-tdep.c (i386_gdbarch_init): Ditto.
7836 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7837 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7838 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7839 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7840 * mips-tdep.c (mips_gdbarch_init): Ditto.
7841 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7842 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7843 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7844 * s390-tdep.c (s390_gdbarch_init): Ditto.
7845 * sh-tdep.c (sh_gdbarch_init): Ditto.
7846 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7847 * v850-tdep.c (v850_gdbarch_init): Ditto.
7848 * vax-tdep.c (vax_gdbarch_init): Ditto.
7849 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7851 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7853 * symfile.c (symfile_relocate_debug_section): Update call to
7854 bfd_simple_get_relocated_section_contents.
7856 2003-03-31 Andrew Cagney <cagney@redhat.com>
7858 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7859 * gdbarch.h, gdbarch.c: Regenerate.
7860 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7861 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7863 * frame.h (generic_fix_call_dummy): Delete declaration.
7864 * dummy-frame.h: Update comment.
7865 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7866 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7868 * sh-tdep.c (sh_gdbarch_init): Ditto.
7869 * s390-tdep.c (s390_gdbarch_init): Ditto.
7870 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7871 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7872 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7873 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7874 * i386-tdep.c (i386_gdbarch_init): Ditto.
7875 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7876 * frv-tdep.c (frv_gdbarch_init): Ditto.
7877 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7878 * cris-tdep.c (cris_gdbarch_init): Ditto.
7879 * avr-tdep.c (avr_gdbarch_init): Ditto.
7880 * arm-tdep.c (arm_gdbarch_init): Ditto.
7882 2003-03-31 J. Brobecker <brobecker@gnat.com>
7884 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7885 (INIT_FRAME_AP): Likewise.
7886 (EXTRA_FRAME_INFO): Likewise.
7888 2003-03-31 Andrew Cagney <cagney@redhat.com>
7890 * gdbarch.sh: Include "symfile.h".
7891 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7892 * gdbarch.h, gdbarch.c: Re-generate.
7893 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7894 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7895 call_dummy_address, the default is at entry_point_address.
7896 * v850-tdep.c (v850_gdbarch_init): Ditto.
7897 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7898 * sh-tdep.c (sh_gdbarch_init): Ditto.
7899 * s390-tdep.c (s390_gdbarch_init): Ditto.
7900 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7901 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7902 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7903 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7904 * i386-tdep.c (i386_gdbarch_init): Ditto.
7905 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7906 * frv-tdep.c (frv_gdbarch_init): Ditto.
7907 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7908 * cris-tdep.c (cris_gdbarch_init): Ditto.
7909 * arm-tdep.c (arm_gdbarch_init): Ditto.
7911 2003-03-31 Andrew Cagney <cagney@redhat.com>
7913 * gdbarch.sh (CALL_DUMMY_P): Delete.
7914 * gdbarch.h, gdbarch.c: Re-generate.
7915 * inferior.h (CALL_DUMMY_P): Delete macro.
7916 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7917 * vax-tdep.c (vax_gdbarch_init): Update.
7918 * v850-tdep.c (v850_gdbarch_init): Update.
7919 * sparc-tdep.c (sparc_gdbarch_init): Update.
7920 * sh-tdep.c (sh_gdbarch_init): Update.
7921 * s390-tdep.c (s390_gdbarch_init): Update.
7922 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7923 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7924 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7925 * mips-tdep.c (mips_gdbarch_init): Update.
7926 * mcore-tdep.c (mcore_gdbarch_init): Update.
7927 * m68k-tdep.c (m68k_gdbarch_init): Update.
7928 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7929 * ia64-tdep.c (ia64_gdbarch_init): Update.
7930 * i386-tdep.c (i386_gdbarch_init): Update.
7931 * h8300-tdep.c (h8300_gdbarch_init): Update.
7932 * frv-tdep.c (frv_gdbarch_init): Update.
7933 * d10v-tdep.c (d10v_gdbarch_init): Update.
7934 * cris-tdep.c (cris_gdbarch_init): Update.
7935 * breakpoint.c (deprecated_frame_in_dummy): Update.
7936 * avr-tdep.c (avr_gdbarch_init): Update.
7937 * alpha-tdep.c (alpha_gdbarch_init): Update.
7938 * arm-tdep.c (arm_gdbarch_init): Update.
7939 * dummy-frame.c (dummy_frame_this_id): Update comments.
7940 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7941 * frame.c (legacy_get_prev_frame): Ditto.
7942 * valops.c (call_function_by_hand): Delete function.
7943 (hand_function_call): Rename to call_function_by_hand
7945 2003-03-30 Andrew Cagney <cagney@redhat.com>
7947 2002-11-10 Klee Dienes <kdienes@apple.com>
7948 * value.h (struct value): Update comment.
7950 2003-03-30 Andrew Cagney <cagney@redhat.com>
7952 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7954 (d10v_gdbarch_init): Do not set fp_regnum.
7956 * frame.c (get_frame_base): Force ID initialization.
7957 (get_prev_frame): Move computation of the frame ID from here ...
7958 (get_frame_id): ... to here.
7959 (legacy_get_prev_frame): Mark the frame ID as valid.
7960 * frame.h (struct frame_info): Add field "id_p".
7962 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7964 * i386-tdep.c (i386_store_struct_return): Removed.
7965 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7967 2003-03-30 Andrew Cagney <cagney@redhat.com>
7969 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7970 * gdbarch.h, gdbarch.c: Regenerate.
7971 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7972 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7973 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7974 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7975 * i386-tdep.c (i386_gdbarch_init): Ditto.
7976 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7977 * cris-tdep.c (cris_gdbarch_init): Ditto.
7978 * vax-tdep.c (vax_gdbarch_init): Ditto.
7979 * s390-tdep.c (s390_gdbarch_init): Ditto.
7980 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7981 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7982 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7983 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7984 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7985 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7986 * sparc-tdep.c (sparc_gdbarch_init): Update.
7987 * sh-tdep.c (sh_gdbarch_init): Update.
7988 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7989 * mips-tdep.c (mips_gdbarch_init): Update.
7990 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7991 * ia64-tdep.c (ia64_gdbarch_init): Update.
7992 * frv-tdep.c (frv_gdbarch_init): Update.
7993 * avr-tdep.c (avr_gdbarch_init): Update.
7994 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7995 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7996 instead of when push_dummy_call is not available.
7998 2003-03-30 Andrew Cagney <cagney@redhat.com>
8000 * infttrace.c: Include "gdbthread.h".
8001 (parent_attach_all): Fix function signature.
8002 (call_ptrace): Update call.
8003 * Makefile.in (infttrace.o): Update dependencies.
8005 2003-03-30 Andrew Cagney <cagney@redhat.com>
8007 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8008 PUSH_RETURN_ADDRESS.
8009 * gdbarch.h, gdbarch.c: Regenerate.
8010 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8011 * x86-64-tdep.c (x86_64_init_abi): Update.
8012 * v850-tdep.c (v850_gdbarch_init): Update.
8013 * sparc-tdep.c (sparc_gdbarch_init): Update.
8014 * sh-tdep.c (sh_gdbarch_init): Update.
8015 * s390-tdep.c (s390_gdbarch_init): Update.
8016 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8017 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8018 * mips-tdep.c (mips_gdbarch_init): Update.
8019 * mcore-tdep.c (mcore_gdbarch_init): Update.
8020 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8021 * ia64-tdep.c (ia64_gdbarch_init): Update.
8022 * i386-tdep.c (i386_gdbarch_init): Update.
8023 * h8300-tdep.c (h8300_gdbarch_init): Update.
8024 * frv-tdep.c (frv_gdbarch_init): Update.
8025 * cris-tdep.c (cris_gdbarch_init): Update.
8026 * avr-tdep.c (avr_gdbarch_init): Update.
8027 * arm-tdep.c (arm_gdbarch_init): Update.
8028 * valops.c (hand_function_call): Update.
8030 2003-03-29 Andrew Cagney <cagney@redhat.com>
8032 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8033 sizeof_call_dummy_words.
8034 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8036 * gdbarch.h: Regenerate.
8038 2003-03-29 Andrew Cagney <cagney@redhat.com>
8040 * infttrace.h: New file.
8041 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8042 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8043 (hpread_read_doc_function_type): Detect an initialized type1.
8044 (hpread_quick_traverse): Initialize mod_name_string.
8045 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8046 (som_solib_get_solib_by_pc): Declare.
8047 (so_lib_thread_start_addr): Declare.
8048 (no_shared_libraries): Declare.
8049 * somread.c (init_import_symbols): Make static. Add forward
8051 * config/pa/nm-hppah.h: Include "infttrace.h" for
8053 (hppa_insert_hw_watchpoint): Declare.
8054 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8055 * hppah-nat.c: Include "gdb_string.h".
8056 (parent_attach_all): Delete extern declaration, moved to
8058 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8060 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8061 * Makefile.in (infttrace_h): Define.
8062 (hpread.o): Update dependencies.
8063 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8064 * hppa-hpux-tdep.c: Include "gdb_string.h".
8065 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8066 * infrun.c (handle_inferior_event): Always initialize
8067 stepped_after_stopped_by_watchpoint. Add default and remove
8068 fallthrough in switch statement.
8069 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8071 (hppa_remove_hw_watchpoint): Ditto.
8073 2003-03-29 Andrew Cagney <cagney@redhat.com>
8075 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8078 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8080 * arm-tdep.c (arm_push_arguments): Delete.
8081 (struct stack_item): New type.
8082 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8083 (arm_store_struct_return): Delte.
8084 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8085 arm_push_arguments or arm_store_struct_return.
8087 2003-03-28 Andrew Cagney <cagney@redhat.com>
8089 * Makefile.in (d10v-tdep.o): Update dependencies.
8090 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8091 * d10v-tdep.c: Include "remote.h".
8092 (target_resume_hook): Delete extern declaration.
8093 (target_wait_loop_hook): Ditto.
8094 (tdisassemble_command): Eliminate assignment in "if" conditional.
8095 (d10v_ts2_register_sim_regno): Eliminate call to
8096 legacy_register_sim_regno.
8097 (d10v_ts3_register_sim_regno): Ditto.
8099 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8101 * thread.c: Reindented.
8103 * linux-proc.c: Ditto.
8105 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8107 * MAINTAINERS (write after approval): Add myself.
8109 2003-03-27 Theodore A. Roth <troth@openavr.org>
8111 * objc-exp.y: Add missing semi-colons.
8113 2003-03-27 Andrew Cagney <cagney@redhat.com>
8115 * regcache.c (write_sp): Delete function and references.
8116 * inferior.h (write_sp): Delete declaration.
8117 * valops.c (hand_function_call): Replace write_sp with
8119 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8120 (sparc_pop_frame): Ditto.
8122 2003-03-27 Andrew Cagney <cagney@redhat.com>
8124 * NEWS: Mention removal of support for hppa*-*-bsd* and
8125 hppa*-*-osf* natives, and hppa*-*-pro* target.
8126 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8127 * config/pa/xm-pa.h: Obsolete file.
8128 * config/pa/xm-hppab.h: Obsolete file.
8129 * config/pa/nm-hppab.h: Obsolete file.
8130 * config/pa/tm-hppab.h: Obsolete file.
8131 * config/pa/tm-hppao.h: Obsolete file.
8132 * config/pa/nm-hppao.h: Obsolete file.
8133 * config/pa/tm-pro.h: Obsolete file.
8134 * config/pa/hppaosf.mt: Obsolete file.
8135 * config/pa/hppaosf.mh: Obsolete file.
8136 * config/pa/hppapro.mt: Obsolete file.
8137 * config/pa/hppabsd.mt: Obsolete file.
8138 * config/pa/hppabsd.mh: Obsolete file.
8139 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8140 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8143 2003-03-27 Andrew Cagney <cagney@redhat.com>
8145 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8146 push_arguments. Don't set push_return_address or write_sp.
8147 (d10v_push_dummy_call): Replace d10v_push_arguments.
8148 (d10v_push_return_address, d10v_write_sp): Delete function,
8149 handled by push_dummy_call.
8151 2003-03-26 Andrew Cagney <cagney@redhat.com>
8153 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8154 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8155 regcache and dummy_addr parameters.
8156 * gdbarch.h, gdbarch.c: Re-generate.
8157 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8158 available; assume it will handle stack alignment and return
8159 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8160 legacy_push_arguments.
8161 (legacy_push_arguments): Rename default_push_arguments.
8162 * value.h (legacy_push_arguments): Rename default_push_arguments.
8163 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8164 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8165 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8166 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8167 * config/i386/tm-symmetry.h: Update.
8168 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8169 * x86-64-tdep.c (x86_64_init_abi): Update.
8170 * v850-tdep.c (v850_gdbarch_init): Update.
8171 * sparc-tdep.c (sparc_gdbarch_init): Update.
8172 * sh-tdep.c (sh_gdbarch_init): Update.
8173 * s390-tdep.c (s390_gdbarch_init): Update.
8174 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8175 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8176 * mips-tdep.c (mips_gdbarch_init): Update.
8177 * mcore-tdep.c (mcore_gdbarch_init): Update.
8178 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8179 * ia64-tdep.c (ia64_gdbarch_init): Update.
8180 * i386-tdep.c (i386_gdbarch_init): Update.
8181 * hppa-tdep.c (hppa_gdbarch_init): Update.
8182 * h8300-tdep.c (h8300_gdbarch_init): Update.
8183 * frv-tdep.c (frv_gdbarch_init): Update.
8184 * d10v-tdep.c (d10v_gdbarch_init): Update.
8185 * cris-tdep.c (cris_gdbarch_init): Update.
8186 * avr-tdep.c (avr_gdbarch_init): Update.
8187 * arm-tdep.c (arm_gdbarch_init): Update.
8188 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8189 * alpha-tdep.c (alpha_gdbarch_init): Update.
8191 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8193 * signals/signals.c (do_target_signal_to_host): Correct realtime
8196 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8198 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8199 (struct sal_chain, map_catch_names): Remove.
8200 (catch_exception_command_1): Don't call
8201 handle_gnu_4_16_catch_command.
8203 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8205 From Mark Dettinger <dettinge@de.ibm.com>:
8206 * dwarf2cfi.c (read_2u): Increment pointer by two.
8208 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8210 * signals/signals.c: Fix typos in last change.
8212 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8214 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8215 not already defined. Use __SIGRTMIN if available.
8216 (target_signal_from_host): Remove SIGRTMIN block.
8217 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8218 the signal is within the realtime range.
8220 2003-03-25 Adam Fedor <fedor@gnu.org>
8222 * Makefile.in (infrun.o): Add $(language_h)
8223 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8224 for language specific trampolines.
8225 * language.h (struct language_defn): Add skip_trampoline.
8226 (skip_language_trampoline): Declare.
8227 * language.c (unk_lang_trampoline, skip_language_trampoline):
8229 (unknown_language_defn, auto_language_defn, local_language_defn):
8230 Add ukn_lang_trampoline.
8231 * ada-lang.c (ada_language_defn): Add NULL for language
8232 specific skip_trampoline.
8233 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8234 scm-lang.c: Likewise.
8235 * objc-lang.c (objc_skip_trampoline): New function.
8236 (objc_language_defn): Add objc_skip_trampoline.
8238 2003-03-25 Andrew Cagney <cagney@redhat.com>
8240 * frame.c (get_prev_frame): Delay validating a frame's ID -
8241 non-NULL, didn't go backwards - until an attempt to unwind it to
8244 2003-03-25 Andrew Cagney <cagney@redhat.com>
8246 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8247 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8248 * gdbarch.h, gdbarch.c: Re-generate.
8249 * config/sparc/tm-sparc.h
8250 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8251 * sparc-tdep.c (sparc_gdbarch_init): Set
8252 deprecated_extra_stack_alignment_needed.
8253 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8254 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8255 extra_stack_alignment_needed.
8256 * v850-tdep.c (v850_gdbarch_init): Ditto.
8257 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8258 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8259 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8260 * cris-tdep.c (cris_gdbarch_init): Ditto.
8261 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8264 2003-03-25 Andrew Cagney <cagney@redhat.com>
8266 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8267 STORE_STRUCT_RETURN.
8268 * gdbarch.h, gdbarch.c: Regenerate.
8269 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8270 (d10v_push_arguments): Set the struct return register.
8271 (d10v_gdbarch_init): Update.
8272 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8273 * x86-64-tdep.c (x86_64_init_abi): Update.
8274 * vax-tdep.c (vax_gdbarch_init): Update.
8275 * v850-tdep.c (v850_gdbarch_init): Update.
8276 * sparc-tdep.c (sparc_gdbarch_init): Update.
8277 * sh-tdep.c (sh_gdbarch_init): Update.
8278 * s390-tdep.c (s390_gdbarch_init): Update.
8279 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8280 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8281 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8282 * mips-tdep.c (mips_gdbarch_init): Update.
8283 * mcore-tdep.c (mcore_gdbarch_init): Update.
8284 * m68k-tdep.c (m68k_gdbarch_init): Update.
8285 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8286 * ia64-tdep.c (ia64_gdbarch_init): Update.
8287 * i386-tdep.c (i386_gdbarch_init): Update.
8288 * hppa-tdep.c (hppa_gdbarch_init): Update.
8289 * h8300-tdep.c (h8300_gdbarch_init): Update.
8290 * frv-tdep.c (frv_gdbarch_init): Update.
8291 * cris-tdep.c (cris_gdbarch_init): Update.
8292 * avr-tdep.c (avr_gdbarch_init): Update.
8293 * arm-tdep.c (arm_gdbarch_init): Update.
8294 * alpha-tdep.c (alpha_gdbarch_init): Update.
8296 2003-03-25 Andrew Cagney <cagney@redhat.com>
8298 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8299 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8300 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8301 * gdbarch.h, gdbarch.c: Regenerate.
8302 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8303 call_dummy_stack_adjust_p.
8304 * vax-tdep.c (vax_gdbarch_init): Ditto.
8305 * v850-tdep.c (v850_gdbarch_init): Ditto.
8306 * sh-tdep.c (sh_gdbarch_init): Ditto.
8307 * s390-tdep.c (s390_gdbarch_init): Ditto.
8308 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8309 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8310 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8311 * mips-tdep.c (mips_gdbarch_init): Ditto.
8312 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8313 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8314 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8315 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8316 * i386-tdep.c (i386_gdbarch_init): Ditto.
8317 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8318 * frv-tdep.c (frv_gdbarch_init): Ditto.
8319 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8320 * cris-tdep.c (cris_gdbarch_init): Ditto.
8321 * avr-tdep.c (avr_gdbarch_init): Ditto.
8322 * arm-tdep.c (arm_gdbarch_init): Ditto.
8323 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8324 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8325 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8326 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8327 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8328 call_dummy_stack_adjust_p.
8329 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8330 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8331 * sparc-tdep.c (sparc32_push_arguments): Update.
8332 * valops.c (hand_function_call): Update.
8334 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8336 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8337 set_gdbarch_char_signed.
8339 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8342 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8344 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8346 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8347 (_initialize_arm_tdep): Don't set tm_print_insn.
8349 2003-03-24 Adam Fedor <fedor@gnu.org>
8351 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8352 * objc-lang.h: Add multiple inclusion protection.
8353 (start_msglist, add_msglist, end_msglist): Additional declarations.
8355 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8357 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8358 value was renamed to ARM_FLOAT_SOFT_FPA.
8360 2003-03-23 Andrew Cagney <cagney@redhat.com>
8362 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8363 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8364 * gdbarch.h, gdbarch.c: Regenerate.
8365 * valops.c (hand_function_call): Update.
8366 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8367 * frame.c (legacy_saved_regs_this_id): Update.
8368 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8369 * dummy-frame.h: Update.
8370 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8371 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8372 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8373 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8374 * config/m68k/tm-sun3.h: Update.
8375 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8377 * x86-64-tdep.c (x86_64_init_abi): Update.
8378 * vax-tdep.c (vax_gdbarch_init): Update.
8379 * v850-tdep.c (v850_gdbarch_init): Update.
8380 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8381 * sh-tdep.c (sh_gdbarch_init): Update.
8382 * s390-tdep.c (s390_gdbarch_init): Update.
8383 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8384 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8385 (frame_get_saved_regs): Update.
8386 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8387 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8388 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8389 * mips-tdep.c (mips_gdbarch_init): Update.
8390 * mcore-tdep.c (mcore_gdbarch_init): Update.
8391 * m68k-tdep.c (m68k_gdbarch_init): Update.
8392 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8393 * ia64-tdep.c (ia64_gdbarch_init): Update.
8394 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8395 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8396 (i386_interix_back_one_frame): Update.
8397 * hppa-tdep.c (hppa_gdbarch_init): Update.
8398 (hppa_init_extra_frame_info): Update.
8399 * h8300-tdep.c (h8300_gdbarch_init): Update.
8400 * frv-tdep.c (frv_gdbarch_init): Update.
8401 * cris-tdep.c (cris_gdbarch_init): Update.
8402 * avr-tdep.c (avr_gdbarch_init): Update.
8403 * arm-tdep.c (arm_gdbarch_init): Update.
8404 * alpha-tdep.c (alpha_gdbarch_init): Update.
8406 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8408 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8409 (arm_get_fp_model): Declare.
8410 * arm-tdep.c (fp_model_strings): New string array.
8411 (arm_fp_model, current_fp_model): New variables.
8412 (arm_get_fp_model): New function.
8413 (arm_set_fp): New function.
8414 (set_fp_model_sfunc): New function.
8415 (show_fp_model): New function.
8416 (_initialize_arm_tdep): Add new command to set/show the FPU.
8417 (arm_extract_return_value): Use arm_get_fp_model.
8418 (arm_store_return_value): Likewise.
8419 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8420 to initialize the floating-point data types.
8421 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8424 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8426 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8427 the current setting of each value.
8428 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8429 new_set and new_show. Use add_setshow_cmd_full and
8430 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8431 commands and add new version as subcommands of "set/show arm".
8433 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8435 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8436 (set_arm_command, show_arm_command): New functions.
8437 (_initialize_arm_tdep): Add them.
8438 (num_disassembly_options): Renamed from num_flavor_options.
8439 (valid_disassembly_styles): Renamed from valid_flavors.
8440 (disassembly_style): Renamed from disassembly_flavor.
8441 (set_disassembly_style_sfunc): Renamed from
8442 set_disassembly_flavor_sfunc.
8443 (set_disassembly_style): Renamed from set_disassembly_flavor.
8444 (arm_othernames): Updated.
8445 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8446 command. Add "set/show arm disassembly" commands. Deprecate
8447 "othernames" command.
8449 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8451 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8452 (arm-tdep.o): Depend on elf_arm_h.
8454 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8456 * Makefile.in (coff_internal_h): Define.
8457 (arm-tdep.o): Update dependencies.
8459 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8461 * arm-tdep.c (prologue_cache): Delete.
8462 (check_prologue_cache, save_prologue_cache): Delete.
8463 (arm_scan_prologue): Don't check or update the prologue_cache.
8464 (arm_gdb_arch_init): Don't initialize it.
8465 (_initialize_arm_tdep): Likewise.
8467 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8469 * MAINTAINERS (tui): Maintainer of tui code.
8471 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8473 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8474 (i386-cygwin-tdep.o): Add dependencies.
8475 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8476 * i386-cygwin-tdep.c: New file.
8477 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8478 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8480 2003-03-20 Andrew Cagney <cagney@redhat.com>
8482 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8483 (handle_inferior_event): Remove code calling
8484 DYNAMIC_TRAMPOLINE_NEXTPC.
8486 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8487 already has a full path.
8489 * main.c (gdb_main): Return 1.
8490 (captured_main): Call error to report an invalid interpreter.
8492 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8493 * alpha-osf1-tdep.c: Include "gdb_string.h".
8495 2003-03-19 J. Brobecker <brobecker@gnat.com>
8497 Continuing work to convert the hppa targets to multiarch partial.
8499 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8500 method, now that hppa_push_dummy_frame has a conformant prototype.
8501 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8502 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8503 for the switch to multiarch partial.
8505 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8507 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8508 when iss is issNull.
8510 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8512 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8513 NUM_REGS bounds check.
8515 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8517 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8518 * mips-tdep.c (gdb_assert.h): Include.
8519 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8520 (mips_register_name): Handle integer registers explicitly. Add
8522 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8523 (mips_lsi33k_reg_names): Don't list integer registers; they're
8524 handled by mips_register_name() now.
8525 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8526 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8527 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8528 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8529 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8531 2003-03-18 Andrew Cagney <cagney@redhat.com>
8533 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8535 * gdbtypes.h (print_scalar_formatted): Update declaration.
8536 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8538 2003-03-18 J. Brobecker <brobecker@gnat.com>
8540 * infrun.c (observer.h): Add #include.
8541 (normal_stop): Add call to observer_notify_normal_stop.
8542 * Makefile.in (infrun.o): Add dependency on observer.h.
8544 2003-03-18 J. Brobecker <brobecker@gnat.com>
8546 Continuing work to convert the hppa targets to multiarch partial.
8547 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8548 parameter. Reformat comment.
8549 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8550 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8551 to match new profile.
8553 2003-03-18 J. Brobecker <brobecker@gnat.com>
8555 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8556 appear to be working in any case.
8558 2003-03-18 J. Brobecker <brobecker@gnat.com>
8560 * observer.c (observer_test_first_observer): New static variable.
8561 (observer_test_second_observer): Likewise.
8562 (observer_test_third_observer): Likewise.
8563 (observer_test_first_notification_function): New static function.
8564 (observer_test_second_notification_function): Likewise.
8565 (observer_test_third_notification_function): Likewise.
8567 2003-03-17 J. Brobecker <brobecker@gnat.com>
8569 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8570 * somsolib.c (gdb_assert.h): Likewise.
8571 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8572 (somsolib.o): Likewise.
8574 2003-03-17 Andrew Cagney <cagney@redhat.com>
8576 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8577 BFD. Simplify setting of di.endian.
8579 2003-03-17 Andrew Cagney <cagney@redhat.com>
8581 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8582 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8584 From Elena Zannoni <ezannoni@redhat.com>
8585 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8586 vector and floating-point parameters.
8587 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8589 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8591 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8593 * MAINTAINERS: Remove my name from several maintainership roles.
8595 2003-03-17 Andrew Cagney <cagney@redhat.com>
8597 Fix frame off-by-one bug.
8598 * frame-unwind.h (frame_this_id_ftype): Replace
8599 frame_unwind_id_ftype.
8600 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8601 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8602 with "prev_register".
8603 * frame-unwind.c (frame_unwind_find_by_pc): Return
8604 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8606 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8607 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8608 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8609 (dummy_frame_unwind): Update.
8610 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8611 sentinel_frame_register_unwind.
8612 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8613 (sentinel_frame_unwinder): Update.
8614 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8615 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8616 * frame.c (create_sentinel_frame): Update. Initialize
8617 "prologue_cache" instead of "unwind_cache".
8618 (frame_register_unwind): Call this frame's prev_register with the
8619 next frame and this frame's prologue cache.
8620 (get_prev_frame): Simplify. Always call prev frame's this_id with
8621 this frame and prev frame's prologue cache. Document that this
8622 call is shifted one to the left when compared to the
8623 frame_register_unwind call.
8624 (legacy_saved_regs_prev_register): Replace
8625 frame_saved_regs_register_unwind.
8626 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8627 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8628 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8629 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8630 (d10v_frame_unwind): Update.
8631 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8632 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8633 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8634 "saved_regs" with "this_saved_regs".
8636 2003-03-16 Andrew Cagney <cagney@redhat.com>
8638 * frame.c (frame_pop): Don't call target_store_registers. Fix
8639 problem reported by Mark Kettenis.
8641 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8643 * i386-tdep.c (i386_register_type): Renamed from
8644 i386_register_virtual_type. Adjust function signature.
8645 (i386_gdbarch_init): Set register_type instead of
8646 deprecated_max_register_raw_size,
8647 deprecated_max_register_virtual_size and register_virtual_type.
8649 2003-03-14 Andrew Cagney <cagney@redhat.com>
8651 * frame.c (get_prev_frame): When a legacy frame, always call
8652 legacy_get_prev_frame. Simplify unwind code using assumption that
8653 the unwinder is new.
8654 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8655 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8656 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8658 2003-03-14 Andrew Cagney <cagney@redhat.com>
8660 * frame.c (get_saved_register): Delete function.
8661 * frame.h (get_saved_register): Delete declaration.
8662 * xstormy16-tdep.c: Update comment.
8663 * regcache.h: Update comments.
8664 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8665 get_saved_register and extract_address, use
8666 frame_read_unsigned_register.
8667 (sparc_frame_saved_pc): Ditto.
8668 (sparc_get_saved_register): Instead of get_saved_register, use
8670 (sparc_pop_frame): Ditto.
8671 * findvar.c: Update comments.
8672 (value_of_register): Call frame_register instead of
8674 (value_from_register): Ditto.
8675 * config/sparc/tm-sparc.h: Update comment.
8676 * breakpoint.c: Update comment.
8678 2003-03-14 Andrew Cagney <cagney@redhat.com>
8680 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8682 * gdbarch.h, gdbarch.c: Re-generate.
8683 * frame.h: Update comments.
8684 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8685 * x86-64-tdep.c (x86_64_init_abi): Update.
8686 * sparc-tdep.c (sparc_gdbarch_init): Update.
8687 * sh-tdep.c (sh_gdbarch_init): Update.
8688 * mips-tdep.c (mips_gdbarch_init): Update.
8689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8690 * cris-tdep.c (cris_gdbarch_init): Update.
8691 * ia64-tdep.c (ia64_gdbarch_init): Update.
8692 * frame.c (frame_register): Update.
8693 (get_saved_register): Update.
8694 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8696 2003-03-13 Andrew Cagney <cagney@redhat.com>
8698 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8699 * gdbarch.h, gdbarch.c: Regenerate.
8700 * valops.c (hand_function_call): Update comment.
8701 * stack.c (return_command): Update comment.
8702 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8703 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8704 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8705 * x86-64-tdep.c (x86_64_init_abi): Update.
8706 * vax-tdep.c (vax_gdbarch_init): Update.
8707 * v850-tdep.c (v850_gdbarch_init): Update.
8708 * sparc-tdep.c (sparc_gdbarch_init): Update.
8709 * sh-tdep.c (sh_gdbarch_init): Update.
8710 * s390-tdep.c (s390_gdbarch_init): Update.
8711 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8712 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8713 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8714 * mips-tdep.c (mips_gdbarch_init): Update.
8715 * mcore-tdep.c (mcore_gdbarch_init): Update.
8716 * m68k-tdep.c (m68k_gdbarch_init): Update.
8717 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8718 * ia64-tdep.c (ia64_gdbarch_init): Update.
8719 * i386-tdep.c (i386_gdbarch_init): Update.
8720 * hppa-tdep.c (hppa_gdbarch_init): Update.
8721 * h8300-tdep.c (h8300_gdbarch_init): Update.
8722 * frv-tdep.c (frv_gdbarch_init): Update.
8723 * cris-tdep.c (cris_gdbarch_init): Update.
8724 * avr-tdep.c (avr_gdbarch_init): Update.
8725 * arm-tdep.c (arm_gdbarch_init): Update.
8726 * alpha-tdep.c (alpha_gdbarch_init): Update.
8728 2003-03-13 Andrew Cagney <cagney@redhat.com>
8730 * frame.c (legacy_frame_p): New function.
8731 (get_prev_frame): Use legacy_frame_p.
8732 * frame.h (legacy_frame_p): Declare.
8734 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8736 * MAINTAINERS (write after approval): Alphabetically
8739 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8741 * MAINTAINERS (write after approval): Add myself.
8743 2003-03-12 Andrew Cagney <cagney@redhat.com>
8745 * frame.c (get_prev_frame): Rename the frame parameter to
8747 (get_next_frame, legacy_get_prev_frame): Ditto.
8749 2003-03-12 Andrew Cagney <cagney@redhat.com>
8751 * frame.c (get_current_frame): Check target_has_registers before
8752 checking target_has_stack.
8753 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8754 instead of deprecated_selected_frame.
8755 * findvar.c (value_of_register): Pass "frame", not
8756 deprecated_selected_frame, to value_of_builtin_reg.
8758 2003-03-12 Andrew Cagney <cagney@redhat.com>
8760 * regcache.c (regcache_cooked_write_signed): New function.
8761 (regcache_cooked_write_unsigned): New function.
8762 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8763 (regcache_cooked_read_signed): Fix regnum in range assertion.
8764 * regcache.h (regcache_cooked_write_signed): Declare.
8765 (regcache_cooked_write_unsigned): Declare.
8767 2003-03-12 Andrew Cagney <cagney@redhat.com>
8769 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8770 * gdbarch.h, gdbarch.c: Re-generate.
8771 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8772 * x86-64-tdep.h: Update.
8773 * x86-64-tdep.c (x86_64_init_abi): Update.
8774 * v850-tdep.c (v850_gdbarch_init): Update.
8775 * sparc-tdep.c (sparc_gdbarch_init): Update.
8776 * sh-tdep.c (sh_gdbarch_init): Update.
8777 * s390-tdep.c (s390_gdbarch_init): Update.
8778 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8779 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8780 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8781 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8782 * mips-tdep.c (mips_gdbarch_init): Update.
8783 * mcore-tdep.c (mcore_gdbarch_init): Update.
8784 * m68k-tdep.c (m68k_gdbarch_init): Update.
8785 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8786 * ia64-tdep.c (ia64_gdbarch_init): Update.
8787 * i386-tdep.c (i386_gdbarch_init): Update.
8788 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8789 * hppa-tdep.c (hppa_gdbarch_init): Update.
8790 * h8300-tdep.c (h8300_gdbarch_init): Update.
8791 * frv-tdep.c (frv_gdbarch_init): Update.
8792 * cris-tdep.c (cris_gdbarch_init): Update.
8793 * avr-tdep.c (avr_gdbarch_init): Update.
8794 * arm-tdep.c (arm_gdbarch_init): Update.
8795 * alpha-tdep.c (alpha_gdbarch_init): Update.
8796 * sh-tdep.c (sh_init_extra_frame_info): Update.
8797 (sh64_init_extra_frame_info): Update.
8798 * ns32knbsd-nat.c (frame_num_args): Update.
8799 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8800 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8801 (xstormy16_frame_chain_valid): Update.
8802 * vax-tdep.c (vax_saved_pc_after_call): Update.
8803 * v850-tdep.c (v850_frame_chain): Update.
8804 (v850_pop_frame): Update.
8805 (v850_init_extra_frame_info): Update.
8806 * sparc-tdep.c (setup_arbitrary_frame): Update.
8807 * ns32k-tdep.c (umax_frame_num_args): Update.
8808 * s390-tdep.c (s390_pop_frame_regular): Update.
8809 * mn10300-tdep.c (mn10300_frame_chain): Update.
8810 (mn10300_pop_frame_regular): Update.
8811 (mn10300_init_extra_frame_info): Update.
8812 * mips-tdep.c (mips_init_frame_pc_first): Update.
8813 (mips_frame_chain): Update.
8814 (mips_pop_frame): Update.
8815 * mcore-tdep.c (mcore_frame_chain): Update.
8816 (mcore_pop_frame): Update.
8817 (mcore_init_extra_frame_info): Update.
8818 * arch-utils.c (init_frame_pc_default): Update.
8819 * m68k-tdep.c (isi_frame_num_args): Update.
8820 (delta68_frame_num_args): Update.
8821 (news_frame_num_args): Update.
8822 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8823 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8824 (alpha_frame_chain): Update.
8825 (alpha_pop_frame): Update.
8826 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8827 (hppa_init_extra_frame_info): Update.
8828 (hppa_frame_chain): Update.
8829 (hppa_frame_chain_valid): Update.
8830 * cris-tdep.c (cris_init_extra_frame_info): Update.
8831 * avr-tdep.c (avr_init_extra_frame_info): Update.
8832 * arm-tdep.c (arm_frame_chain_valid): Update.
8833 (arm_init_extra_frame_info): Update.
8834 (arm_pop_frame): Update.
8835 * frame.c (frame_pc_unwind): Update.
8836 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8837 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8838 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8839 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8840 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8841 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8843 2003-03-12 Andrew Cagney <cagney@redhat.com>
8845 Eliminate the need for POP_FRAME.
8846 * frame.c (do_frame_unwind_register): New function.
8847 (frame_pop): When no POP_FRAME, pop the frame using register
8848 unwind and a scratch regcache.
8849 (frame_saved_regs_pop): Delete function.
8850 (trad_frame_unwinder): Update.
8851 * d10v-tdep.c (d10v_frame_pop): Delete function.
8852 (d10v_frame_unwind): Update.
8853 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8854 (sentinel_frame_unwinder): Update.
8855 * dummy-frame.c (dummy_frame_pop): Delete function.
8856 (dummy_frame_unwind): Update.
8857 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8858 (struct frame_unwind): Update.
8860 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8862 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8863 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8864 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8865 Do range checks on register number obtained from debugging info.
8866 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8867 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8868 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8870 (do_fp_register_row): Fix typo which caused double type to be
8871 used when attempting to unpack a float.
8873 2003-03-11 J. Brobecker <brobecker@gnat.com>
8875 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8877 2003-03-11 Andrew Cagney <cagney@redhat.com>
8879 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8880 frame. Problem found by Corinna Vinschen.
8882 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8884 * doublest.c (floatformat_from_length): Accept also
8885 the real size of 'long double' type.
8887 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8889 From Klee Dienes <kdienes@apple.com>:
8890 * breakpoint.c (bpstat_copy): Copy the command lines as well
8891 as the old value, to match what is freed in bpstat_clear.
8893 2003-03-10 David Carlton <carlton@math.stanford.edu>
8895 * minsyms.c (add_minsym_to_hash_table): Replace
8896 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8897 (compare_minimal_symbols, compact_minimal_symbols)
8898 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8899 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8900 of DEPRECATED_SYMBOL_MATCHES_NAME.
8901 (lookup_minimal_symbol_solib_trampoline): Ditto.
8903 2003-03-10 Andrew Cagney <cagney@redhat.com>
8905 * regcache.h (regcache_cooked_read_ftype): Define.
8906 (regcache_save, regcache_restore): Add a cooked_read parameter.
8907 * regcache.c (regcache_save, regcache_restore): Update.
8908 (do_cooked_read): New function.
8909 (regcache_cpy): Pass do_cooked_read to regcache_save and
8912 2003-03-10 Andrew Cagney <cagney@redhat.com>
8914 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8915 * gdbarch.h, gdbarch.c: Re-generate.
8916 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8917 * x86-64-tdep.h: Update.
8918 * x86-64-tdep.c (x86_64_init_abi): Update.
8919 * v850-tdep.c (v850_gdbarch_init): Update.
8920 * sparc-tdep.c (sparc_gdbarch_init): Update.
8921 * sh-tdep.c (sh_gdbarch_init): Update.
8922 * s390-tdep.c (s390_gdbarch_init): Update.
8923 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8924 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8925 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8926 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8927 * mips-tdep.c (mips_gdbarch_init): Update.
8928 * mcore-tdep.c (mcore_gdbarch_init): Update.
8929 * m68k-tdep.c (m68k_gdbarch_init): Update.
8930 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8931 * ia64-tdep.c (ia64_gdbarch_init): Update.
8932 * i386-tdep.c (i386_gdbarch_init): Update.
8933 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8934 * hppa-tdep.c (hppa_gdbarch_init): Update.
8935 * h8300-tdep.c (h8300_gdbarch_init): Update.
8936 * frv-tdep.c (frv_gdbarch_init): Update.
8937 * cris-tdep.c (cris_gdbarch_init): Update.
8938 * avr-tdep.c (avr_gdbarch_init): Update.
8939 * arm-tdep.c (arm_gdbarch_init): Update.
8940 * alpha-tdep.c (alpha_gdbarch_init): Update.
8941 * sh-tdep.c (sh_init_extra_frame_info): Update.
8942 (sh64_init_extra_frame_info): Update.
8943 * ns32knbsd-nat.c (frame_num_args): Update.
8944 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8945 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8946 (xstormy16_frame_chain_valid): Update.
8947 * vax-tdep.c (vax_saved_pc_after_call): Update.
8948 * v850-tdep.c (v850_frame_chain): Update.
8949 (v850_pop_frame): Update.
8950 (v850_init_extra_frame_info): Update.
8951 * sparc-tdep.c (setup_arbitrary_frame): Update.
8952 * ns32k-tdep.c (umax_frame_num_args): Update.
8953 * s390-tdep.c (s390_pop_frame_regular): Update.
8954 * mn10300-tdep.c (mn10300_frame_chain): Update.
8955 (mn10300_pop_frame_regular): Update.
8956 (mn10300_init_extra_frame_info): Update.
8957 * mips-tdep.c (mips_init_frame_pc_first): Update.
8958 (mips_frame_chain): Update.
8959 (mips_pop_frame): Update.
8960 * mcore-tdep.c (mcore_frame_chain): Update.
8961 (mcore_pop_frame): Update.
8962 (mcore_init_extra_frame_info): Update.
8963 * arch-utils.c (init_frame_pc_default): Update.
8964 * m68k-tdep.c (isi_frame_num_args): Update.
8965 (delta68_frame_num_args): Update.
8966 (news_frame_num_args): Update.
8967 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8968 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8969 (alpha_frame_chain): Update.
8970 (alpha_pop_frame): Update.
8971 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8972 (hppa_init_extra_frame_info): Update.
8973 (hppa_frame_chain): Update.
8974 (hppa_frame_chain_valid): Update.
8975 * cris-tdep.c (cris_init_extra_frame_info): Update.
8976 * avr-tdep.c (avr_init_extra_frame_info): Update.
8977 * arm-tdep.c (arm_frame_chain_valid): Update.
8978 (arm_init_extra_frame_info): Update.
8979 (arm_pop_frame): Update.
8980 * frame.c (frame_pc_unwind): Update.
8981 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8982 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8983 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8984 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8985 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8986 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8988 2003-03-10 Andrew Cagney <cagney@redhat.com>
8990 * gdbarch.sh (gdbarch_unwind_pc): New method.
8991 * gdbarch.h, gdbarch.c: Regenerate.
8992 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8993 but use read_pc and FRAME_SAVED_PC as fall backs.
8994 (frame_saved_regs_pc_unwind): Delete function.
8995 (trad_frame_unwinder): Update.
8996 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8997 (struct frame_unwind): Update.
8998 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8999 (dummy_frame_unwind): Update.
9000 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9001 (sentinel_frame_unwinder): Update.
9002 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9003 (d10v_frame_unwind): Update.
9004 (d10v_unwind_pc): New function.
9005 (d10v_gdbarch_init): Set unwind_pc.
9007 2003-03-10 Andrew Cagney <cagney@redhat.com>
9009 * gdbarch.h: Re-generate.
9011 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9013 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9016 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9018 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9020 2003-03-08 Andrew Cagney <cagney@redhat.com>
9022 * cli-out.c: Update copyright.
9023 (cli_out_data): Define typedef. Use instead of ui_out_data.
9025 2003-03-08 Andrew Cagney <cagney@redhat.com>
9027 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9030 2003-03-07 Andrew Cagney <cagney@redhat.com>
9032 * gdbarch.sh: Don't generate two macro definitions when an
9033 undefined macro taking no arguments.
9034 * gdbarch.h: Regenerate.
9036 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9038 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9039 (x86_64_unwind_dummy_id): New functions.
9040 (x86_64_init_abi): Register these two new functions.
9042 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9044 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9045 (x86_64_skip_prologue): Move prologue detection to
9047 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9049 2003-03-05 Andrew Cagney <cagney@redhat.com>
9051 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9052 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9053 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9054 to use unwind_dummy_id when a dummy frame.
9055 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9057 * gdbarch.h, gdbarch.c: Regneerate.
9059 2003-03-05 Andrew Cagney <cagney@redhat.com>
9061 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9062 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9063 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9066 2003-03-05 Andrew Cagney <cagney@redhat.com>
9068 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9069 (struct d10v_unwind_cache): Delete field "frameless". Replace
9070 "next_addr" with "sp_offset". Add "r11_offset".
9071 (d10v_frame_unwind_cache): Update.
9072 (prologue_find_regs): Update. When "mv r11, sp", save the
9073 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9074 RN was saved in r11_offset.
9076 2003-03-05 Andrew Cagney <cagney@redhat.com>
9078 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9079 cached PC value in the next frame.
9081 2003-03-05 Andrew Cagney <cagney@redhat.com>
9083 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9084 "id_unwind_cache" with "id".
9085 (frame_id_unwind): Delete declaration.
9086 * frame.c (frame_id_unwind): Delete function.
9087 (get_prev_frame): Call the frame id unwind method directly. Store
9088 the returned next frame's ID value in NEXT_FRAME. Note that there
9089 is a problem with the wrong unwind ID being called with the wrong
9092 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9094 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9096 2003-03-05 James Ingham <jingham@apple.com>
9097 Daniel Jacobowitz <drow@mvista.com>
9099 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9100 (auto_cp_abi): New variable.
9101 (current_cp_abi, num_cp_abis): Make static.
9102 (CP_ABI_MAX): Define.
9103 (cp_abis): Turn into an array.
9104 (value_virtual_fn_field): Fix formatting.
9105 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9107 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9108 (list_cp_abis, _initialize_cp_abi): New functions.
9109 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9110 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9111 switch_to_cp_abi. Update prototype for register_cp_abi.
9112 * Makefile.in (cp-abi.o): Update dependencies.
9113 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9114 instead of switch_to_cp_abi.
9115 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9117 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9119 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9121 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9123 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9124 * dwarf2loc.c: Include "regcache.h".
9125 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9127 * Makefile.in (dwarf2loc.o): Update dependencies.
9129 2003-03-04 Theodore A. Roth <troth@openavr.org>
9131 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9132 number of io registers reported by remote target is not a multiple of
9135 2003-03-04 David Carlton <carlton@math.stanford.edu>
9137 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9138 (lookup_symbol_aux_psymtabs): Update call to
9139 lookup_partial_symbol.
9140 (lookup_transparent_type, find_main_psymtab)
9141 (make_symbol_overload_list): Ditto.
9143 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9145 * MAINTAINERS (Write after approval): Update my email address.
9147 2003-03-03 Andrew Cagney <cagney@redhat.com>
9149 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9150 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9151 predicate. Replace MAX_REGISTER_RAW_SIZE.
9152 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9153 MAX_REGISTER_VIRTUAL_SIZE.
9154 * regcache.c (legacy_max_register_raw_size): New function.
9155 (legacy_max_register_virtual_size): New function.
9156 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9157 (MAX_REGISTER_RAW_SIZE): Define.
9158 (legacy_max_register_raw_size): Declare.
9159 (legacy_max_register_virtual_size): Declare.
9160 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9161 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9162 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9163 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9164 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9165 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9166 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9167 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9168 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9169 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9170 * vax-tdep.c (vax_gdbarch_init): Update.
9171 * v850-tdep.c (v850_gdbarch_init): Update.
9172 * sparc-tdep.c (sparc_gdbarch_init): Update.
9173 * sh-tdep.c (sh_gdbarch_init): Update.
9174 * s390-tdep.c (s390_gdbarch_init): Update.
9175 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9176 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9177 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9178 * mips-tdep.c (mips_gdbarch_init): Update.
9179 * mcore-tdep.c (mcore_gdbarch_init): Update.
9180 * m68k-tdep.c (m68k_gdbarch_init): Update.
9181 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9182 * ia64-tdep.c (ia64_gdbarch_init): Update.
9183 * i386-tdep.c (i386_gdbarch_init): Update.
9184 * hppa-tdep.c (hppa_gdbarch_init): Update.
9185 * h8300-tdep.c (h8300_gdbarch_init): Update.
9186 * frv-tdep.c (frv_gdbarch_init): Update.
9187 * cris-tdep.c (cris_gdbarch_init): Update.
9188 * avr-tdep.c (avr_gdbarch_init): Update.
9189 * arm-tdep.c (arm_gdbarch_init): Update.
9190 * alpha-tdep.c (alpha_gdbarch_init): Update.
9191 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9192 max_register_raw_size or max_register_virtual_size.
9194 2003-03-03 David Carlton <carlton@math.stanford.edu>
9196 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9197 SYMBOL_MATCHES_NAME, add comment.
9198 (SYMBOL_MATCHES_NATURAL_NAME): New.
9199 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9200 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9201 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9202 * symtab.c (lookup_partial_symbol): Use
9203 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9205 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9206 SYMBOL_MATCHES_NAME.
9209 2003-03-03 David Carlton <carlton@math.stanford.edu>
9211 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9212 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9213 by regexp matching against SYMBOL_NATURAL_NAME.
9215 2003-03-03 David Carlton <carlton@math.stanford.edu>
9217 * linespec.c (find_method): Extract code into collect_methods.
9218 (collect_methods): New.
9220 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9222 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9225 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9226 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9228 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9230 * arch-utils.c (generic_register_byte): Fix to use the loop index
9231 and not regnum when summing the size of all registers up to regnum.
9233 2003-03-01 Andrew Cagney <cagney@redhat.com>
9235 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9236 FRAME_INIT_SAVED_REGS.
9237 * gdbarch.h, gdbarch.c: Regenerate.
9238 * stack.c (frame_info): Update.
9239 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9240 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9241 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9242 * ns32k-tdep.c (ns32k_pop_frame): Update.
9243 * mips-tdep.c (mips_pop_frame): Update.
9244 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9245 * ia64-tdep.c (ia64_frame_chain): Update.
9246 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9247 (ia64_frameless_function_invocation): Update.
9248 (ia64_init_extra_frame_info): Update.
9249 (ia64_pop_frame_regular): Update.
9250 * frame.h (struct frame_info): Update comment.
9251 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9252 * frame.c (frame_saved_regs_register_unwind): Update.
9253 (frame_saved_regs_register_unwind): Update.
9254 (deprecated_generic_get_saved_register): Update.
9255 * cris-tdep.c: Update comment.
9256 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9258 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9259 * x86-64-tdep.c (x86_64_init_abi): Update.
9260 * vax-tdep.c (vax_gdbarch_init): Update.
9261 * v850-tdep.c (v850_gdbarch_init): Update.
9262 * sparc-tdep.c (sparc_gdbarch_init): Update.
9263 * sh-tdep.c (sh_gdbarch_init): Update.
9264 * s390-tdep.c (s390_gdbarch_init): Update.
9265 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9266 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9267 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9268 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9269 * mips-tdep.c (mips_gdbarch_init): Update.
9270 * mcore-tdep.c (mcore_gdbarch_init): Update.
9271 * m68k-tdep.c (m68k_gdbarch_init): Update.
9272 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9273 * ia64-tdep.c (ia64_gdbarch_init): Update.
9274 * i386-tdep.c (i386_gdbarch_init): Update.
9275 * frv-tdep.c (frv_gdbarch_init): Update.
9276 * avr-tdep.c (avr_gdbarch_init): Update.
9277 * arm-tdep.c (arm_gdbarch_init): Update.
9278 * alpha-tdep.c (alpha_gdbarch_init): Update.
9280 2003-03-01 Andrew Cagney <cagney@redhat.com>
9282 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9283 option enum and switch. When no windows, set the interpreter to
9286 2003-03-01 Andrew Cagney <cagney@redhat.com>
9288 * main.c (captured_main): Replace magic option characters with an
9291 2003-03-01 Andrew Cagney <cagney@redhat.com>
9293 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9294 INIT_EXTRA_FRAME_INFO.
9295 * gdbarch.h, gdbarch.c: Regenerate.
9296 * arm-tdep.c: Update comments.
9297 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9298 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9299 * frame.h, avr-tdep.c: Ditto.
9300 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9301 (create_new_frame, legacy_get_prev_frame): Ditto.
9302 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9303 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9304 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9305 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9306 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9307 * v850-tdep.c (v850_gdbarch_init): Ditto.
9308 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9309 * sh-tdep.c (sh_gdbarch_init): Ditto.
9310 * s390-tdep.c (s390_gdbarch_init): Ditto.
9311 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9312 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9313 * mips-tdep.c (mips_gdbarch_init): Ditto.
9314 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9315 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9316 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9317 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9318 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9319 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9320 * frv-tdep.c (frv_gdbarch_init): Ditto.
9321 * cris-tdep.c (cris_gdbarch_init): Ditto.
9322 * avr-tdep.c (avr_gdbarch_init): Ditto.
9323 * arm-tdep.c (arm_gdbarch_init): Ditto.
9324 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9325 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9327 2003-03-01 Andrew Cagney <cagney@redhat.com>
9329 * gdbarch.sh (register_type): New function with predicate.
9330 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9331 * gdbarch.h, gdbarch.c: Re-generate.
9332 * arch-utils.c (generic_register_byte): Use generic_register_size.
9333 (generic_register_size): When available, use
9334 gdbarch_register_type.
9335 * regcache.c (init_regcache_descr): When available, initialize the
9336 register type array using gdbarch_register_type. If the
9337 architecture supplies gdbarch_register_type, do not use the legacy
9339 * d10v-tdep.c (d10v_register_type): Replace
9340 d10v_register_virtual_type.
9341 (d10v_gdbarch_init): Set register_type instead of
9342 register_virtual_type.
9344 2003-03-01 Andrew Cagney <cagney@redhat.com>
9346 * Makefile.in (ax-gdb.o): Update dependencies.
9347 * ax-gdb.c: Include "regcache.h".
9348 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9349 * findvar.c (value_of_register): Ditto.
9350 * infcmd.c (default_print_registers_info): Ditto.
9352 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9354 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9355 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9357 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9359 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9362 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9364 * Makefile.in (dwarf2loc.o): Update dependencies.
9365 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9366 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9367 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9368 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9369 (locexpr_tracepoint_var_ref): New function.
9370 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9372 2003-02-28 Andrew Cagney <cagney@redhat.com>
9374 * regcache.c (register_size): New function.
9375 * regcache.h (register_size): Declare
9376 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9377 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9379 2003-02-28 David Carlton <carlton@math.stanford.edu>
9381 * linespec.c (decode_compound): Extract code into find_method.
9384 2003-02-28 J. Brobecker <brobecker@gnat.com>
9386 * Makefile.in: Add rules to build and link in observer.o.
9388 2003-02-27 J. Brobecker <brobecker@gnat.com>
9390 * observer.c: Minor comments edits.
9392 2003-02-27 J. Brobecker <brobecker@gnat.com>
9394 * observer.h, observer.c: New file.
9396 2003-02-27 Andrew Cagney <cagney@redhat.com>
9398 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9400 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9402 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9403 (M6812_OP_STS_EXT): Likewise.
9404 (m6811_prologue): Use the above to recognize prologue.
9405 (m6812_prologue): Likewise.
9407 2003-02-27 David Carlton <carlton@math.stanford.edu>
9409 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9411 (compare_psymbols): Ditto.
9412 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9414 2003-02-27 Michael Snyder <msnyder@redhat.com>
9416 * f-lang.c (build_fortran_types): New function.
9417 (_initialize_f_language): Gdbarch-register built-in fortran types.
9418 * doublest.c (extract_floating): Fix warning text.
9420 2003-02-27 Andrew Cagney <cagney@redhat.com>
9422 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9423 predicate. Replaces PUSH_DUMMY_FRAME.
9424 * gdbarch.h, gdbarch.c: Regnerate.
9425 * valops.c (hand_function_call): Update. Call
9426 generic_push_dummy_frame directly.
9427 * vax-tdep.c (vax_gdbarch_init): Update.
9428 * sparc-tdep.c (sparc_gdbarch_init): Update.
9429 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9430 * m68k-tdep.c (m68k_gdbarch_init): Update.
9431 * hppa-tdep.c (hppa_gdbarch_init): Update.
9432 * alpha-tdep.c (alpha_gdbarch_init): Update.
9433 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9434 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9435 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9436 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9437 push_dummy_frame to generic_push_dummy_frame.
9438 * v850-tdep.c (v850_gdbarch_init): Ditto.
9439 * sh-tdep.c (sh_gdbarch_init): Ditto.
9440 * s390-tdep.c (s390_gdbarch_init): Ditto.
9441 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9442 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9443 * mips-tdep.c (mips_gdbarch_init): Ditto.
9444 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9445 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9446 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9447 * i386-tdep.c (i386_gdbarch_init): Ditto.
9448 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9449 * frv-tdep.c (frv_gdbarch_init): Ditto.
9450 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9451 * cris-tdep.c (cris_gdbarch_init): Ditto.
9452 * avr-tdep.c (avr_gdbarch_init): Ditto.
9453 * arm-tdep.c (arm_gdbarch_init): Ditto.
9455 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9457 * mips-tdep.c (show_mips_abi): New function.
9458 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9459 command ``show mips abi''.
9461 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9463 From Elena Zannoni <ezannoni@redhat.com>
9464 * dbxread.c (process_one_symbol): Only record line 0 if one or
9465 more sline entries have been seen for the function.
9467 2003-02-26 Michael Chastain <mec@shout.net>
9469 * configure: Regenerate with autoconf 000227.
9471 2003-02-26 Michael Chastain <mec@shout.net>
9474 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9475 for old libc5/glibc.
9476 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9478 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9480 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9481 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9483 2003-02-26 Michael Chastain <mec@shout.net>
9485 * configure.in: New variable HAVE_UINTPTR_T.
9486 * configure, config.in: Regenerated.
9488 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9491 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9493 2003-02-25 Andrew Cagney <cagney@redhat.com>
9495 * frame.c (get_prev_frame): Add comment on check for
9496 inside_entry_func. Only check for inside_entry_file when not a
9497 dummy and not a sentinel. Check that the new frame is not inner
9500 2003-02-25 Andrew Cagney <cagney@redhat.com>
9502 * frame.c (frame_debug): New variable.
9503 (_initialize_frame): Add "set/show debug frame" command.
9504 (get_prev_frame): When frame_debug, print reason why unwind
9507 2003-02-25 Michael Chastain <mec@shout.net>
9509 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9510 to avoid uintptr_t definition problems.
9512 2003-02-25 David Carlton <carlton@math.stanford.edu>
9514 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9515 (SYMBOL_LINKAGE_NAME): Ditto.
9516 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9517 SYMBOL_LINKAGE_NAME.
9518 (struct general_symbol_info): Expand comment.
9519 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9520 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9521 (SYMBOL_MATCHES_REGEXP): Ditto.
9522 * symtab.c (symbol_natural_name): New function.
9523 * objfiles.h: Replace all uses of SYMBOL_NAME by
9524 DEPRECATED_SYMBOL_NAME.
9525 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9526 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9527 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9528 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9529 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9530 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9531 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9532 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9533 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9534 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9536 * ada-exp.y: Update copyright.
9537 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9538 * cp-valprint.c: Ditto.
9540 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9542 * infptrace.c (detach): Do not flag error if ptrace detach fails
9543 and errno is set to ESRCH.
9545 2003-02-24 Andrew Cagney <cagney@redhat.com>
9547 * infptrace.c (udot_info): Change type of udot_off to long. Use
9548 paddr when printing udot_off's value.
9550 2003-02-24 David Carlton <carlton@math.stanford.edu>
9552 * symtab.c (make_symbol_overload_list): Only read in partial
9553 symtabs containing a matching partial symbol.
9555 2003-02-24 David Carlton <carlton@math.stanford.edu>
9557 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9558 do the comparison, not strcmp.
9559 * symfile.c (compare_psymbols): Ditto.
9560 * defs.h: Declare strcmp_iw_ordered.
9561 * utils.c (strcmp_iw_ordered): New function.
9563 2003-02-24 Jim Blandy <jimb@redhat.com>
9565 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9566 support, shared libs): Remove my name from here, to better reflect
9569 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9571 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9572 (target_ops): Add to_have_continuable_watchpoint.
9573 * target.c (update_current_target): Add INHERIT line for
9574 to_have_continuable_watchpoint.
9575 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9576 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9577 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9578 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9580 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9582 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9585 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9587 * solib.c (solib_open): Call target defined search function after
9588 failing with solib-search-path.
9589 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9590 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9592 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9594 * MAINTAINERS: Add myself to Write After section.
9596 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9598 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9600 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9602 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9603 (m68hc11_add_reggroups): New function.
9604 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9605 (m68hc11_gdbarch_init): Install the reggroups.
9606 (_initialize_m68hc11_tdep): Initialize them.
9608 2003-02-21 James E Wilson <wilson@tuliptree.org>
9610 * MAINTAINERS: Update my email address.
9612 2003-02-21 David Carlton <carlton@math.stanford.edu>
9614 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9616 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9618 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9619 * symtab.h: Add opaque declarations of struct axs_value and
9621 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9622 (struct location_funcs): New type.
9623 (struct symbol): Add "loc" to aux_value.
9624 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9625 * dwarf2read.c: Include "dwarf2expr.h".
9626 (dwarf2_symbol_mark_computed): New function.
9627 (read_func_scope): Use it.
9628 (var_decode_location): New function.
9629 (new_symbol): Use it.
9630 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9632 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9633 (dwarf2expr_h, dwarf2loc_h): New variables.
9634 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9635 (dwarf2expr.o, dwarf2loc.o): New rules.
9636 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9637 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9639 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9640 * m2-exp.y (yylex): Likewise.
9641 * printcmd.c (address_info, print_frame_args): Likewise.
9642 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9643 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9644 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9645 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9646 * symtab.c (lookup_block_symbol): Likewise.
9648 2003-02-20 Adam Fedor <fedor@gnu.org>
9650 * symtab.h: Remove objc_specific struct
9651 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9652 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9653 Have language_objc use cplus_specific struct.
9655 2003-02-20 Tom Tromey <tromey@redhat.com>
9657 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9658 TYPE_NAME, when printing a String value. PR java/1075.
9660 2003-02-20 Adam Fedor <fedor@gnu.org>
9662 * objc-lang.h (find_methods): Remove declaration.
9663 * objc-lang.c (find_methods): Make static.
9665 2003-02-20 Christopher Faylor <cgf@redhat.com>
9667 * win32-nat.c (get_image_name): Check return value from
9669 (child_xfer_memory): Ditto.
9671 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9673 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9674 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9675 '${exec_prefix}' (in addition to the expansion thereof) as
9677 * configure: Rebuilt.
9679 2003-02-20 David Carlton <carlton@math.stanford.edu>
9681 * symtab.c (search_symbols): Revert the search_symbols part of my
9682 2002-12-23 patch. Add comment.
9684 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9686 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9687 * dbxread.c (elfstab_build_psymtabs): Don't call
9688 install_minimal_symbols.
9689 (stabsect_build_psymtabs): Likewise.
9690 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9692 * somread.c (som_symfile_read): Call install_minimal_symbols
9693 and do_cleanups earlier.
9694 * nlmread.c (nlm_symfile_read): Likewise.
9695 * mdebugread.c (elfmdebug_build_psymtabs): Call
9696 install_minimal_symbols and make appropriate cleanups.
9698 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9700 * solib.c (reload_shared_libraries): New function.
9701 (_initialize_solib): Add callbacks for ``set solib-search-path''
9702 and ``set solib-absolute-prefix''.
9704 2003-02-20 David Carlton <carlton@math.stanford.edu>
9706 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9708 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9709 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9710 * ada-typeprint.c (ada_typedef_print): Ditto.
9711 * ax-gdb.c (gen_var_ref): Ditto.
9712 * breakpoint.c (print_one_breakpoint): Ditto.
9713 * buildsym.c (finish_block): Ditto.
9714 * c-valprint.c (c_val_print): Ditto.
9715 * expprint.c (print_subexp): Ditto.
9716 * findvar.c (locate_var_value): Ditto.
9717 * infcmd.c (jump_command): Ditto.
9718 * linespec.c (decode_line_2, decode_compound): Ditto.
9719 * maint.c (maintenance_translate_address): Ditto.
9720 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9721 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9723 * p-valprint.c (pascal_val_print): Ditto.
9724 * stabsread.c (define_symbol): Ditto.
9725 * stack.c (print_frame, frame_info, print_block_frame_locals)
9726 (print_frame_arg_vars, return_command): Ditto.
9727 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9728 * symmisc.c (print_symbol): Ditto.
9729 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9730 (compare_search_syms, print_symbol_info, print_msymbol_info)
9731 (rbreak_command): Ditto.
9732 * tracepoint.c (tracepoints_info): Ditto.
9733 * typeprint.c (typedef_print): Ditto.
9734 * valops.c (value_of_variable, hand_function_call): Ditto.
9735 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9736 * ada-typeprint.c: Update Copyright.
9737 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9738 * tracepoint.c, cli/cli-cmds.c: Ditto.
9740 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9742 * frame.c (generic_unwind_get_saved_register): Make non-static.
9743 * frame.h (generic_unwind_get_saved_register): Declare.
9744 * mips-tdep.c (read_next_frame_reg): Fetch register from
9745 current regcache when frame is NULL.
9746 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9748 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9749 instead of frame_register_unwind().
9751 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9753 * remote-sim.c (gdbsim_insert_breakpoint)
9754 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9757 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9759 * remote.c (_initialize_remote): Add commands "set/show remote
9760 hardware-watchpoint-limit" and "set/show remote
9761 hardware-breakpoint-limit".
9762 (remote_hw_watchpoint_limit): Initialize to -1.
9763 (remote_hw_breakpoint_limit): Ditto.
9764 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9766 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9768 * coff-pe-read.c: New file - support reading of minimal symbols from a
9769 portable executable using the export table.
9770 * coff-pe-read.h: New file.
9771 * coffread.c: Include coff-pe-read.h.
9772 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9773 debugging symbols found.
9774 * Makefile.in (SFILES): Add coff-pe-read.o.
9775 (coff_pe_read_h): Define.
9776 (COMMON_OBS): Add coff-pe-read.o.
9777 (coffread.o): Add coff_pe_read_h dependency.
9778 (coff-pe-read.o): New target.
9780 2003-02-19 David Carlton <carlton@math.stanford.edu>
9782 * Makefile.in (SFILES): Add block.c.
9784 (COMMON_OBS): Add block.o.
9786 (x86-64-tdep.o): Add $(block_h).
9787 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9788 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9789 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9790 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9791 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9792 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9793 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9794 * value.h: Add opaque declaration for struct block.
9795 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9796 * ada-lang.h: Ditto.
9797 * x86-64-tdep.c: #include "block.h"
9798 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9799 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9800 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9801 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9802 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9803 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9804 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9805 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9806 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9807 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9808 * symtab.c (block_function): Ditto.
9809 (contained_in): Ditto.
9810 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9811 block.h. Add opaque declaration for struct block.
9812 * symtab.h: Move block_function and contained_in declarations to
9813 block.h. Add opaque declarations for struct block, struct
9815 (struct block): Move to block.h.
9816 (struct blockvector): Ditto.
9817 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9818 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9819 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9820 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9821 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9823 * block.c: New file.
9824 * block.h: New file.
9826 2003-02-19 Theodore A. Roth <troth@openavr.org>
9828 * avr-tdep.c (avr_extract_return_value): Remove function.
9829 (avr_store_return_value): Remove function.
9830 (avr_extract_struct_value_address): Remove function.
9831 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9833 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9835 * rs6000-tdep.c: Include "gdb_assert.h".
9836 (registers_e500): Add "acc" and "spefscr".
9837 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9838 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9839 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9841 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9843 2003-02-18 Keith Seitz <keiths@redhat.com>
9845 * Makefile.in: Add gdbtk-interps.c.
9847 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9849 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9850 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9852 2003-02-18 Andrew Cagney <cagney@redhat.com>
9854 * symtab.h (struct objfile): Add opaque declaration.
9856 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9858 From Jim Ingham <jingham@apple.com>:
9859 * dbxread.c (process_one_symbol): Use last_function_start rather
9860 than function_start_offset to find the real beginning of the
9861 current function. The latter is just the text section offset on
9862 some systems, the former is always the real function start.
9864 2003-02-17 Andrew Cagney <cagney@redhat.com>
9866 * configure.in: Revert ${target} != ${host}.
9868 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9870 * configure.in (Makefile): Use the test ${target} != ${host},
9871 instead of the absence of the "nm.h" file, to determine of the
9872 configuration non-native.
9873 * configure: Regenerate.
9875 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9877 From Brian Ford <ford@vss.fsi.com>
9879 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9880 conditionalize tui_active test.
9881 (lookup_cmd_1): Ditto.
9883 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9885 * configure.in: Add check for _etext.
9886 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9888 * config.in, configure: regenerated.
9890 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9892 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9894 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9896 * main.c (tui_version): Delete variable.
9897 (captured_main): When --tui, set interpreter_p to "tui" instead of
9898 enabling tui_version.
9899 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9901 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9902 * cli/cli-cmds.c (disassemble_command): Ditto.
9903 * defs.h (tui_version): Delete declaration.
9904 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9905 (tui-interp.o): Add rules.
9906 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9908 2003-02-14 Christopher Faylor <cgf@redhat.com>
9910 * win32-nat.c (register_loaded_dll): Correctly set address range for
9913 2003-02-12 Jason Molenda (jmolenda@apple.com)
9915 * symmisc.c (print_objfile_statistics): Include information about
9916 the number of psymtabs and symtabs in each object file.
9918 2003-02-13 Keith R Seitz <keiths@redhat.com>
9920 * main.h (struct captured_main_args): Add interpreter_p.
9921 * main.c (captured_main): Initialize interpreter_p from context.
9922 * gdb.c (main): Set interpreter_p argument.
9923 * Makefile.in (gdb.o): Add dependency for interps.h.
9925 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9927 * event-top.c (cli_command_loop): Delete declaration.
9928 (_initialize_event_loop): Delete function setting event_loop_hook.
9929 * event-top.h (cli_command_loop): Declare. Update copyright.
9930 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9931 * interps.c (current_interp_command_loop): When event_loop_p, call
9934 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9936 * interps.h (interp_command_loop_ftype): Change return type to
9939 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9941 * x86-64-tdep.c (x86_64_extract_return_value)
9942 (x86_64_store_return_value): Use regcache instead of regbuf.
9943 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9944 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9946 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9948 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9949 * aclocal.m4: Regenerate.
9950 * configure: Regenerate.
9952 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9953 TCL_LD_SEARCH_FLAGS.
9955 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9957 * dwarf2cfi.c: Reindented.
9959 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9961 * interps.c (clear_interpreter_hooks): Convert function definition
9964 2003-02-07 David Carlton <carlton@math.stanford.edu>
9966 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9968 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9970 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9971 (struct type): ...to here.
9972 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9974 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9975 (replace_type): Set length on all type variants for a given type.
9977 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9979 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9981 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9983 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9985 * Makefile.in (symm-nat.o): Update dependencies.
9986 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9987 (lynx-nat.o, ia64-linux-nat.): Ditto.
9988 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9989 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9990 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9992 * Makefile.in (inflow_h): Define.
9993 (procfs.o, inflow.o, procfs.o): Update dependencies.
9994 * inftarg.c (child_stop): Delete extern declaration of
9995 inferior_process_group. Include "inflow.h".
9996 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9997 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9998 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9999 (our_process_group, inferior_process_group): Extern declarations.
10001 * procfs.c: Include "gdb_assert.h".
10003 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10004 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10005 * jv-typeprint.c (java_type_print_base): Ditto.
10006 * typeprint.c (typedef_print): Eliminate STREQ.
10007 * cli/cli-script.c (define_command, define_command): Ditto.
10008 * main.c (captured_main): Ditto.
10009 * values.c (lookup_internalvar): Ditto.
10010 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10011 within `if' conditional.
10012 * linespec.c (decode_line_2): Ditto.
10013 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10014 (bfd_openw_with_cleanup): Ditto.
10016 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10018 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10019 legacy_extract_return_value and store_return_value to
10020 legacy_return_value.
10022 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10024 * win32-nat.c (get_relocated_section_addrs): New function. Find
10025 section load addresses for symbol handling in relocated DLLs.
10026 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10028 2003-02-05 Fred Fish <fnf@intrinsity.com>
10030 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10032 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10034 (angel_RDI_info): Ditto.
10035 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10037 (threads_continue_all_with_signals): Ditto.
10039 2003-02-05 Jim Ingham <jingham@apple.com>
10040 Keith Seitz <keiths@redhat.com>
10041 Elena Zannoni <ezannoni@redhat.com>
10042 Andrew Cagney <ac131313@redhat.com>
10044 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10045 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10046 (SUBDIR_MI_OBS): Add "mi-interp.o".
10047 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10048 (SFILES): Add "interps.c".
10049 (COMMON_OBS): Add "interps.o".
10050 (interps_h, mi_main_h): Define.
10051 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10052 (mi-main.o, main.o, event-top.o): Update dependencies.
10053 * cli/cli-interp.c: New file.
10054 * interps.h, interps.c: New files.
10055 * top.c: (gdb_init): Don't install the default interpreter, handed
10057 * main.c: Include "interps.h".
10058 (interpreter_p): Note that it should malloc'ed.
10059 (captured_command_loop): Call current_interp_command_loop.
10060 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10061 xfree and xstrdup when updating interpreter_p. Install the
10062 default interpreter. Add hack to stop mi1's copyright notice
10064 * event-top.h (gdb_setup_readline): Declare.
10065 (gdb_disable_readline): Declare.
10066 * event-top.c: Include "interps.h".
10067 (display_gdb_prompt): Call current_interp_display_prompt_p.
10068 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10069 gdb_stdlog, and gdb_stdtarg.
10070 (_initialize_event_loop): Don't call gdb_setup_readline.
10071 * cli-out.c (cli_out_set_stream): New function.
10072 * cli-out.h (cli_out_set_stream): Declare.
10074 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10076 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10077 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10078 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10079 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10080 config/i386/i386v42mp.mt: Removed.
10082 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10084 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10087 2003-02-05 Michael Chastain <mec@shout.net>
10089 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10090 2.12.1 and earlier versions.
10092 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10094 Remove orphaned hosts, targets and files.
10095 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10096 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10097 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10098 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10099 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10100 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10101 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10102 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10103 * config/sparc/tm-sp64sim.h: Delete.
10104 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10106 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10107 mips*-dec-mach3* targets.
10109 2003-02-04 Michael Chastain <mec@shout.net>
10111 * NEWS: Fix typo: sepcifying -> specifying.
10113 2003-02-04 Michael Chastain <mec@shout.net>
10115 * dwarfread.c: Add documentation on the state of dwarf-1,
10116 looking towards obsoletion.
10118 2003-02-03 Michael Chastain <mec@shout.net>
10120 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10121 gdb/testsuite/gdb.c++/pr-1023.exp.
10123 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10125 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10126 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10128 * utils.c (init_page_info): Delete reference to MPW in comments.
10129 * main.c (captured_main): Delete #ifdef MPW.
10131 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10133 * NEWS: Note that the m32r-*-elf* is obsolete.
10134 * monitor.c (monitor_expect): Obsolete reference to m32r.
10135 * configure.tgt: Mark m32r-*-elf* as obsolete.
10136 * MAINTAINERS: Mark m32k as obsolete.
10137 * m32r-rom.c: Obsolete file.
10138 * config/m32r/m32r.mt: Obsolete file.
10139 * config/m32r/tm-m32r.h: Obsolete file.
10140 * m32r-stub.c: Obsolete file.
10141 * m32r-tdep.c: Obsolete file.
10143 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10145 * NEWS: Mention that the z8k-zilog-none is obsolete.
10146 * MAINTAINERS: Mark z8k as obsolete.
10147 * configure.tgt: Obsolete the z8k-*-coff* target.
10148 * config/z8k/z8k.mt: Obsolete file.
10149 * config/z8k/tm-z8k.h: Obsolete file.
10150 * z8k-tdep.c: Obsolete file.
10152 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10154 * NEWS: Mention that the mn10200-elf is obsolete.
10155 * configure.tgt: Obsolete mn10200-*-* target.
10156 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10157 mention that the mn10200 is obsolete.
10158 * breakpoint.h: Ditto.
10159 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10160 * config/mn10200/mn10200.mt: Obsolete file.
10161 * config/mn10200/tm-mn10200.h: Obsolete file.
10162 * mn10200-tdep.c: Obsolete file.
10164 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10166 * MAINTAINERS: Mark h8500 as obsolete.
10167 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10168 * findvar.c (value_from_register): Ditto.
10169 * h8500-tdep.c: Mark file as obsolete.
10170 * config/h8500/h8500.mt: Ditto.
10171 * config/h8500/tm-h8500.h: Ditto.
10172 * NEWS: Mention that h8500 is obsolete.
10174 2003-02-04 David Carlton <carlton@math.stanford.edu>
10176 * objfiles.c (allocate_objfile): Always set name. Add comment at
10178 * jv-lang.c (get_dynamics_objfile): Add comment.
10180 2003-02-04 David Carlton <carlton@math.stanford.edu>
10182 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10183 * printcmd.c (build_address_symbolic): Replace uses of
10184 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10185 SYMBOL_NAME, and asm_demangle.
10188 2003-02-04 David Carlton <carlton@math.stanford.edu>
10190 * linespec.c (decode_compound): Extract code into
10192 (lookup_prefix_sym): New function.
10194 2003-02-04 David Carlton <carlton@math.stanford.edu>
10196 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10197 FLOAT_COERCION_BADNESS.
10198 * gdbtypes.c (rank_one_type): Replace all uses of
10199 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10201 2003-02-04 Jim Blandy <jimb@redhat.com>
10203 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10204 section, let dwarf_macinfo_section point to it, not
10207 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10209 Pointed out by Anton Blanchard <anton@samba.org>.
10210 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10211 (ppc_linux_at_sigtramp_return_path): Use it.
10213 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10215 * defs.h (streq): Add prototype.
10216 * utils.c (streq): New function.
10218 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10219 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10220 * mdebugread.c (new_symbol): Likewise.
10221 * stabsread.c (define_symbol): Likewise.
10222 * coffread.c (process_coff_symbol): Likewise.
10223 * dwarfread.c (new_symbol): Likewise.
10225 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10226 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10228 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10229 SYMBOL_INIT_DEMANGLED_NAME.
10230 * objfiles.c: Include "hashtab.h".
10231 (allocate_objfile): Call htab_set_functions_ex for the
10232 demangled_names_hash.
10233 (free_objfile): Call htab_delete for the demangled_names_hash.
10234 * objfiles.h (struct htab): Add declaration.
10235 (struct objfile): Add demangled_names_hash.
10236 * symfile.c: Include "hashtab.h".
10237 (reread_symbols): Call htab_delete for the demangled_names_hash.
10238 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10239 SYMBOL_NAME in the bcache.
10240 * symtab.c: Include "hashtab.h". Update comments.
10241 (create_demangled_names_hash, symbol_set_names): New functions.
10242 (symbol_find_demangled_name): New function, broken out from
10243 symbol_init_demangled_names.
10244 (symbol_init_demangled_names): Use it.
10245 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10246 (SYMBOL_SET_NAMES): New macro.
10247 (symbol_set_names): Add prototype.
10249 2003-02-03 Jim Blandy <jimb@redhat.com>
10251 Use a single, consistent representation for an empty minimal
10252 symbol table in an objfile.
10253 * objfiles.c (terminate_minimal_symbol_table): New function.
10254 (allocate_objfile): Call it.
10255 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10256 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10258 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10259 objfile has minimal symbols, compare minimal_symbol_count to zero,
10260 instead of comparing msymbols with NULL.
10261 * objfiles.c (have_minimal_symbols): Same.
10262 * solib-sunos.c (solib_add_common_symbols): Call
10263 terminate_minimal_symbol_table.
10264 * symfile.c (reread_symbols): Same.
10266 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10268 * s390-tdep.c (s390_address_class_type_flags)
10269 (s390_address_class_type_flags_to_name)
10270 (s390_address_class_name_to_type_flags): New functions.
10271 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10272 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10274 2003-02-03 Michael Snyder <msnyder@redhat.com>
10276 * arm-tdep.c: Fix spell-o in comment.
10278 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10280 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10281 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10282 error messages to contain BFD filename.
10284 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10286 Fix PR gdb/742 gdb/743 gdb/877
10287 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10288 (do_mixed_source_and_assembly): Use
10289 make_cleanup_ui_out_tuple_begin_end and
10290 make_cleanup_ui_out_tuple_begin_end.
10291 (do_mixed_source_and_assembly): Ditto.
10292 * thread.c (do_captured_list_thread_ids): Ditto.
10293 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10294 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10295 ui_out_tuple_end): Delete prototypes.
10296 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10297 ui_out_list_end, ui_out_tuple_end): Delete.
10299 From Kevin Buettner <kevinb@redhat.com>:
10300 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10301 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10302 (do_cleanup_table_end): New functions.
10303 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10304 Use cleanups to invoke_ui_out_tuple_end().
10305 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10306 * cli/cli-setshow.c (cmd_show_list): Use
10307 make_cleanup_ui_out_tuple_begin_end.
10309 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10311 * frame.c (frame_unwind_register): New function.
10312 (frame_unwind_unsigned_register): Use.
10313 (frame_unwind_signed_register): Use.
10314 (frame_read_register): New function.
10315 * frame.h (frame_unwind_register): Declare.
10316 (frame_read_register): Declare.
10318 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10319 and frame_unwind_register instead of read_memory, write_register
10320 and deprecated_write_register_bytes.
10322 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10324 * frame.h: Note that namelen can be negative.
10325 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10328 * NEWS: Mention that the d10v's `regs' command is deprecated.
10329 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10330 (d10v_print_registers_info): New function.
10331 (show_regs): Call d10v_print_registers_info.
10332 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10334 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10336 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10337 lost in the previous patch.
10339 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10341 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10342 * stack.c (print_frame_info_base): Output complete FRAME tuple
10343 for synthesized frames.
10345 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10347 * mips-nat.c (zerobuf): Delete.
10348 (fetch_inferior_registers): Alloc local zerobuf.
10349 (fetch_core_registers): Alloc local zerobuf.
10350 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10351 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10352 * thread-db.c (thread_db_store_registers): Ditto.
10353 * sh-tdep.c (sh_do_register): Ditto.
10354 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10355 * remote-sim.c (gdbsim_store_register): Ditto.
10356 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10357 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10358 * monitor.c (monitor_supply_register): Ditto.
10359 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10360 * mips-nat.c (fetch_inferior_registers): Ditto.
10361 * m68klinux-nat.c (fetch_register): Ditto.
10362 * lynx-nat.c (fetch_inferior_registers): Ditto.
10363 (fetch_inferior_registers): Ditto.
10364 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10365 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10366 (hpux_thread_store_registers): Ditto.
10367 * hppah-nat.c (fetch_register): Ditto.
10368 * hppab-nat.c (fetch_register): Ditto.
10369 * hppa-tdep.c (pa_register_look_aside): Ditto.
10370 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10371 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10373 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10375 * gdbarch.sh: Explictly specify all method levels. When a
10376 variable with an empty level, provide a non-multi-arch default.
10377 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10378 * gdbarch.h: Re-generate.
10379 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10380 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10382 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10384 * defs.h (host_pointer_to_address): Delete declaration.
10385 (address_to_host_pointer): Delete declaration.
10386 * utils.c (host_pointer_to_address): Delete function.
10387 (address_to_host_pointer): Delete function.
10388 * procfs.c (procfs_address_to_host_pointer): New function.
10389 * procfs.c (proc_set_watchpoint): Use.
10390 (procfs_can_use_hw_breakpoint): Update comments.
10391 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10392 (som_solib_add): Use.
10393 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10394 * hppa-tdep.c (unwind_command): Use.
10396 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10398 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10401 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10402 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10403 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10404 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10405 (define_symbol): Update.
10406 * symfile.c (generic_load): Remove references to nindy.
10407 * symtab.c: Remove references to nindy.
10409 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10411 * infcmd.c (print_float_info): Delete code conditional on
10413 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10414 * config/m68k/nm-apollo68b.h: Ditto.
10415 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10416 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10417 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10419 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10421 * config/i386/tm-i386os9k.h: Removed.
10423 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10424 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10425 they're identical to i[3456]86-*-sysv* now.
10426 * config/i386/i386v32.mh: Removed.
10427 * config/i386/xm-i386v32.h: Removed.
10428 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10430 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10432 * config/i386/i386dgux.mh: Removed.
10433 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10435 * configure.in: Fix typo.
10436 * configure: Regenerated.
10438 2003-01-31 David Carlton <carlton@math.stanford.edu>
10440 * dwarf2read.c (dwarf2_locate_sections): Set
10441 dwarf_ranges_section.
10443 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10445 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10446 * utils.c: Update comments documenting legitimate uses of PTR.
10448 * utils.c: Re-indent.
10450 * config/djgpp/fnchange.lst: Delete nindy files.
10451 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10452 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10453 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10454 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10455 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10456 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10457 * Makefile.in (init.c): Remove nindy references.
10458 (saber_gdb): Delete rule.
10459 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10460 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10462 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10463 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10464 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10465 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10466 nindy-share/stop.h.
10467 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10468 * saber.suppress: Delete file.
10470 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10472 * dbxread.c (stabs_data): New static variable.
10473 (fill_symbuf): Support an in-memory buffer for stabs data.
10474 (stabs_seek): New function.
10475 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10476 (read_ofile_symtab): Use stabs_seek.
10477 (elfstab_build_psymtabs): Take an asection* instead of
10478 an offset and size. Relocate the stabs data if necessary.
10479 Save the section* for dbx_psymtab_to_symtab.
10480 * dwarf2read.c: Add section variables for each debug section.
10481 (dwarf2_locate_sections): Fill them in.
10482 (dwarf2_read_section): Take an asection* argument.
10483 Relocate the section contents if necessary.
10484 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10485 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10486 it to dwarf2_read_section.
10487 (dwarf2_build_frame_info): Update callers.
10488 * elfread.c (elf_symfile_read): Update call to
10489 elfstab_build_psymtabs.
10490 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10491 (DBX_STAB_SECTION): New macro.
10492 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10493 * symfile.c (symfile_dummy_outputs): New function.
10494 (symfile_relocate_debug_section): New function.
10495 * symfile.h (symfile_relocate_debug_section): Add prototype.
10497 2003-01-31 Richard Henderson <rth@redhat.com>
10499 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10500 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10501 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10502 * alpha-tdep.c (alpha_register_name): Add "unique".
10503 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10504 (ALPHA_UNIQUE_REGNUM): New.
10505 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10507 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10509 * README: Remove reference to Ericsson 1800 monitor.
10510 * Makefile.in (remote-es.o): Delete rule.
10511 (ALLDEPFILES): Delete remote-es.c.
10512 * remote-es.c: Delete file.
10513 * config/m68k/es1800.mt: Delete file.
10514 * config/djgpp/fnchange.lst: Update.
10515 * configure.tgt: Delete m68*-ericsson-* target.
10517 2003-01-31 Adam Fedor <fedor@gnu.org>
10519 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10520 Remove duplicate/shadowing variable of same name.
10522 2003-01-30 Jim Blandy <jimb@redhat.com>
10524 * symfile.c (find_separate_debug_file): Assert that the objfile's
10525 directory name we compute ends with a slash, and then assume that
10526 that's so everywhere we use it.
10528 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10530 * valops.c (value_assign): Flush frame cache after stores to memory
10533 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10535 * Makefile.in (mon960-rom.o): Delete rule.
10536 * mon960-rom.c: Delete file.
10538 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10540 * d10v-tdep.c: Include "frame-unwind.h".
10541 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10543 (next_addr, uses_frame): Delete.
10544 (struct d10v_unwind_cache): Define.
10545 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10546 Use info instead of next_addr and uses_frame globals.
10547 (d10v_frame_init_saved_regs): Delete function.
10548 (d10v_init_extra_frame_info): Delete function.
10549 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10550 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10551 init_frame_pc or frame_saved_pc.
10552 (d10v_pop_frame): Delete function.
10553 (do_d10v_pop_frame): Delete function.
10554 (d10v_frame_chain): Delete function.
10555 (d10v_frame_chain_valid): Delete function.
10556 (d10v_frame_pc_unwind): New function.
10557 (d10v_frame_id_unwind): New function.
10558 (saved_regs_unwinder): New function.
10559 (d10v_frame_register_unwind): New function.
10560 (d10v_frame_pop): New function.
10561 (d10v_frame_unwind): New variable.
10562 (d10v_frame_p): New function.
10563 (d10v_frame_saved_pc): Delete function.
10564 * Makefile.in (d10v-tdep.o): Update dependencies.
10566 2003-01-30 J. Brobecker <brobecker@gnat.com>
10568 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10569 causing some regressions due to a change in the default value
10572 2003-01-29 Richard Henderson <rth@redhat.com>
10573 Elena Zannoni <ezannoni@redhat.com>
10574 Daniel Jacobowitz <drow@mvista.com>
10577 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10579 (RANGES_SECTION): New.
10580 (dwarf_ranges_buffer): New variable.
10581 (struct comp_unit_head): Add member "die".
10582 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10583 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10584 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10585 (dwarf2_locate_sections): Likewise.
10586 (dwarf2_build_psymtabs): Read .debug_ranges.
10587 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10588 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10589 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10590 Look for DW_AT_ranges and return the bounding box.
10592 2003-01-29 Brian Ford <ford@vss.fsi.com>
10594 * win32-nat.c (cygwin_pid): Removed as unused.
10595 (child_attach): Try fall back to Cygwin pid.
10597 2003-01-29 Jim Blandy <jimb@redhat.com>
10599 * objfiles.h (struct objfile): Doc fix.
10601 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10603 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10604 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10605 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10606 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10607 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10608 (FRAME_SAVED_PC): Change to a function with predicate.
10609 * gdbarch.h, gdbarch.c: Re-generate.
10611 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10613 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10615 * complaints.c (complain): Delete function.
10616 * complaints.h (struct deprecated_complaint): Delete definition.
10617 (complain): Delete declaration.
10619 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10621 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10624 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10626 * sentinel-frame.h, sentinel-frame.c: New files.
10627 * Makefile.in (frame.o): Update dependencies.
10628 (SFILES): Add sentinel-frame.c.
10629 (sentinel_frame_h): Define.
10630 (COMMON_OBS): Add sentinel-frame.o.
10631 (sentinel-frame.o): Specify dependencies.
10632 * frame.c: Include "sentinel-frame.h".
10633 (frame_register_unwind): Rewrite assuming that there is always a a
10635 (frame_register, generic_unwind_get_saved_register): Ditto.
10636 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10637 (create_sentinel_frame, unwind_to_current_frame): New functions.
10638 (get_current_frame): Rewrite using create_sentinel_frame and
10639 unwind_to_current_frame. When possible, always create a frame.
10640 (create_new_frame): Set next to the sentinel frame.
10641 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10642 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10643 ID cache when necessary.
10644 (frame_saved_regs_id_unwind): Use frame_relative_level.
10645 (deprecated_generic_get_saved_register): Use frame_relative_level,
10646 get_frame_saved_regs, get_frame_pc, get_frame_base and
10648 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10651 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10653 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10655 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10657 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10658 (maintenance_set_profile_cmd): Use error () instead of warning ().
10660 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10662 * configure.in: Check that -pg works if using --enable-profiling.
10663 Check for monstartup and _mcleanup regardless of --enable-profiling.
10664 * maint.c: Check for monstartup and _mcleanup before using them.
10665 * config.in: Regenerated.
10666 * configure: Regenerated.
10668 2003-01-24 Nick Clifton <nickc@redhat.com>
10670 * Add sh2e support:
10672 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10674 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10675 (sh2e_show_regs): New.
10676 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10677 * config/sh/tm-sh.h: Added sh2e to comments.
10679 2003-01-23 Jim Blandy <jimb@redhat.com>
10681 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10682 symbols found)" message here; we haven't checked for a separate
10683 debug info file yet, so we don't know yet.
10684 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10685 we've looked everywhere. Also, there's no need to print a special
10686 message when we're loading the separate debug info file: the one
10687 symbol_file_add prints is fine.
10689 2003-01-23 Alexander Larsson <alexl@redhat.com>
10690 Jim Blandy <jimb@redhat.com>
10692 Add support for executables whose debug info has been separated
10693 out into a separate file, leaving only a link behind.
10694 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10695 and separate_debug_objfile_backlink.
10696 (put_objfile_before): New declaration.
10697 * symfile.c: #include "filenames.h".
10698 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10699 debug info in a separate file, read that, too. Save the addrs
10700 argument, so we can use it again to read the separated debug info;
10701 syms_from_objfile modifies the table we pass it.
10702 (reread_symbols): After re-reading an objfile, call
10703 reread_separate_symbols to refresh its separate debug info
10704 objfile, if it has one.
10705 (reread_separate_symbols, find_separate_debug_file,
10706 get_debug_link_info, separate_debug_file_exists): New functions.
10707 (debug_file_directory): New global var.
10708 (_initialize_symfile): Initialize debug_file_directory, and
10709 provide the new `set debug-file-directory' command to let the user
10711 * objfiles.c (free_objfile): If this objfile has its debug info in
10712 a separate objfile, free that one too. If this is itself a
10713 separate debug info objfile, clear our parent's backlink.
10714 (put_objfile_before): New function.
10715 * utils.c (gnu_debuglink_crc32): New function.
10716 * defs.h (gnu_debuglink_crc32): New declaration.
10717 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10718 * configure.in: Handle --with-separate-debug-dir config option.
10719 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10720 * acconfig.h (DEBUGDIR): New macro.
10721 * configure, aclocal.m4, config.in: Regenerated.
10723 2003-01-22 Jim Blandy <jimb@redhat.com>
10725 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10726 like the old symbol_file_add, but taking new arguments: you can
10727 now pass in either a `struct section_addr_info' list to say where
10728 each section is loaded, or a `struct section_offsets' table. Pass
10729 these new arguments through to syms_from_objfile as appropriate.
10730 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10731 with the appropriate quiescent values for the new arguments.
10733 * symfile.c: #include "gdb_assert.h".
10734 (syms_from_objfile): Add the ability to pass in a section offset
10735 table directly, as an alternative to the section_addr_info table.
10736 Document arguments better.
10737 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10738 * symfile.h (syms_from_objfile): Update declaration.
10739 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10741 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10743 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10745 Original patch by Tom Tromey <tromey@cygnus.com> and
10746 Jason Molenda <jmolenda@apple.com>.
10747 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10748 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10749 * NEWS: Mention profiling.
10750 * configure.in (--enable-gdbtk): Fix typo.
10751 (--enable-profiling): New. Set PROFILE_CFLAGS.
10752 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10754 (profiling_state): New variable.
10755 (mcleanup_wrapper): New function.
10756 (_initialize_maint): Remove NOTYET, fix call to
10757 add_setshow_boolean_cmd for "maint set profile".
10758 * configure: Regenerated.
10760 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10762 * Makefile.in (install-gdbtk): Install PNG images too.
10764 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10766 * exec.c (text_start): Delete global variable.
10767 (exec_file_attach): Make text_start local to the function.
10768 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10769 * valops.c (hand_function_call): Delete code that handles
10770 BEFORE_TEXT_END and AFTER_TEXT_END.
10771 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10772 of CALL_DUMMY_LOCATION.
10773 * gdbarch.c: Regenerate.
10774 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10775 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10776 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10777 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10778 (text_end): Delete extern declaration.
10780 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10782 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10783 * blockframe.c (backtrace_below_main): Move to "frame.c".
10784 (frame_chain_valid): Delete check for backtrace_below_main.
10785 (_initialize_blockframe): Delete initialization, move ``set
10786 backtrace-below-main'' command to "frame.c".
10787 (do_flush_frames_sfunc): Delete function.
10788 * frame.c: Include "command.h" and "gdbcmd.h".
10789 (frame_type_from_pc): New function.
10790 (create_new_frame): Use frame_type_from_pc.
10791 (legacy_get_prev_frame): New function.
10792 (get_prev_frame): Rewrite. When an old style frame, call
10793 legacy_get_prev_frame. Otherwize, unwind the PC first.
10794 (_initialize_frame): Add ``set backtrace-below-main'' command.
10795 * Makefile.in (frame.o): Update dependencies.
10797 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10799 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10800 DEPRECATED_REGISTERS_INFO.
10802 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10804 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10805 Maintainers'. Update `Various Maintainers'.
10807 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10809 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10810 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10811 Suppress actual parameters when `-'.
10812 * gdbarch.h, gdbarch.c: Regenerate.
10814 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10816 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10817 code handling dummy frames.
10819 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10821 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10822 (struct frame_unwind): Add field pop.
10823 * frame.h (frame_pop): Declare.
10824 * frame.c (frame_saved_regs_pop): New function.
10825 (trad_frame_unwinder): Add frame_saved_regs_pop.
10826 (frame_pop): New function.
10827 * dummy-frame.c (dummy_frame_pop): New function.
10828 (discard_innermost_dummy): New function.
10829 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10830 (dummy_frame_unwind): Add dummy_frame_pop.
10831 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10832 * valops.c (hand_function_call): Ditto.
10833 * stack.c (return_command): Ditto.
10835 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10837 * cris-tdep.c: Fix function declaration indentation.
10838 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10839 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10840 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10841 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10842 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10843 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10845 2003-01-18 Michael Chastain <mec@shout.net>
10847 * README (Unpacking and Installation -- quick overview):
10848 Warn against ".../gdb-5.3/gdb/configure".
10850 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10852 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10853 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10854 (struct frame_unwind): Declare opaque.
10855 (dummy_frame_p): Declare function.
10856 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10857 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10858 * dummy-frame.c: Include "frame-unwind.h".
10859 (dummy_frame_p): New function.
10860 (dummy_frame_unwind): New variable.
10861 * frame.c: Include "frame-unwind.h".
10862 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10863 to use the new unwind field.
10864 (set_unwind_by_pc): Delete function.
10865 (create_new_frame, get_prev_frame): Set unwind field using
10866 frame_unwind_find_by_pc.
10867 (trad_frame_unwind, trad_frame_unwinder): New variables.
10868 * frame.h (trad_frame_unwind): Declare variable.
10869 (frame_id_unwind_ftype): Delete declaration.
10870 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10871 (struct frame_unwind): Declare opaque.
10872 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10873 register_unwind with a single unwind pointer.
10874 * frame-unwind.h, frame-unwind.c: New files.
10875 * Makefile.in (SFILES): Add frame-unwind.c.
10876 (frame_unwind_h): Define.
10877 (COMMON_OBS): Add frame-unwind.o.
10878 (frame-unwind.o): Specify dependencies.
10879 (frame.o, dummy-frame.o): Update dependencies.
10881 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10883 * ada-valprint.c: Eliminate PTR.
10884 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10885 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10886 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10887 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10888 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10889 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10890 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10892 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10894 * main.c (captured_main): Don't use PTR.
10895 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10896 * gdbtypes.c (lookup_primitive_typename): Ditto.
10897 (lookup_struct_elt_type): Ditto.
10898 * f-valprint.c (info_common_command): Ditto.
10899 (list_all_visible_commons): Ditto.
10900 * jv-typeprint.c (java_type_print_base): Ditto.
10902 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10903 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10904 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10905 i386-interix-nat.c and i386-interix-tdep.c. Rename
10906 m68klinux-nat.c and m68klinux-tdep.c. Rename
10907 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10908 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10909 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10910 * main.c (captured_main): Use xfree, not free.
10912 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10914 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10915 ID back using a parameter.
10916 * frame.c (frame_id_unwind): Update call.
10917 (frame_saved_regs_id_unwind): Update.
10918 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10919 * dummy-frame.h (struct frame_id): Add opaque declaration.
10920 (dummy_frame_id_unwind): Update declaration.
10922 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10924 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10926 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10928 * MAINTAINERS (Stephen P. Smith): Updated email address.
10930 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10933 * breakpoint.c (until_break_command): Add new argument. Use it to
10934 decide whether to stop only at the current frame or not.
10935 * breakpoint.h (until_break_command): Update prototype.
10936 * infcmd.c (until_command): Add new argument to until_break_command
10938 (advance_command): New function.
10939 (_initialize_infcmd): Update help string for 'until' command.
10940 Add new 'advance' command.
10942 2003-01-14 David Carlton <carlton@math.stanford.edu>
10944 * linespec.c (decode_line_1): Normalize comments.
10945 (set_flags): Ditto.
10946 (locate_first_half): Ditto.
10947 (decode_compound): Ditto.
10948 (symtab_from_filename): Ditto.
10949 (decode_all_digits): Ditto.
10950 (decode_dollar): Ditto.
10951 (find_methods): Ditto.
10952 (find_toplevel_char): Ditto.
10954 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10956 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10957 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10958 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10959 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10960 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10961 * language.c, language.h, m32r-tdep.c: Update copyright.
10962 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10963 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10964 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10965 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10966 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10967 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10969 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10971 * stabsread.h (process_later, resolve_cfront_continuation):
10973 Update copyright years.
10974 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10975 Update copyright year.
10976 * dbxread.c(struct cont_elem): Obsolete.
10977 (process_later, process_now): Obsolete functions.
10978 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10979 Update copyright year.
10980 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10981 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10982 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10983 (parse_partial_symbols): Obsolete cfront support.
10985 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10987 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10988 read_cfront_baseclasses, read_cfront_member_functions,
10989 resolve_cfront_continuation,read_cfront_static_fields,
10990 copy_cfront_struct_fields): Obsolete functions.
10991 (define_symbol, read_one_struct_field): Obsolete cfront support.
10992 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10993 Update Copyright year.
10995 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10997 * stack.c (print_frame_info, print_stack_frame_base_stub,
10998 print_stack_frame_base, show_and_print_stack_frame_stub,
10999 show_and_print_stack_frame, print_only_stack_frame_stub,
11000 print_only_stack_frame): Delete functions.
11001 (print_stack_frame_stub): Call print_frame_info instead of
11002 print_frame_info_base.
11003 (print_frame_info_base): Rename to print_frame_info.
11004 (backtrace_command_1): Call print_frame_info, instead of
11005 print_frame_info_base.
11006 (current_frame_command): Call print_stack_frame, instead of
11007 print_only_stack_frame.
11008 (frame_command): Call print_stack_frame, instead of
11009 show_and_print_stack_frame.
11010 (up_command): Ditto.
11011 (down_command): Ditto.
11012 * frame.h (print_only_stack_frame): Delete prototype.
11013 * infrun.c (normal_stop): Call print_stack_frame, instead of
11014 show_and_print_stack_frame.
11015 * thread.c (info_threads_command): Call print_stack_frame, instead
11016 of print_only_stack_frame.
11018 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11020 * README (Graphical interface to GDB): Update URL. Point at
11023 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11026 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11028 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11031 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11033 * thread-db.c (attach_thread): Prototype.
11034 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11035 thread information (ti), and valid flags (th_valid, ti_valid).
11036 (attach_thread): Move target_pid_to_str call to after the thread
11037 is added to GDB's list. Initialize the cache.
11038 (thread_get_info_callback, thread_db_map_id2thr)
11039 (thread_db_get_info): New functions.
11040 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11041 (thread_db_store_registers, thread_db_thread_alive)
11042 (thread_db_get_thread_local_address): Use them.
11043 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11044 of calling error() for threads in unknown state.
11046 (clear_lwpid_callback): New function.
11047 (thread_db_resume): Use it to clear the cache.
11049 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11051 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11052 (resume_callback): Remove dead code.
11054 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11056 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11058 * gdbarch.h, gdbarch.c: Regenerate.
11059 * stack.c (frame_info): Only initialize the saved registers when
11060 FRAME_INIT_SAVED_REGS_P.
11061 * frame.c (frame_saved_regs_register_unwind): Assert
11062 FRAME_INIT_SAVED_REGS_P.
11063 (deprecated_generic_get_saved_register): Ditto.
11065 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11067 * source.c (openp): Squelch warning about "filename".
11069 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11071 * source.c (openp): If the file does not exist don't necessarily
11074 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11077 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11078 (integer_types_same_name_p): New function.
11079 (rank_one_type): Use it.
11080 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11082 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11084 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11086 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11087 * configure.in: Add --with-sysroot.
11088 * configure: Regenerated.
11089 * main.c (gdb_sysroot): New variable.
11090 (captured_main): Initialize gdb_sysroot.
11091 * defs.h (gdb_sysroot): New extern declaration.
11092 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11094 2003-01-12 Michael Chastain <mec@shout.net>
11096 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11098 2003-01-12 Michael Chastain <mec@shout.net>
11100 * top.c (print_gdb_version): Bump copyright year to 2003.
11102 2003-01-12 David Carlton <carlton@bactrian.org>
11104 * linespec.c (symtab_from_filename): Rename variable 's' to
11107 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11109 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11111 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11113 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11115 * d10v-tdep.c: Include "gdb_assert.h".
11116 (d10v_store_return_value): Rewrite to match current interface.
11117 (d10v_extract_struct_value_address): Ditto.
11118 (d10v_extract_return_value): Ditto.
11119 (d10v_gdbarch_init): Set store_restore_value,
11120 extract_struct_value_address and extract_return_value.
11122 2003-01-12 J. Brobecker <brobecker@gnat.com>
11124 * hpread.c (set_namestring): New procedure replacing the
11125 SET_NAMESTRING macro.
11126 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11127 by calls to set_namestring.
11129 2003-01-11 J. Brobecker <brobecker@gnat.com>
11131 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11132 a compilation warning.
11133 (hpread_process_one_debug_symbol): Likewise.
11135 2003-01-10 David Carlton <carlton@math.stanford.edu>
11137 * linespec.c (decode_line_1): Rename variable 's' to
11139 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11140 (decode_dollar): Ditto.
11141 (decode_variable): Ditto.
11142 (symbol_found): Ditto.
11144 2003-01-09 Michael Chastain <mec@shout.net>
11146 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11148 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11150 * win32-nat.c (set_process_privilege): New function.
11151 (child_attach): Call set_process_privilege() to enable the
11152 SE_DEBUG_NAME user privilege if available in process token.
11154 2003-01-10 J. Brobecker <brobecker@gnat.com>
11156 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11157 compilation error in the previous revision.
11159 2003-01-09 David Carlton <carlton@math.stanford.edu>
11161 * linespec.c: Update copyright.
11163 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11165 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11166 than inferior_ptid.
11167 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11169 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11171 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11173 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11174 (frame_saved_regs_zalloc): Update.
11175 (frame_saved_regs_register_unwind): Update.
11176 (create_new_frame): Update.
11177 (get_prev_frame): Update.
11178 (frame_extra_info_zalloc): Update.
11179 (deprecated_get_frame_saved_regs): Update.
11180 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11181 * cris-tdep.c: Update comment.
11183 * somsolib.h: Fix function indentation.
11184 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11185 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11186 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11187 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11188 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11190 * infrun.c (follow_fork): Use ISO C definition.
11191 * expprint.c (print_subexp): Use xfree instead of free.
11192 * charset.c: Include "gdb_string.h" instead of <string.h>.
11193 (register_iconv_charsets): Use ISO C definition.
11194 (host_charset, target_charset): Ditto.
11195 * Makefile.in (charset.o): Update dependencies.
11196 (mi-cmd-env.o): Update dependencies.
11198 2003-01-08 Andrew Cagney <cagney@redhat.com>
11200 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11203 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11205 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11206 build directories. Save edited gdb output in Mbuild.log. If a
11207 build fails, remove any final GDB executable.
11209 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11211 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11212 replacing hex constants with function names and stripping leading
11213 file name directory prefixes.
11215 2003-01-08 Andrew Cagney <cagney@redhat.com>
11217 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11220 2003-01-08 David Carlton <carlton@math.stanford.edu>
11222 * linespec.c (decode_line_1): Move code into decode_variable.
11223 (decode_variable): New function.
11225 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11227 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11229 2003-01-08 Andrew Cagney <cagney@redhat.com>
11231 * cris-tdep.c (cris_frame_init_saved_regs): Use
11232 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11234 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11235 (sh64_nofp_frame_init_saved_regs): Ditto.
11236 (sh_fp_frame_init_saved_regs): Ditto.
11237 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11238 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11239 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11240 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11242 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11244 * minsyms.c (lookup_minimal_symbol): Update comment.
11245 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11246 (lookup_minimal_symbol_solib_trampoline): Likewise.
11248 2003-01-08 Andrew Cagney <cagney@redhat.com>
11250 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11251 frame_relative_level.
11253 * alpha-tdep.c: Use get_frame_extra_info.
11254 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11255 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11256 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11257 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11259 * alpha-tdep.c: Use get_next_frame.
11260 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11261 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11262 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11263 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11264 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11265 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11266 * xstormy16-tdep.c: Ditto.
11268 2003-01-07 Andrew Cagney <cagney@redhat.com>
11270 * alpha-tdep.c: Use get_frame_base.
11271 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11272 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11273 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11274 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11275 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11276 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11277 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11278 * config/sparc/tm-sparc.h: Ditto.
11280 2003-01-07 Andrew Cagney <cagney@redhat.com>
11282 * frame.c (deprecated_get_frame_context): New function.
11283 (deprecated_set_frame_context): New function.
11284 * frame.h (deprecated_get_frame_context): Declare.
11285 (deprecated_set_frame_context): Declare.
11286 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11287 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11289 2003-01-07 Andrew Cagney <cagney@redhat.com>
11291 * frame.c (deprecated_set_frame_next_hack): New function.
11292 (deprecated_set_frame_prev_hack): New function.
11293 * frame.h (deprecated_set_frame_next_hack): Declare.
11294 (deprecated_set_frame_prev_hack): Declare.
11295 * mcore-tdep.c (analyze_dummy_frame): Use
11296 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11297 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11299 2003-01-07 David Carlton <carlton@math.stanford.edu>
11301 * linespec.c (decode_line_1): Move code into decode_dollar.
11302 (decode_dollar): New function.
11304 2003-01-07 Andrew Cagney <cagney@redhat.com>
11306 * arm-tdep.c (arm_init_extra_frame_info): Use
11307 deprecated_update_frame_base_hack.
11308 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11309 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11310 (fix_frame_pointer): Ditto.
11311 (mn10300_analyze_prologue): Ditto.
11313 2003-01-07 Andrew Cagney <cagney@redhat.com>
11315 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11316 extra_info using frame_extra_info_zalloc.
11317 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11318 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11319 (sh64_init_extra_frame_info): Ditto.
11320 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11321 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11322 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11323 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11324 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11325 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11326 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11327 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11328 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11329 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11330 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11331 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11333 * mn10300-tdep.c (analyze_dummy_frame): Use
11334 deprecated_set_frame_extra_info_hack.
11335 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11337 2003-01-07 J. Brobecker <brobecker@gnat.com>
11339 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11340 class is not scText. These do not define "real" procedures.
11341 (parse_partial_symbols): Likewise.
11343 2003-01-06 Michael Snyder <msnyder@redhat.com>
11345 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11347 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11349 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11350 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11351 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11352 deprecated_frame_xmalloc_with_cleanup.
11353 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11354 deprecated_frame_xmalloc.
11355 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11356 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11358 2003-01-06 Andrew Cagney <cagney@redhat.com>
11360 * x86-64-linux-tdep.c: Include "osabi.h".
11361 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11363 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11365 2003-01-06 Andrew Cagney <cagney@redhat.com>
11367 * MAINTAINERS (Target Instruction Set Architectures): Update
11368 arm-elf. Can be built with -Werror, has been multiarched.
11370 * value.h (unpack_long): Make buffer parameter constant.
11371 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11372 * scm-lang.h (scm_parse): Ditto.
11373 * defs.h (extract_typed_address, extract_address): Ditto.
11374 (extract_long_unsigned_integer): Ditto.
11375 * inferior.h (unsigned_pointer_to_address): Ditto.
11376 (signed_pointer_to_address): Ditto.
11377 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11378 * gdbarch.h, gdbarch.c: Regenerate.
11379 * findvar.c (extract_long_unsigned_integer): Update.
11380 (extract_address): Update.
11381 (extract_typed_address): Update.
11382 (unsigned_pointer_to_address): Update.
11383 * values.c (unpack_long): Update.
11384 (unpack_double): Update.
11385 (unpack_pointer): Update.
11386 (unpack_field_as_long): Update.
11387 * d10v-tdep.c (d10v_pointer_to_address): Update.
11388 * avr-tdep.c (avr_pointer_to_address): Update.
11389 * scm-lang.c (scm_unpack): Update.
11390 * findvar.c (signed_pointer_to_address): Update.
11392 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11394 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11395 since it is in i386-tdep.c.
11397 2003-01-06 J. Brobecker <brobecker@gnat.com>
11399 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11400 failure introduced in the previous change.
11402 2003-01-05 Michael Chastain <mec@shout.net>
11404 * README: Remove references to deleted remote-*.c files:
11405 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11406 remote-nrom.c, remote-os9k.c, remote-udi.c.
11408 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11410 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11411 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11412 i386_get_longjmp_target.
11414 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11416 * arm-tdep.c (prologue_cache): Change to a pointer.
11417 (_initialize_arm_tdep): Allocate prologue_cache.
11418 (check_prologue_cache): Update.
11419 (save_prologue_cache): Update.
11420 (arm_gdbarch_init): Update.
11422 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11424 * stabsread.c (update_method_name_from_physname): Call complaint()
11427 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11429 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11430 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11431 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11433 * blockframe.c: Include "gdbcmd.h" and "command.h".
11434 (backtrace_below_main): New variable.
11435 (file_frame_chain_valid, func_frame_chain_valid)
11436 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11437 (generic_func_frame_chain_valid): Remove functions.
11438 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11439 (_initialize_blockframe): New function.
11440 * Makefile.in (blockframe.o): Update dependencies.
11441 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11442 comment. Call frame_chain_valid ().
11443 * frame.h: Remove old prototypes. Add prototype for
11444 frame_chain_valid and update comments to match.
11445 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11446 Remove old comment.
11447 * gdbarch.h: Regenerated.
11448 * gdbarch.c: Regenerated.
11450 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11451 set_gdbarch_frame_chain_valid.
11452 * avr-tdep.c (avr_gdbarch_init): Likewise.
11453 * cris-tdep.c (cris_gdbarch_init): Likewise.
11454 * frv-tdep.c (frv_gdbarch_init): Likewise.
11455 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11456 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11457 (i386_nw_init_abi): Likewise.
11458 (i386_gdbarch_init): Likewise.
11459 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11460 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11461 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11462 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11463 * mips-tdep.c (mips_gdbarch_init): Likewise.
11464 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11465 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11466 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11467 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11468 * s390-tdep.c (s390_gdbarch_init): Likewise.
11469 * sh-tdep.c (sh_gdbarch_init): Likewise.
11470 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11471 * v850-tdep.c (v850_gdbarch_init): Likewise.
11472 * vax-tdep.c (vax_gdbarch_init): Likewise.
11473 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11475 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11476 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11477 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11478 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11479 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11480 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11481 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11482 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11484 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11486 * Makefile.in (acconfig_h): Remove incorrect macro.
11487 (config_h): Define.
11488 (osabi.o): Update dependencies.
11489 * configure.tgt: Set gdb_osabi based on target triplet.
11490 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11491 * configure: Regenerated.
11492 * config.in: Regenerated.
11493 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11494 (GDB_OSABI_DEFAULT): Define if not already defined.
11495 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11496 (set_osabi_string): New variables.
11497 (gdbarch_register_osabi): Add new OS ABI to
11498 gdb_osabi_available_names.
11499 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11500 (set_osabi, show_osabi): New functions.
11501 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11503 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11505 * arch-utils.c (gdbarch_info_init): Set osabi to
11506 GDB_OSABI_UNINITIALIZED.
11507 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11508 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11509 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11510 * gdbarch.c: Regenerated.
11511 * gdbarch.h: Regenerated.
11512 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11514 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11515 * osabi.h (enum gdb_osabi): Move to defs.h.
11516 (gdbarch_init_osabi): Update prototype.
11517 * defs.h (enum gdb_osabi): Moved here.
11518 * Makefile.in: Update dependencies.
11520 * alpha-tdep.h: Don't include "osabi.h".
11521 (struct gdbarch_tdep): Remove osabi member.
11522 * alpha-tdep.c: Include "osabi.h".
11523 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11524 iterate over arches. Update call to gdbarch_init_osabi.
11525 (alpha_dump_tdep): Don't dump osabi.
11526 * alpha-linux-tdep.c: Include "osabi.h".
11527 * alpha-osf1-tdep.c: Include "osabi.h".
11528 * alphafbsd-tdep.c: Include "osabi.h".
11529 * alphanbsd-tdep.c: Include "osabi.h".
11531 * arm-tdep.h: Don't include "osabi.h".
11532 (struct gdbarch_tdep): Remove osabi member.
11533 * arm-tdep.c: Include "osabi.h".
11534 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11535 iterate over arches. Update call to gdbarch_init_osabi.
11536 (arm_dump_tdep): Don't dump osabi.
11537 * arm-linux-tdep.c: Include "osabi.h".
11538 * armnbsd-tdep.c: Include "osabi.h".
11540 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11541 Update call to gdbarch_init_osabi.
11543 * i386-tdep.h: Don't include "osabi.h".
11544 (struct gdbarch_tdep): Remove osabi member.
11545 * i386-tdep.c: Include "osabi.h".
11546 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11547 iterate over arches. Update call to gdbarch_init_osabi.
11548 (i386_dump_tdep): Don't dump osabi.
11549 * i386-linux-tdep.c: Include "osabi.h".
11550 * i386-sol2-tdep.c: Include "osabi.h".
11551 * i386bsd-tdep.c: Include "osabi.h".
11552 * i386gnu-tdep.c: Include "osabi.h".
11553 * i386ly-tdep.c: Include "osabi.h".
11554 * i386nbsd-tdep.c: Include "osabi.h".
11555 * i386obsd-tdep.c: Include "osabi.h".
11557 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11558 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11559 check osabi when iterating over arches. Update call to
11560 gdbarch_init_osabi.
11561 (mips_dump_tdep): Don't dump osabi.
11563 * ns32k-tdep.h: Don't include "osabi.h".
11564 (struct gdbarch_tdep): Remove.
11565 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11566 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11567 allocate tdep. Update call to gdbarch_init_osabi.
11568 (ns32k_dump_tdep): Remove.
11569 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11570 * ns32knbsd-tdep.c: Include "osabi.h".
11572 * ppc-tdep.h: Don't include "osabi.h".
11573 (struct gdbarch_tdep): Remove osabi member.
11574 * rs6000-tdep.c: Include "osabi.h".
11575 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11576 osabi when iterating over arches. Update call to
11577 gdbarch_init_osabi.
11578 (rs6000_dump_tdep): Don't dump osabi.
11579 * ppc-linux-tdep.c: Include "osabi.h".
11580 * ppcnbsd-tdep.c: Include "osabi.h".
11582 * sh-tdep.h: Don't include "osabi.h".
11583 (struct gdbarch_tdep): Remove osabi member.
11584 * sh-tdep.c: Include "osabi.h".
11585 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11586 iterate over arches. Update call to gdbarch_init_osabi.
11587 (sh_dump_tdep): Don't dump osabi.
11588 * shnbsd-tdep.c: Include "osabi.h".
11590 * sparc-tdep.c: Include "osabi.h".
11591 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11592 iterate over arches. Update call to gdbarch_init_osabi.
11593 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11596 * vax-tdep.h: Don't include "osabi.h".
11597 (struct gdbarch_tdep): Remove.
11598 * vax-tdep.c: Include "osabi.h".
11599 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11600 iterate over arches. Don't allocate tdep. Update call
11601 to gdbarch_init_osabi.
11602 (vax_dump_tdep): Remove.
11603 (_initialize_vax_tdep): Update call to gdbarch_register.
11605 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11607 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11609 (breakpoint_re_set_one): Don't fetch the value for a disabled
11612 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11614 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11615 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11616 (COERCE_FLOAT_TO_DOUBLE): Remove.
11617 * gdbarch.c: Regenerate.
11618 * gdbarch.h: Regenerate.
11619 * Makefile.in: Remove value_h from gdbarch_h.
11620 * valops.c (coerce_float_to_double): New variable.
11621 (default_coerce_float_to_double): Remove.
11622 (standard_coerce_float_to_double): Remove.
11623 (value_arg_coerce): Use coerce_float_to_double.
11624 (_initialize_valops): Add "set coerce-float-to-double".
11625 * value.h (default_coerce_float_to_double): Remove prototype.
11626 (standard_coerce_float_to_double): Remove prototype.
11628 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11630 * mdebugread.c (parse_symbol): Likewise.
11631 * stabsread.c (define_symbol): Mark all functions as prototyped.
11633 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11634 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11635 set_gdbarch_coerce_float_to_double.
11636 * arm-tdep.c (arm_gdbarch_init): Likewise.
11637 * frv-tdep.c (frv_gdbarch_init): Likewise.
11638 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11639 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11640 * mips-tdep.c (mips_gdbarch_init): Likewise.
11641 (mips_coerce_float_to_double): Remove.
11642 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11643 (rs6000_coerce_float_to_double): Remove.
11644 * s390-tdep.c (s390_gdbarch_init): Likewise.
11645 * sh-tdep.c (sh_gdbarch_init): Likewise.
11646 (sh_coerce_float_to_double): Remove.
11647 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11648 (sparc_coerce_float_to_double): Remove.
11649 * v850-tdep.c (v850_gdbarch_init): Likewise.
11650 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11651 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11652 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11653 (hppa_coerce_float_to_double): Remove prototype.
11654 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11656 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11658 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11660 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11662 Suggested by Stewart Brown <sb24@avaya.com>:
11663 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11664 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11665 (c_type_print_varspec_suffix): Likewise.
11667 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11669 * configure.in: Don't set and AC_SUBST SUBDIRS.
11670 * configure: Regenerated.
11672 * configure.in: Remove code dealing with shared libraries.
11673 * Makefile.in: Remove HLDFLAGS and HLDENV.
11674 * configure: Regenerated.
11676 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11678 * frame.c (deprecated_frame_xmalloc): New function.
11679 (deprecated_set_frame_saved_regs_hack): New function.
11680 (deprecated_set_frame_extra_info_hack): New function.
11681 * frame.h (deprecated_frame_xmalloc): Declare.
11682 (deprecated_set_frame_saved_regs_hack): Declare.
11683 (deprecated_set_frame_extra_info_hack): Declare.
11685 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11687 * configure.in: Move code that provides the --enable-gdbtk option
11688 right after the code that handles the --enable-tui option, and
11689 polish it somewhat.
11690 * configure: Regenerated.
11692 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11693 AC_CHECK_FUNCS and remove the old check for pread64.
11694 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11695 * acconfig.h (_GNU_SOURCE): Add.
11696 (HAVE_PREAD64): Remove.
11697 * configure, aclocal.m4, config.in: Regenerated.
11699 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11701 * alpha-tdep.c: Use get_frame_saved_regs.
11702 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11703 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11704 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11705 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11706 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11708 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11710 * configure.in: Remove all use of the SUBDIRS variable; add
11711 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11712 code providing the --enable-multi-ice option, and move it right in
11713 front of the code that checks whether gdbserver is supported.
11715 * configure: Regenerated.
11716 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11719 2003-01-03 Andrew Cagney <cagney@redhat.com>
11721 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11722 * avr-tdep.c, cris-tdep.c: Ditto.
11723 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11724 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11726 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11728 * configure.in: Remove --enable-netrom option.
11729 * configure: Regenerated.
11731 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11733 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11734 declaration for `struct re_pattern_buffer' instead.
11735 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11737 2003-01-03 J. Brobecker <brobecker@gnat.com>
11739 * mdebugread.c (parse_symbol): Count until the stEnd matching
11740 the structure name.
11742 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11744 * configure.in: Remove --with-cpu option.
11745 subscripts. Remove evil changequotes here.
11746 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11747 * config.in, configure: Regenerated.
11749 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11750 * configure.in: Cleanup section that sources GDB and BFD configure
11751 subscripts. Remove evil changequotes here.
11752 * config.in, configure: Regenerated.
11754 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11756 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11757 frame accessor methods.
11758 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11759 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11760 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11761 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11762 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11763 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11764 * z8k-tdep.c: Ditto.
11766 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11768 * configure.in: Remove UI_OUT configuration code.
11769 * ada-lang.c: Update assuming UI_OUT is always true.
11770 * Makefile.in (UIOUT_CFLAGS): Remove.
11771 * configure: Regenerated.
11772 * TODO: Remove blurb about elimination of -DUI_OUT.
11774 * configure.in: Move code that provides the --enable-gdbcli,
11775 --enable-gdbmi options right before the code that handles the
11776 --enable-tui option. Polish a bit.
11777 * configure: Regenerated.
11779 * configure.in: Rewrite check for GNU regex and the
11780 --without-included regex option, and move it into the "Checks for
11781 library functions" section. This makes us use the system regex
11782 again by default on systems with version 2 of the GNU C library.
11783 This was apparently broken.
11784 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11785 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11786 * config.in, configure: Regenerated.
11788 * configure.in: Move code that provides the --enable-tui option
11789 before the "Checks for libraries" section. Polish the code
11790 somewhat and set need_curses to yes if we build the TUI. Rewrite
11791 code that looks for a library providing termcap functionality to
11792 match more closely what's done in the Readline library, and move
11793 it into to the "Checks for libraries" section.
11794 * configure: Regenerated.
11795 * Makefile.in (TERMCAP): Remove variable.
11796 * config/i386/go32.mh (TERMCAP): Remove variable.
11798 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11800 * MAINTAINERS: Mention gdb_mbuild.sh.
11801 * gdb_mbuild.sh: Rewrite.
11803 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11805 * configure.in: Fix typo in last change.
11806 * config.in, configure: Regenerated.
11808 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11810 * valarith.c (value_binop): Delete obsolete code and comments.
11811 * configure.host: Ditto.
11812 * buildsym.h (make_blockvector): Ditto.
11813 * buildsym.c (make_blockvector): Ditto.
11814 * defs.h (enum language): Ditto.
11815 (chill_demangle): Ditto.
11816 * elfread.c (elf_symtab_read): Ditto.
11817 * dwarfread.c (CHILL_PRODUCER): Ditto.
11818 (set_cu_language): Ditto.
11819 (handle_producer): Ditto.
11820 * expprint.c (print_subexp): Ditto.
11821 * gdbtypes.c (chill_varying_type): Ditto.
11822 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11823 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11824 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11825 (chill_varying_type): Ditto.
11826 * language.h (_LANG_chill): Ditto.
11827 * language.c (binop_result_type, integral_type): Ditto.
11828 (character_type, string_type, structured_type): Ditto.
11829 (lang_bool_type, binop_type_check): Ditto.
11830 * stabsread.h (os9k_stabs): Ditto.
11831 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11832 (define_symbol, read_type, read_struct_fields): Ditto.
11833 (read_array_type, read_enum_type, read_huge_number): Ditto.
11834 (read_range_type, start_stabs): Ditto.
11835 * symfile.c (init_filename_language_table): Ditto.
11836 (add_psymbol_with_dem_name_to_list): Ditto.
11837 * symtab.c (symbol_init_language_specific): Ditto.
11838 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11839 * symtab.h (struct general_symbol_info): Ditto.
11840 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11841 * typeprint.c (typedef_print): Ditto.
11842 * utils.c (fprintf_symbol_filtered): Ditto.
11843 * valops.c (value_cast, search_struct_field, value_slice): Delete
11845 (varying_to_slice): Delete function.
11846 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11847 (varying_to_slice): Delete declaration.
11848 * MAINTAINERS: Update.
11850 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11852 * configure.in: Reorganize "Checks for library functions section"
11853 a bit. Remove check for `btowc' and `isascii' functions.
11854 * configure: Regenerated.
11856 * acconfig.h (_MSE_INT_H): Remove.
11857 * configure.in: Create "Checks for header files" section, and move
11858 appropriate tests there. Don't check for objlist.h, wchar.h,
11859 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11860 misdetection fix. Also add "Checks for types", "Checks for
11861 compiler characteristics" and "Checks for library functions"
11863 * config.in, configure: Regenerated.
11865 * configure.in: Create "Checks for programs" section, and move
11866 appropriate tests there.
11868 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11870 * configure.in: Create "Checks for libraries" section, and move
11871 appropriate tests there. Cleanup check for wctype in libw. Use
11872 AC_SEARCH_LIBS to see whether we need libsocket.
11873 * configure: Regenerated.
11875 For older changes see ChangeLog-2002
11881 version-control: never