1 2003-09-12 Jim Blandy <jimb@redhat.com>
3 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
4 symbol types are, by definition, in the .data section, so it is
5 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
6 If there is no .data section, there should be no N_DATA or N_DATA
9 2003-09-12 Mark Kettenis <kettenis@gnu.org>
11 * amd64fbsd-tdep.c: Fix sigtramp recognition.
12 (amd64fbsd_sigcontext_addr): Rewrite.
13 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
15 (amd64fbsd_sc_reg_offset): Initialize with correct values.
16 (amd64fbsd_init_abi): Fix typo.
18 2003-09-12 Andrew Cagney <cagney@redhat.com>
20 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
21 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
23 2003-09-12 Andrew Cagney <cagney@redhat.com>
25 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
26 "entry_file_highpc". Update comments.
27 * defs.h (deprecated_inside_entry_file): Rename
29 * blockframe.c (deprecated_inside_entry_file): Rename
31 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
32 * vax-tdep.c (vax_frame_chain): Update.
33 * sh64-tdep.c (sh64_frame_chain): Update.
34 * sh-tdep.c (sh_frame_chain): Update.
35 * rs6000-tdep.c (rs6000_frame_chain): Update.
36 * ns32k-tdep.c (ns32k_frame_chain): Update.
37 * mips-tdep.c (mips_frame_chain): Update.
38 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
39 * m32r-tdep.c (m32r_frame_this_id): Update.
40 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
41 * frv-tdep.c (frv_frame_this_id): Update.
42 * d10v-tdep.c (d10v_frame_this_id): Update.
43 * cris-tdep.c (cris_frame_chain): Update.
44 * blockframe.c (legacy_frame_chain_valid): Update.
45 * avr-tdep.c (avr_frame_this_id): Update.
46 * arm-tdep.c (arm_prologue_this_id): Update.
47 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
48 * objfiles.c (objfile_relocate): Update.
49 * mipsread.c (mipscoff_symfile_read): Update.
50 (mipscoff_symfile_read): Update.
51 * mdebugread.c (parse_partial_symbols): Update.
52 * dwarfread.c (read_file_scope): Update.
53 * dwarf2read.c (read_file_scope): Update.
54 * dbxread.c (read_dbx_symtab): Update.
55 (read_dbx_symtab): Update.
56 * coffread.c (complete_symtab): Update.
58 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
60 * top.c (quit_target): New static helper function.
61 (quit_force): Moved code to quit_target(). Call quit_target()
62 via catch_errors() to catch errors during quit.
64 2003-09-11 David Carlton <carlton@kealia.com>
66 * buildsym.c (finish_block): Use allocate_block to allocate the
68 * mdebugread.c (new_block): Add FIXME.
70 2003-09-11 David Carlton <carlton@kealia.com>
72 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
73 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
74 (recursive_dump_type): Ditto.
75 * printcmd.c (print_formatted): Ditto.
76 * typeprint.c (print_type_scalar): Ditto.
77 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
78 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
79 * cp-support.h: Declare cp_check_possible_namespace_symbols,
81 * cp-support.c: Make maint_cplus_cmd_list extern.
82 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
84 (lookup_symbol_file): Look in possible namespace blocks when
86 (initialize_namespace_symtab): New.
87 (get_possible_namespace_block, free_namespace_block)
88 (check_possible_namespace_symbols)
89 (check_possible_namespace_symbols_loop)
90 (check_one_possible_namespace_symbol)
91 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
92 (_initialize_cp_namespace): Ditto.
93 * block.h: Declare allocate_block.
94 * block.c (allocate_block): New.
95 * jv-lang.c (get_java_class_symtab): Allocate blocks via
97 * symfile.h: Update declaration of add_psymbol_to_list.
98 * symfile.c (add_psymbol_to_list): Return the partial symbol in
100 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
101 scan_partial_symbols_call.
102 (scan_partial_symbols): Add NAMESPACE argument; update calls to
104 (add_partial_symbol): If necessary, scan mangled names for names
106 (add_partial_namespace): Add NAMESPACE argument; generate partial
107 symbols associated to namespaces.
108 (add_partial_enumeration): Add NAMESPACE argument.
109 (new_symbol): Allow namespace syms.
110 (read_namespace): Generate namespace syms.
111 * objfiles.h: Add opaque declaration of struct symtab.
112 (struct objfile): Add cp_namespace_symtab member.
113 * objfiles.c (allocate_objfile): Set
114 objfile->cp_namespace_symtab.
115 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
116 dictionary_h, command_h.
118 2003-09-11 Andrew Cagney <cagney@redhat.com>
120 * rs6000-tdep.c (rs6000_push_dummy_call): Use
121 regcache_raw_write_signed to set SP_REGNUM, move the operation to
122 near the function's end.
123 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
124 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
125 regcache_raw_write_signed to set SP_REGNUM.
127 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
129 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
130 orig_addrs is set up properly.
132 2003-09-11 Andrew Cagney <cagney@redhat.com>
134 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
135 * gdbarch.h, gdbarch.c: Re-generate.
136 * infcall.c (call_function_by_hand): Update.
137 * hppa-tdep.c (hppa_push_arguments): Update.
138 * ada-lang.c (place_on_stack): Update.
139 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
140 * sparc-tdep.c (sparc_gdbarch_init): Update.
141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
142 * hppa-tdep.c (hppa_gdbarch_init): Update.
143 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
146 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
148 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
149 register do need a frame.
151 2003-09-11 Andrew Cagney <cagney@redhat.com>
153 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
154 buildable since GDB 5.0.
155 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
156 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
157 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
158 * irix4-nat.c: Delete file.
159 * config/mips/irix4.mh: Delete file.
160 * config/mips/irix3.mh: Delete file.
161 * config/mips/irix3.mt: Delete file.
162 * config/mips/tm-irix3.h: Delete file.
163 * config/mips/nm-irix3.h: Delete file.
164 * config/mips/xm-irix3.h: Delete file.
165 * config/mips/nm-irix4.h: Delete file.
166 * config/mips/xm-irix4.h: Delete file.
167 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
169 2003-09-10 J. Brobecker <brobecker@gnat.com>
171 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
172 * Makefile.in (hppa-tdep.o): Update dependencies.
174 2003-09-10 James E Wilson <wilson@specifixinc.com>
176 * MAINTAINERS: Change my e-mail address. Move to paper trail
179 2003-09-10 Kevin Buettner <kevinb@redhat.com>
181 * MAINTAINERS (frv): New ISA entry.
183 2003-09-10 Kevin Buettner <kevinb@redhat.com>
185 * frv-tdep.c (dis-asm.h): Include.
186 * Makefile.in (frv-tdep.o): Update dependencies.
188 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
190 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
191 Fix typo for high range of floating registers.
193 2003-09-09 David Carlton <carlton@kealia.com>
195 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
196 highpc initialization here out of scan_partial_symbols.
197 (scan_partial_symbols): Restructure into a recursive version,
198 calling add_partial_namespace and add_partial_enumeration when
200 (add_partial_namespace): New.
201 (add_partial_enumeration, locate_pdi_sibling): Ditto.
203 2003-09-09 Andrew Cagney <cagney@redhat.com>
205 * rs6000-tdep.c (ppc_push_return_address): Delete function.
206 (rs6000_push_dummy_call): Set LR to BP_ADDR.
207 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
208 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
210 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
211 (rs6000_push_dummy_call): Set the "TOC" register.
213 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
214 methods "max_register_raw_size", "max_register_virtual_size" or
215 "register_virtual_size".
217 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
219 * MAINTAINERS: Update my e-mail address.
221 2003-09-09 Andrew Cagney <cagney@redhat.com>
223 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
224 (rs6000_push_dummy_call): Store the struct return address.
225 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
227 2003-09-09 Andrew Cagney <cagney@redhat.com>
229 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
230 "ppc_sysv_abi_push_arguments".
231 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
232 "ppc_sysv_abi_push_arguments".
233 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
234 instead of "push_arguments".
235 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
237 2003-09-09 Andrew Cagney <cagney@redhat.com>
239 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
240 instead of CALL_DUMMY_ADDRESS.
242 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
244 * p-lang.c: Eliminate "register".
253 * objc-lang.c: Ditto.
255 2003-09-09 Nick Clifton <nickc@redhat.com>
257 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
259 2003-09-04 Andrew Cagney <cagney@redhat.com>
261 * avr-tdep.c: Include "dis-asm.h".
262 * cris-tdep.c: Include "dis-asm.h".
263 (cris_delayed_get_disassembler): Use "struct disassemble_info"
264 instead of corresponding typedef.
265 * h8300-tdep.c: Include "dis-asm.h".
266 * ia64-tdep.c: Include "dis-asm.h".
267 * i386-tdep.c: Include "dis-asm.h".
268 (i386_print_insn): Use "struct disassemble_info" instead of
269 corresponding typedef.
270 * m68k-tdep.c: Include "dis-asm.h".
271 * mcore-tdep.c: Include "dis-asm.h".
272 * mips-tdep.c: Include "dis-asm.h".
273 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
274 instead of corresponding typedef.
275 * ns32k-tdep.c: Include "dis-asm.h".
276 * s390-tdep.c: Include "dis-asm.h".
277 * sparc-tdep.c: Include "dis-asm.h".
278 * vax-tdep.c: Include "dis-asm.h".
279 * v850-tdep.c: Include "dis-asm.h".
280 * mn10300-tdep.c: Include "dis-asm.h".
281 * rs6000-tdep.c: Include "dis-asm.h".
282 * xstormy16-tdep.c: Include "dis-asm.h".
283 (_initialize_xstormy16_tdep): Delete "extern" declaration of
284 print_insn_xstormy16.
285 * Makefile.in (v850-tdep.o): Update dependencies.
286 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
287 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
288 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
289 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
290 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
291 (gdbarch_h): Remove $(dis_asm_h).
292 * disasm.c: Include "dis-asm.h".
293 (dis_asm_read_memory): Use "struct disassemble_info" instead of
294 corresponding typedef.
295 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
296 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
297 * gdbarch.sh: Do not include "dis-asm.h".
298 (struct disassemble_info): Declare opaque.
299 (TARGET_PRINT_INSN): Update declaration.
300 * gdbarch.h, gdbarch.c: Re-generate.
302 2003-09-08 Andrew Cagney <cagney@redhat.com>
304 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
305 CALL_DUMMY_ADDRESS, change to a predicate.
306 * gdbarch.h, gdbarch.c: Re-generate.
307 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
308 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
309 * infcall.c (call_function_by_hand): Ditto.
310 * sparc-tdep.c (sparc_push_return_address): Ditto.
311 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
312 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
313 CALL_DUMMY_ADDRESS with entry_point_address.
314 * v850-tdep.c (v850_push_return_address): Ditto.
315 * s390-tdep.c (s390_push_return_address): Ditto.
316 * rs6000-tdep.c (ppc_push_return_address): Ditto.
317 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
318 * mcore-tdep.c (mcore_push_return_address): Ditto.
319 * cris-tdep.c (cris_push_return_address): Ditto.
320 * arm-tdep.c (arm_push_return_address): Ditto.
322 2003-09-08 Andrew Cagney <cagney@redhat.com>
324 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
325 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
326 and REG_UNMODIFIED to REG_SAME_VALUE.
327 (execute_cfa_program): Update.
328 (dwarf2_frame_cache): Update. Initialize table to
329 REG_UNSPECIFIED, complain if CFI fails to specify a register's
331 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
333 2003-09-08 Andrew Cagney <cagney@redhat.com>
335 * gnu-nat.c: Remove "inline" function attribute.
336 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
338 2003-09-08 Kevin Buettner <kevinb@redhat.com>
340 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
343 2003-09-08 Kevin Buettner <kevinb@redhat.com>
345 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
346 (frame_extra_info): Rename this struct to frv_unwind_cache.
347 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
348 Add fields ``prev_sp'' and ``base''.
349 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
350 (frv_saved_pc_after_call, frv_init_extra_frame_info)
351 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
353 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
354 Revise all callers. Fill in the unwind cache argument and make
355 other adjustments to account for new frame mechanisms.
356 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
357 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
358 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
359 (frv_frame_unwind, frv_frame_base): New structs.
360 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
361 additional arguments expected by this method and adjust function
363 (frv_gdbarch_init): Remove calls to the following functions:
364 set_gdbarch_deprecated_init_frame_pc(),
365 set_gdbarch_deprecated_saved_pc_after_call(),
366 set_gdbarch_deprecated_frame_chain(),
367 set_gdbarch_deprecated_frame_saved_pc(),
368 set_gdbarch_deprecated_frame_init_saved_regs(),
369 set_gdbarch_deprecated_push_arguments(),
370 set_gdbarch_deprecated_push_return_address(),
371 set_gdbarch_deprecated_pop_frame(),
372 set_gdbarch_deprecated_call_dummy_words(),
373 set_gdbarch_deprecated_sizeof_call_dummy_words(),
374 set_gdbarch_deprecated_init_extra_frame_info(),
375 set_gdbarch_deprecated_dummy_write_sp(), and
376 set_gdbarch_deprecated_pc_in_call_dummy().
377 Add calls to the following functions:
378 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
379 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
380 frame_base_set_default().
381 * Makefile.in (frv-tdep.o): Update dependencies.
383 2003-09-09 Mark Kettenis <kettenis@gnu.org>
385 * dwarf2-frame.c (read_encoded_value): Add support for
386 DW_EH_PE_aligned encoding.
388 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
390 * infrun.c (normal_stop): Don't print a message if the inferior
393 2003-09-08 Jim Blandy <jimb@redhat.com>
395 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
396 * dbxread.c: #include "gdb_assert.h".
397 (read_dbx_symtab): If the objfile has no .data section, use the
398 section index for the .bss section instead.
400 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
402 * frame.c (deprecated_safe_get_selected_frame): New function.
403 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
404 * findvar.c (read_var_value): Call it.
406 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
408 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
409 (sh64-tdep.o): Add dependencies.
410 * configure.tgt: Add FIXME to sh-*-linux*.
411 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
412 (sh_gdbarch_init): Always set correct sh_show_regs function
413 pointer. Call sh64_gdbarch_init() if machine type is sh5.
414 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
415 * sh64-tdep.c: New file, containing all sh64 related code from
417 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
418 * config/sh/linux.mt (TDEPFILES): Ditto.
419 * config/sh/nbsd.mt (TDEPFILES): Ditto.
420 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
421 * config/sh/wince.mt (TDEPFILES): Ditto.
423 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
425 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
426 (stop_wait_callback): Handle !lp->signalled also.
427 (lin_lwp_has_pending, flush_callback): New functions.
428 (lin_lwp_wait): Call flush_callback.
429 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
430 (linux_proc_pending_signals): New function.
431 * linux-nat.h (linux_proc_pending_signals): Add prototype.
433 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
435 From Nick Kelsey <nickk@ubicom.com>:
436 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
437 when the stop PC is at the beginning of a function also.
439 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
441 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
442 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
444 2003-09-06 Mark Kettenis <kettenis@gnu.org>
446 * sol-thread.c: Include "gdb_string.h".
448 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
450 * gcore.c: Reorder include files in alphabetical order. Include
451 "gdb_assert.h". Various coding style fixes.
452 (derive_stack_segment, derive_heap_segment): Replace check for
453 non-null BOTTOM and TOP with gdb_assert.
454 (derive_heap_segment): Replace check for successful creation of
455 ZERO with gdb_assert.
456 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
458 2003-09-04 Andrew Cagney <cagney@redhat.com>
460 * thread-db.c (verbose_dlsym): New function.
461 (thread_db_load): Use verbose_dlsym
462 (thread_db_new_objfile): Print that libthread_db was loaded, and
463 that thread debugging was enabled.
465 2003-09-04 Andrew Cagney <cagney@redhat.com>
467 * configure.tgt: Add "mips64*-*-*" target. Delete
468 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
469 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
470 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
471 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
472 mips*-sony-*, and mips64*-*-elf* targets.
473 * config/mips/embedl.mt: Delete file.
474 * config/mips/embedl64.mt: Delete file.
475 * config/mips/mips.mt: Delete file.
476 * config/mips/mips64.mt: Delete file.
477 * config/mips/tm-embed.h: Delete file.
478 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
479 * config/mips/embed64.mt: Delete out-of-date comment.
481 2003-09-04 Andrew Cagney <cagney@redhat.com>
483 * hppa-tdep.c (hppa_gdbarch_init): Set
484 "have_nonsteppable_watchpoint".
485 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
486 * mips-tdep.c (mips_dump_tdep): Do not print
487 HAVE_NONSTEPPABLE_WATCHPOINT.
488 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
489 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
490 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
491 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
493 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
495 * breakpoint.c (watchpoint_check): Remove accidentally checked in
496 unused code. Add comment.
498 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
500 * breakpoint.c (watchpoint_check): Check for pc being in an
501 epilogue if watchpoint frame couldn't be found.
503 2003-09-04 Andrew Cagney <cagney@redhat.com>
505 * Makefile.in: Re-generate all dependencies.
507 2003-09-03 Andrew Cagney <cagney@redhat.com>
509 * arch-utils.h (legacy_print_insn): Delete declaration.
510 * arch-utils.c (legacy_print_insn): Delete function.
511 * disasm.c (deprecated_tm_print_insn_info): Delete.
512 (_initialize_disasm): Delete function, contained code initializing
513 deprecated_tm_print_insn_info.
514 * gdbarch.sh (deprecated_tm_print_insn): Delete.
515 (deprecated_tm_print_insn_info): Delete.
516 (TARGET_PRINT_INSN): Do not provide a default.
517 * gdbarch.h, gdbarch.c: Re-generate.
519 2003-09-03 Andrew Cagney <cagney@redhat.com>
521 * disasm.c (fprintf_disasm): New function.
522 (gdb_disassemble_info): Call "init_disassemble_info", instead of
523 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
524 reverts 2003-08-14 change.
525 (_initialize_disasm): Call "init_disassemble_info", instead of
526 INIT_DISASSEMBLE_INFO_NO_ARCH.
528 2003-09-03 Michael Snyder <msnyder@redhat.com>
530 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
532 2003-09-03 Andrew Cagney <cagney@redhat.com>
534 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
535 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
536 * symfile.c (syms_from_objfile): Update.
537 (reread_symbols): `Update
538 * exec.c (exec_file_attach): Update.
539 (exec_file_attach): Update.
540 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
542 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
544 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
546 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
548 (arm_get_cache): Delete macro.
549 (struct arm_prologue_cache): Update comments. Make saved_regs into
550 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
552 (thumb_scan_prologue): Update for cache changes. Don't call
553 DEPRECATED_PC_IN_CALL_DUMMY.
554 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
555 argument and use it in desperation search for our prologue. Do not
556 search past the specified PC.
557 (arm_make_prologue_cache): Simplify.
559 (arm_prologue_this_id, arm_prologue_prev_register)
560 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
561 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
562 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
563 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
564 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
566 (arm_frame_chain_valid, arm_find_callers_reg)
567 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
568 (arm_pop_frame): Delete obsolete methods.
569 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
571 (arm_gdbarch_init): Update for new frame methods. Register prologue
572 and sigtramp unwinders. Set the default frame base method.
574 * Makefile.in (arm-tdep.o): Update dependencies.
575 * varobj.c (find_frame_addr_in_frame_chain): Call
576 get_frame_base_address.
577 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
579 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
581 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
582 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
583 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
584 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
585 Take NEXT_FRAME and CACHE arguments. Call
586 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
587 Set unwound_pc in CACHE instead of modifying the frame argument.
588 Don't bother checking the frame type when looking for sigtramp
590 (arm_make_prologue_cache, arm_frame_chain)
591 (arm_init_extra_frame_info): New functions.
593 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
595 * arm-tdep.c (arm_get_cache): Define.
596 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
597 unwound_sp, unwound_pc, and saved_regs.
598 (thumb_scan_prologue): Take a cache instead of the frame.
599 (arm_scan_prologue): Likewise.
600 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
601 instead of a temporary frame.
602 (arm_init_extra_frame_info): Allocate and use a cache.
603 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
605 2003-09-03 Andrew Cagney <cagney@redhat.com>
607 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
608 * config/mips/wince.mt (TM_CLIBS): Ditto.
609 * config/sh/wince.mt (TM_CLIBS): Ditto.
610 * config/pa/hppa64.mt (TM_CLIBS): Delete.
611 * config/sparc/sp64.mt (CC): Delete.
613 2003-09-03 Andrew Cagney <cagney@redhat.com>
615 * defs.h: Do not include "arch-utils.h".
616 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
618 * configure.in (GDB_MULTI_ARCH): Do not define.
619 * configure, config.in: Regenerate.
620 * configure.tgt: Do not set variable "gdb_multi_arch".
621 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
622 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
623 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
624 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
625 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
626 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
627 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
628 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
629 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
630 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
631 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
632 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
633 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
634 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
635 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
636 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
637 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
638 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
640 2003-08-30 Michael Chastain <mec@shout.net>
642 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
643 * config/m68k/nm-hp300hpux.h: Delete.
644 * config/m68k/tm-hp300hpux.h: Delete.
645 * config/m68k/xm-hp300hpux.h: Delete.
646 * config/m68k/xm-hp300bsd.h: Delete.
647 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
648 tm-hp300hpux.h, xm-hp300hpux.h.
649 * somsolib.c: Remove comment about hp300 shared libraries.
651 2003-08-31 Mark Kettenis <kettenis@gnu.org>
653 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
654 Only define PTRACE_GET_THREAD_AREA is not already defined.
655 Various style fixes in code and comments and some additional
656 spelling fixes in comments. Move after functions dealing with
658 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
661 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
662 frame_unwind_register_unsigned instead of
663 frame_unwind_unsigned_register.
665 2003-08-30 Mark Kettenis <kettenis@gnu.org>
667 * configure.in: Search for gethostbyname in libnsl.
668 * configure: Regenerated.
670 2003-08-29 Mark Kettenis <kettenis@gnu.org>
672 * configure.in: Remove redundant AC_MSG_RESULT in check for
673 uintptr_t in stdint.h.
674 * configure: Regenerated.
676 * amd64-nat.h (struct regcache): Add opaque declaration.
678 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
679 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
680 Change "register array" to "register cache" in comments.
681 (x86_64_linux_gregset64_reg_offset): New variable.
682 (GETREGS_SUPPLIES): Remove macro.
683 (supply_gregset): Call amd64_supply_native_gregset instead of
684 x86_64_linux_supply_gregset.
685 (fill_gregset): Rename `regno' to `regnum'. Call
686 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
687 (store_regs): Rename `regno' to `regnum'.
688 (store_fpregs): Rename `regno' to `regnum'.
689 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
690 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
691 Reorganize function a bit.
692 (store_inferior_registers): Rename `regno' to `regnum'. Use
693 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
694 Reorganize function a bit.
695 (_initialize_x86_64_linux_nat): New function.
696 * config/i386/x86-64linux.mh.
698 2003-08-29 Andrew Cagney <cagney@redhat.com>
700 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
701 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
702 (target_remove_watchpoint): Delete macro.
703 (target_insert_watchpoint): Delete macro.
704 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
705 (remote_mips_stopped_by_watchpoint): Delete declaration.
706 (remote_mips_remove_watchpoint): Delete declaration.
707 (remote_mips_set_watchpoint): Delete declaration.
708 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
709 * remote-mips.c (_initialize_remote_mips): Set
710 "to_insert_watchpoint", "to_stopped_by_watchpoint",
711 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
712 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
713 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
714 (mips_stopped_by_watchpoint): Rename
715 remote_mips_stopped_by_watchpoint.
716 (mips_can_hardware_watchpoint): Rename
717 remote_mips_can_use_hardware_watchpoint, update function
720 2003-08-29 Mark Kettenis <kettenis@gnu.org>
722 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
723 USER_DS. We haven't given them a register number yet.
725 * amd64-nat.h: New file.
726 * amd64-nat.c: New file.
727 * amd64fbsd-nat.c: Include "amd64-nat.h".
728 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
729 (amd64fbsd32_r_reg_offset): New variable.
730 (supply_gregset): Simply call amd64_supply_native_gregset.
731 (fill_gregset): Rename `regno' to `regnum'. Simply call
732 amd64_collect_native_gregset.
733 (fill_fpregset): Rename `regno' to `regnum'.
734 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
735 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
736 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
737 `fpregset_t'. Call amd64_supply_native_gregset instead of
738 supply_gregset. Call x86_64_supply_fxsave instead of
740 (store_inferior_registers): Rename `regno' to `regnum'. Replace
741 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
742 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
743 `fpregset_t'. Call amd64_collect_native_gregset instead of
744 fill_gregset. Call x86_64_collect_fxsave instead of
746 (_initialize_am64fbsd_nat): Initialize
747 amd64_native_gregset32_reg_offset and
748 amd64_native_gregset64_reg_offset.
749 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
751 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
752 null pointer. Fix typo in comment.
754 * regcache.c (supply_register): Reimplement to call
756 (regcache_collect): Reimplement by calling regcache_raw_collect.
758 2003-08-28 Mark Kettenis <kettenis@gnu.org>
760 * regcache.c (register_buffer): Consitify first argument.
761 (regcache_raw_supply, regcache_raw_collect): New
764 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
766 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
767 by Nathan J. Williams.
769 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
771 * lin-lwp.c (wait_lwp): New function, copied from
772 stop_wait_callback. Clean up.
773 (stop_wait_callback): Use wait_lwp.
775 2003-08-28 Andrew Cagney <cagney@redhat.com>
777 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
778 flavour and disassembler options.
779 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
780 (mips_gdbarch_init): Set "print_insn". Delete initialization of
781 deprecated_tm_print_insn_info.
783 2003-08-27 Andrew Cagney <cagney@redhat.com>
785 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
786 Use target_read_memory.
787 (s390_get_frame_info): Update. Do not reference
788 deprecated_tm_print_insn_info.
789 (s390_check_function_end, s390_is_sigreturn): Ditto.
791 2003-08-27 Andrew Cagney <cagney@redhat.com>
793 * Makefile.in (cris-tdep.o): Update dependencies.
794 * cris-tdep.c: Include "gdb_assert.h".
795 (cris_gdbarch_init): Set print_insn.
796 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
797 (cris_delayed_get_disassembler): Simplify, directly call the
798 disassembler returned by cris_get_disassembler.
799 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
800 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
801 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
802 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
803 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
804 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
805 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
806 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
807 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
808 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
809 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
810 (gdb_print_insn_sparc): Delete function.
811 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
812 deprecated_tm_print_insn_info.
813 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
814 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
815 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
816 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
817 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
818 * s390-tdep.c (gdb_print_insn_s390): Delete function.
819 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
820 (s390_gdbarch_init): Set print_insn.
822 2003-08-27 Andrew Cagney <cagney@redhat.com>
824 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
825 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
826 * infcall.c (call_function_by_hand): Convert the entry point
827 address into a code address.
829 2003-08-27 Andrew Cagney <cagney@redhat.com>
831 * dsrec.c: Include "gdb_string.h".
832 * Makefile.in (dsrec.o): Update dependencies.
834 2003-08-27 Michael Chastain <mec@shout.net>
836 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
838 2003-08-27 Andrew Cagney <cagney@redhat.com>
840 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
841 (alpha_osf1_init_abi): Do not set call_dummy_address.
843 2003-08-27 David Carlton <carlton@kealia.com>
845 From Randolph Chung <tausq@debian.org>:
846 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
847 compiles with -Wformat-nonliteral -Werror.
849 2003-08-26 Jim Blandy <jimb@redhat.com>
851 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
852 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
853 bfd_lookup_symbol, since we only want symbols in code sections.
854 (look_for_base): Pass zero as the SECT_FLAGS argument to
855 bfd_lookup_symbol, since we're not concerned about which section
858 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
860 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
861 we are frameless or the return address register is already known.
863 2003-08-26 Andrew Cagney <cagney@redhat.com>
865 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
866 in size. Add comments.
868 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
870 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
871 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
873 2003-08-26 Jason Merrill <jason@redhat.com>
875 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
876 case out of #ifdef MIPS block.
878 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
881 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
882 available before calling SECT_OFF_TEXT.
883 * PROBLEMS: Remove description of java/1322.
885 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
887 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
888 bof, and nat0-nat127 as pseudo-registers.
889 (ia64_frame_cache): New struct used to cache frame info.
890 (ia64_register_reggroup_p): New routine used to override default
891 register grouping so registers without names are still saved and
893 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
895 (ia64_pseudo_register_read): New routine to read pseudo-registers.
896 (ia64_pseudo_register_write): New routine to write pseudo-registers.
897 (ia64_alloc_frame_cache): New routine to create a new
899 (examine_prologue): Change prototype to add next_frame pointer.
900 Assume frameless until otherwise proven. Verify that the cfm for
901 current frame matches the cfm that should occur for the prologues
902 alloc insn and if equal, mark as not frameless. At end of routine,
903 if not frameless, calculate registers for the previous frame and store
904 in the cache, if a cache is provided.
905 (ia64_skip_prologue): Use new prototype when calling examine_prologue
906 and pass 0 for next_frame.
907 (ia64_store_return_value): Change to use convert_typed_floating()
908 instead of calling ia64_convert_to_raw().
909 (ia64_extract_return_value): Change to use convert_typed_floating()
910 instead of calling ia64_convert_to_virtual().
911 (ia64_frame_cache): New routine to support new frame model.
912 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
913 (ia64_frame_sniffer): Ditto.
914 (ia64_sigtramp_frame_init_saved_regs): Ditto.
915 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
916 (ia64_sigtramp_frame_prev_register): Ditto.
917 (ia64_sigtramp_frame_sniffer): Ditto.
918 (ia64_frame_base_address): Ditto.
919 (ia64_extract_struct_value_address): Change to issue error message.
920 (ia64_frame_align): New routine to align sp.
921 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
922 (ia64_push_arguments): Removed. Logic moved to
923 ia64_push_dummy_call().
924 (ia64_push_return_address): Ditto.
925 (ia64_unwind_dummy_id): New function.
926 (ia64_unwind_pc): Ditto.
927 (ia64_convert_register_p): Ditto.
928 (ia64_register_to_value): Ditto.
929 (ia64_value_to_register): Ditto.
930 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
931 (ia64_register_byte, ia64_register_raw_size): Ditto.
932 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
933 (ia64_saved_pc_after_call): Ditto.
934 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
935 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
936 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
937 (ia64_register_convert_to_raw): Ditto.
938 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
939 (ia64_init_extra_frame_info): Ditto.
940 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
941 (ia64_gdbarch_init): Remove registering of deprecated functions that
942 are no longer used. Add registration of new gdbarch functions.
943 Remove registering deprecated_write_sp. Replace
944 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
945 Delete set_gdbarch_deprecated_register_convertible(),
946 set_gdbarch_deprecated_register_convert_to_virtual(), and
947 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
948 set_gdbarch_deprecated_register_size(),
949 set_gdbarch_deprecated_register_bytes(),
950 set_gdbarch_pcregnum(),
951 set_gdbarch_deprecated_register_byte(),
952 set_gdbarch_deprecated_register_raw_size(),
953 set_gdbarch_deprecated_max_register_raw_size(),
954 set_gdbarch_deprecated_register_virtual_size(),
955 and set_gdbarch_deprecated_max_register_virtual_size() calls.
956 Replace set_gdbarch_deprecated_extract_return_value() with
957 set_gdbarch_extract_return_value(). Remove calls to:
958 set_gdbarch_deprecated_saved_pc_after_call();
959 set_gdbarch_deprecated_frame_chain(),
960 set_gdbarch_deprecated_frame_saved_pc(),
961 set_gdbarch_deprecated_frame_init_saved_regs(),
962 set_gdbarch_deprecated_get_saved_register(),
963 set_gdbarch_deprecated_call_dummy_words(),
964 set_gdbarch_deprecated_sizeof_call_dummy_words(),
965 set_gdbarch_deprecated_init_extra_frame_info(),
966 set_gdbarch_deprecated_frame_args_address(),
967 set_gdbarch_deprecated_frame_locals_address(),
968 and set_gdbarch_deprecated_dummy_write_sp().
969 Add set_gdbarch_convert_register_p(),
970 set_gdbarch_register_to_value(),
971 set_gdbarch_value_to_register(),
972 set_gdbarch_push_dummy_call(),
973 set_gdbarch_frame_align(),
974 set_gdbarch_unwind_dummy_id(),
975 set_gdbarch_unwind_pc(),
976 frame_unwind_append_sniffer(),
977 frame_unwind_append_sniffer(),
978 and frame_base_set_default().
980 2003-08-25 Chris Demetriou <cgd@broadcom.com>
982 * configure.tgt: Document need for special "mipsisa64" handling.
983 (mipsisa64*-*-linux64): Handle as target linux64.
984 (mipsisa64*-*-*): Handle as target embed64.
986 2003-08-18 Michael Chastain <mec@shout.net>
988 * PROBLEMS: Document pr gdb/1322, the Java anonymous
991 2003-08-24 Mark Kettenis <kettenis@gnu.org>
993 * i387-tdep.h: Update copyright date.
994 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
996 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
997 CFLAGS games to reflect reality.
999 2003-08-24 Andrew Cagney <cagney@redhat.com>
1001 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1002 GDB_MULTI_ARCH is always non-zero.
1003 * osabi.c (_initialize_gdb_osabi): Ditto.
1004 (gdbarch_init_osabi): Ditto.
1005 * sparc-tdep.c: Ditto for #if code.
1007 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1009 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1011 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1013 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1014 x86_64_supply_fxsave.
1015 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1016 x86_64_supply_fxsave.
1017 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1018 x86_64_supply_fxsave.
1020 2003-08-23 Andreas Jaeger <aj@suse.de>
1022 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1025 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1027 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1028 i387_supply_register.
1029 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1030 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1032 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1034 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1036 * i386bsd-nat.c (supply_fpregset): Adjust call to
1038 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1039 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1041 (store_inferior_registers): Remove extraneous whitespace. Call
1042 i387_fill_fsave instead of fill_fpregset.
1043 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1044 (supply_fpregset): Likewise.
1045 * i386v4-nat.c (supply_fpregset): Adjust call to
1047 * i386-interix-nat.c (supply_fpregset): Adjust call to
1049 * i386-linux-nat.c (supply_fpregset): Adjust call to
1051 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1052 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1053 i387supply_fsave and i387_supply_fxsave.
1054 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1055 Incorporate code from `i387_supply_register.
1056 (i387_supply_register): Remove.
1057 (i387_supply_fxsave): Add `regnum' argument.
1059 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1061 (i387_supply_register): remove prototype.
1064 2003-08-22 Michael Chastain <mec@shout.net>
1066 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1067 Add lines for files in gdb/testsuite/gdb.cp/* that are
1068 still not 8.3 unique.
1070 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1072 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1073 TYPE_VPTR_FIELDNO is valid.
1075 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1077 * utils.c (set_width_command): Remove prototypes.
1078 (set_screen_size): New prototype.
1079 (init_page_info): Simplify by fetching the screen size from
1080 Readline. Call set_screen_size.
1081 (set_screen_size): New function.
1082 (set_width): Add missing whitespace in comment.
1083 (set_width_command): Call set_screen_size.
1084 (set_height_command): New function.
1085 (initialize_utils): Fix formatting. Make "set height" command
1086 call set_height_command. Remove redundant code that turns off
1087 pagination if output isn't a terminal. Remove redundant call to
1090 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1092 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1093 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1094 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1095 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1097 (sparc64_register_info): Give the reister with number
1098 SPARC64_STATE_REGNUM a name.
1099 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1101 (sparc64_push_dummy_call): Take BIAS into account when checking
1103 (sparc_software_single_step): Remove assertions that check whether
1104 NPC and NNPC were zero.
1105 (sparc_supply_rwindow): Make public. Merge functionality with
1106 sparc64_supply_rwindow.
1107 (sparc_fill_rwindow): Make public. Merge functionality with
1108 sparc64_fill_rwindow.
1109 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1110 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1111 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1112 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1113 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1115 * reggroups.c: Add whitespace after declarations of local
1116 variables in functions.
1118 2003-08-21 Michael Chastain <mec@shout.net>
1120 * gdbtypes.h: Change array bound type from an int to enum.
1122 2003-08-21 Andrew Cagney <cagney@redhat.com>
1124 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1125 * config/sparc/tm-sparc.h: Ditto.
1126 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1128 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1130 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1132 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1133 (register_objfile_data, set_objfile_data, objfile_data): New
1135 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1137 (allocate_objfile): Call objfile_alloc_data.
1138 (free_objfile): Call objfile_free_data.
1139 (struct objfile_data): New.
1140 (struct objfile_data_registration): New.
1141 (struct objfile_data_registry): New.
1142 (objfile_data_registry): New variable.
1143 (register_objfile_data): New function.
1144 (objfile_alloc_data, objfile_free_data): New functions.
1145 (set_objfile_data, objfile_data): New functions.
1146 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1147 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1148 (_initialize_dwarf2_frame): New function and prototype.
1150 2003-08-21 Andrew Cagney <cagney@redhat.com>
1152 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1153 a specific architecture.
1154 * arch-utils.h (set_architecture_from_arch_mach): Delete
1156 (target_architecture_hook): Delete declaration.
1157 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1158 (default_float_format): Assume GDB_MULTI_ARCH.
1159 (default_double_format): Assume GDB_MULTI_ARCH.
1160 (set_endian_from_file): Delete function.
1161 (arch_ok): Delete function.
1162 (set_arch): Delete function.
1163 (set_architecture_from_arch_mach): Delete function.
1164 (set_architecture_from_file): Delete function.
1165 (set_architecture): Assume GDB_MULTI_ARCH.
1166 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1168 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1170 Rewrite FreeBSD/sparc64 native configuration.
1171 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1172 * sparc64fbsd-nat.c: New file.
1173 * sparc64fbsd-tdep.c: New file.
1174 * sparc64-tdep.c sparc64-tdep.h: New files.
1175 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1176 sparc64fbsd-tdep.o): New dependencies.
1177 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1178 and sparc64fbsd-tdep.c.
1179 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1180 * config/sparc/fbsd.mh: Remove copyright notice.
1181 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1183 * config/sparc/fbsd.mt: Remove copyright notice.
1184 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1185 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1186 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1187 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1188 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1189 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1190 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1191 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1193 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1194 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1196 2003-08-21 Michael Chastain <mec@shout.net>
1198 * symtab.h: Add doco on the space critical structures and
1199 some measurements of space usage.
1201 2003-08-21 Michael Snyder <msnyder@redhat.com>
1203 * tracepoint.c (trace_dump_command): Trace break address
1204 is subject to DECR_PC_AFTER_BREAK.
1205 (set_traceframe_context): Make "trace_line" an int.
1206 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1208 2003-08-20 Michael Snyder <msnyder@redhat.com>
1210 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1211 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1212 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1214 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1215 functions, replace sh_push_dummy_call.
1216 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1218 2003-08-20 Michael Chastain <mec@shout.net>
1220 * gdbtypes.h (struct main_type): Rearrange to save space.
1222 2003-08-20 Michael Snyder <msnyder@redhat.com>
1224 * trad-frame.c: Comment typo fix.
1226 2003-08-20 Michael Snyder <msnyder@redhat.com>
1227 Kevin Buettner <kevinb@redhat.com>
1229 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1230 (frv_frame_init_saved_regs): Add declaration.
1231 (frame_extra_info): Add new field ``saved_regs''.
1232 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1233 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1234 Update frame related code.
1235 (frv_extract_struct_value_address): Adjust formatting.
1236 * Makefile.in (frv-tdep.o): Update dependencies.
1237 * config/frv/tm-frv.h (target_insert_watchpoint)
1238 (target_remove_watchpoint, target_insert_hw_breakpoint)
1239 (target_remove_hw_breakpoint): Delete these macros.
1240 (remote_insert_watchpoint, remote_remove_watchpoint)
1241 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1244 2003-08-20 Michael Chastain <mec@shout.net>
1246 * defs.h (ENUM_BITFIELD): New macro.
1247 * symtab.h (ENUM_BITFIELD): Use it.
1248 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1250 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1252 * MAINTAINERS (write after approval): Add myself.
1254 2003-08-18 Andrew Cagney <cagney@redhat.com>
1256 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1257 * gdbarch.h, gdbarch.c: Re-generate.
1258 * infcall.c (call_function_by_hand): Adjust the SP by
1259 frame_red_zone_size before allocating any stack space.
1260 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1261 * x86-64-tdep.c (x86_64_frame_align): New function.
1262 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1264 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1265 Remove code adjusting SP so that it skips over the Red Zone.
1267 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1269 * NEWS (New native configurations): Mention FreeBSD/amd64.
1271 2003-08-18 Andrew Cagney <cagney@redhat.com>
1273 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1274 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1276 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1278 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1280 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1282 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1284 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1286 * i386-linux-nat.c: Include "linux-nat.h".
1287 (child_post_startup_inferior): New function.
1289 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1291 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1292 at the start of a frameless function. This probably fixes PR
1295 2003-08-17 Michael Chastain <mec@shout.net>
1297 * symfile.c (find_sym_fns): Remove special case for apollo target.
1299 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1301 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1302 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1303 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1304 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1305 (linux_supports_tracevforkdone): New function.
1306 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1308 (child_follow_fork): Handle vfork.
1309 (linux_handle_extended_wait): Likewise. Also handle exec.
1310 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1311 * NEWS: Mention fork tracing.
1313 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1315 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1317 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1319 * Makefile.in (i386-linux-nat.o): Update dependencies.
1320 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1321 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1322 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1323 * i386-linux-nat.c: Include "linux-nat.h".
1324 (child_post_startup_inferior): New function.
1325 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1326 * infptrace.c (kill_inferior): Wrap in #ifdef.
1327 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1328 attaching to each LWP.
1329 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1330 (init_lin_lwp_ops): Fill in some more operations.
1331 * linux-nat.h (linux_enable_event_reporting)
1332 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1334 * linux-nat.c (linux_enable_event_reporting): New function.
1335 (child_post_attach, linux_child_post_startup_inferior)
1336 (child_post_startup_inferior, child_follow_fork)
1337 (linux_handle_extended_wait, kill_inferior): New functions.
1339 2003-08-16 Andrew Cagney <cagney@redhat.com>
1341 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1342 * gdbarch.h, gdbarch.c: Re-generate.
1344 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1346 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1348 2003-08-16 Andrew Cagney <cagney@redhat.com>
1350 * NEWS: Mention that "set prompt-escape-char" was deleted.
1351 * top.c (get_prompt_1): Delete function.
1352 (gdb_prompt_escape):
1353 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1354 prompt-escape-char" command.
1355 (MAX_PROMPT_SIZE): Delete macro.
1356 (get_prompt): Simplify, do not call get_prompt_1.
1358 2003-08-16 Andrew Cagney <cagney@redhat.com>
1360 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1361 -Werror. -Wformat-nonliteral problems.
1363 2003-08-15 J. Brobecker <brobecker@gnat.com>
1365 Further multiarching work mostly for hppa64-*-hpux11:
1366 * hppa-tdep.h: New file.
1367 * hppa-tdep.c: #include hppa-tdep.c.
1368 (hppa32_num_regs): Renamed from hppa_num_regs.
1369 (hppa64_num_regs): New constant.
1370 (hppa64_call_dummy_breakpoint_offset): New constant.
1371 (hppa32_call_dummy_length): New constant.
1372 (hppa64_call_dummy_length): New constant.
1373 (hppa32_stack_align): Make name 32bit explicit.
1374 (hppa32_register_virtual_type): Likewise.
1375 (hppa32_extract_return_value): Likewise.
1376 (hppa32_use_struct_convention): Likewise.
1377 (hppa32_store_return_value): Likewise.
1378 (hppa64_register_virtual_type): New function.
1379 (hppa64_extract_return_value): New function.
1380 (hppa64_use_struct_convention): New function.
1381 (hppa64_store_return_value): New function.
1382 (hppa_frame_locals_address): Remove declaration, function does
1384 (hppa_register_byte): Add support for PA64 ABI.
1385 (hppa_gdbarch_init): Add support for PA64 ABI.
1386 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1387 Make name 32bit explicit.
1388 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1389 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1390 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1391 (hppa64_hpux_frame_base_before_sigtramp): New function.
1392 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1393 * config/pa/tm-hppa64.h: Remove macros that are no longer
1394 necessary now that the gdbarch vector is properly setup.
1395 Transform some macros into function calls. Some minor cleanup.
1396 * config/pa/tm-hppah.h: Update function calls in macros
1397 following the function renaming in hppa-hpux-tdep.c.
1398 * Makefile.in (hppa_tdep_h): New variable.
1399 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1401 2003-08-14 Michael Snyder <msnyder@redhat.com>
1403 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1405 2003-08-13 J. Brobecker <brobecker@gnat.com>
1407 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1408 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1411 2003-08-13 Michael Snyder <msnyder@redhat.com>
1413 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1414 (frv_saved_pc_after_call): Use deprecated ftype.
1415 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1416 (frv_remote_translate_xfer_address): Remove.
1417 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1419 2003-08-13 J. Brobecker <brobecker@gnat.com>
1421 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1422 initialization after the common gdbarch initialization, not before.
1424 2003-08-13 J. Brobecker <brobecker@gnat.com>
1426 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1427 (ADDR_BITS_REMOVE): Remove, redundant.
1429 2003-08-13 J. Brobecker <brobecker@gnat.com>
1431 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1432 gdbarch method to clear the 2 low bits of text addresses.
1434 2003-08-12 Andrew Cagney <cagney@redhat.com>
1436 * Makefile.in (dsrec.o): Update dependencies.
1437 * dsrec.c: Include "gdb_assert.h".
1438 (make_srec): Use snprintf instead of sprintf, use a literal format
1441 2003-08-12 Andrew Cagney <cagney@redhat.com>
1443 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1444 FRAME_OBSTACK_ZALLOC.
1446 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1448 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1451 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1453 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1454 amd64fbsd_sc_reg_offset): Add extern declarations.
1455 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1458 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1460 * MAINTAINERS (write after approval): Update my mail address.
1462 2003-08-10 Andrew Cagney <cagney@redhat.com>
1464 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1466 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1468 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1469 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1470 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1471 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1472 i386bsd_sc_reg_offset): Add extern declarations.
1473 * i386obsd-nat.c: Include "i386-tdep.h"
1474 (_initialize_i386obsd_nat): Remove extern declarations.
1475 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1477 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1480 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1481 instead of frame_read_register.
1482 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1483 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1485 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1486 instead of frame_unwind_unsigned_register. Use
1487 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1488 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1489 instead of read_register. Use builtin_type_void_data_ptr instead
1490 of builtin_type_void_func_ptr when extracting the address of the
1492 (i386_extract_return_value, i386_store_return_value,
1493 i386_pseudo_register_read, i386_pseudo_register_write): Use
1494 register_size instead REGISTER_RAW_SIZE.
1496 2003-08-10 Andrew Cagney <cagney@redhat.com>
1498 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1499 sprintf. Make "name" constant.
1501 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1503 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1504 instead of frame_read_register.
1505 (i387_print_float_info): Use get_frame_register and
1506 get_frame_register_unsigned instead of frame_register_read.
1508 * i386fbsd-nat.c: Include "i386-tdep.h".
1509 (child_resume): Make `eflags' an ULONGEST. Use
1510 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1511 instead of register_read and register_write.
1513 * i386bsd-nat.c (fetch_inferior_registers,
1514 store_inferior_registers): Don't use && at the end of a line.
1515 (_initialize_i386bsd_nat): Fix typo.
1517 * frame.c (_initialize_frame): Add missing backslash.
1519 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1520 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1521 and supply_register instead of manipulating the register buffer
1524 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1525 * config/i386/nm-i386sol2.h
1526 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1528 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1529 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1530 instructions that GCC likes to mingle into the prologue. Fixes
1531 gdb/1253 and gdb/1255.
1533 2003-08-09 Andrew Cagney <cagney@redhat.com>
1536 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1537 * command.h (add_setshow_uinteger_cmd): Declare.
1538 * frame.c (set_backtrace_cmd): New function.
1539 (show_backtrace_cmd): New function.
1540 * frame.c (_initialize_frame): Replace "set/show
1541 backtrace-below-main" with "set/show backtrace past-main". Add
1542 command "set/show backtrace limit".
1543 (backtrace_past_main): Rename "backtrace_below_main".
1544 (backtrace_limit): New variable.
1545 (get_prev_frame): Update. Check the backtrace_limit.
1547 2003-08-09 Andrew Cagney <cagney@redhat.com>
1549 * defs.h (xstrprintf): Declare.
1550 * utils.c (xstrprintf): New function.
1551 * breakpoint.c (insert_breakpoints): Replace sprintf and
1552 non-literal format strings, with xstrprintf and cleanups.
1553 (delete_breakpoint,breakpoint_re_set): Ditto.
1554 (commands_command, insert_breakpoints): Ditto.
1555 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1556 (break_at_finish_command_1): Ditto.
1558 2003-08-09 Andrew Cagney <cagney@redhat.com>
1560 * MAINTAINERS (language support): List Adam Fedor as Objective C
1563 2003-08-08 J. Brobecker <brobecker@gnat.com>
1565 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1566 are now multiarched.
1568 2003-08-08 J. Brobecker <brobecker@gnat.com>
1570 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1571 longer necessary now that hppa64 is partially multiarch'ed.
1573 2003-08-08 Andrew Cagney <cagney@redhat.com>
1575 * interps.c (interp_set): Check for a NULL "old_interp".
1577 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1579 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1580 (install-only): Support DESTDIR.
1581 (uninstall): Likewise.
1582 (install-gdbtk): Likewise.
1584 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1586 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1587 contains something meaningful at all times.
1589 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1591 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1593 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1595 * MAINTAINERS (write after approval): Added self.
1597 2003-08-07 Andrew Cagney <cagney@redhat.com>
1599 * inferior.h (AT_SYMBOL): Define.
1600 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1601 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1602 * mips-tdep.c (mips_call_dummy_address): Delete function.
1603 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1604 set call_dummy_address.
1606 2003-08-07 Andrew Cagney <cagney@redhat.com>
1608 * language.c (op_error): Delete function.
1609 (binop_type_check): Delete function.
1610 * language.h (type_op_error, range_op_error): Delete macros.
1611 (op_error): Delete declaration.
1613 2003-08-07 Andrew Cagney <cagney@redhat.com>
1615 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1617 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1619 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1620 (x86_64_push_arguments): Skip the red zone.
1622 2003-08-05 Andrew Cagney <cagney@redhat.com>
1624 * reggroups.c (reggroup_next): Check for the final entry.
1626 2003-08-04 Andrew Cagney <cagney@redhat.com>
1628 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1629 * cli/cli-script.c (define_command): Call query directly, instead
1630 of passing it a buffer.
1631 * ocd.c (ocd_error): Pass error a constant format string.
1632 * remote-mips.c (mips_error): Use fputs_filtered.
1634 * solib-svr4.c (_initialize_svr4_solib): Update
1635 register_gdbarch_data call.
1636 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1638 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1639 (register_gdbarch_data): Delete "free" parameter. Update
1641 * gdbarch.h, gdbarch.c: Re-generate.
1642 * reggroups.c (_initialize_reggroup): Update.
1643 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1644 * frame-base.c (_initialize_frame_base): Update.
1645 * frame-unwind.c (_initialize_frame_unwind): Update.
1646 * user-regs.c (_initialize_user_regs): Update.
1647 * remote.c (_initialize_remote): Update.
1648 * regcache.c (_initialize_regcache): Update.
1650 * regcache.c (xfree_regcache_descr): Delete function.
1651 (_initialize_regcache): Update call to register_gdbarch_data.
1652 (init_regcache_descr, init_legacy_regcache_descr): Use
1653 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1655 * remote.c (free_remote_state): Delete function.
1656 (_initialize_remote): Update register_gdbarch_data.
1657 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1658 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1660 2003-08-04 Andrew Cagney <cagney@redhat.com>
1662 * reggroups.c (struct reggroup_el): Define.
1663 (struct reggroups): Delete field "nr_group". Replace array
1664 "group" with a "first" to "last" linked list.
1665 (reggroups_init): Update. Allocate using gdbarch's obstack.
1666 (reggroups_free): Delete function.
1667 (add_group): Update. Add "el" parameter.
1668 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1669 (default_groups): Update.
1670 (reggroup_next): Replace reggroups.
1671 (reggroups_dump): Update.
1672 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1673 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1674 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1676 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1678 * Makefile.in (tui-interp.o): Update dependencies.
1680 2003-08-04 David Carlton <carlton@kealia.com>
1682 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1683 to internal_error call.
1684 * source.c (forward_search_command): Add "%s" format argument.
1685 (reverse_search_command): Ditto.
1686 * top.c (quit_confirm): Ditto.
1687 * cli/cli-setshow.c (do_setshow_command): Ditto.
1688 * cp-valprint.c (cp_print_class_method): Replace
1689 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1690 (cp_print_class_member): Ditto.
1691 * event-top.c (command_line_handler): Ditto.
1692 * linux-proc.c (linux_info_proc_cmd): Ditto.
1693 * p-typeprint.c (pascal_type_print_base): Ditto.
1694 * p-valprint.c (pascal_object_print_class_method): Ditto.
1695 (pascal_object_print_class_member): Ditto.
1696 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1697 * remote.c (remote_cisco_section_offsets): Ditto.
1698 * top.c (command_line_input): Ditto.
1699 * utils.c (vwarning,error_stream,quit): Ditto.
1700 * valprint.c (print_floating,print_binary_chars)
1701 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1703 2003-08-04 Andrew Cagney <cagney@redhat.com>
1705 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1707 2003-08-02 Andrew Cagney <cagney@redhat.com>
1709 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1710 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1713 2003-08-02 Andrew Cagney <cagney@redhat.com>
1715 * Makefile.in: Update all dependencies and definitions.
1717 2003-08-02 Adam Fedor <fedor@gnu.org>
1719 * linespec.c (is_objc_method_format): New function
1720 (decode_line_1, locate_first_half): Use it.
1723 2003-08-01 Andrew Cagney <cagney@redhat.com>
1725 * NEWS: Mention that m32r is multi-arch.
1726 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1727 * configure.tgt: Recognize m32r-*-*.
1728 * config/m32r/tm-m32r.h: Delete file.
1729 * config/m32r/m32r.mt: New file.
1730 * m32r-rom.c (m32r_upload_command): Use hostent only when
1731 gethostname succeeds, in order to avoid a compilation
1733 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1736 2003-08-01 Michael Snyder <msnyder@redhat.com>
1738 * sh-tdep.c (sh_frame_align): New gdbarch method.
1739 (sh_gdbarch_init): Set up frame_align method.
1741 2003-07-31 Michael Snyder <msnyder@redhat.com>
1743 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1744 which is already covered by the new frames infrastructure.
1746 2003-07-31 Andrew Cagney <cagney@redhat.com>
1748 * user-regs.c (struct user_reg): Add "next" link.
1749 (struct user_regs): Replace "user" with "first" and "last" links.
1750 (append_user_reg): Add pre-allocated "reg" parameter.
1751 (builtin_user_regs): Provide initial value for "last".
1752 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1753 (user_regs_init): Allocate memory from the gdbarch obstack.
1754 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1755 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1757 (usernum_to_user_reg): New function.
1758 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1759 (value_of_user_reg): Use usernum_to_user_reg.
1760 (user_regs_free): Delete function.
1761 (_initialize_user_regs): Update register_gdbarch_data call.
1763 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1765 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1767 2003-07-30 Michael Snyder <msnyder@redhat.com>
1769 * value.h (value_being_returned): Add a struct_addr argument.
1770 * infcall.c (call_function_by_hand): Pass struct_addr to
1771 value_being_returned.
1772 * infcmd.c (print_return_value): Pass zero as struct_addr.
1773 * values.c (value_being_returned): If struct_addr is passed,
1774 use it instead of trying to recover it from the inferior.
1776 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1778 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1779 the prologue analyzer won't need to attempt to extract the pc
1780 value from the woefully incomplete dummy frame.
1781 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1782 possible. Disable code which modifies the frame.
1784 2003-07-28 Andrew Cagney <cagney@redhat.com>
1786 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1788 (annotate_breakpoints_table, annotate_record): Ditto.
1789 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1790 (annotate_field_name_end, annotate_field_value): Ditto.
1791 (annotate_field_end, annotate_frame_source_begin): Ditto.
1792 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1793 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1794 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1795 (annotate_frame_address_end, annotate_frame_address): Ditto.
1796 (annotate_frame_args, annotate_frame_end): Ditto.
1797 (annotate_frame_where, annotate_arg_begin): Ditto.
1798 (annotate_arg_name_end, annotate_arg_value): Ditto.
1799 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1800 (annotate_function_call, annotate_signal_name): Ditto.
1801 (annotate_signal_string, annotate_signal_name_end): Ditto.
1802 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1803 (annotate_value_begin, annotate_value_history_value): Ditto.
1804 (annotate_value_history_end, annotate_value_end): Ditto.
1805 (annotate_display_begin, annotate_display_number_end): Ditto.
1806 (annotate_display_format, annotate_display_expression): Ditto.
1807 (annotate_display_expression_end, annotate_display_value): Ditto.
1808 (annotate_display_end, annotate_array_section_begin): Ditto.
1809 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1810 (annotate_elt, annotate_array_section_end): Ditto.
1812 2003-07-28 Andrew Cagney <cagney@redhat.com>
1814 * regcache.c (struct regcache_descr): Update comments on
1816 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1817 sizeof_raw_register_valid_p.
1818 (init_regcache_descr): Set nr_raw_registers and
1819 sizeof_raw_register_valid_p before calling
1820 init_legacy_regcache_descr.
1822 2003-07-28 Andrew Cagney <cagney@redhat.com>
1824 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1827 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1829 * thread.c (info_threads_command): Use get_selected_frame ().
1830 Check that there is at least one non-sentinel frame.
1832 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1834 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1835 (m68hc11_pop_frame): Remove.
1836 (m68hc11_frame_saved_pc): Remove.
1837 (m68hc11_frame_chain): Remove.
1838 (m68hc11_frame_init_saved_regs): Remove.
1839 (m68hc11_init_extra_frame_info): Remove.
1840 (m68hc11_store_struct_return): Remove.
1841 (m68hc11_saved_pc_after_call): Remove.
1843 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1845 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1846 frame unwind information.
1847 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1848 and adapted for frame unwinding.
1849 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1850 (m68hc11_unwind_pc): New function.
1851 (m68hc11_frame_unwind_cache): New function to analyze frames.
1852 (m68hc11_frame_this_id): New function to create new frame struct.
1853 (m68hc11_frame_prev_register): New function to unwind a register from
1855 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1856 (m68hc11_frame_p): New function for the above.
1857 (m68hc11_frame_base_address): New function to return fp of frame.
1858 (m68hc11_frame_args_address): Update for frame.
1859 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1860 (m68hc11_unwind_sp): New function.
1861 (m68hc11_unwind_dummy_id): New function.
1862 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1865 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1867 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1868 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1869 when we are beyond the current pc.
1871 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1873 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1874 from m68hc11_push_arguments.
1875 (m68hc11_push_arguments): Remove.
1876 (m68hc11_push_return_address): Remove.
1877 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1878 handlers; remove deprecated_extra_stack_alignment_needed.
1880 2003-07-27 Andrew Cagney <cagney@redhat.com>
1882 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1883 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1884 REAL_PC and not the pointer.
1885 * hppa-hpux-tdep.c: Include frame.h
1887 2003-07-27 Andrew Cagney <cagney@redhat.com>
1889 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1890 GDB_MULTI_ACH_PARTIAL.
1892 2003-07-27 Andrew Cagney <cagney@redhat.com>
1894 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1895 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1896 operator at start and not end of line.
1897 (decode_prologue): Ditto.
1898 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1899 frame_unwind_register_unsigned instead of
1900 frame_unwind_unsigned_register.
1901 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1903 (m32r_push_dummy_call): Use register_size instead of
1905 (m32r_frame_sniffer): Replace m32r_frame_p.
1906 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1907 * m32r-rom.c (report_transfer_performance): Delete extern
1909 (m32r_load, m32r_upload_command): Use print_transfer_performance
1910 instead of report_transfer_performance.
1911 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1912 / add_show_from_set.
1914 2003-07-26 Andrew Cagney <cagney@redhat.com>
1916 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1917 store_return_value and extract_struct_value_address.
1919 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1922 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1923 NULL, default to the section containing PC.
1925 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1927 * NEWS: Mention "regs" deprecated for m68hc11 too.
1929 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1930 (m68hc11_print_register): New function to print out one register.
1931 (m68hc11_print_registers_info): New function to print registers.
1932 (show_regs): Deprecate and use the above.
1933 (m68hc11_gdbarch_init): Install the print_registers_info.
1935 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1937 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1938 that we have a SIGTRAP before returning non-zero.
1940 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1941 Elena Zannoni <ezannoni@redhat.com>
1943 * linespec.c (decode_line_2): Avoid crash if
1944 find_function_start_sal() returns empty record.
1946 2003-07-23 Andreas Schwab <schwab@suse.de>
1948 * ia64-tdep.c (ia64_print_insn): New function.
1949 (ia64_gdbarch_init): Set print_insn to it.
1950 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1951 deprecated_tm_print_insn_info.
1953 2003-07-22 Michael Snyder <msnyder@redhat.com>
1955 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1956 handle 8-bit returns (long long).
1957 (h8300h_extract_return_value): Ditto.
1958 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1960 2003-07-22 Andrew Cagney <cagney@redhat.com>
1962 * gdbarch.c Include "gdb_obstack.h".
1963 (struct gdbarch): Add an "obstack".
1964 (alloc_gdbarch_data): Allocate the gdbarch data using
1965 GDBARCH_OBSTACK_CALLOC.
1966 (free_gdbarch_data): Delete function.
1967 (gdbarch_obstack_zalloc): New function.
1968 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1969 Assert that the architecture is not initialized.
1970 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1971 vector from the obstack.
1972 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1973 architecture obstack.
1974 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1975 (set_gdbarch_data): Assert that the data is not initialized.
1976 (struct gdbarch_data): Delete member "free".
1977 (register_gdbarch_data): Do not initialize "free".
1978 * gdbarch.h, gdbarch.c: Re-generate.
1980 2003-07-22 Andrew Cagney <cagney@redhat.com>
1982 * configure.in (build_warnings): Add -Wformat-nonliteral.
1983 * configure: Re-generate.
1985 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1987 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1989 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1991 * findvar.c (read_var_value): Remove case for thread local storage
1992 variables. It is now entirely handled by the dwarf2 location
1994 * printcmd.c (address_info): Ditto.
1995 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1997 (struct symbol): Remove objfile field, which was used by
1998 LOC_THREAD_LOCAL_STATIC only.
1999 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2000 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2001 usage of objfile pointer.
2002 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2003 thread local variables.
2004 Add include of objfiles.h.
2005 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2007 * Makefile.in (dwarf2loc.o): Update dependencies.
2009 2003-07-22 Andrew Cagney <cagney@redhat.com>
2011 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2013 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2014 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2015 (struct value): Add opaque declaration.
2016 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2018 2003-07-21 Andrew Cagney <cagney@redhat.com>
2020 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2021 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2023 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2025 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2026 regcache_cooked_read_unsigned instead of read_register.
2027 (m68hc11_saved_pc_after_call): Likewise.
2028 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2029 instead of write_register.
2030 (m68hc11_register_type): New function.
2031 (m68hc11_register_virtual_type): Remove.
2032 (m68hc11_store_return_value): Convert to use the regcache.
2033 (m68hc11_extract_struct_value_address): Likewise.
2034 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2035 m68hc11_register_type; undeprecate store_return_value and
2036 extract_struct_value_address.
2038 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2040 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2041 and translate to use regcache.
2042 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2044 2003-07-18 Andrew Cagney <cagney@redhat.com>
2046 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2047 * gdbarch.h, gdbarch.c: Re-generate.
2048 * i386-tdep.c (i386_gdbarch_init): Do not set
2049 DWARF2_BUILD_FRAME_INFO.
2050 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2052 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2053 DWARF2_BUILD_FRAME_INFO.
2055 2003-07-18 Andrew Cagney <cagney@redhat.com>
2057 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2058 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2060 2003-07-18 Andrew Cagney <cagney@redhat.com>
2062 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2063 frame_unwind_address_in_block, instead of frame_pc_unwind.
2064 (dwarf2_frame_cache): Ditto.
2066 2003-07-18 Andrew Cagney <cagney@redhat.com>
2068 * user-regs.h (struct gdbarch): Declare opaque.
2069 * ui-out.h (struct ui_file): Declare opaque.
2070 * dwarf2-frame.h (struct frame_info): Declare opaque.
2072 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2074 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2076 (procfs_meminfo): Change strerror to safe_strerror.
2077 (procfs_can_run): Remove K&R badness.
2079 2003-07-17 Michael Snyder <msnyder@redhat.com>
2081 * remote-sim.c: Comment typo fix.
2083 2003-07-17 Andrew Cagney <cagney@redhat.com>
2085 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2087 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2088 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2089 GDB_MULTI_ARCH_PARTIAL.
2091 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2093 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2094 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2095 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2097 2003-07-16 Theodore A. Roth <troth@openavr.org>
2099 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2101 (avr_frame_unwind_cache): Don't unwind FP for main.
2103 Save the computed prev_sp.
2104 (avr_saved_regs_unwinder): Remove function.
2105 (avr_frame_prev_register): Use PC unwind logic from
2106 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2108 2003-07-16 Andrew Cagney <cagney@redhat.com>
2110 * frame-base.h (frame_base_p_ftype): Delete definition.
2111 (frame_base_append_predicate): Delete declaration.
2112 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2113 (frame_unwind_append_predicate): Delete declaration.
2114 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2115 (append_predicate): Delete parameter "p".
2116 (frame_unwind_append_predicate): Delete function.
2117 (frame_unwind_append_sniffer): Update call to append_predicate.
2118 (frame_unwind_free): Delete function.
2119 (_initialize_frame_unwind): Pass NULL as "free" to
2120 register_gdbarch_data.
2121 (frame_unwind_init): Append the dummy_frame_sniffer.
2122 (frame_unwind_find_by_frame): Simplify.
2123 * frame-base.c (struct frame_base_table): Delete field "p".
2124 (append_predicate): Delete parameter "p".
2125 (frame_base_append_predicate): Delete function.
2126 (frame_base_append_sniffer): Update call to append_predicate.
2127 (frame_base_free): Delete function.
2128 (frame_base_find_by_frame): Simplify.
2129 (_initialize_frame_base): Pass NULL as "free" to
2130 register_gdbarch_data.
2131 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2132 (x86_64_sigtramp_frame_sniffer): Replace
2133 "x86_64_sigtramp_frame_p".
2134 (x86_64_init_abi): Set the frame unwind sniffers.
2135 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2136 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2137 (m68k_gdbarch_init): Set the frame unwind sniffers.
2138 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2139 "i386_sigtramp_frame_p".
2140 (i386_frame_sniffer): Replace "i386_frame_p".
2141 (i386_gdbarch_init): Set the frame unwind sniffers.
2142 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2143 (avr_gdbarch_init): Set the frame unwind sniffers.
2144 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2145 "alpha_sigtramp_frame_p"
2146 (alpha_heuristic_frame_sniffer): Replace
2147 "alpha_heuristic_frame_p".
2148 (alpha_gdbarch_init): Set the frame unwind sniffers.
2149 (alpha_dwarf2_init_abi): Ditto.
2150 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2151 "alpha_debug_frame_p".
2152 (alpha_mdebug_frame_base_sniffer): Replace
2153 "alpha_mdebug_frame_base_p".
2154 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2155 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2156 (d10v_gdbarch_init): Set the frame unwind sniffer.
2157 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2158 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2159 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2160 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2161 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2162 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2164 2003-07-16 Michael Snyder <msnyder@redhat.com>
2166 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2167 should go thru sh_dsp_register_sim_regno, else the dsp regs
2168 will not get the right values.
2170 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2172 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2173 deprecated_store_floating by call to store_typed_floating.
2174 (sh_sh4_register_convert_to_raw): Substitute call to
2175 deprecated_extract_floating by call to extract_typed_floating.
2177 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2179 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2181 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2183 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2184 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2185 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2187 (do_pseudo_register): Remove.
2188 (sh_push_dummy_code): New function.
2189 (sh64_store_struct_return): Rename from sh_store_struct_return.
2190 Only called for sh64 now.
2191 (sh_extract_struct_value_address): Regcache'ify.
2192 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2193 and accomodate new tasks.
2194 (sh64_push_return_address): Rename from sh_push_return_address.
2195 Only called for sh64 now.
2196 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2198 (sh3e_sh4_extract_return_value): Regcache'ify.
2199 (sh_default_store_return_value): Ditto.
2200 (sh3e_sh4_store_return_value): Ditto.
2201 (sh_default_register_byte): Remove.
2202 (sh_sh4_register_byte): Remove.
2203 (sh_default_register_raw_size): Remove.
2204 (sh_sh4_register_raw_size): Remove.
2205 (sh_register_virtual_size): Remove.
2206 (sh_sh3e_register_virtual_type): Remove.
2207 (sh_sh3e_register_type): New function.
2208 (sh_sh4_register_virtual_type): Remove.
2209 (sh_sh4_register_type): New function.
2210 (sh_default_register_virtual_type): Remove.
2211 (sh_default_register_type): New function.
2212 (do_fv_register_info): Add parameters to accomodate call from
2213 sh_print_registers_info.
2214 (do_dr_register_info): Ditto.
2215 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2216 Add parameters to accomodate call from sh_print_registers_info.
2217 (sh_do_fp_register): Ditto.
2218 (sh64_do_pseudo_register): Call do_dr_register_info,
2219 do_fv_register_info and sh_do_fp_register with default parameters.
2220 (sh_do_register): Add parameters to accomodate call from
2221 sh_print_registers_info.
2222 (sh_print_register): Ditto.
2223 (sh_print_registers_info): Rename from sh_do_registers_info.
2224 Add parameters to be used as gdbarch_print_registers_info
2225 implementation. Accomodate removed do_pseudo_register function
2227 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2228 function pointer. Call sh_print_register with default parameters.
2229 (sh64_do_registers_info): Call sh_print_registers_info instead of
2230 sh_do_registers_info.
2231 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2232 detection of deprecated vs. non-deprecated functionality.
2233 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2234 function pointer assignments by direct function calls.
2236 2003-07-15 Andrew Cagney <cagney@redhat.com>
2238 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2239 (frame_register_unwind, create_new_frame): Ditto.
2240 (legacy_get_prev_frame, get_frame_type): Ditto.
2241 (get_frame_base_address): Use frame_base_find_by_frame.
2242 (get_frame_locals_address): Use frame_base_find_by_frame.
2243 (get_frame_args_address): Use frame_base_find_by_frame.
2244 * frame-base.h (frame_base_sniffer_ftype): Declare.
2245 (frame_base_append_sniffer): Declare.
2246 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2247 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2248 (frame_base_append_sniffer): New function.
2249 (frame_base_append_predicate): Add a NULL sniffer.
2250 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2251 (struct frame_base_table): Add "sniffer".
2252 (frame_base_free): Free the "sniffer" table.
2253 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2254 (frame_unwind_append_sniffer): Declare.
2255 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2256 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2257 (struct frame_unwind_table): Add "sniffer", delete "middle".
2258 (append_predicate): Add "sniffer" parameter, append the sniffer.
2259 (frame_unwind_init): Update append_predicate call.
2260 (frame_unwind_append_sniffer): New function.
2261 (frame_unwind_append_predicate): Update append_predicate call.
2262 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2264 2003-07-15 Andrew Cagney <cagney@redhat.com>
2266 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2267 before code inhibiting repeated unwind attempts. Add to
2268 commentary on that test's problems.
2269 * blockframe.c (inside_main_func): Look for "main" in the minimal
2271 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2274 2003-07-15 Andrew Cagney <cagney@redhat.com>
2276 * complaints.c (struct explanation): Define.
2277 (struct complaints): Change type of "explanation" to "struct
2279 (symfile_explanations): Convert to a "struct explanation" table.
2280 (vcomplaint): Update.
2282 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2284 * x86-64-linux-nat.c (regmap): Removed.
2285 (supply_gregset, fill_gregset): Call
2286 x86_64_linux_(fill,supply)_gregset functions.
2287 * x86-64-linux-tdep.c (USER_*): New defines.
2288 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2289 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2291 (fetch_core_registers): Ditto.
2292 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2293 * x86-64-linux-tdep.h: New file.
2294 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2296 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2298 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2300 * x86-64-tdep.c (x86_64_store_return_value): Use
2301 regcache_cooked_write_part instead of regcache_cooked_write.
2303 * configure.host: Add x86_64-*-freebsd*.
2304 * configure.tgt: Add x86_64-*-freebsd*.
2305 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2306 * amd64fbsd-nat.c: New file.
2307 * amd64fbsd-tdep.c: New file.
2308 * config/i386/nm-fbsd64.h: New file.
2309 * config/i386/fbsd64.mh: New file.
2310 * config/i386/fbsd64.mt: New file.
2312 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2314 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2315 `sc_regs_offset' and `sc_fpregs_offset'.
2316 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2317 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2318 (alpha_sigtramp_register_address): Rewrite to use new members of
2319 `struct gdbarch_tdep'.
2320 (alpha_gdbarch_init): Initialize new members of struct
2322 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2323 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2324 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2325 (alphafbsd_pc_in_sigtramp): Implement.
2326 (alphafbsd_sigtramp_offset): New function.
2327 (alphafbsd_sigcontext_addr): New function.
2328 (alphafbsd_init_abi): Initialize signal trampoline related members
2329 of `struct gdbarch_tdep'.
2330 (_initialize_alphafbsd_tdep): Add prototype.
2332 2003-07-11 Theodore A. Roth <troth@openavr.org>
2334 * Makefile.in (install-only): Quote sed expression when generating
2337 2003-07-11 Richard Henderson <rth@redhat.com>
2339 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2340 * dwarf2-frame.c: Include complaints.h.
2341 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2342 variable initialization; return NULL on error.
2343 (decode_frame_entry): New.
2345 2003-07-11 Andrew Cagney <cagney@redhat.com>
2347 * frame.h (frame_address_in_block): Delete declaration.
2348 * blockframe.c (frame_address_in_block): Delete function.
2349 (get_frame_block): Use get_frame_address_in_block.
2350 (block_innermost_frame): Ditto.
2351 * stack.c (print_frame, backtrace_command_1): Ditto.
2353 * frame.h (get_frame_address_in_block): Declare.
2354 (frame_unwind_address_in_block): Declare.
2355 * frame.c (frame_unwind_address_in_block): New function.
2356 (get_frame_address_in_block): New function.
2358 2003-07-10 Andrew Cagney <cagney@redhat.com>
2360 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2361 pre-default. Note: re-generate has no effect.
2363 2003-07-10 Andrew Cagney <cagney@redhat.com>
2365 * gdbarch.sh: When a variable, but not a function, compare against
2366 0. Fix problem in previous patch.
2367 * gdbarch.c: Re-generate.
2369 2003-07-10 Andrew Cagney <cagney@redhat.com>
2371 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2372 functions against NULL, not 0.
2373 * gdbarch.c: Re-generate.
2375 2003-07-10 Fred Fish <fnf@ninemoons.com>
2377 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2378 null string instead of a null pointer.
2379 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2381 2003-07-09 Michael Snyder <msnyder@redhat.com>
2383 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2385 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2387 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2388 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2389 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2390 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2391 * x86-64-tdep.c: ... from here.
2393 2003-07-09 Andreas Schwab <schwab@suse.de>
2395 * m68k-tdep.h (enum struct_return): Define.
2396 (struct gdbarch_tdep): Add struct_return.
2397 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2398 bytes are padded to the right, not to the left. Pass struct value
2399 address in register %a1, not on stack.
2400 (m68k_use_struct_convention): New function.
2401 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2402 struct_return in tdep to pcc_struct_return.
2403 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2406 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2408 * somread.c (som_symfile_offsets): Fix compilation error.
2410 2003-07-09 Andrew Cagney <cagney@redhat.com>
2412 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2413 Add comments about the checks.
2415 2003-07-08 Andrew Cagney <cagney@redhat.com>
2417 * Makefile.in: Make dependency section headers consistent.
2418 (config_h): Move to $BUILD headers section.
2419 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2420 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2421 (ada-exp.tab.c): Move to YACC/LEX section.
2422 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2423 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2425 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2427 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2428 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2429 of strerror with safe_strerror, use ISO C function definitions,
2430 and replace instances of sprintf with snprintf.
2432 2003-07-07 Andrew Cagney <cagney@redhat.com>
2434 * frame.c (get_prev_frame): Enable check for identical frames.
2435 Update comments. Update error messages.
2437 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2439 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2441 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2443 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2444 sort_symtab_syms, no longer necessary.
2446 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2448 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2450 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2452 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2453 (mips_register_byte): Likewise.
2455 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2457 * Makefile.in (sparc_tdep_h): New.
2458 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2459 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2460 * sparc-linux-nat.c: Include "sparc-tdep.h".
2461 * sparc-nat.c: Likewise.
2462 * sparc-tdep.c: Likewise.
2463 * sparc64nbsd-nat.c: Likewise.
2464 * sparcnbsd-nat.c: Likewise.
2465 * sparcnbsd-tdep.c: Likewise.
2466 * sparc-tdep.h: New file.
2467 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2468 and sparc_npc_regnum.
2470 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2472 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2473 (mips_linux_cannot_store_register): List supported instead of
2474 unsupported registers.
2476 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2478 * disasm.c (dump_insns): Separate instructions from addresses.
2480 2003-07-07 Andreas Schwab <schwab@suse.de>
2482 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2484 * m68k-tdep.c (NUM_FREGS): Delete.
2485 (SIG_PC_FP_OFFSET): Delete.
2486 (TARGET_M68K): Delete.
2487 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2488 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2489 P_MOVEL_SP, P_MOVEML_SP): Define.
2490 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2492 (m68k_register_raw_size): Delete.
2493 (m68k_register_virtual_size): Delete.
2494 (m68k_register_type): Renamed from m68k_register_virtual_type and
2495 add gdbarch argument.
2496 (m68k_store_struct_return): Delete.
2497 (m68k_deprecated_extract_return_value): Delete.
2498 (m68k_deprecated_extract_struct_value_address): Delete.
2499 (m68k_frame_chain): Delete.
2500 (m68k_frame_saved_pc): Delete.
2501 (m68k_fix_call_dummy): Delete.
2502 (m68k_push_dummy_frame): Delete.
2503 (m68k_pop_frame): Delete.
2504 (m68k_extract_return_value): New function.
2505 (m68k_store_return_value): Rewrite using regcache.
2506 (m68k_extract_struct_value_address): Rewrite using regcache.
2507 (m68k_push_dummy_call): New function.
2508 (struct m68k_frame_cache): Define.
2509 (m68k_alloc_frame_cache): New function.
2510 (m68k_analyze_frame_setup): New function.
2511 (m68k_analyze_register_saves): New function.
2512 (m68k_analyze_prologue): New function.
2513 (m68k_skip_prologue): Rewrite using above functions.
2514 (m68k_unwind_pc): New function.
2515 (m68k_frame_cache): New function.
2516 (m68k_frame_this_id): New function.
2517 (m68k_frame_prev_register): New function.
2518 (m68k_frame_unwind): New variable.
2519 (m68k_frame_p): New function.
2520 (m68k_sigtramp_frame_cache): New function.
2521 (m68k_sigtramp_frame_this_id): New function.
2522 (m68k_sigtramp_frame_prev_register): New function.
2523 (m68k_sigtramp_frame_unwind): New variable.
2524 (m68k_sigtramp_frame_p): New function.
2525 (m68k_frame_base_address): New function.
2526 (m68k_frame_base): New function.
2527 (m68k_unwind_dummy_id): New function.
2528 (fill_gregset): Use regcache_collect.
2529 (fill_fpregset): Likewise.
2530 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2532 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2533 deprecated_init_frame_pc, deprecated_store_struct_return,
2534 deprecated_extract_return_value, deprecated_store_return_value,
2535 deprecated_frame_chain, deprecated_frame_saved_pc,
2536 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2537 deprecated_register_virtual_size,
2538 deprecated_max_register_raw_size,
2539 deprecated_max_register_virtual_size,
2540 deprecated_register_virtual_type, deprecated_register_size,
2541 deprecated_register_byte, deprecated_register_bytes,
2542 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2543 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2544 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2545 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2546 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2547 deprecated_push_dummy_frame, deprecated_pop_frame,
2548 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2549 only if SYSCALL_TRAP is defined. Set extract_return_value,
2550 store_return_value, extract_struct_value_address, register_type,
2551 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2553 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2554 M68K_MAX_REGISTER_SIZE): Define.
2555 (struct m68k_sigtramp_info): Define.
2556 (struct gdbarch_tdep): Add get_sigtramp_info.
2557 * m68klinux-nat.c (fetch_register): Use register_size instead of
2558 REGISTER_RAW_SIZE. Don't put assignment in if.
2559 (store_register): Likewise.
2560 (fetch_inferior_registers): Likewise.
2561 (store_inferior_registers): Likewise.
2562 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2563 (m68k_linux_frame_saved_pc): Delete.
2564 (m68k_linux_sigcontext_reg_offset,
2565 m68k_linux_ucontext_reg_offset): Define.
2566 (m68k_linux_get_sigtramp_info): New function.
2567 (m68k_linux_extract_return_value): Rewrite using regcache.
2568 (m68k_linux_store_return_value): Likewise.
2569 (m68k_linux_extract_struct_value_address): Likewise.
2570 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2571 Don't set deprecated_frame_saved_pc,
2572 deprecated_extract_return_value, deprecated_store_return_value,
2573 deprecated_extract_struct_value_address. Set
2574 extract_return_value, store_return_value,
2575 extract_struct_value_address.
2577 2003-07-07 Andrew Cagney <cagney@redhat.com>
2579 * expprint.c: Include "user-regs.h" instead of "frame.h".
2580 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2581 frame_map_regnum_to_name.
2582 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2583 (frame_map_name_to_regnum): Simplify, call
2584 user_reg_map_name_to_regnum.
2585 (frame_map_regnum_to_name): Simplify, call
2586 user_reg_map_regnum_to_name.
2587 (frame_register_unwind): Update.
2588 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2589 (_initialize_frame_reg): Call user_reg_add_builtin.
2590 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2591 (value_of_register): Use value_of_user_reg.
2592 * eval.c (evaluate_subexp_standard): Update.
2593 * parse.c (write_dollar_variable): Update.
2594 * d10v-tdep.c (d10v_print_registers_info): Update.
2595 * infcmd.c (registers_info): Update.
2596 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2597 (builtin_regs_h): Delete macro.
2598 (user_regs_h): Define.
2599 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2600 (builtin-regs.o): Delete target.
2601 (user-regs.o): Specify dependencies.
2602 (expprint.o): Update dependencies.
2603 (findvar.o): Update dependencies.
2604 (frame.o): Update dependencies.
2605 (std-regs.o): Update dependencies.
2607 2003-07-06 Christopher Faylor <cgf@redhat.com>
2609 * win32-nat.c (solib_symbols_add): Use one variable for all section
2610 address stuff. Pass variable rather than address of variable to
2611 safe_symbol_file_add.
2613 2003-07-06 Andreas Schwab <schwab@suse.de>
2615 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2617 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2619 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2621 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2623 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2625 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2627 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2628 * config/i386/nto.mh: New file.
2629 * config/i386/nm-nto.h: New file.
2630 * configure.host: Add i[3456]86-*-nto*.
2632 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2634 * remote-vx.c (vx_add_symbols): Fix compilation error.
2636 2003-07-03 Andrew Cagney <cagney@redhat.com>
2638 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2639 * gdbarch.h, gdbarch.c: Re-generate.
2640 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2641 (legacy_register_name): Declare.
2642 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2643 (REGISTER_NAME): Define.
2644 * sparc-tdep.c (legacy_register_name): New function.
2645 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2646 (REGISTER_NAME): Define.
2647 (hppa64_register_name): Declare.
2648 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2649 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2650 (hppa64_register_name): New function.
2651 (hppa_register_name): New function.
2652 * arch-utils.c (legacy_register_name): Delete.
2653 * arch-utils.h (legacy_register_name): Delete.
2655 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2657 * cli/cli-interp.c (cli_interpreter_resume): Update the
2658 cli_uiout's stream to gdb_stdout.
2660 2003-07-03 Andrew Cagney <cagney@redhat.com>
2662 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2664 * gdbarch.h, gdbarch.c: Re-generate.
2665 * regcache.c (init_regcache_descr): Use legacy code when either
2666 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2668 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2670 * NEWS: Move "set logging" entry into GDB 6.0 section.
2672 2003-07-02 Jim Blandy <jimb@redhat.com>
2674 * s390-tdep.c (struct frame_extra_info): new member:
2675 'stack_bought_valid'.
2676 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2677 initialize fextra_info->stack_bought.
2678 (s390_frameless_function_invocation): Don't trust the value of
2679 fextra_info_ptr->stack_bought unless
2680 fextra_info->stack_bought_valid is set.
2682 New S390 prologue analyzer.
2683 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2684 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2685 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2686 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2687 compute_x_addr, s390_on_stack, s390_store,
2688 s390_get_signal_frame_info): New functions.
2689 (S390_NUM_SPILL_SLOTS): New macro.
2690 (s390_get_frame_info): Rewritten.
2691 (is_arg_reg): Deleted.
2693 Break out the decoding of S/390 instructions into separate
2694 functions, to make it more legible, and easier to check
2696 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2697 is_rx, is_rxe): New functions.
2698 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2699 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2700 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2701 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2702 enums for opcode values. (Is this an improvement?)
2704 2003-07-02 Andrew Cagney <cagney@redhat.com>
2706 * i386-tdep.c: Revert change committed as part of trad-frame code
2709 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2711 * breakpoint.c (insert_catchpoint): Make static.
2713 2003-07-02 Andreas Schwab <schwab@suse.de>
2715 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2716 former ia64_push_arguments and ia64_push_return_address, and use
2717 regcache functions instead of read/write_register.
2718 (ia64_gdbarch_init): Set push_dummy_call instead of
2719 deprecated_push_arguments and deprecated_push_return_address.
2721 2003-07-01 Andreas Jaeger <aj@suse.de>
2723 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2725 Set %rax only to number of SSE registers used.
2727 2003-07-01 Andrew Cagney <cagney@redhat.com>
2729 * trad-frame.h: Update comments, a -1 .addr is reserved.
2730 (trad_frame_value_p, trad_frame_addr_p): Declare.
2731 (trad_frame_reg_p): Declare.
2732 (trad_frame_set_value): Rename trad_frame_register_value.
2733 (trad_frame_set_unknown): Declare.
2734 * trad-frame.c (trad_frame_realreg_p): New function.
2735 (trad_frame_addr_p, trad_frame_value_p): New function.
2736 (trad_frame_set_unknown): New function.
2737 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2738 (trad_frame_prev_register): Use trad_frame_realreg_p,
2739 trad_frame_addr_p and trad_frame_value_p.
2740 (trad_frame_set_value): Rename trad_frame_register_value.
2741 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2742 and trad_frame_set_value.
2744 2003-06-30 Jim Blandy <jimb@redhat.com>
2746 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2747 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2748 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2749 for 16 registers, and then 32 more bytes.
2750 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2752 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2753 Move up in the file, since it's now used by is_simple_arg.
2754 (is_simple_arg): Don't assume registers are four bytes long.
2755 Exclude all double arguments. Extended floats are not simple
2757 (is_power_of_two): New function.
2758 (pass_by_copy_ref): Call is_power_of_two, and check that the
2759 length fits in a register, rather than listing all the acceptable
2760 sizes. Extended floats are not passed by reference.
2761 (s390_push_arguments): Don't assume registers are four bytes long.
2762 Reserve an argument register to point to the buffer for structures
2763 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2764 S390_STACK_FRAME_OVERHEAD.
2766 2003-06-30 Andreas Schwab <schwab@suse.de>
2768 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2769 format error message.
2771 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2773 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2775 2003-06-30 David Carlton <carlton@kealia.com>
2777 Band-aid for PR c++/1245.
2778 * Makefile.in (cp-support.o): Depend on complaints_h.
2779 * cp-support.c: Include complaints.h. Add declaration for
2780 find_last_component.
2781 (cp_find_first_component): Separate code into
2782 cp_find_first_component_aux.
2783 (cp_find_first_component_aux): Call demangled_name_complaint.
2784 (demangled_name_complaint): New.
2786 2003-06-30 Andrew Cagney <cagney@redhat.com>
2788 * remote.c (remote_write_bytes): Explicitly compute and then use
2789 the payload size. Update comments to reflect. Fixes problem of
2790 GDB not sending small packets as found by Fred Fish.
2792 2003-06-30 Andrew Cagney <cagney@redhat.com>
2794 * remote.c (remote_async_wait): Fix -Wformat problem.
2796 2003-06-29 Andrew Cagney <cagney@redhat.com>
2798 * remote.c (remote_wait): Call error, and not warning, when the
2800 (remote_async_wait): Ditto.
2802 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2804 * sparc-tdep.c (sparc_y_regnum): Make external again.
2806 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2808 * cli/cli-logging.c (pop_output_files): Add void to function
2811 2003-06-29 Andrew Cagney <cagney@redhat.com>
2813 * frame.c (frame_register_unwind): Use unsigned char when dumping
2814 the buffer contents.
2816 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2818 * cli/cli-logging.c: New file.
2819 * cli-out.c (struct ui_out_data): Add original_stream.
2820 (cli_redirect): New function.
2821 (cli_ui_out_impl): Add cli_redirect.
2822 (cli_out_new): Initialize original_stream.
2823 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2824 (uo_redirect, ui_out_redirect): New.
2825 * ui-out.h (struct ui_out_impl): Add redirect member.
2826 (redirect_ftype): New.
2827 (ui_out_redirect): Add prototype.
2828 * Makefile.in: Add rules for cli-logging.c.
2829 * NEWS: Mention "set logging".
2831 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2833 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2835 2003-06-27 Andrew Cagney <cagney@redhat.com>
2837 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2838 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2839 * avr-tdep.c (avr_call_dummy_address): Delete function.
2840 (avr_gdbarch_init): Do not set call_dummy_address.
2842 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2844 * symfile.c (syms_from_objfile): Move variables to inner block.
2845 Move the checks for the non-mainline case a bit earlier to avoid
2846 doing some useless computations.
2848 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2850 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2852 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2854 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2857 2003-06-26 Michael Chastain <mec@shout.net>
2859 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2860 gdb/testsuite/gdb.c++/pr-1210.exp.
2862 2003-06-26 Andrew Cagney <cagney@redhat.com>
2864 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2865 altivec_expression.h and altivec_registers.h.
2867 2003-06-26 Andrew Cagney <cagney@redhat.com>
2869 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2870 info->mach when MIPS16. Patch suggested by Fred Fish.
2872 2003-06-26 Andrew Cagney <cagney@redhat.com>
2874 * utils.c (internal_vproblem): Print the problem to a reason
2875 buffer and then pass to query. Make the msg variable more local.
2877 2003-06-26 Andrew Cagney <cagney@redhat.com>
2879 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2880 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2881 * gdbarch.h, gdbarch.c: Re-generate.
2882 * frame-base.c (default_frame_args_address): Update. Use
2883 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2885 (default_frame_locals_address): Ditto for
2886 DEPRECATED_FRAME_LOCALS_ADDRESS.
2887 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2888 (vax_frame_num_args): Update.
2889 (vax_gdbarch_init): Update.
2890 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2891 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2892 * mcore-tdep.c (mcore_gdbarch_init): Update.
2893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2894 * ia64-tdep.c (ia64_gdbarch_init): Update.
2895 * symtab.h (address_class): Update comments.
2896 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2897 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2898 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2899 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2900 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2901 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2902 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2903 * alpha-mdebug-tdep.c: Update.
2904 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2906 2003-06-26 Andreas Jaeger <aj@suse.de>
2908 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2909 of SSE registers so that varargs functions work. Rework handling
2910 of passing arguments on the stack.
2911 (x86_64_store_return_value): Return double and float values in SSE
2914 2003-06-24 Michael Chastain <mec@shout.net>
2916 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2917 the "constructor breakpoints ignored" bug.
2919 2003-06-25 David Carlton <carlton@kealia.com>
2921 * MAINTAINERS: Update e-mail address.
2923 2003-06-24 Jim Blandy <jimb@redhat.com>
2925 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2927 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2929 (ppc_linux_init_abi): Register it as the
2930 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2932 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2933 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2936 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2937 (ppc64_standard_linkage_target): Use it.
2939 2003-06-23 Andrew Cagney <cagney@redhat.com>
2941 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2942 for 0 "int0" and 4 "int32" sized registers.
2943 * gdbtypes.c (builtin_type_int0): Define.
2944 (build_gdbtypes): Initialize builtin_type_int0.
2945 * gdbtypes.h (builtin_type_int0): Declare.
2947 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2949 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2950 as characters are unsigned.
2952 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2955 * dwarfread.c (struct_type): Skip static fields without crashing.
2957 2003-06-22 Andrew Cagney <cagney@redhat.com>
2959 GDB 6.0 branch created.
2961 * PROBLEMS: Update. Empty.
2964 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2966 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2967 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2969 2003-06-22 Andrew Cagney <cagney@redhat.com>
2971 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2972 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2975 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2977 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2980 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2982 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2983 argument of val_print.
2984 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2985 to the address argument of baseclass_offset or target_read_memory.
2986 Do add it to the argument of cp_print_value_fields.
2988 2003-06-21 Andrew Cagney <cagney@redhat.com>
2990 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2991 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2992 instead of 0..NUM_REGS.
2993 (mips_register_reggroup_p): New function.
2994 (mips_pseudo_register_write): New function.
2995 (mips_pseudo_register_read): New function.
2996 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2997 based on the register's type.
2998 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3000 (mips_get_saved_register): Simplify. Assert that REGNO is a
3002 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3003 (mips_register_type): Replace mips_register_virtual_type. Map
3004 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3006 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3007 that the register is cooked / virtual.
3008 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3009 Only get the extra info when needed.
3010 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3011 (mips32_heuristic_proc_desc): Fetch the cooked register.
3012 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3013 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3014 (mips_print_register): Use gdbarch_register_type, instead of
3015 REGISTER_VIRTUAL_TYPE.
3016 (print_gp_register_row): Use gdbarch_register_type, instead of
3017 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3018 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3019 Print the pseudo / cooked registers.
3020 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3021 Print the pseudo / cooked registers.
3022 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3023 REG_NUM is pseudo / cooked.
3024 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3025 (mips_n32n64_xfer_return_value): Ditto.
3026 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3027 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3028 (mips_register_sim_regno): New function.
3029 (mips_gdbarch_init): Set deprecated_register_byte,
3030 register_group_p, pseudo_register_write, pseudo_register_read,
3031 register_sim_regno, and num_pseudo_regs. Set register_type,
3032 instead of register_virtual_type.
3033 * Makefile.in (mips-tdep.o): Update dependencies.
3034 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3035 REGISTER_VIRTUAL_TYPE.
3036 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3037 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3038 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3039 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3040 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3042 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3044 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3045 * cli/cli-cmds.c: Include "gdb_vfork.h".
3046 (shell_escape): Use vfork.
3048 2003-06-21 Andrew Cagney <cagney@redhat.com>
3050 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3051 32 bit floating-point register saves.
3053 * frame.h (deprecated_unwind_get_saved_register): Delete.
3054 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3055 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3056 and deprecated_get_next_frame_hack instead of
3057 deprecated_unwind_get_saved_register.
3059 * mips-tdep.c (mips_dump_tdep): Do not print
3060 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3062 * frame.c (get_frame_register): New function.
3063 (frame_unwind_register_signed): New function.
3064 (get_frame_register_signed): New function.
3065 (frame_unwind_register_unsigned): New function.
3066 (get_frame_register_unsigned): New function.
3067 * frame.h: Add comments on naming schema.
3068 (get_frame_register, frame_unwind_register_signed): Declare.
3069 (get_frame_register_signed, get_frame_register_signed): Declare.
3070 (frame_unwind_register_unsigned): Declare.
3071 (get_frame_register_unsigned): Declare.
3073 2003-06-20 Theodore A. Roth <troth@openavr.org>
3075 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3077 2003-06-20 Theodore A. Roth <troth@openavr.org>
3079 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3080 (avr_read_sp): Ditto.
3082 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3084 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3085 * config/arm/nm-linux.h: Likewise.
3086 * config/arm/tm-linux.h: Likewise.
3087 * config/ia64/nm-linux.h: Likewise.
3088 * config/ia64/tm-ia64.h: Likewise.
3089 * config/s390/tm-linux.h: Likewise.
3090 * config/s390/tm-s390.h: Likewise.
3091 * s390-nat.c: Likewise.
3092 * s390-tdep.c: Likewise.
3094 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3095 * config/ia64/linux.mt: Likewise.
3096 * config/m68k/linux.mh: Likewise.
3097 * config/mips/linux.mt: Likewise.
3098 * config/powerpc/linux.mh: Likewise.
3099 * config/sh/linux.mt: Likewise.
3101 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3103 * solib.c (solib_open): Change tests for whether to search
3104 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3107 2003-06-19 Theodore A. Roth <troth@openavr.org>
3109 * avr-tdep.c (avr_frame_address): Delete function.
3110 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3111 set_gdbarch_frame_args_address.
3113 2003-06-19 Andrew Cagney <cagney@redhat.com>
3115 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3116 (REGISTER_CONVERT_FROM_TYPE): Delete.
3117 (mips_register_convert_to_type): Delete declaration.
3118 (mips_register_convert_from_type): Delete declaration.
3119 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3122 2003-06-19 Michael Snyder <msnyder@redhat.com>
3124 * linux-nat.h: New file.
3125 * linux-nat.c: Include linux-nat.h.
3126 * lin-lwp.c: Include linux-nat.h.
3127 Move struct lwp_info def to linux-nat.h.
3128 * linux-proc.c: Include linux-nat.h.
3129 (linux_make_note_section): Iterate over lwps instead of threads.
3130 (linux_do_thread_registers): Use lwp instead of merged pid.
3131 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3132 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3133 Add dependency on linux_nat_h.
3135 2003-06-19 Theodore A. Roth <troth@openavr.org>
3137 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3139 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3141 * varobj.c (get_type, get_target_type): Use check_typedef.
3143 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3145 * breakpoint.c (insert_catchpoint): Call internal_error.
3147 2003-06-19 Theodore A. Roth <troth@openavr.org>
3149 * avr-tdep.c (avr_push_dummy_code): Delete function.
3150 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3152 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3154 * arch-utils.c (default_prepare_to_proceed): Remove.
3155 (generic_prepare_to_proceed): Remove.
3156 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3157 (generic_prepare_to_proceed): Remove prototype.
3158 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3159 * gdbarch.c: Regenerate.
3160 * gdbarch.h: Regenerate.
3161 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3162 * hppah-nat.c (hppa_switched_threads): Remove.
3163 * infrun.c (prepare_to_proceed): New static function, copied from
3164 generic_prepare_to_proceed. Remove select_it argument.
3165 (proceed): Call prepare_to_proceed.
3166 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3168 (ptrace_wait): Don't set the removed variables.
3169 (hppa_switched_threads): Remove.
3170 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3171 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3172 (lin_lwp_prepare_to_proceed): Remove prototype.
3173 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3174 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3176 2003-06-18 Theodore A. Roth <troth@openavr.org>
3178 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3180 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3181 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3182 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3183 (AVR_PROLOGUE_*): Enumerate prologue types.
3184 (struct frame_extra_info): Remove.
3185 (struct avr_unwind_cache): Define.
3186 (avr_write_sp): Delete function.
3187 (avr_read_fp): Ditto.
3188 (avr_init_extra_frame_info): Ditto.
3189 (avr_pop_frame): Ditto.
3190 (avr_frame_saved_pc): Ditto.
3191 (avr_saved_pc_after_call): Ditto.
3192 (avr_push_return_address): Ditto.
3193 (avr_frame_chain): Ditto.
3194 (avr_store_struct_return): Ditto.
3195 (avr_push_arguments): Ditto.
3196 (avr_scan_prologue): Update comments. Changed to set up the info for
3197 cache unwinding. Now returns end of prologue PC.
3198 (avr_skip_prologue): Better handling of functions lacking a prologue
3199 by using avr_scan_prologue.
3200 (avr_scan_arg_moves): New function.
3201 (avr_saved_regs_unwinder): Ditto.
3202 (avr_frame_unwind_cache): Ditto.
3203 (avr_unwind_pc): Ditto.
3204 (avr_frame_this_id): Ditto.
3205 (avr_frame_prev_register): Ditto.
3206 (avr_frame_p): Ditto.
3207 (avr_frame_base_address ): Ditto.
3208 (avr_unwind_dummy_id): Ditto.
3209 (avr_push_dummy_code): Ditto.
3210 (push_stack_item): Ditto.
3211 (pop_stack_item): Ditto.
3212 (avr_push_dummy_call): Ditto.
3213 (struct stack_item): Define.
3214 (avr_frame_unwind): Declare structure.
3215 (avr_frame_base): Ditto.
3216 (avr_gdbarch_init): Remove calls to
3217 set_gdbarch_deprecated_init_frame_pc,
3218 set_gdbarch_deprecated_target_read_fp,
3219 set_gdbarch_deprecated_dummy_write_sp,
3220 set_gdbarch_deprecated_fp_regnum,
3221 set_gdbarch_deprecated_push_arguments,
3222 set_gdbarch_deprecated_push_return_address,
3223 set_gdbarch_deprecated_pop_frame,
3224 set_gdbarch_deprecated_store_struct_return,
3225 set_gdbarch_deprecated_frame_init_saved_regs,
3226 set_gdbarch_deprecated_init_extra_frame_info,
3227 set_gdbarch_deprecated_frame_chain,
3228 set_gdbarch_deprecated_frame_saved_pc,
3229 set_gdbarch_deprecated_saved_pc_after_call.
3230 Add calls to set_gdbarch_push_dummy_call,
3231 set_gdbarch_push_dummy_code,
3232 frame_unwind_append_predicate,
3233 frame_base_set_default,
3234 set_gdbarch_unwind_dummy_id,
3235 set_gdbarch_unwind_pc.
3238 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3240 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3241 registers for H8/300S.
3242 (h8300_print_registers_info): Ditto.
3243 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3245 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3247 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3248 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3249 (lin_lwp_wait): Likewise. Update comments.
3250 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3251 (pull_pid_from_list, linux_record_stopped_pid): New.
3253 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3255 * ada-lang.c (scan_discrim_bound): Name first argument.
3256 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3257 declared by ALL_BLOCK_SYMBOLS.
3259 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3261 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3262 ("regcache.h"): Include it.
3263 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3265 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3267 * NEWS: Mention gdbserver detach change and "disconnect" command.
3268 * infcmd.c (disconnect_command): New function.
3269 (_initialize_infcmd): Add ``disconnect'' command.
3270 * remote.c (remote_async_detach): Delete.
3271 (remote_detach): Merge remote_async_detach.
3272 (remote_disconnect): New.
3273 (init_remote_ops): Set to_disconnect.
3274 (init_remote_cisco_ops): Likewise.
3275 (init_remote_async_ops): Likewise. Use remote_detach.
3276 * target.c (cleanup_target): Default to_disconnect.
3277 (update_current_target): Inherit to_disconnect.
3278 (target_disconnect, debug_to_disconnect): New functions.
3279 (setup_target_debug): Set to_disconnect.
3280 * target.h (struct target_ops): Add to_disconnect.
3281 (target_disconnect): Add prototype.
3283 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3285 * breakpoint.c (insert_catchpoint): New function.
3286 (insert_breakpoints): Use catch_exceptions to call
3287 insert_catchpoint. Disable catchpoints if they fail to insert.
3289 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3291 * symfile.c (reread_symbols): Clear sym_private.
3293 2003-06-17 Andrew Cagney <cagney@redhat.com>
3295 * trad-frame.h (struct frame_info): Add opaque declaration.
3296 * remote-fileio.h (struct cmd_list_element): Add opaque
3298 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3301 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3303 * remote.c (remote_prepare_to_store): Replace call to
3304 deprecated_read_register_bytes with multiple regcache_raw_read
3307 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3309 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3310 (nto_find_and_open_solib): Likewise.
3311 (nto_init_solib_absolute_prefix): Likewise.
3312 (_initialize_nto_tdep): Fix indentation.
3314 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3316 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3318 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3320 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3322 2003-06-17 Jim Blandy <jimb@redhat.com>
3324 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3326 2003-06-16 Theodore A. Roth <troth@openavr.org>
3328 * avr-tdep.c (avr_extract_return_value): New function.
3329 (avr_gdbarch_init): Set extract_return_value method.
3331 2003-06-16 Andrew Cagney <cagney@redhat.com>
3333 * frame.h (deprecated_get_next_frame_hack): Declare.
3334 * frame.c (legacy_saved_regs_prev_register): Only require
3335 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3336 there are always saved regs.
3337 (deprecated_generic_get_saved_register): Do not require
3338 DEPRECATED_FRAME_INIT_SAVED_REGS.
3339 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3340 use frame ID unwind instead.
3341 (deprecated_get_next_frame_hack): New function.
3343 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3345 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3346 (h8300_push_dummy_call): ...this function. Some minor optimization.
3347 (h8300_push_return_address): Remove.
3348 (h8300_gdbarch_init): Remove calls to
3349 set_gdbarch_deprecated_dummy_write_sp,
3350 set_gdbarch_deprecated_push_arguments and
3351 set_gdbarch_deprecated_push_return_address.
3352 Add call to set_gdbarch_push_dummy_call.
3354 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3356 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3357 (E_PSEUDO_EXR_REGNUM): Ditto.
3358 (h8300_is_argument_spill): Check for instructions moving argument
3359 registers into safe registers.
3360 (h8300_skip_prologue): Check for stm instruction to push registers
3361 used for register variables onto stack.
3362 (gdb_print_insn_h8300): Remove.
3363 (h8300_examine_prologue): Add a comment.
3364 (h8300_register_name): Take pseudo registers into account.
3365 (h8300s_register_name): Ditto.
3366 (h8300sx_register_name): Ditto.
3367 (h8300_print_register): Ditto.
3368 (h8300_print_registers_info): Define "nice" printing order.
3369 (h8300_saved_pc_after_call): Take pseudo registers into account.
3370 (h8300_register_type): Ditto. Return type used for remote connection
3371 when requesting real CCR or EXR register, return actual type when
3372 requesting pseudo CCR or EXR.
3373 (h8300_pseudo_register_read): New function.
3374 (h8300_pseudo_register_write): Ditto.
3375 (h8300_dbg_reg_to_regnum): Ditto.
3376 (h8300s_dbg_reg_to_regnum): Ditto.
3377 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3378 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3379 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3380 set_gdbarch_print_insn architecture dependent.
3381 Call set_gdbarch_pseudo_register_read and
3382 set_gdbarch_pseudo_register_write.
3383 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3385 2003-06-16 Andrew Cagney <cagney@redhat.com>
3387 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3388 * gdbarch.h, gdbarch.c: Re-generate.
3389 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3390 * s390-tdep.c (s390_gdbarch_init): Update.
3391 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3392 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3393 * mips-tdep.c (mips_gdbarch_init): Update.
3394 * mcore-tdep.c (mcore_gdbarch_init): Update.
3395 * cris-tdep.c (cris_gdbarch_init): Update.
3396 * infcall.c (call_function_by_hand): Update.
3397 * ia64-tdep.c (ia64_push_arguments): Update comment.
3398 * frame.c (legacy_get_prev_frame): Do not assume
3399 SAVE_DUMMY_FRAME_TOS_P.
3400 * dummy-frame.c (find_dummy_frame): Update comment.
3402 2003-06-16 Andrew Cagney <cagney@redhat.com>
3404 * regcache.c (do_cooked_read): Do not use register_valid_p.
3406 2003-06-15 Theodore A. Roth <troth@openavr.org>
3408 * avr-tdep.c (avr_register_type): Remove a blank line.
3409 (avr_scan_prologue): Correct some comments.
3411 2003-06-15 Theodore A. Roth <troth@openavr.org>
3413 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3415 Properly scan prologues generated by gcc with the -mcall-prologues
3417 Add code to scan -mcall-prologues for mega devices.
3419 2003-06-15 Theodore A. Roth <troth@openavr.org>
3421 * avr-tdep.c (avr_register_byte): Delete function.
3422 (avr_register_raw_size): Delete function.
3423 (avr_register_virtual_size): Delete function.
3424 (avr_register_virtual_type): Delete function.
3425 (avr_register_type): New function.
3426 (avr_address_to_pointer): Remove unused code.
3427 (avr_read_fp): Need to read FP as two separate bytes due to change to
3428 avr_register_type() usage.
3429 (avr_gdbarch_init): Don't set deprecated_register_size.
3430 Don't set deprecated_register_bytes.
3431 Don't set deprecated_register_byte.
3432 Don't set deprecated_register_raw_size.
3433 Don't set deprecated_max_register_raw_size.
3434 Don't set deprecated_register_virtual_size.
3435 Don't set deprecated_max_register_virtual_size.
3436 Don't set deprecated_register_virtual_type.
3437 Set register_type method.
3439 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3441 * Makefile.in (linux-nat.o): Add rule.
3442 * linux-nat.c: New file.
3443 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3444 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3445 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3446 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3447 * config/arm/linux.mh (NATDEPFILES): Likewise.
3448 * config/i386/linux.mh (NATDEPFILES): Likewise.
3449 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3450 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3451 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3452 * config/mips/linux.mh (NATDEPFILES): Likewise.
3453 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3454 * config/s390/s390.mh (NATDEPFILES): Likewise.
3455 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3457 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3459 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3460 replace out-of-date comment.
3462 2003-06-15 Andrew Cagney <cagney@redhat.com>
3464 * rdi-share/host.h (Fail): Change to a varargs function.
3465 * remote-rdi.c (Fail): Update.
3467 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3469 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3470 (i386_convert_register_p, i386_register_to_value,
3471 i386_register_from_value): Handle types longer than 8 bytes.
3473 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3475 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3476 Move floating-point code to new function in i387-tdep.c.
3477 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3478 New functions containing code moved here from i386-tdep.c.
3479 * i387-tdep.h: Add opaque declaration for `struct type'.
3480 (i387_register_to_value, i387_value_to_register): New prototypes.
3481 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3482 (x86_64_init_abi): Set convert_register_p, register_to_value and
3483 value_to_register here.
3485 2003-06-14 Andrew Cagney <cagney@redhat.com>
3487 * mips-tdep.c (mips_register_to_value): Make static.
3488 (mips_value_to_register): Make static.
3489 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3490 * ia64-tdep.c (ia64_register_raw_size): Make static.
3491 (ia64_register_virtual_size): Make static.
3492 (ia64_register_byte): Make static.
3493 * i387-tdep.c: Include "i387-tdep.h".
3494 (print_387_control_word): Delete function.
3495 (print_387_status_word): Delete function.
3496 (print_387_status_bits): Delete function.
3497 (print_387_control_bits): Delete function.
3498 * Makefile.in (i387-tdep.o): Update dependencies.
3499 * rdi-share/host.h (Fail): Declare.
3500 * remote-rdi.c (Fail): Update to match declaration.
3502 2003-06-14 Andrew Cagney <cagney@redhat.com>
3504 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3505 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3506 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3507 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3508 * README: Delete reference to remote-array.
3509 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3510 (remote-array.o): Delete target.
3511 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3512 * remote-array.c: Delete file.
3514 2003-06-14 Andrew Cagney <cagney@redhat.com>
3515 Mark Kettenis <kettenis@gnu.org>
3517 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3518 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3519 parameter with "frame".
3520 * gdbarch.h, gdbarch.c: Re-generate.
3521 * frame.h (put_frame_register): Declare.
3522 * frame.c (put_frame_register): New function.
3523 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3524 (legacy_register_to_value): Rewrite, use "frame" to get the
3526 (legacy_value_to_register): Rewrite, use "frame" to find the
3527 register's location before storing.
3528 * arch-utils.h (legacy_convert_register_p): Update.
3529 (legacy_register_to_value, legacy_value_to_register): Update.
3530 * findvar.c (value_from_register): Rewrite, eliminate use of
3531 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3532 "frame" to REGISTER_TO_VALUE.
3533 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3534 lval_reg_frame_relative + lval_register branch of the switch. Do
3535 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3536 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3537 I386_EDI_REGNUM): New defines.
3538 (i386_next_regnum, i386_convert_register_p,
3539 i386_register_to_value, i386_value_to_register): New functions.
3540 (i386_register_convertible, i386_register_convert_to_virtual,
3541 i386_convert_to_raw): Remove functions.
3542 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3543 value_to_register instead of register_convertible,
3544 register_convert_to_virtual and register_convert_to_raw.
3545 * mips-tdep.c (mips_convert_register_p): New function.
3546 (mips_value_to_register): Replace mips_register_convert_from_type.
3547 (mips_register_to_value): Replace mips_register_convert_to_type.
3548 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3550 * alpha-tdep.c (alpha_convert_register_p): Update.
3551 (alpha_value_to_register): Update, store the register.
3552 (alpha_register_to_value): Update, fetch the register.
3554 2003-06-14 Theodore A. Roth <troth@openavr.org>
3556 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3557 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3558 Don't set deprecated_call_dummy_words.
3559 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3560 Don't set remote_translate_xfer_address.
3561 (avr_io_reg_read_command): Remove commented out debug printf.
3564 2003-06-14 Theodore A. Roth <troth@openavr.org>
3566 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3567 causes gdb to seg fault.
3569 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3571 * sparc-nat.c (fetch_inferior_registers): Correct
3572 a reference to "registers".
3574 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3576 * Makefile.in (exc_request_U_h): Define
3577 (exc_request_S_h): Likewise.
3578 (msg_reply_S_h): Likewise.
3579 (msg_U_h): Likewise.
3580 (notify_S_h): Likewise.
3581 (process_reply_S_h): Likewise.
3582 (gnu-nat.o): Depend on gdb_obstack_h
3583 * gnu-nat.c: Include "gdb_obstack.h".
3585 2003-06-13 Andrew Cagney <cagney@redhat.com>
3587 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3588 * gdbarch.h, gdbarch.c: Re-generate.
3590 2003-06-13 Andrew Cagney <cagney@redhat.com>
3592 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3593 when deprecated REGISTER macros can be deleted.
3594 * gdbarch.h, gdbarch.c: Re-generate.
3596 2003-06-13 Jim Blandy <jimb@redhat.com>
3598 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3599 Linux entry point symbols for _dl_debug_state, too.
3601 2003-06-13 Andrew Cagney <cagney@redhat.com>
3603 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3604 available, do not use the FP register, and always save the TOS.
3605 * dummy-frame.c (dummy_frame_this_id): Do not assert
3606 SAVE_DUMMY_FRAME_TOS.
3607 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3608 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3609 (i386_push_dummy_call): Add 8 to the returned SP.
3610 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3611 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3612 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3613 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3614 (x86_64_push_dummy_call): Return "sp + 16".
3615 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3616 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3617 save_dummy_frame_tos.
3619 2003-06-13 Jim Blandy <jimb@redhat.com>
3621 * frv-tdep.c (frv_use_struct_convention): Delete static
3622 declaration for function deleted in my change of 2003-06-12.
3624 2003-06-13 Theodore A. Roth <troth@openavr.org>
3626 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3627 (avr_pointer_to_address): Shift code addrs left 1 bit.
3628 (avr_convert_from_func_ptr_addr): Delete function since operation is
3629 better handled by avr_address_to_pointer and avr_pointer_to_address.
3630 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3632 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3634 From Kelley Cook <kelleycook@wideopenwest.com>:
3635 * configure.host: Accept i[34567]86 variants.
3636 * configure.tgt: Likewise.
3637 * nlm/configure.in: Likewise.
3638 * nlm/configure: Regenerated.
3640 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3642 * arm-tdep.c (solib-svr4.h): Dont' include it.
3643 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3644 * arm-linux-tdep.c: ... here. Make static.
3645 (arm_linux_init_abi): Register it.
3646 (solib-svr4.h): Include it.
3647 * Makefile.in: Update dependencies.
3648 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3649 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3651 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3653 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3654 indicate registers used for return values.
3655 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3656 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3658 (h8300_init_extra_frame_info): Ditto.
3659 (h8300_frame_locals_address): Removed.
3660 (h8300_frame_args_address): Removed.
3661 (h8300_extract_return_value): Use new regcache structure. Only care
3663 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3664 (h8300_store_return_value): Use new regcache structure. Only care
3666 (h8300h_store_return_value): Same function for 32 bit CPUs.
3667 (h8300_store_struct_return): Removed.
3668 (h8300_extract_struct_value_address): Use new regcache structure.
3669 (h8300h_extract_struct_value_address): Removed.
3670 (h8300_push_dummy_code): New function.
3671 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3672 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3673 set_gdbarch_store_return_value architecture dependent.
3674 Call set_gdbarch_push_dummy_code and
3675 set_gdbarch_extract_struct_value_address.
3676 Remove calls to set_gdbarch_frame_args_address,
3677 set_gdbarch_frame_locals_address,
3678 set_gdbarch_deprecated_store_struct_return,
3679 set_gdbarch_deprecated_extract_return_value,
3680 set_gdbarch_deprecated_extract_struct_value_address,
3681 set_gdbarch_deprecated_call_dummy_words and
3682 set_gdbarch_deprecated_sizeof_call_dummy_words.
3684 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3686 * h8300-tdep.c (h8300_register_byte): Remove.
3687 (h8300h_register_byte): Remove.
3688 (h8300_register_virtual_type): Remove. Substitute by...
3689 (h8300_register_type): New function.
3690 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3691 (h8300h_extract_struct_value_address): Ditto.
3692 (h8300_gdbarch_init): Drop calls to
3693 set_gdbarch_deprecated_register_byte and
3694 set_gdbarch_deprecated_register_virtual_type.
3695 Add call to set_gdbarch_register_type.
3697 2003-06-13 Andrew Cagney <cagney@redhat.com>
3699 * gdbarch.sh: Update comments on registers.
3700 (deprecated_register_byte): Rename register_byte.
3701 (deprecated_register_raw_size): Rename register_raw_size.
3702 (deprecated_register_virtual_size): Rename register_virtual_size.
3703 (deprecated_register_virtual_type): Rename register_virtual_type.
3704 * gdbarch.h, gdbarch.c: Re-generate.
3705 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3706 * vax-tdep.c (vax_gdbarch_init): Update.
3707 * v850-tdep.c (v850_gdbarch_init): Update.
3708 * sparc-tdep.c (sparc_gdbarch_init): Update.
3709 * sh-tdep.c (sh_gdbarch_init): Update.
3710 * s390-tdep.c (s390_gdbarch_init): Update.
3711 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3712 * ns32k-tdep.c: Update.
3713 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3714 * mips-tdep.c (mips_gdbarch_init): Update.
3715 * mcore-tdep.c (mcore_gdbarch_init): Update.
3716 * m68k-tdep.c (m68k_gdbarch_init): Update.
3717 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3718 * ia64-tdep.c (ia64_gdbarch_init): Update.
3719 * hppa-tdep.c (hppa_gdbarch_init): Update.
3720 * h8300-tdep.c (h8300_gdbarch_init): Update.
3721 * frv-tdep.c (frv_gdbarch_init): Update.
3722 * cris-tdep.c (cris_gdbarch_init): Update.
3723 * avr-tdep.c (avr_gdbarch_init): Update.
3724 * alpha-tdep.c (alpha_gdbarch_init): Update.
3725 * arm-tdep.c (arm_gdbarch_init): Update.
3727 2003-06-13 Andrew Cagney <cagney@redhat.com>
3729 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3730 mips_o32_use_struct_convention with always_use_struct_convention.
3732 2003-06-12 David Carlton <carlton@kealia.com>
3734 * cp-namespace.c (cp_set_block_scope): Comment out
3735 processing_has_namespace_info branch.
3737 2003-06-12 Jim Blandy <jimb@redhat.com>
3739 Recognize and skip 64-bit PowerPC Linux linkage functions.
3740 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3741 insn_pattern, insns_match_pattern, d_field, ds_field): New
3742 functions, macros, and types for working with PPC instructions.
3743 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3744 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3745 ppc64_skip_trampoline_code): New functions, variables, and macros
3746 for recognizing and skipping linkage functions.
3747 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3748 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3750 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3751 register offsets for both the 32- and 64-bit interfaces.
3753 Actually finish the job started by my change of 2003-05-29.
3754 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3755 other #definition of this.
3756 (ppc_linux_skip_trampoline_code): Remove declaration.
3757 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3759 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3762 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3763 'long' on ppc64-*-linux*.
3765 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3766 isn't #defined, assume the register doesn't exist: act as if
3767 tdep->ppc_mq_regnum were -1.
3769 * configure.host, configure.tgt: Add entries for
3770 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3772 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3775 * arch-utils.c (always_use_struct_convention): New function.
3776 * arch-utils.h (always_use_struct_convention): New prototype.
3777 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3778 (alpha_gdbarch_init): Register always_use_struct_convention,
3779 instead of alpha_use_struct_convention.
3780 * cris-tdep.c (cris_use_struct_convention): Delete.
3781 (cris_gdbarch_init): Register always_use_struct_convention,
3782 instead of cris_use_struct_convention.
3783 * frv-tdep.c (frv_use_struct_convention): Delete.
3784 (frv_gdbarch_init): Register always_use_struct_convention,
3785 instead of frv_use_struct_convention.
3786 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3787 (h8300_gdbarch_init): Register always_use_struct_convention,
3788 instead of h8300_use_struct_convention.
3789 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3790 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3791 instead of mips_o32_use_struct_convention.
3793 2003-06-12 Andrew Cagney <cagney@redhat.com>
3795 * wince.c: Include "mips-tdep.h".
3796 * mips-tdep.h (mips_next_pc): Declare.
3797 * mcore-tdep.c: Make more local functions static.
3798 * Makefile.in (wince.o): Update dependencies.
3800 2003-06-12 David Carlton <carlton@kealia.com>
3802 * symtab.c (lookup_symbol_aux_minsyms): Replace
3803 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3804 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3805 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3806 SYMBOL_NATURAL_NAME.
3808 2003-06-12 Andreas Schwab <schwab@suse.de>
3810 * Makefile.in (tuiDisassem.o): Update dependencies.
3812 2003-06-12 David Carlton <carlton@bactrian.org>
3814 * symtab.h: Delete declaration of make_symbol_overload_list.
3815 Add declaration of lookup_partial_symbol.
3816 * symtab.c (remove_params): Move to cp-support.c.
3817 (overload_list_add_symbol, make_symbol_overload_list)
3818 (sym_return_val_size, sym_return_val_index): Ditto.
3819 (lookup_partial_symbol): Make extern.
3820 * cp-support.h: Add declaration of make_symbol_overload_list.
3821 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3822 symtab.h, and block.h.
3823 (remove_params): Move here from symtab.c.
3824 (overload_list_add_symbol, make_symbol_overload_list)
3825 (sym_return_val_size, sym_return_val_index): Ditto.
3826 * valops.c: Include cp-support.h.
3827 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3828 frame_h, and block_h.
3829 (valops.o): Depend on cp_support_h.
3831 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3833 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3834 substitute by NUM_REGS throughout.
3835 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3836 (h8300s_register_name): New function for H8S registers.
3837 (h8300sx_register_name): Ditto for H8SX registers.
3838 (h8300_print_register): Revise register printing, avoid depending
3840 (h8300_register_byte): Only care for H8/300 registers.
3841 (h8300h_register_byte): New function for any other architecture.
3842 (h8300_register_raw_size): Remove.
3843 (h8300_register_virtual_type): Revise to return actually useful
3845 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3846 (h8300h_extract_struct_value_address): New function for any other
3848 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3849 set_gdbarch_register_name, set_gdbarch_register_byte,
3850 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3851 Remove calls to set_gdbarch_deprecated_register_size,
3852 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3853 set_gdbarch_deprecated_max_register_raw_size,
3854 set_gdbarch_register_virtual_size and
3855 set_gdbarch_deprecated_max_register_virtual_size entirely.
3856 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3857 set_gdbarch_long_double_bit.
3859 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3861 * doublest.c (convert_doublest_to_floatformat): When dealing
3862 with the implied integer bit, only alter mant_bits if we are
3863 processing a full 32 bits of mantissa.
3865 2003-06-11 David Carlton <carlton@bactrian.org>
3867 * dictionary.h: New.
3868 * dictionary.c: New.
3869 * block.h: Add opaque declaration for struct dictionary.
3870 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3872 (BLOCK_DICT): New macro.
3873 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3874 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3876 (ALL_BLOCK_SYMBOLS): Update definition.
3877 * Makefile.in (SFILES): Add dictionary.c.
3878 (dictionary_h): New.
3879 (COMMON_OBS): Add dictionary.o.
3880 (dictionary.o): New.
3881 (ada-lang.o): Depend on dictionary_h.
3882 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3883 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3884 (mi-cmd-stack.o): Ditto.
3885 (gdbtk-cmds.o): Update dependencies.
3886 (gdbtk-stack.o): Ditto.
3887 * ada-lang.c: Include dictionary.h.
3888 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3889 (fill_in_ada_prototype, debug_print_block): Ditto.
3890 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3891 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3893 * mdebugread.c: Include dictionary.h.
3894 (struct parse_stack): Delete 'maxsyms' member.
3895 (parse_symbol): Update calls to new_block. Delete calls to
3896 shrink_block. Use dictionary methods.
3897 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3898 Update calls to new_symtab. Don't maintain maxsyms data.
3899 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3900 (add_symbol): Just call dict_add_symbol.
3901 (new_symtab): Delete 'maxsyms' argument.
3902 (new_symtab): Update calls to new_block.
3903 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3904 (shrink_block): Delete function.
3905 (fixup_sigtramp): Update call to new_block. Add symbol via
3907 * jv-lang.c: Include dictionary.h.
3908 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3909 appropriately. Set class_symtab->free_func. Make sure the
3910 blockvector is big enough to hold two blocks.
3911 (add_class_symtab_symbol): Use dictionary methods.
3912 (free_class_block): New function.
3913 (type_from_class): Replace explicit iteration by
3915 * symtab.h (struct symtab): Replace 'free_ptr' method by
3917 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3919 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3921 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3922 Include dictionary.h.
3923 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3924 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3926 * objfiles.c: Include dictionary.h.
3927 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3928 * buildsym.c: Include dictionary.h.
3929 (finish_block): Use dictionary methods.
3930 (end_symtab): Set free_func to NULL, not free_ptr.
3931 * tracepoint.c: Include dictionary.h.
3932 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3933 (scope_info): Ditto.
3934 * stack.c: Include dictionary.h.
3935 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3936 (print_block_frame_labels, print_frame_arg_vars)
3937 (print_frame_args): Ditto.
3938 * symmisc.c (free_symtab_block): Use dictionary methods.
3939 (dump_symtab): Ditto.
3940 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3941 Include dictionary.h.
3942 * symfile.h: Delete declarations of sort_block_syms,
3944 * symfile.c (sort_block_syms): Delete.
3945 (sort_symtab_syms): Delete.
3946 * symtab.c: Include dictionary.h.
3947 (lookup_block_symbol): Use dictionary iterators.
3948 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3949 (search_symbols, make_symbol_completion_list): Ditto.
3950 (make_symbol_overload_list): Ditto.
3951 * valops.c (value_of_local): Use dict_empty.
3952 Include dictionary.h.
3954 2003-06-11 J. Brobecker <brobecker@gnat.com>
3956 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3958 2003-06-11 David Carlton <carlton@bactrian.org>
3960 * block.h (BLOCK_SHOULD_SORT): Delete.
3961 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3963 * ada-lang.c (ada_add_block_symbols): Ditto.
3964 * symfile.c (sort_block_syms): Delete.
3965 (sort_symtab_syms): Ditto.
3966 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3968 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3969 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3970 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3971 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3972 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3973 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3974 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3976 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3978 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3981 2003-06-11 Andrew Cagney <cagney@redhat.com>
3983 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3984 REGISTER_CONVERTIBLE.
3985 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3986 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3987 * gdbarch.h, gdbarch.c: Re-generate.
3988 * arch-utils.h (deprecated_register_convertible_not): Rename
3989 generic_register_convertible_not.
3990 * arch-utils.c (deprecated_register_convertible_not): Rename
3991 generic_register_convertible.
3992 (legacy_convert_register_p, legacy_register_to_value): Update.
3993 * sh-tdep.c (sh64_push_arguments): Update.
3994 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3995 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3996 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3997 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3998 * arch-utils.c (legacy_value_to_register): Update.
3999 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4000 (rs6000_register_convert_to_raw): Make parameter "from" const.
4001 * mips-tdep.c (mips_gdbarch_init): Update.
4002 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4003 * infcmd.c (default_print_registers_info): Update.
4004 * ia64-tdep.c (ia64_gdbarch_init): Update.
4005 (ia64_register_convert_to_raw): Make parameter "from" const.
4006 * i386-tdep.c (i386_gdbarch_init): Update.
4007 (i386_register_convert_to_raw): Update.
4009 2003-06-11 Andrew Cagney <cagney@redhat.com>
4011 * remote-fileio.c: Include "remote-fileio.h".
4012 * Makefile.in (remote-fileio.o): Update dependencies.
4013 (remote_fileio_h): Fix typo.
4015 2003-06-11 Andrew Cagney <cagney@redhat.com>
4017 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4018 (xstormy16_save_dummy_frame_tos): Make static.
4019 (_initialize_xstormy16_tdep): Add declaration.
4020 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4021 * v850-tdep.c: Make local functions static.
4022 (_initialize_v850_tdep): Add declaration.
4023 * sparc-tdep.c: Make local functions static.
4024 (_initialize_sparc_tdep): Add declaration.
4025 * sh-tdep.c: Make local functions static.
4026 (_initialize_sh_tdep): Add declaration.
4027 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4028 * s390-tdep.c: Make local functions static.
4029 (_initialize_s390_tdep): Add declaration.
4030 * dbxread.c (find_stab_function_addr): Make static.
4031 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4032 * ocd.c (_initialize_remote_ocd): Add declaration.
4033 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4034 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4035 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4036 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4037 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4038 * remote-array.c (_initialize_array): Add declaration.
4039 (_initialize_remote_monitors): Add declaration.
4040 * remote-mips.c: Make local functions static.
4041 (_initialize_remote_mips): Add declaration.
4042 * mcore-tdep.c: Make all local functions static.
4043 (_initialize_mcore_tdep): Add declaration.
4044 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4045 * abug-rom.c (_initialize_abug_rom): Add declaration.
4046 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4047 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4048 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4049 * remote-est.c (_initialize_est): Add declaration.
4050 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4051 (m68hc11_call_dummy_address): Make static.
4052 * ia64-tdep.c: Make local functions static.
4053 (_initialize_ia64_tdep): Add declaration.
4054 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4055 * monitor.c (monitor_wait_filter): Make static.
4056 (_initialize_remote_monitors): Add declaration.
4057 * remote-hms.c (_initialize_remote_hms): Add declaration.
4058 * remote-e7000.c (fetch_regs_from_dump): Make static.
4059 (expect_n): Make static.
4060 (_initialize_remote_e7000): Add declaration.
4061 * ser-e7kpc.c: Always include "defs.h".
4062 (_initialize_ser_e7000pc): Add declaration.
4063 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4064 * cris-tdep.c: Make all but one function static.
4065 (_initialize_cris_tdep): Add declaration.
4066 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4067 * solib.c (update_solib_list): Make static.
4068 (_initialize_solib): Add declaration.
4069 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4070 (_initialize_avr_tdep): Add declaration.
4071 * remote-rdi.c (voiddummy): Make static.
4072 (_initialize_remote_rdi): Add declaration.
4073 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4074 * remote-rdp.c (send_rdp): Make static.
4075 (_initialize_remote_rdp): Add declaration.
4076 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4078 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4080 * remote-fileio.c: Make ari happy.
4082 2003-06-10 J. Brobecker <brobecker@gnat.com>
4084 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4085 fetching the trailing bytes of the buffer we are about to write.
4087 2003-06-10 Andrew Cagney <cagney@redhat.com>
4089 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4090 * Makefile.in (remote-fileio.o): Update dependencies.
4091 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4092 include <setjmp.h>, or <sys/types.h> conditional on USG.
4093 (remote_fio_jmp_buf): Delete global variable.
4095 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4096 Martin M. Hunt <hunt@redhat.com>
4098 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4099 (SFILES): Add remote-fileio.c.
4100 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4101 dependencies for building remote.o.
4102 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4103 * remote-fileio.h: New header file defining remote File-I/O interface.
4104 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4105 static storage class.
4106 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4108 (_initialize_remote): Call initialize_remote_fileio().
4109 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4110 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4111 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4112 (captured_main): Initialize new ui_files.
4113 * ui-file.c: Add read and fgets input functions.
4114 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4115 (null_file_read): New function.
4116 (ui_file_read): New function.
4117 (set_ui_file_read): New function.
4118 (stdio_file_read): New function.
4119 * ui-file.h: New type ui_file_read_ftype.
4120 (set_ui_file_read): Declare.
4121 (ui_file_read): Declare.
4123 2003-06-09 Andrew Cagney <cagney@redhat.com>
4125 * frame.h (deprecated_unwind_get_saved_register): Rename
4126 generic_unwind_get_saved_register, update comments.
4127 * mips-tdep.c (mips_get_saved_register): Update.
4128 * frame.c (deprecated_unwind_get_saved_register): Update.
4130 2003-06-09 Andrew Cagney <cagney@redhat.com>
4132 * vax-tdep.c (vax_frame_locals_address): Delete function.
4133 (vax_gdbarch_init): Do not set frame_locals_address.
4134 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4135 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4136 * s390-tdep.c (s390_frame_args_address): Delete function.
4137 (s390_gdbarch_init): Do not set frame_args_address or
4138 frame_locals_address.
4139 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4140 (ns32k_gdbarch_init): Do not set frame_locals_address.
4141 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4142 (hppa_frame_locals_address): Delete function.
4143 (hppa_gdbarch_init): Do not set frame_args_address, or
4144 frame_locals_address.
4145 * arm-tdep.c (arm_frame_args_address): Delete.
4146 (arm_frame_locals_address): Delete.
4147 (arm_gdbarch_init): Do not set frame_args_address, or
4148 frame_locals_address.
4150 2003-06-09 Andrew Cagney <cagney@redhat.com>
4152 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4153 * gdbarch.h, gdbarch.c: Re-generate.
4154 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4155 * arch-utils.c (frame_num_args_unknown): Delete function.
4156 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4157 (frame_info): Use FRAME_NUM_ARGS_P.
4158 * arm-tdep.c (arm_frame_num_args): Delete function.
4159 (arm_gdbarch_init): Do not set frame_num_args.
4160 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4161 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4162 (hppa_gdbarch_init): Do not set frame_num_args.
4163 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4164 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4165 frame_num_args to default frame_num_args_unknown.
4166 * v850-tdep.c (v850_gdbarch_init): Ditto.
4167 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4168 * sh-tdep.c (sh_gdbarch_init): Ditto.
4169 * s390-tdep.c (s390_gdbarch_init): Ditto.
4170 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4171 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4172 * mips-tdep.c (mips_gdbarch_init): Ditto.
4173 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4174 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4175 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4176 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4177 * i386-tdep.c (i386_gdbarch_init): Ditto.
4178 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4179 * frv-tdep.c (frv_gdbarch_init): Ditto.
4180 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4181 * cris-tdep.c (cris_gdbarch_init): Ditto.
4182 * avr-tdep.c (avr_gdbarch_init): Ditto.
4183 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4185 2003-06-09 Andrew Cagney <cagney@redhat.com>
4187 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4188 (print_frame_args): Moved to "stack.c".
4189 * stack.c: Include "gdb_assert.h".
4190 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4191 (print_frame_args): Moved from "printcmd.c".
4192 * frame.h (print_frame_args): Delete declaration.
4193 * Makefile.in (stack.o): Update dependencies.
4195 2003-06-08 Andrew Cagney <cagney@redhat.com>
4197 * frame.c (get_prev_frame): Remove reference to
4198 frame_args_address_correct in comments.
4199 * frame-base.c (default_frame_args_address): Delete code
4200 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4201 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4202 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4203 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4204 (vax_frame_args_address_correct): Delete declaration.
4206 2003-06-08 Andrew Cagney <cagney@redhat.com>
4208 * gdbarch.sh (UNWIND_SP): Add.
4209 * gdbarch.h, gdbarch.c: Re-generate.
4210 * frame.c (frame_sp_unwind): New function.
4211 (get_frame_sp): New function.
4212 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4213 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4214 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4216 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4217 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4219 2003-06-08 Andrew Cagney <cagney@redhat.com>
4221 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4224 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4225 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4226 * config/m68k/tm-sun3.h: Update.
4227 * config/m68k/tm-m68klynx.h: Update.
4228 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4230 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4231 trad_frame". Update comments.
4232 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4233 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4234 (trad_frame_register_value, trad_frame_prev_register): Update.
4236 2003-06-08 Andrew Cagney <cagney@redhat.com>
4238 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4239 from GCC's acinclude.m4.
4240 * configure.in: Check for getopt's delcaration.
4241 * aclocal.m4, config.in, configure: Re-generate.
4242 * main.c (error_init): Delete declaration.
4243 * defs.h (error_init): Declare.
4244 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4245 (rs6000_convert_from_func_ptr_addr): Make static.
4246 (_initialize_rs6000_tdep): Add declaration.
4247 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4248 (show_commands, set_verbose, show_history): Delete declaration.
4249 * top.h (set_verbose): Add declaration.
4250 (show_history, set_history, show_commands): Add declaration.
4251 (do_restore_instream_cleanup): Add declaration.
4252 * objc-lang.c (specialcmp): Make static.
4253 (print_object_command): Make static.
4254 (find_objc_msgsend): Make static.
4255 (find_objc_msgcall_submethod_helper): Make static.
4256 (find_objc_msgcall_submethod): Make static.
4257 (_initialize_objc_language): Add declaration.
4258 (find_implementation_from_class): Make static.
4259 (find_implementation): Make static.
4260 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4261 * objc-lang.h (lookup_struct_typedef): Add declaration.
4262 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4263 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4264 (do_restore_user_call_depth): Make static.
4265 (do_restore_instream_cleanup): Delete declaration.
4266 (dont_repeat): Delete declaration.
4267 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4268 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4269 * reggroups.c (_initialize_reggroup): Add declaration.
4270 * cp-support.c (_initialize_cp_support): Add declaration.
4271 * cp-abi.c (_initialize_cp_abi): Add declaration.
4272 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4273 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4274 (_initialize_gnu_v3_abi): Add declaration.
4275 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4276 (_initialize_gnu_v2_abi): Add declaration.
4277 * frame-base.c (_initialize_frame_base): Add declaration.
4278 * doublest.c (floatformat_from_length): Make static.
4279 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4280 * frame.c (create_sentinel_frame): Make static.
4281 (_initialize_frame): Add declaration.
4282 * top.c (do_catch_errors): Make static.
4283 (gdb_rl_operate_and_get_next_completion): Make static.
4284 * typeprint.c: Include "typeprint.h".
4285 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4286 (sentinel_frame_this_id): Make static.
4287 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4288 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4289 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4290 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4291 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4292 * maint.c (maintenance_print_architecture): Make static.
4293 * signals/signals.c (_initialize_signals): Add declaration.
4294 * std-regs.c (_initialize_frame_reg): Add declaration.
4295 * jv-exp.y (push_variable): ISO C definition.
4296 (push_qualified_expression_name): Ditto.
4297 * memattr.c (_initialize_mem): Add declaration.
4298 * remote.c (remote_check_watch_resources): Make static.
4299 (remote_stopped_by_watchpoint): Make static.
4300 (remote_stopped_data_address): Make static.
4301 * d10v-tdep.c (nr_dmap_regs): Make static.
4302 (a0_regnum): Make static.
4303 (d10v_frame_unwind_cache): Make static.
4304 (d10v_frame_p): Make static.
4305 * osabi.c (show_osabi): Make static.
4306 (_initialize_gdb_osabi): Add extern declaration.
4307 * gdbtypes.c (make_qualified_type): Make static.
4308 (safe_parse_type): Make static.
4309 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4310 * macrotab.c (macro_bcache_free): Make static.
4311 * interps.c (interp_set_quiet): Make static.
4312 (interpreter_exec_cmd): Make static.
4313 * stack.h (select_frame_command): New file.
4314 * stack.c: Include "stack.h".
4315 (select_frame_command_wrapper): Delete function.
4316 (select_frame_command): Make global.
4317 * infcall.c: Include "infcall.h".
4318 * linespec.c: Include "linespec.h".
4319 * symfile.c (sections_overlap): Make static.
4320 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4321 * charset.c (_initialize_charset): Add missing prototype.
4322 * regcache.c (init_legacy_regcache_descr): Make static.
4323 (do_regcache_xfree): Make static.
4324 (regcache_xfer_part): Make static.
4325 (_initialize_regcache): Add missing prototype.
4326 * breakpoint.c (parse_breakpoint_sals): Make static.
4327 (breakpoint_sals_to_pc): Make static.
4328 * interps.h (clear_interpreter_hooks): ISO C declaration.
4329 * Makefile.in (stack_h): Define.
4330 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4331 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4333 2003-06-08 Andrew Cagney <cagney@redhat.com>
4335 * Makefile.in (d10v-tdep.o): Update dependencies.
4336 (SFILES): Add trad-frame.c.
4337 (trad_frame_h): Define.
4338 (COMMON_OBS): Add trad-frame.o.
4339 (trad-frame.o): Specify dependencies.
4340 * d10v-tdep.c: Include "trad-frame.h".
4341 (saved_regs_unwinder): Delete function.
4342 (d10v_frame_prev_register): Use trad_frame_prev_register.
4343 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4344 trad_frame", delete "regs" and "prev_sp".
4345 (prologue_find_regs): Use trad-frame.
4346 * trad-frame.h, trad-frame.c: New files.
4348 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4350 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4352 2003-06-07 Adam Fedor <fedor@gnu.org>
4354 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4355 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4356 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4357 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4358 resolve_msgsend_super, resolve_msgsend_super_stret):
4361 2003-06-07 Andrew Cagney <cagney@redhat.com>
4363 * symfile.h: Re-indent, clean up comments.
4365 2003-06-07 Andrew Cagney <cagney@redhat.com>
4367 * inferior.h (deprecated_write_sp): Replace
4368 generic_target_write_sp.
4369 * regcache.c (deprecated_write_sp): Replace
4370 generic_target_write_sp.
4371 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4372 * vax-tdep.c (vax_gdbarch_init): Update.
4373 * v850-tdep.c (v850_gdbarch_init): Update.
4374 * sparc-tdep.c (sparc_gdbarch_init): Update.
4375 * sh-tdep.c (sh_gdbarch_init): Update.
4376 * s390-tdep.c (s390_gdbarch_init): Update.
4377 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4378 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4379 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4380 * mcore-tdep.c (mcore_gdbarch_init): Update.
4381 * m68k-tdep.c (m68k_gdbarch_init): Update.
4382 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4383 * ia64-tdep.c (ia64_gdbarch_init): Update.
4384 * h8300-tdep.c (h8300_gdbarch_init): Update.
4385 * frv-tdep.c (frv_gdbarch_init): Update.
4386 * cris-tdep.c (cris_gdbarch_init): Update.
4387 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4389 2003-06-07 Andrew Cagney <cagney@redhat.com>
4391 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4392 Assert that PC_REGNUM is valid.
4393 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4395 2003-06-07 Andrew Cagney <cagney@redhat.com>
4397 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4398 * gdbarch.h, gdbarch.c: Regenerate.
4399 * mn10300-tdep.c: Include "gdb_assert.h".
4400 (mn10300_read_fp): New function.
4401 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4402 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4403 * ia64-tdep.c: Include "gdb_assert.h".
4404 (ia64_read_fp): New function.
4405 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4406 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4407 * regcache.c (generic_target_read_sp): Delete function.
4408 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4409 * inferior.h (generic_target_read_sp): Delete declaration.
4410 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4411 generic_target_read_sp.
4412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4413 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4414 * sh-tdep.c (sh_gdbarch_init): Ditto.
4415 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4416 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4418 2003-06-07 Andrew Cagney <cagney@redhat.com>
4420 * gdbarch.sh: Comment each field of startup_gdbarch.
4421 * gdbarch.h, gdbarch.c: Re-generate.
4423 2003-06-07 Andrew Cagney <cagney@redhat.com>
4425 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4426 * gdbarch.h, gdbarch.c: Re-generate.
4427 * regcache.c: Update comments on read_pc et.al.
4428 (generic_target_read_pc): Delete function.
4429 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4430 * inferior.h (generic_target_read_pc): Delete declaration.
4431 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4432 generic_target_read_pc.
4433 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4434 * sh-tdep.c (sh_gdbarch_init): Ditto.
4435 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4436 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4438 2003-06-07 Andrew Cagney <cagney@redhat.com>
4440 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4441 "index" with "special_local_sect". Use strcmp instead of STREQ.
4442 Append period to coments.
4444 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4446 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4447 (elfstab_offset_sections): Likewise.
4448 * gdb-stabs.h (stab_section_info): Likewise.
4449 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4450 * objfiles.c (objfile_relocate): Likewise.
4451 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4452 * remote.c (get_offsets): Likewise.
4453 (remote_cisco_objfile_relocate): Likewise.
4454 * somread.c (som_symfile_offsets): Likewise.
4455 * symfile.c (alloc_section_addr_info): New function.
4456 (build_section_addr_info_from_section_tab): Use it.
4457 (free_section_addr_info): Adjust.
4458 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4459 (syms_from_objfile): Allocate local_addr dynamically.
4460 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4462 (add_symbol_file_command): Allocate sect_opts dynamically.
4463 (reread_symbols): Avoid use of SECT_OFF_MAX.
4464 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4465 (alloc_section_addr_info): Declare it.
4466 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4467 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4469 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4471 2003-06-06 Andrew Cagney <cagney@redhat.com>
4473 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4474 (d10v_frame_unwind_cache): Do not set "return_pc".
4476 2003-06-06 Michael Snyder <msnyder@redhat.com>
4478 * h8300-tdep.c: Make tidy (long lines).
4480 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4482 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4483 to regcache_collect().
4485 2003-06-05 J. Brobecker <brobecker@gnat.com>
4487 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4488 pc_in_sigtramp multiarch method.
4489 (hppa_hpux_som_init_abi): Use it.
4490 (hppa_hpux_elf_init_abi): Likewise.
4491 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4492 macro has been multiarched.
4493 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4494 macro here, as hppa64 isn't multiarched yet.
4496 2003-06-05 Andrew Cagney <cagney@redhat.com>
4498 * Makefile.in (value_h): Add $(frame_h).
4499 * value.h: Include "frame.h".
4500 (struct value): Replace "frame_addr" with "frame_id".
4501 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4502 * values.c (allocate_value): Use VALUE_FRAME_ID.
4503 (value_copy): Use VALUE_FRAME_ID.
4504 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4505 * valops.c (value_assign): Update. Use frame_find_by_id.
4507 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4509 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4512 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4514 * thread-db.c (check_event): For create/death event breakpoints,
4515 loop through all messages to ensure that we read the message
4516 corresponding to the breakpoint we are at.
4518 2003-06-04 Michael Snyder <msnyder@redhat.com>
4520 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4522 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4524 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4525 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4526 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4527 when handling .eh_frame sections.
4529 2003-06-04 J. Brobecker <brobecker@gnat.com>
4531 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4532 prepare_to_proceed procedure instead of the hppa-specific one.
4533 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4535 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4537 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4538 * config.in: Regenerated.
4539 * configure.in: Add test for syscall function and check for
4540 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4541 * configure: Regenerated.
4542 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4544 (kill_lwp): New function that uses tkill syscall or
4545 uses kill, depending on whether threading model is nptl or not.
4546 All callers of kill() changed to use kill_lwp().
4547 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4548 see if all threads have already exited in the nptl model.
4549 (stop_and_resume_callback): New callback function used by the
4550 lin_lwp_wait thread exit handling code.
4551 (stop_wait_callback): Check for threads already having exited and
4552 delete such threads fromt the lwp list when discovered.
4553 (stop_callback): Don't assert retcode of kill call.
4555 Roland McGrath <roland@redhat.com>
4556 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4559 2003-06-03 Richard Henderson <rth@redhat.com>
4561 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4562 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4563 (alpha_sigtramp_frame_prev_register): Likewise.
4564 (alpha_heuristic_frame_prev_register): Likewise.
4565 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4567 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4568 alpha-specific register id names.
4569 (alpha_mdebug_frame_unwind_cache): Likewise.
4570 (alpha_mdebug_frame_prev_register): Likewise.
4572 2003-06-03 Richard Henderson <rth@redhat.com>
4574 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4575 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4576 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4577 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4579 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4580 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4581 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4583 * alpha-linux-tdep.c: Remove unnecessary includes.
4584 * Makefile.in (alpha-linux-tdep.o): Update.
4586 2003-06-03 Richard Henderson <rth@redhat.com>
4588 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4589 (alphabsd_fill_fpreg): Likewise.
4591 2003-06-03 J. Brobecker <brobecker@gnat.com>
4593 * alphanbsd-tdep.c (alphanbsd_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 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4600 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4601 structure, field no longer exists.
4603 2003-06-03 J. Brobecker <brobecker@gnat.com>
4605 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4606 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4608 2003-06-03 J. Brobecker <brobecker@gnat.com>
4610 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4611 references to struct frame_info fields by calls to the equivalent
4612 accessors. Necessary now that frame_info is opaque.
4614 2003-06-03 J. Brobecker <brobecker@gnat.com>
4616 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4617 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4618 structure, field no longer exists.
4620 2003-06-03 Theodore A. Roth <troth@openavr.org>
4622 * remote.c (init_remote_state): Compute sizeof_g_packet by
4623 accumulation of the size of all registers instead of blindly using
4624 DEPRECATED_REGISTER_BYTES.
4626 2003-06-03 Michael Snyder <msnyder@redhat.com>
4628 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4629 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4632 2003-06-03 J. Brobecker <brobecker@gnat.com>
4634 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4635 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4637 2003-06-03 Andrew Cagney <cagney@redhat.com>
4639 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4640 (sparc_convert_to_raw): Delete function.
4641 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4642 register_convert_to_virtual.
4644 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4646 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4647 layer if not dealing with a statically-linked threaded program.
4649 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4651 * solib.c (solib_open): Update comment to reflect actual search order.
4653 2003-06-03 Andrew Cagney <cagney@redhat.com>
4655 * frame.c (get_frame_memory_signed): New function.
4656 (get_frame_memory, get_frame_memory_unsigned): New function.
4657 (get_frame_arch): New function.
4658 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4659 (get_frame_memory, get_frame_unsigned_memory): Declare.
4660 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4661 get_frame_memory_unsigned and get_frame_arch.
4662 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4664 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4666 * MAINTAINERS (write after approval): Add myself.
4668 2003-06-03 Jim Blandy <jimb@redhat.com>
4670 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4671 elements of gregset_t are 64 bits each, but access registers
4672 are still 32 bits, so they're packed two per gregset_t
4673 element. Unpack/pack them properly.
4675 2003-06-02 David Carlton <carlton@bactrian.org>
4677 * linespec.c (find_methods): Break out code into
4678 add_matching_methods and add_constructors.
4679 (add_matching_methods): New.
4680 (add_constructors): Ditto.
4682 2003-06-02 Andrew Cagney <cagney@redhat.com>
4684 * sparc-tdep.c (sparc_print_registers): Delete call to
4685 REGISTER_CONVERTIBLE.
4686 (sparc_gdbarch_init): Do not set register_convertible.
4687 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4688 * frv-tdep.c (frv_gdbarch_init): Ditto.
4689 * cris-tdep.c (cris_gdbarch_init): Ditto.
4691 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4693 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4694 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4695 (syms_from_objfile): Ditto.
4697 2003-06-03 Andreas Schwab <schwab@suse.de>
4699 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4700 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4702 2003-06-02 Richard Henderson <rth@redhat.com>
4704 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4705 a member of all_reggroup.
4707 2003-06-02 Richard Henderson <rth@redhat.com>
4709 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4710 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4711 (alpha_lds, alpha_sts): New.
4712 (alpha_convert_register_p): Change from _register_convertible.
4713 (alpha_register_to_value): Change from _convert_to_virtual;
4714 restructure and fail for type sizes other than 4 or 8.
4715 (alpha_value_to_register): Similarly.
4716 (alpha_extract_return_value): Use alpha_sts.
4717 (alpha_store_return_value): Use alpha_lds.
4718 (alpha_gdbarch_init): Update hooks.
4720 2003-06-02 Richard Henderson <rth@redhat.com>
4722 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4724 (alpha_sigtramp_register_address): Likewise.
4726 2003-06-02 Richard Henderson <rth@redhat.com>
4728 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4729 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4730 * alpha-tdep.h: Declare them.
4732 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4733 Remove zerobuf. Don't error on UNIQUE.
4734 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4735 (ALPHA_REGSET_UNIQUE): Provide default.
4736 (supply_gregset): Use alpha_supply_int_regs.
4737 (fill_gregset): Use alpha_fill_int_regs.
4738 (supply_fpregset): Use alpha_supply_fp_regs.
4739 (fill_fpregset): Use alpha_fill_fp_regs.
4740 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4741 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4742 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4743 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4744 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4745 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4747 2003-06-02 Richard Henderson <rth@redhat.com>
4749 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4751 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4752 (alpha_store_return_value): Likewise.
4754 2003-06-02 David Carlton <carlton@math.stanford.edu>
4756 * block.c (contained_in): Add 'const' to arguments.
4757 (block_function): Ditto.
4758 * block.h: Update declarations for block_function and
4761 2003-06-02 David Carlton <carlton@math.stanford.edu>
4763 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4764 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4765 * p-valprint.c (pascal_val_print): Ditto.
4766 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4768 2003-06-02 Richard Henderson <rth@redhat.com>
4770 * alpha-tdep.c (alpha_push_dummy_call): Use
4771 builtin_type_ieee_double_little instead of builtin_type_double.
4773 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4774 sign-extension of 32-bit values.
4775 (alpha_store_return_value): Similarly.
4777 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4778 (alpha_extract_return_value): Likewise.
4779 (alpha_store_return_value): Likewise.
4781 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4782 (alpha_store_return_value): Error on IEEE Quad floats.
4784 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4785 (alpha_extract_struct_value_address): Likewise.
4786 (alpha_store_return_value): Likewise.
4787 (alpha_store_struct_return): Remove.
4788 (alpha_gdbarch_init): Update hook registration to match.
4790 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4791 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4792 macros where appropriate.
4793 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4794 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4796 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4797 for SP, GP; void_func_ptr for PC; non-language-specific types
4799 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4801 2003-06-02 Richard Henderson <rth@redhat.com>
4803 * top.h (lim_at_start): Declare.
4804 * main.c (captured_main): Set it.
4805 * top.c (lim_at_start): Define.
4806 (command_loop): Use it instead of &environ.
4807 * event-top.c (command_handler): Likewise.
4809 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4811 * mipsnbsd-tdep.c: Update copyright years.
4812 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4814 2003-06-01 Richard Henderson <rth@redhat.com>
4816 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4817 (alpha-linux-tdep.o): Update dependencies.
4818 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4819 * alpha-mdebug-tdep.c: Remove unneeded includes.
4821 2003-06-01 Richard Henderson <rth@redhat.com>
4823 * alpha-tdep.c (alpha_register_reggroup_p): New.
4824 (alpha_gdbarch_init): Register it.
4826 2003-06-02 Andrew Cagney <cagney@redhat.com>
4828 * dwarfread.c: Eliminate "register"
4829 (decode_die_type): Eliminate assignment within "if".
4830 (struct_type, decode_array_element_type): Ditto.
4831 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4832 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4833 (decode_modified_type, completedieinfo): Ditto.
4834 * block.c: Eliminate "register".
4835 (blockvector_for_pc_sect): Eliminate assignment within "if".
4836 * cp-support.h (struct symbol): Opaque declaration.
4837 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4839 2003-06-01 Richard Henderson <rth@redhat.com>
4841 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4842 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4844 2003-06-01 Adam Fedor <fedor@gnu.org>
4846 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4847 * gdbarch.[ch]: Regenerate.
4848 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4849 (hppa_gdbarch_init): Set it in the gdbarch vector.
4850 * i386-tdep.c (i386_fetch_pointer_argument): New
4851 (i386_gdbarch_init): Set it into gdbarch.
4852 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4853 (rs6000_gdbarch_init): Set it in gdbarch.
4854 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4855 (sparc_gdbarch_init): Set it in gdbarch.
4857 2003-06-01 Andrew Cagney <cagney@redhat.com>
4859 * defs.h (extract_address): Delete declaration.
4860 * findvar.c (extract_address): Delete function.
4861 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4862 extract_address with the inline equivalent,
4863 extract_unsigned_integer.
4864 (xstormy16_extract_struct_value_address): Ditto.
4865 (xstormy16_pointer_to_address): Ditto.
4866 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4867 * v850-tdep.c (v850_push_arguments): Ditto.
4868 (v850_extract_return_value): Ditto.
4869 (v850_extract_struct_value_address): Ditto.
4870 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4871 (sparcnbsd_get_longjmp_target_64): Ditto.
4872 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4873 (get_longjmp_target): Ditto.
4874 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4875 (sh64_extract_struct_value_address): Ditto.
4876 (sh_push_arguments): Ditto.
4877 (sh64_push_arguments): Ditto.
4878 * remote-vxsparc.c (vx_read_register): Ditto.
4879 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4880 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4881 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4882 * mipsv4-nat.c (get_longjmp_target): Ditto.
4883 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4884 * mips-nat.c (get_longjmp_target): Ditto.
4885 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4886 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4887 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4888 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4889 * irix5-nat.c (get_longjmp_target): Ditto.
4890 * irix4-nat.c (get_longjmp_target): Ditto.
4891 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4892 (ia64_push_arguments): Ditto.
4893 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4894 * h8300-tdep.c (h8300_push_arguments): Ditto.
4895 (h8300_store_return_value): Ditto.
4896 (h8300_extract_struct_value_address): Ditto.
4897 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4898 (frv_push_arguments): Ditto.
4899 * avr-tdep.c (avr_pointer_to_address): Ditto.
4900 (avr_push_arguments): Ditto.
4901 * arm-tdep.c (arm_push_dummy_call): Ditto.
4902 (arm_get_longjmp_target): Ditto.
4903 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4904 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4905 (alpha_get_longjmp_target): Ditto.
4907 * solib-irix.c (extract_mips_address): Inline extract_address,
4908 replacing it with extract_signed_integer.
4909 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4910 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4911 (first_link_map_member, open_symbol_file_object): Ditto.
4912 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4913 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4914 (LM_NEXT, LM_NAME): Ditto.
4916 2003-06-01 Richard Henderson <rth@redhat.com>
4918 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4919 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4920 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4921 (alpha_cannot_store_register): Likewise.
4922 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4923 * alpha-nat.c (supply_gregset): Likewise.
4924 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4926 2003-06-01 Andrew Cagney <cagney@redhat.com>
4928 * infcall.c (call_function_by_hand): Update comment on
4929 DEPRECATED_DUMMY_WRITE_SP.
4931 * mips-tdep.c (mips_gdbarch_init): Do not set
4932 deprecated_dummy_write_sp.
4933 (mips_eabi_push_dummy_call): Set the SP register.
4934 (mips_o64_push_dummy_call): Set the SP register.
4935 (mips_o32_push_dummy_call): Set the SP register.
4936 (mips_n32n64_push_dummy_call): Set the SP register.
4938 2003-06-01 Richard Henderson <rth@redhat.com>
4940 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4941 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4942 (supply_gregset): Likewise.
4943 * alpha-tdep.c (alpha_store_return_value): Likewise.
4944 (alpha_get_longjmp_target): Likewise.
4945 (alpha_register_name): Constify array.
4946 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4947 deprecated_register_size, deprecated_register_bytes,
4948 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4949 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4950 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4952 2003-06-01 Richard Henderson <rth@redhat.com>
4954 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4955 from arg_reg_buffer to regcache to avoid double conversion.
4957 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4959 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4961 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4962 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4964 2003-06-01 Richard Henderson <rth@redhat.com>
4966 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4967 (decode_frame_entry): Set it. Skip FDE augmentation.
4969 2003-06-01 Richard Henderson <rth@redhat.com>
4971 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4972 not overlapping PC_REGNUM.
4974 2003-06-01 Richard Henderson <rth@redhat.com>
4976 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4977 alpha_push_arguments. Don't dump argument register data to
4978 the target stack. Fix float and 128-bit long double semantics.
4979 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4980 (alpha_fix_call_dummy): Remove.
4981 (alpha_call_dummy_words): Remove.
4982 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4984 2003-06-01 Richard Henderson <rth@redhat.com>
4986 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4988 2003-06-01 Andrew Cagney <cagney@redhat.com>
4990 * mips-tdep.c (is_mips16_addr): New function.
4991 (make_mips16_addr, unmake_mips16_addr): New functions.
4992 (pc_is_mips16, mips_fetch_instruction): Use.
4993 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4994 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4995 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4996 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4998 * config/mips/tm-mips.h: Update copyright.
4999 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5000 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5001 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5002 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5003 (TM_PRINT_INSN_MACH): Delete.
5004 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5006 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5007 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5008 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5009 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5010 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5011 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5012 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5013 mips*-*-riscos* and mips*-*-sysv* onto mips.
5014 * config/mips/mips64.mt: New file.
5015 * config/mips/mips.mt: New file.
5016 * config/mips/littlemips.mt: Delete file.
5017 * config/mips/decstation.mt: Delete file.
5018 * config/mips/vr4300el.mt: Delete file.
5019 * config/mips/vr5000el.mt: Delete file.
5020 * config/mips/vr5000.mt: Delete file.
5021 * config/mips/vr4100.mt: Delete file.
5022 * config/mips/vr4xxxel.mt: Delete file.
5023 * config/mips/vr4300.mt: Delete file.
5024 * config/mips/vr4xxx.mt: Delete file.
5025 * config/mips/bigmips.mt: Delete file.
5026 * config/mips/bigmips64.mt: Delete file.
5027 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5028 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5029 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5030 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5031 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5033 * config/mips/tm-irix3.h: Ditto.
5034 * config/mips/tm-mipsv4.h: Ditto.
5035 * config/mips/tm-embed.h: Ditto.
5036 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5038 * config/mips/tm-vr5000el.h: Delete file.
5039 * config/mips/tm-tx39l.h: Delete file.
5040 * config/mips/tm-vr4300el.h: Delete file.
5041 * config/mips/tm-vr4xxxel.h: Delete file.
5042 * config/mips/tm-vr4300.h: Delete file.
5043 * config/mips/tm-vr4100.h: Delete file.
5044 * config/mips/tm-vr4xxx.h: Delete file.
5045 * config/mips/tm-vr5000.h: Delete file.
5046 * config/mips/tm-embedl64.h: Delete file.
5047 * config/mips/tm-embedl.h: Delete file.
5048 * config/mips/tm-embed64.h: Delete file.
5049 * config/mips/tm-bigmips64.h: Delete file.
5050 * config/mips/tm-bigmips.h: Delete file.
5052 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5055 * shnbsd-nat.c: Include "sh-tdep.h".
5057 From Richard Henderson <rth@redhat.com>:
5058 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5060 2003-05-31 Andrew Cagney <cagney@redhat.com>
5062 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5063 forward declaration.
5064 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5065 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5066 (mips_find_saved_regs): Use set_reg_offset.
5067 (mips_frame_init_saved_regs): Delete function.
5068 (mips_pop_frame): Call mips_find_saved_regs instead of
5069 DEPRECATED_FRAME_INIT_SAVED_REGS.
5071 2003-05-31 Andrew Cagney <cagney@redhat.com>
5073 * mips-tdep.c (mips_gdbarch_init): Do not set
5074 deprecated_max_register_raw_size, register_virtual_size, and
5075 deprecated_max_register_virtual_size.
5077 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5079 * i386-tdep.c: Include "dwarf2-frame.h".
5080 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5081 * Makefile.in (i386-tdep.o): Update dependencies.
5083 * dwarf2-frame.c, dwarf2-frame.h: New files.
5084 * Makefile.in (SFILES): Add dwarf2-frame.c.
5085 (dwarf2_frame_h): Define.
5086 (COMMON_OBS): Add dwarf2-frame.o.
5087 (dwarf2-frame.o): Add dependencies.
5089 2003-05-31 Andreas Jaeger <aj@suse.de>
5091 * x86-64-linux-nat.c: Fix comment.
5093 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5095 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5098 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5099 have a sigcontext_addr handler.
5100 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5101 sigcontext_addr handler.
5103 2003-05-31 Andrew Cagney <cagney@redhat.com>
5105 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5106 (print_fp_register_row): Replace do_fp_register_row.
5107 (mips_print_fp_register): Add "file" and "frame" parameters.
5108 (mips_print_register): Add "file" and "frame" parameters.
5109 (mips_print_registers_info): Replace mips_do_registers_info.
5110 (mips_gdbarch_init): Set print_registers_info instead of
5111 deprecated_do_registers_info.
5112 (mips_read_fp_register_single): Add "frame" parameter.
5113 (mips_read_fp_register_double): Add "frame" parameter.
5115 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5117 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5118 Fixes a bug where GDB would print the wrong register names for
5119 targets without SSE.
5121 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5122 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5125 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5126 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5127 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5130 From Michal Ludvig <mludvig@suse.cz>:
5131 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5133 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5134 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5135 I386_ST0_REGNUM): Move here from...
5136 * i386-tdep.c: ... here.
5137 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5138 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5139 registers if possible.
5140 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5141 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5143 (i386bsd_sc_reg_offset): New variable.
5144 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5145 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5147 (i386fbsd_sc_reg_offset): New variable.
5148 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5150 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5152 (i386fbsd4_sc_reg_offset): New variable.
5153 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5154 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5156 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5157 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5158 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5160 (i386nbsd_sc_reg_offset): New variable.
5161 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5162 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5164 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5166 (i386obsd_sc_reg_offset): New variable.
5167 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5168 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5170 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5171 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5172 for frame pointer offset in `struct sigcontext'.
5174 2003-05-31 Andrew Cagney <cagney@redhat.com>
5176 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5177 architecture methods call_dummy_words, sizeof_call_dummy_words,
5178 push_return_address, store_struct_return, and fix_call_dummy. Set
5179 push_dummy_call instead of deprecated_push_arguments.
5180 (mips_store_struct_return): Delete function.
5181 (mips_fix_call_dummy): Delete function.
5182 (mips_push_return_address): Delete function.
5183 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5184 RA_REGNUM and T9_REGNUM.
5185 (mips_n32n64_push_dummy_call): Ditto for
5186 mips_n32n64_push_arguments.
5187 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5188 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5190 2003-05-31 Andrew Cagney <cagney@redhat.com>
5192 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5193 "dummy_addr" to "bp_addr".
5194 * infcall.c (call_function_by_hand): Pass "funaddr" to
5195 gdbarch_push_dummy_call.
5196 * gdbarch.h, gdbarch.c: Re-generate.
5197 * i386-tdep.c (i386_push_dummy_call): Update.
5198 * arm-tdep.c (arm_push_dummy_call): Update.
5199 * d10v-tdep.c (d10v_push_dummy_call): Update.
5201 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5203 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5204 variable declarations.
5205 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5206 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5207 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5208 x86_64_init_frame_pc, x86_64_init_frame_pc,
5209 x86_64_function_has_prologue): Remove prototypes.
5210 (X86_64_NUM_GREGS): New define.
5211 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5212 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5213 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5214 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5215 XMM1_REGNUM): Remove defines.
5216 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5217 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5218 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5219 X86_64_XMM1_REGNUM): New defines.
5220 (struct x86_64_register_info): Renamed from `struct
5221 register_info'. Remove `size' member.
5222 (x86_64_register_info_table): Remove variable.
5223 (x86_64_register_info): New variable.
5224 (X86_64_NUM_REGS): New define.
5225 (X86_64_NUM_GREGS): Remove define.
5226 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5227 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5229 (x86_54_dwarf2_reg_to_regnum): Remove function.
5230 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5231 (x86_64_dwarf_reg_to_regnum): New function.
5232 (x86_64_register_name): Rewrite.
5233 (x86_64_register_raw_size): Remove function.
5234 (x86_64_register_byte_table): Remove variable.
5235 (x86_64_register_byte): Remove function.
5236 (x86_64_register_virtual_type): Remove function.
5237 (x86_64_register_type): New function.
5238 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5239 x86_64_register_convert_to_raw): Remove functions.
5240 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5241 (x86_64_use_struct_convention): Make static. Adjust for renamed
5243 (x86_64_frame_init_saved_regs): Remove function.
5244 (x86_64_push_arguments): Make static. Change to accept a regcache
5246 (x86_64_store_return_value, x86_64_extract_return_value): Make
5247 static. Rewrite based on i386 counterparts.
5248 (x86_64_push_dummy_call): New function.
5249 (X86_64_NUM_SAVED_REGS): New define.
5250 (x86_64_register_number): Remove function.
5251 (x86_64_store_struct_return): Remove function.
5252 (x86_64_frameless_function_invocation,
5253 x86_64_function_has_prologue): Remove functions.
5254 (PROLOG_BUFSIZE): Remove define.
5255 (struct x86_64_frame_cache): New structure.
5256 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5257 x86_64_frame_cache, x86_64_frame_this_id,
5258 x86_64_frame_prev_register, x86_64_frame_p,
5259 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5260 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5262 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5264 (x86_64_skip_prologue): Rewrite in terms of
5265 x86_64_analyze_prologue.
5266 (x86_64_frame_base_address): New function.
5267 (x86_64_frame_base): New variable.
5268 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5269 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5270 set deprecated_fp_regnum, deprecated_register_size,
5271 deprecated_register_bytes, register_raw_size, register_byte,
5272 register_virtual_type, register_convertiable,
5273 register_convert_to_virtual, convert_to_raw,
5274 deprecated_get_saved_register, deprecated_target_read_fp,
5275 deprecated_push_arguments, deprecated_push_return_address,
5276 deprecated_pop_frame, deprecated_store_struct_return,
5277 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5278 frameless_function_invocation, deprecated_frame_saved_pc,
5279 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5280 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5281 deprecated_init_frame_pc and virtual_frame_pointer. Call
5282 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5283 and x86_64_frame_p. Call frame_base_set_default to register
5285 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5286 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5287 (_initialize_x86_64_tdep): Remove function.
5288 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5289 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5290 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5292 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5293 (x86_64_linux_sigcontext_addr): Rewrite.
5294 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5295 x86_64_linux_frame_saved_pc): Remove functions.
5296 (x86_64_linux_pc_in_sigtramp): Renamed from
5297 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5299 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5301 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5302 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5303 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5304 (x86_64_regmap): Rename to regmap.
5305 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5307 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5309 (x86_64_fxsave_offset): Remove function.
5310 (supply_fpregset): Simply call x86_64_supply_fxsave.
5311 (fill_fpregset): Simply call x86_64_fill_fxsave.
5312 (fetch_inferior_registers, store_inferior_registers): Avoid
5313 asignment in if-statement.
5314 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5315 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5316 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5317 (fetch_core_registers): Remove function.
5318 (linux_elf_core_fns): Remove.
5319 (offsetoff): Don't define.
5320 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5321 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5322 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5324 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5325 protection against multiple includes instead of NM_X86_64_h. Add
5326 various comments. Include "config/nm-linux.h". Don't include
5328 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5329 GET_THREAD_SIGNALS): Remove defines.
5330 (x86_64_register_u_addr, kernel_u_size,
5331 lin_thread_get_thread_signals): Remove prototypes.
5332 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5333 [HAVE_LINK_H]: Don't include "solib.h".
5334 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5335 * config/i386/tm-x86-64linux.h: Fix comments.
5336 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5337 x86-64-tdep.o): Update dependencies.
5339 2003-05-30 Andrew Cagney <cagney@redhat.com>
5341 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5342 Change parameter type to a "struct regcache *".
5344 * gdbarch.sh: Regardless of the multi-arch level, always define
5345 the macro when not already defined.
5346 * gdbarch.h, gdbarch.c: Re-generate.
5348 2003-05-30 Richard Henderson <rth@redhat.com>
5350 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5351 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5352 (alpha_mdebug_frame_this_id): Likewise.
5353 (alpha_mdebug_frame_prev_register): Likewise.
5354 (alpha_mdebug_frame_base_address): Likewise.
5355 (alpha_mdebug_frame_locals_address): Likewise.
5356 (alpha_mdebug_frame_args_address): Likewise.
5357 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5358 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5359 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5361 (alpha_heuristic_frame_this_id): Make static.
5362 (alpha_heuristic_frame_prev_register): Likewise.
5363 (alpha_heuristic_frame_base_address): Likewise.
5364 * alpha-tdep.h: Update.
5366 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5368 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5369 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5371 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5372 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5373 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5374 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5375 I386_ST0_REGNUM): New defines.
5376 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5377 codestream_get): Remove define.
5378 (codestream_next_addr, condestream_addr, condestream_buf,
5379 codestream_off, codestream_cnt): Remove variables.
5380 (codestream_fill, codestream_seek, codestream_read): Remove
5382 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5384 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5385 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5386 i386_frame_saved_pc, i386_saved_pc_after_call,
5387 i386_frame_num_args, i386_frame_init_saved_regs,
5388 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5389 i386_push_arguments): Remove functions.
5390 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5391 functionality. Use i386_analyze_prologue instead of
5392 i386_get_frame_setup.
5393 (I386_NUM_SAVED_REGS): New define.
5394 (struct i386_frame_cache): New structure.
5395 (i386_alloc_frame_cache, i386_analyze_struct_return,
5396 i386_skip_probe, i386_analyze_frame_setup,
5397 i386_analyze_register_saves, i386_analyze_prologue,
5398 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5399 i386_frame_prev_register, i386_sigtramp_frame_cache,
5400 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5401 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5402 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5404 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5406 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5407 I386_EAX_REGNUM and I386_EDX_REGNUM.
5408 (i386_extract_return_value, i386_store_return_value): Use
5409 I386_ST0_REGNUM where appropriate.
5410 (i386_extract_struct_value_address): Rewrite to use extract_address.
5411 (i386_svr4_pc_in_sigtramp): Add comment.
5412 (i386_svr4_sigcontext_addr): Rewrite.
5413 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5415 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5416 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5417 of new defines. Set push_dummy_call, don't set
5418 deprecated_push_arguments, deprecated_push_return_address,
5419 deprecated_pop_frame. Don't set parm_boundary. Don't set
5420 deprecated_frame_chain, deprecated_frame_saved_pc,
5421 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5422 save_dummy_frame_tos, unwind_pc. Call
5423 frame_unwind_append_predicate and frame_base_set_default. Don't
5424 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5425 Don't set frameless_function_invocation. Don't set
5426 deprecated_register_bytes, deprecated_register_size,
5427 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5428 * i386-linux-tdep.c: Fix formatting in some comments.
5429 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5430 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5431 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5432 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5433 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5434 redundant parentheses.
5435 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5436 (i386_linux_sigcontext_addr): Use it. Rewrite.
5437 (find_minsym_and_objfile): Change name of second argument.
5438 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5439 changed. Use frame_pc_unwind instead of
5440 DEPRECATED_SAVED_PC_AFTER_CALL.
5441 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5442 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5443 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5445 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5447 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5448 (_initialize_i386_cygwin_tdep): New prototype.
5449 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5450 deprecated_frame_chain_valid.
5451 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5452 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5453 Rely on the SVR4 defaults.
5454 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5455 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5457 2003-05-30 Andrew Cagney <cagney@redhat.com>
5459 * infcall.c (call_function_by_hand): Always call
5460 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5462 2003-05-30 Richard Henderson <rth@redhat.com>
5464 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5467 2003-05-29 Jim Blandy <jimb@redhat.com>
5469 Use gdbarch methods for solib stuff on PowerPC Linux.
5470 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5471 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5473 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5474 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5475 giving the same effect as the #definitions above.
5477 2003-05-29 Adam Fedor <fedor@gnu.org>
5479 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5480 (find_implementation_from_class): Replace it with the standard
5481 case i.e. do nothing.
5483 2003-05-29 Richard Henderson <rth@redhat.com>
5485 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5486 (alpha_linux_sigtramp_offset): Use it. Make static.
5487 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5488 update for new frame model.
5489 * alpha-mdebug-tdep.c: New file.
5490 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5491 (alpha_osf1_init_abi): Install it.
5492 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5493 (linked_proc_desc_table): Remove.
5494 (alpha_frame_past_sigtramp_frame): Remove.
5495 (alpha_dynamic_sigtramp_offset): Remove.
5496 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5497 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5498 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5499 (push_sigtramp_desc): Remove.
5500 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5501 (alpha_cannot_store_register): Likewise.
5502 (alpha_sigcontext_addr): Remove.
5503 (alpha_find_saved_regs): Remove.
5504 (alpha_frame_init_saved_regs): Remove.
5505 (alpha_init_frame_pc_first): Remove.
5506 (read_next_frame_reg): Remove.
5507 (alpha_frame_saved_pc): Remove.
5508 (alpha_saved_pc_after_call): Remove.
5509 (temp_proc_desc, temp_saved_regs): Remove.
5510 (alpha_about_to_return): Remove.
5511 (cached_proc_desc): Remove.
5512 (alpha_frame_chain): Remove.
5513 (alpha_print_extra_frame_info): Remove.
5514 (alpha_init_extra_frame_info): Remove.
5515 (alpha_frame_locals_address): Remove.
5516 (alpha_frame_args_address): Remove.
5517 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5518 (alpha_push_dummy_frame): Remove.
5519 (alpha_pop_frame): Remove.
5520 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5521 (alpha_read_insn): New.
5522 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5523 for different insn encodings.
5524 (alpha_in_lenient_prologue): Remove.
5525 (struct alpha_sigtramp_unwind_cache): New.
5526 (alpha_sigtramp_frame_unwind_cache): New.
5527 (alpha_sigtramp_register_address): New.
5528 (alpha_sigtramp_frame_this_id): New.
5529 (alpha_sigtramp_frame_prev_register): New.
5530 (alpha_sigtramp_frame_unwind): New.
5531 (alpha_sigtramp_frame_p): New.
5532 (struct alpha_heuristic_unwind_cache): New.
5533 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5534 don't count nop insns that occur between functions.
5535 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5536 heuristic_proc_desc, but without the mdebug wrapping.
5537 (alpha_heuristic_frame_this_id): New.
5538 (alpha_heuristic_frame_prev_register): New.
5539 (alpha_heuristic_frame_unwind): New.
5540 (alpha_heuristic_frame_p): New.
5541 (alpha_heuristic_frame_base_address): New.
5542 (alpha_heuristic_frame_base): New.
5543 (alpha_unwind_dummy_id): New.
5544 (alpha_unwind_pc): New.
5545 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5546 frame related deprecated initializations; install replacements.
5547 (alpha_dump_tdep): Remove.
5548 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5549 (alpha_read_insn, alpha_after_prologue,
5550 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5551 alpha_heuristic_frame_prev_register,
5552 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5553 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5554 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5555 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5557 2003-05-29 Andrew Cagney <cagney@redhat.com>
5559 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5560 dependant on the availability of ASSERT_FUNCTION.
5561 (ASSERT_FUNCTION): Do not define when there is no function name.
5563 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5565 From Jimi X <jimix@watson.ibm.com>:
5566 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5568 2003-05-28 Jim Blandy <jimb@redhat.com>
5570 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5571 argument to ptrace to int; the system headers should give it the
5572 right type, and pointers don't fit in ints on powerpc64-*-*.
5574 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5576 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5579 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5581 * stabsread.c (dbx_lookup_type): Make static.
5583 (add_undefined_type): Ditto.
5584 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5587 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5589 * hpread.c (hpread_has_name): Make static.
5590 (hpread_psymtab_to_symtab): Ditto.
5591 (file_exists): Ditto.
5592 (hpread_call_pxdb): Ditto.
5593 (hpread_pxdb_needed): Ditto.
5594 (hpread_quick_traverse): Ditto.
5595 (hpread_get_header): Ditto.
5596 (hpread_get_lntt): Ditto.
5597 (hpread_get_slt): Ditto.
5600 2003-05-25 Andreas Schwab <schwab@suse.de>
5602 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5603 stack_align and deprecated_extra_stack_alignment_needed.
5604 (m68k_stack_align): Delete.
5606 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5607 (m68k_register_virtual_size): Likewise.
5608 (altos_skip_prologue): Remove obsolete function.
5609 (isi_frame_num_args): Likewise.
5610 (news_frame_num_args): Likewise.
5611 (m68k_fix_call_dummy): Make static.
5612 (m68k_push_dummy_frame): Likewise.
5613 (m68k_pop_frame): Likewise.
5614 (m68k_skip_prologue): Likewise.
5615 (m68k_frame_init_saved_regs): Likewise.
5616 (m68k_saved_pc_after_call): Likewise.
5617 (m68k_get_longjmp_target): Make multi-arch.
5618 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5619 structure. Register m68k_get_longjmp_target if enabled.
5620 * m68k-tdep.h (struct gdbarch_tdep): Define.
5621 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5623 * Makefile.in (config.status): Also depend on configure.tgt
5625 (m68klinux-tdep.o): Update dependencies.
5626 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5627 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5628 (M68K_LINUX_JB_PC): Define.
5629 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5630 and take additional parameter.
5631 (m68k_linux_sigtramp_saved_pc): Update.
5632 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5633 m68k_linux_pc_in_sigtramp, in_plt_section,
5634 find_solib_trampoline_target.
5635 * config/m68k/tm-linux.h: Don't include any tm headers.
5636 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5637 (JB_ELEMENT_SIZE): Likewise.
5639 (GET_LONGJMP_TARGET): Likewise.
5640 (IN_SIGTRAMP): Likewise.
5641 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5643 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5645 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5646 (sparc32_push_arguments): Re-implement by calling
5647 sparc32_do_push_arguments.
5649 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5651 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5652 SPARC_O1_REGNUM): New defines.
5653 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5654 (sparc32_store_return_value): New function.
5655 (sparc_extract_struct_value_address): Rewrite to operate on a
5657 (sparc_gdbarch_init): Don't set
5658 deprecated_extract_struct_value_address. Set
5659 extract_struct_value_address instead. Don't set
5660 deprecated_extract_return_value and deprecated_store_return_value
5661 for 32-bit targets. Set extract_return_value and
5662 store_return_value instead.
5663 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5664 DEPRECTAED_EXTRACT_RETURN_VALUE,
5665 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5666 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5667 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5668 (sparc_store_return_value): Remove prototype.
5669 (sparc32_store_return_value): New prototype.
5670 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5673 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5675 * sparcnbsd-tdep.c: Include "gdb_string.h".
5677 2003-05-23 Andrew Cagney <cagney@redhat.com>
5679 * p-valprint.c (pascal_val_print): Replace extract_address with
5680 the inline equivalent extract_unsigned_integer.
5681 * jv-valprint.c (java_value_print): Ditto.
5682 * ada-valprint.c (ada_val_print_1): Ditto.
5683 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5685 2003-05-23 Theodore A. Roth <troth@openavr.org>
5687 * blockframe.c (frameless_look_for_prologue): Remove unused
5688 after_prologue variable.
5690 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5692 * blockframe.c (get_pc_function_start): Rewrite to avoid
5693 asignments in if-statements.
5695 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5697 Committed by Elena Zannoni <ezannoni@redhat.com>.
5698 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5699 files, don't relocate absolute symbols (and do use mst_abs).
5701 2003-05-23 Andrew Cagney <cagney@redhat.com>
5703 * objc-lang.c: Include "gdb_assert.h".
5704 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5705 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5706 (gdb_check, gdb_check_fatal): Delete functions.
5707 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5709 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5710 * Makefile.in (objc-lang.o): Update dependencies.
5712 2003-05-22 Ian Lance Taylor <ian@airs.com>
5714 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5715 with fprintf_filtered, not fprintf_unfiltered.
5717 2003-05-22 Andrew Cagney <cagney@redhat.com>
5719 * stack.c (frame_info): Inline extract_address, replacing it with
5720 extract_unsigned_integer.
5721 * findvar.c (unsigned_pointer_to_address): Ditto.
5722 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5723 * dwarf2expr.c (dwarf2_read_address): Ditto.
5724 * frame.c (frame_pc_unwind): Update comment.
5725 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5727 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5729 * infptrace.c (detach): Call print_sys_errmsg rather than
5730 perror_with_name to issue warning message when errno is non-zero
5731 after calling ptrace detach.
5733 2003-05-21 J. Brobecker <brobecker@gnat.com>
5735 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5736 macro definitions from here...
5737 * hppa-tdep.c: ...to there.
5739 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5741 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5742 register_ptrace_addr(). Fix all callers.
5744 2003-05-21 Andreas Schwab <schwab@suse.de>
5746 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5748 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5750 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5751 (_initialize_m68k_linux_tdep): New function.
5752 (m68k_linux_frame_saved_pc): Make static.
5753 (m68k_linux_extract_return_value): Likewise.
5754 (m68k_linux_store_return_value): Likewise.
5755 (m68k_linux_extract_struct_value_address): Likewise.
5756 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5758 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5759 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5760 (DEPRECATED_FRAME_SAVED_PC): Remove.
5762 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5764 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5765 regset numbering rather than our own.
5767 2003-05-19 David Carlton <carlton@bactrian.org>
5769 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5771 2003-05-19 David Carlton <carlton@bactrian.org>
5773 Partial fix for PR c++/827.
5774 * cp-support.h: Include symtab.h.
5775 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5776 * cp-namespace.c: Update contributors.
5777 (cp_lookup_symbol_nonlocal): New.
5778 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5779 (lookup_symbol_file): Ditto.
5780 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5781 * block.h: Declare block_scope, block_using, block_global_block.
5782 * block.c (block_scope): New.
5783 (block_using, block_global_block): Ditto.
5784 * Makefile.in (cp_support_h): Depend on symtab_h.
5785 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5787 2003-05-19 David Carlton <carlton@bactrian.org>
5789 * language.h (struct language_defn): Add 'la_value_of_this'
5790 and 'la_lookup_symbol_nonlocal' members.
5791 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5792 lookup_symbol_static, lookup_symbol_global,
5793 lookup_symbol_aux_block.
5794 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5795 if we should search fields of this and how to do static/global
5797 (lookup_symbol_aux_block): Make extern.
5798 (basic_lookup_symbol_nonlocal): New.
5799 (lookup_symbol_static, lookup_symbol_global): Ditto.
5800 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5801 'la_lookup_symbol_nonlocal' members.
5802 * c-lang.c (c_language_defn, cplus_language_defn)
5803 (asm_language_defn, minimal_language_defn): Ditto.
5804 * jv-lang.c (java_language_defn): Ditto.
5805 * language.c (unknown_language_defn, auto_language_defn)
5806 (local_language_defn): Ditto.
5807 * m2-lang.c (m2_language_defn): Ditto.
5808 * objc-lang.c (objc_language_defn): Ditto.
5809 * scm-lang.c (scm_language_defn): Ditto.
5810 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5811 * p-lang.c (pascal_language_defn): Ditto for both.
5812 * Makefile.in (f-lang.o): Depend on value_h.
5815 2003-05-19 David Carlton <carlton@bactrian.org>
5817 * block.h: Declare block_static_block.
5818 * block.c (block_static_block): New.
5819 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5820 lookup_symbol_aux_local, calling block_static_block instead.
5821 (lookup_symbol_aux_local): Delete 'static_block' argument.
5823 2003-05-19 David Carlton <carlton@bactrian.org>
5825 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5827 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5829 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5830 register numbers mapping.
5832 2003-05-18 Adam Fedor <fedor@gnu.org>
5834 * symtab.c (completion_list_objc_symbol): New function.
5835 (make_symbol_completion_list): Use it to add ObjC symbols
5836 when looking though the list.
5837 (language_search_unquoted_string): New function.
5838 (make_file_symbol_completion_list): Use it.
5840 2003-05-18 Andreas Schwab <schwab@suse.de>
5842 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5844 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5845 as m68k_linux_extract_return_value.
5846 (DEPRECATED_STORE_RETURN_VALUE): Define as
5847 m68k_linux_store_return_value.
5848 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5849 m68k_linux_extract_struct_value_address.
5850 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5851 get_next_frame, get_frame_base, get_frame_pc.
5852 (m68k_linux_frame_saved_pc): Use get_frame_base.
5853 (m68k_linux_extract_return_value): New function.
5854 (m68k_linux_store_return_value): New function.
5855 (m68k_linux_extract_struct_value_address): New function.
5856 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5858 * c-exp.y (typebase): Remove duplicate occurence of
5859 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5860 of lookup_signed_typename.
5862 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5864 * dwarf2loc.c (find_location_expression): Change type of second
5865 argument to `size_t *'.
5866 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5869 2003-05-18 David Carlton <carlton@bactrian.org>
5871 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5872 'linkage_name'. Add comment.
5873 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5875 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5876 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5877 (lookup_block_symbol): Ditto.
5879 2003-05-16 Andrew Cagney <cagney@redhat.com>
5881 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5882 * gdbarch.h, gdbarch.c: Re-generate.
5883 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5884 * TODO (REGISTER_BYTES): Delete reference.
5885 * alpha-tdep.c (alpha_gdbarch_init): Update.
5886 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5887 * x86-64-tdep.c (x86_64_init_abi): Update.
5888 * vax-tdep.c (vax_gdbarch_init): Update.
5889 * v850-tdep.c (v850_gdbarch_init): Update.
5890 * sparc-tdep.c (sparc_gdbarch_init): Update.
5891 * sh-tdep.c (sh_gdbarch_init): Update.
5892 * s390-tdep.c (s390_gdbarch_init): Update.
5893 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5894 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5895 (ns32k_gdbarch_init_32382): Update.
5896 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5897 * mcore-tdep.c (mcore_gdbarch_init): Update.
5898 * m68k-tdep.c (m68k_gdbarch_init): Update.
5899 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5900 * ia64-tdep.c (ia64_gdbarch_init): Update.
5901 * i386-tdep.c (i386_gdbarch_init): Update.
5902 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5903 * hppa-tdep.c (hppa_gdbarch_init): Update.
5904 * h8300-tdep.c (h8300_gdbarch_init): Update.
5905 * frv-tdep.c (frv_gdbarch_init): Update.
5906 * cris-tdep.c (cris_gdbarch_init): Update.
5907 * avr-tdep.c (avr_gdbarch_init): Update.
5908 * arm-tdep.c (arm_gdbarch_init): Update.
5909 * sparc-tdep.c (sparc_pop_frame): Update.
5910 * rs6000-tdep.c (rs6000_pop_frame): Update.
5911 * remote.c (init_remote_state): Update.
5912 (remote_prepare_to_store): Update.
5913 * remote-vx.c (vx_prepare_to_store): Update.
5914 * remote-sds.c (sds_fetch_registers): Update.
5915 (sds_prepare_to_store): Update.
5916 * remote-array.c: Update.
5917 * regcache.c (init_legacy_regcache_descr): Update.
5918 (init_regcache_descr): Update.
5919 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5920 (mips_o64_extract_return_value): Update.
5921 * irix5-nat.c (fetch_core_registers): Update.
5922 * irix4-nat.c (fetch_core_registers): Update.
5923 * i386-tdep.h: Update.
5924 * hppa-tdep.c (pa_do_registers_info): Update.
5925 (pa_do_strcat_registers_info): Update.
5926 * cris-tdep.c (cris_register_bytes_ok): Update.
5927 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5928 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5929 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5930 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5931 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5932 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5933 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5934 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5935 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5936 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5937 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5938 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5939 (REGISTER_BYTES_OK): Update.
5940 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5941 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5943 2003-05-16 Ian Lance Taylor <ian@airs.com>
5945 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5946 (vax_print_insn, print_insn_arg): Remove static functions.
5947 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5948 print_insn_vax from opcodes library.
5949 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5951 2003-05-15 Andrew Cagney <cagney@redhat.com>
5953 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5954 * target.h (memory_breakpoint_from_pc): Delete declaration.
5955 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5956 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5957 * monitor.c (monitor_insert_breakpoint): Use
5958 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5959 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5960 * gdbarch.h, gdbarch.c: Re-generate.
5961 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5962 (sparc_gdbarch_init): Set breakpoint_from_pc to
5963 sparc_breakpoint_from_pc.
5964 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5965 (BREAKPOINT_FROM_PC): Define.
5966 (sparc_breakpoint_from_pc): Declare.
5967 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5968 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5969 (BREAKPOINT_FROM_PC): Define.
5970 (BREAKPOINT): Delete macro.
5971 * target.h: Update comment.
5972 * s390-tdep.c (s390_gdbarch_init): Update comments.
5973 * remote.c: Update comments.
5974 * remote-mips.c: Update comments.
5975 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5976 * mem-break.c: Update comment.
5977 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5978 (ia64_memory_insert_breakpoint): Update.
5979 * config/sparc/tm-sparc.h: Update comment.
5980 * config/pa/tm-hppa64.h: Update comment.
5981 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5982 (rs6000_breakpoint_from_pc): Update.
5983 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5984 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5985 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5986 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5987 (mips_breakpoint_from_pc): Update.
5988 (mips_dump_tdep): Update.
5990 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5991 * minsyms.c (lookup_minimal_symbol): Inline
5992 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5994 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5995 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5996 * p-lang.c (pascal_printstr): Ditto.
5997 * objc-lang.c (objc_printstr): Ditto.
5998 * m2-lang.c (m2_printstr): Ditto.
5999 * jv-valprint.c (java_print_value_fields): Ditto.
6000 * f-lang.c (f_printstr): Ditto.
6001 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6002 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6003 for repeat_count_threshold.
6004 * Makefile.in (cp-valprint.o): Update dependencies.
6006 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6008 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6009 (examine_prologue): Support looking through leaf functions, knowing
6010 they start with mov r2,r12. Support skipping over indirect stores
6011 of the input registers. Upon hitting a non-nop branch instruction
6012 or predicated instruction, bail out by setting lim_pc to the current
6013 pc value in the loop. At the end, if the lim_pc value is still
6014 beyond our calculated value and we have trust_limit set,
6015 use the lim_pc value.
6017 2003-05-15 Andrew Cagney <cagney@redhat.com>
6019 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6020 generic_find_dummy_frame.
6021 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6022 (deprecated_generic_find_dummy_frame): Update.
6023 (deprecated_read_register_dummy): Update.
6024 * frame.c (deprecated_generic_get_saved_register): Update.
6026 2003-05-15 Theodore A. Roth <troth@openavr.org>
6028 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6029 (avr_gdbarch_init): Set breakpoint_from_pc method.
6031 2003-05-15 Andrew Cagney <cagney@redhat.com>
6033 * regcache.c (build_regcache): Set deprecated_register_valid
6035 (deprecated_grub_regcache_for_register_valid): Delete function.
6036 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6039 2003-05-15 David Carlton <carlton@bactrian.org>
6041 Committed by Elena Zannoni <ezannoni@redhat.com>
6042 * symtab.c (lookup_symbol_aux): Delete calls to
6043 lookup_symbol_aux_minsyms.
6044 (lookup_symbol_aux_minsyms): Comment out function and
6045 prototype. Delete lookup by mangled name.
6047 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6049 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6050 correctly indicate an empty stack and ``stack_allocated'' to the
6051 indicate the number of elements initially allocated.
6052 (dwarf_expr_grow_stack): Simplify method for computing new
6053 stack size. Don't loop infinitely if ``stack_len'' is zero.
6054 (execute_stack_op): Move ``ctx->in_reg'' initialization
6055 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6056 be used in conjuction with DW_OP_piece. Revise error message
6059 2003-05-14 Theodore A. Roth <troth@openavr.org>
6061 * MAINTAINERS: Update my email address.
6062 * avr-tdep.c: Ditto.
6064 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6066 * symtab.h (enum domain_enum): Rename from namespace_enum.
6067 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6068 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6069 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6070 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6071 TYPES_NAMESPACE, METHODS_NAMESPACE.
6072 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6073 (struct symbol, struct partial_symbol): Rename field
6074 'namespace_enum namespace' to 'domain_enum domain'.
6075 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6076 Delete old define kludge for namespace.
6078 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6079 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6080 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6081 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6082 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6083 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6084 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6085 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6086 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6087 occurrences of the above.
6089 2003-05-14 Ian Lance Taylor <ian@airs.com>
6091 * Makefile.in (install-only): Use $(SHELL) when running
6094 2003-05-13 Ian Lance Taylor <ian@airs.com>
6096 * MAINTAINERS (write after approval): Add myself.
6098 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6099 second and third arguments.
6100 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6101 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6103 2003-05-13 Andrew Cagney <cagney@redhat.com>
6105 * defs.h (store_address): Delete declaration.
6106 findvar.c (store_address): Delete function.
6107 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6108 store_unsigned_integer.
6109 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6110 * v850-tdep.c (v850_push_arguments): Ditto.
6111 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6112 * sh-tdep.c (sh64_get_saved_register): Ditto.
6113 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6114 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6115 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6116 (mips_get_saved_register): Ditto.
6117 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6118 (find_func_descr, ia64_push_arguments): Ditto.
6119 * i386-tdep.c (i386_push_arguments): Ditto.
6120 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6121 * frv-tdep.c (frv_push_arguments): Ditto.
6122 * frame.c (legacy_saved_regs_prev_register): Ditto.
6123 (deprecated_generic_get_saved_register): Ditto.
6124 * findvar.c (unsigned_address_to_pointer): Ditto.
6125 * dwarf2read.c (dwarf2_const_value): Ditto.
6126 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6127 * alpha-tdep.c (alpha_push_arguments): Ditto.
6129 2003-05-12 J. Brobecker <brobecker@gnat.com>
6131 * NEWS: Mention that the hppa-hpux port has been partially
6132 multiarched (32bit ABIT only, so far).
6134 2003-05-11 Andrew Cagney <cagney@redhat.com>
6136 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6137 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6138 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6139 sim/testsuite/sim/arm/misaligned2.ms, and
6140 sim/testsuite/sim/arm/misaligned3.ms.
6141 * disasm.h (struct ui_file): Add opaque struct declaration.
6142 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6143 * frame.h (struct ui_file): Ditto.
6145 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6147 * value.h: Pretty print.
6149 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6151 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6153 2003-05-08 Andrew Cagney <cagney@redhat.com>
6155 * regcache.h (max_register_size): Delete declaration.
6156 * regcache.c (max_register_size): Delete function.
6157 (struct regcache_descr): Delete field "max_register_size".
6158 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6159 registers fit in MAX_REGISTER_SIZE.
6160 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6161 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6162 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6163 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6164 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6165 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6166 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6167 * dve3900-rom.c, hppa-tdep.c: Ditto.
6169 2003-05-08 David Carlton <carlton@math.stanford.edu>
6171 * valops.c (push_word): Fix typo.
6173 2003-05-08 Andrew Cagney <cagney@redhat.com>
6175 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6176 * gdbarch.h: Re-generate.
6177 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6178 (legacy_max_register_raw_size): Delete declaration.
6179 * regcache.c (legacy_max_register_raw_size): Delete function.
6180 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6181 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6182 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6183 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6184 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6185 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6186 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6187 * findvar.c, dwarf2cfi.c: Ditto.
6189 2003-05-08 Andrew Cagney <cagney@redhat.com>
6191 * mips-tdep.c (read_signed_register): New function, moved to here
6193 (read_signed_register_pid): Ditto.
6194 * regcache.c (read_signed_register_pid): Delete function, moved to
6196 (read_signed_register): Ditto.
6197 * regcache.h (read_signed_register): Delete declaration.
6198 (read_signed_register_pid): Delete declaration.
6200 2003-05-08 Andrew Cagney <cagney@redhat.com>
6202 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6203 * gdbarch.h: Re-generate.
6204 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6205 (legacy_max_register_virtual_size): Delete declaration.
6206 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6207 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6208 * tracepoint.c (memrange_sortmerge): Ditto.
6209 * sparc-tdep.c (sparc_print_registers): Ditto.
6210 * regcache.c (legacy_max_register_virtual_size): Delete function.
6212 2002-05-08 J. Brobecker <brobecker@gnat.com>
6214 * fork-child.c (escape_bang_in_quoted_argument): New function.
6215 (fork_inferior): Escape '!' characters in quoted arguments
6218 2003-05-08 J. Brobecker <brobecker@gnat.com>
6220 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6221 the language of the CU is not currently supported by GDB.
6223 2003-05-08 J. Brobecker <brobecker@gnat.com>
6225 * defs.h (language): Add language_minimal enum value.
6226 * c-lang.c (minimal_language_defn): New language definition.
6227 (_initialize_c_language): Add the new minimal language to the list
6228 of languages known to GDB.
6230 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6232 * frame.c (get_frame_type): Don't attempt to lazily initialize
6233 frame's unwinder for legacy frames.
6235 2003-05-07 Andrew Cagney <cagney@redhat.com>
6237 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6238 and "regcache" parameters.
6239 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6241 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6243 * dwarf2read.c (dwarf_decode_lines): Only use output of
6244 check_cu_functions() when calling record_line(). Do not update
6245 the current address.
6247 2003-05-07 Andrew Cagney <cagney@redhat.com>
6249 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6252 2003-05-07 Jim Blandy <jimb@redhat.com>
6254 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6255 'maint info symtabs' and 'maint info psymtabs'.
6256 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6257 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6258 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6259 Declarations updated.
6260 * maint.c (maintenance_list_command): Delete.
6261 (_initialize_maint_cmds): Update calls to add_cmd.
6262 * gdbcmd.h (maintenancelistlist): Delete declaration.
6263 * cli/cli-cmds.c (maintenancelistlist): Delete.
6264 (init_cmd_lists): Don't initialize it.
6265 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6267 2003-05-07 Andrew Cagney <cagney@redhat.com>
6269 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6271 (d10v_print_registers_info): Update.
6272 (d10v_dmap_register, d10v_imap_register): Delete functions.
6273 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6274 and "imap_register".
6275 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6276 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6277 * arch-utils.c (generic_remote_translate_xfer_address): Add
6278 "regcache" and "gdbarch" parameters.
6279 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6280 parameter. Change class to multi-arch.
6281 * gdbarch.h, gdbarch.c: Re-generate.
6282 * remote.c (remote_xfer_memory): Use
6283 gdbarch_remote_translate_xfer_address.
6285 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6287 * infrun.c (prev_pc): Move declaration ahead of proceed().
6288 (proceed): Refresh prev_pc value before resuming.
6289 (stop_stepping): Remove code to refresh prev_pc.
6291 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6293 * nto-tdep.c: Removed stray comment.
6295 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6297 * i386-nto-tdep.c: Fix old K&R function definitions.
6298 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6299 Also change add_show_from_set() call to add_setshow_cmd().
6300 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6302 2003-05-05 Andrew Cagney <cagney@redhat.com>
6304 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6305 (fprint_dummy_frames): New function.
6306 (maintenance_print_dummy_frames): New function.
6307 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6308 * frame.c (fprint_frame_id): Make global.
6309 * frame.h (fprint_frame_id): Declare.
6310 * Makefile.in (dummy-frame.o): Update dependencies.
6312 2003-05-05 Andrew Cagney <cagney@redhat.com>
6314 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6315 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6316 SIZEOF_CALL_DUMMY_WORDS.
6317 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6318 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6319 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6320 CALL_DUMMY_BREAKPOINT_OFFSET.
6321 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6322 CALL_DUMMY_START_OFFSET.
6323 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6324 * gdbarch.h, gdbarch.c: Re-generate.
6325 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6326 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6327 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6328 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6329 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6330 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6331 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6332 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6333 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6334 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6335 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6336 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6337 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6338 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6339 * config/sparc/tm-sparc.h: Update.
6341 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6343 * configure.tgt: Add i[3456]86-*-nto*.
6344 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6345 * nto-tdep.c: New file. Neutrino target support routines.
6346 * nto-tdep.h: New file. Neutrino target header.
6347 * config/tm-qnxnto.h: New file.
6348 * config/i386/i386nto.mt: New file.
6349 * config/i386/tm-i386nto.h: New file.
6351 2003-05-04 Andrew Cagney <cagney@redhat.com>
6353 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6354 (load_infrun_state): Ditto.
6355 (struct thread_info): Drop "prev_func_name" field.
6356 * thread.c (load_infrun_state): Update.
6357 (save_infrun_state): Update.
6358 * infrun.c (prev_func_name): Delete variable.
6359 (init_wait_for_inferior): Do not clear prev_func_name.
6360 (stop_stepping, keep_going, context_switch): Do not swap
6362 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6363 instead of PC_IN_SIGTRAMP.
6365 2003-05-04 Andrew Cagney <cagney@redhat.com>
6367 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6368 REGISTER_BYTE with register_offset_hack.
6369 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6370 that REGISTER_BYTE is consistent with the regcache.
6371 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6372 * gdbarch.h, gdbarch.c: Regenerate.
6374 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6376 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6377 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6379 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6381 2003-05-03 J. Brobecker <brobecker@gnat.com>
6383 From Thierry Schneider <tpschneider1@yahoo.com>
6384 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6385 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6386 (mi-cmd-symbol.o): Add rule.
6388 2003-05-03 Andrew Cagney <cagney@redhat.com>
6390 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6391 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6392 * gdbarch.h, gdbarch.c: Re-generate.
6393 * d10v-tdep.c (d10v_push_dummy_code): New function.
6394 (d10v_gdbarch_init): Set push_dummy_code.
6395 * infcall.c (legacy_push_dummy_code): New function.
6396 (generic_push_dummy_code): New function.
6397 (push_dummy_code): New function.
6398 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6399 instead of dummy_addr, to push_dummy_call. Move call to
6400 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6402 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6404 2003-05-03 Andrew Cagney <cagney@redhat.com>
6406 * disasm.h (print_insn): Declare.
6407 * disasm.c (init_gdb_disassemble_info): New function.
6408 (gdb_disassembly): Call init_gdb_disassemble_info.
6409 (gdb_print_insn): New function.
6410 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6411 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6412 * mcore-tdep.c: Include "disasm.h"
6413 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6414 * d10v-tdep.c: Include "disasm.h".
6415 (display_trace): Call gdb_print_insn, instead of print_insn.
6416 (print_insn): Delete function.
6417 * printcmd.c: Include "disasm.h".
6418 (print_insn): Delete function.
6419 (print_formatted): Call gdb_print_insn, instead of print_insn.
6420 * Makefile.in (printcmd.o): Update dependencies.
6421 (mcore-tdep.o, d10v-tdep.o): Ditto.
6423 2003-05-02 Andrew Cagney <cagney@redhat.com>
6425 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6426 PC_REGNUM, re-indent.
6427 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6428 PC_REGNUM isn't set.
6430 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6431 * gdbarch.h, gdbarch.c: Re-generate.
6432 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6433 register_virtual_size, pc_regnum, or register_bytes.
6434 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6435 (d10v_register_type): Use D10V_PC_REGNUM.
6436 (d10v_print_registers_info, d10v_read_pc): Ditto.
6437 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6438 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6440 2003-05-02 David Carlton <carlton@bactrian.org>
6442 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6443 the name with mstrsave.
6445 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6447 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6448 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6449 (host_charset_name, target_charset_name): New vars for use by
6451 (host_charset_enum, target_charset_enum): New enums for set/show
6453 (set_charset_sfunc, set_host_charset_sfunc,
6454 set_target_charset_sfunc): New functions.
6455 (set_host_charset, set_target_charset): Make static.
6456 (list_charsets, set_host_charset_command,
6457 set_target_charset_command): Delete functions.
6458 (show_charset_command): Rewrite as....
6459 (show_charset): Hook this up with the set/show command mechanism.
6460 (_initialize_charset): Change names of charsets to match the
6461 set/show enums. Use host_charset_name and target_charset_name.
6462 Use set/show mechanism for charset, host-charset, target-charset
6463 commands. Do not make 'show host-charset' and 'show
6464 target-charset' be aliases of 'show charset'.
6466 * charset.h (set_host_charset, set_target_charset): Don't export,
6467 they are not used outside the file.
6469 2003-05-01 Andrew Cagney <cagney@redhat.com>
6471 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6472 (gdb_disassembly): Make "di" non static, always initialize and
6473 cleanup. Always use dis_asm_read_memory.
6474 (gdb_dis_asm_read_memory): Delete function.
6476 2003-05-01 Andrew Cagney <cagney@redhat.com>
6478 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6479 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6481 2003-04-30 Andrew Cagney <cagney@redhat.com>
6483 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6484 "tm_print_insn_info".
6485 (TARGET_PRINT_INSN_INFO): Delete macro.
6486 (dis_asm_read_memory): Delete function declaration.
6487 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6488 (tm_print_insn_info): Delete variable definition.
6489 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6490 * gdbarch.h, gdbarch.c: Re-generate.
6491 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6492 "deprecated_tm_print_insn_info".
6493 * mcore-tdep.c (mcore_dump_insn): Ditto.
6494 * mips-tdep.c (mips_gdbarch_init): Ditto.
6495 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6496 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6497 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6498 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6499 instead of TARGET_PRINT_INSN_INFO, add comment.
6500 * s390-tdep.c (s390_get_frame_info): Instead of
6501 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6502 (s390_check_function_end, s390_is_sigreturn): Ditto.
6503 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6504 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6505 * disasm.c: Include "gdbcore.h".
6506 (_initialize_disasm): New function, initialize
6507 "deprecated_tm_print_insn_info".
6508 (deprecated_tm_print_insn_info): New variable.
6509 (dis_asm_read_memory): Moved from "corefile.c", made static.
6510 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6511 * Makefile.in (disasm.o): Update dependencies.
6513 2003-04-30 Andrew Cagney <cagney@redhat.com>
6515 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6517 2003-04-29 Adam Fedor <fedor@gnu.org>
6519 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6520 * infcall.c (find_function_addr): Make non-static.
6521 * infcall.h (find_function_addr): Declare.
6522 * Makefile.in (eval.o): Update dependencies.
6524 2003-04-28 Adam Fedor <fedor@gnu.org>
6526 * symtab.c (symbol_find_demangled_name): Check for and demangle
6528 (symbol_init_demangled_name): Init for language_objc as well.
6530 2003-04-28 Andrew Cagney <cagney@redhat.com>
6532 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6533 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6534 * gdbarch.h, gdbarch.c: Re-generate.
6535 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6536 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6537 * inferior.h (deprecated_read_fp): Rename read_fp.
6538 (generic_target_read_fp): Delete declaration.
6539 * regcache.c (generic_target_read_fp): Delete function.
6540 (deprecated_read_fp): Replace read_fp, use
6541 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6542 * d10v-tdep.c (d10v_read_fp): Delete function.
6543 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6545 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6546 deprecated_target_read_fp to generic_target_read_fp.
6547 * sh-tdep.c (sh_gdbarch_init): Ditto.
6548 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6549 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6550 * frv-tdep.c (frv_gdbarch_init): Ditto.
6552 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6553 deprecated_fp_regnum.
6554 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6555 * vax-tdep.c (vax_gdbarch_init): Ditto.
6556 * v850-tdep.c (v850_gdbarch_init): Ditto.
6557 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6558 * sh-tdep.c (sh_gdbarch_init): Ditto.
6559 * s390-tdep.c (s390_gdbarch_init): Ditto.
6560 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6561 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6562 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6563 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6564 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6565 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6566 * i386-tdep.c (i386_gdbarch_init): Ditto.
6567 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6568 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6569 * frv-tdep.c (frv_gdbarch_init): Ditto.
6570 * cris-tdep.c (cris_gdbarch_init): Ditto.
6571 * avr-tdep.c (avr_gdbarch_init): Ditto.
6572 * arm-tdep.c (arm_gdbarch_init): Ditto.
6573 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6575 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6576 * v850-tdep.c (v850_gdbarch_init): Ditto.
6577 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6578 * sh-tdep.c (sh_gdbarch_init): Ditto.
6579 * s390-tdep.c (s390_gdbarch_init): Ditto.
6580 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6581 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6582 * mips-tdep.c (mips_gdbarch_init): Ditto.
6583 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6584 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6585 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6586 * frv-tdep.c (frv_gdbarch_init): Ditto.
6587 * avr-tdep.c (avr_gdbarch_init): Ditto.
6588 * arm-tdep.c (arm_gdbarch_init): Ditto.
6590 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6591 DEPRECATED_FP_REGNUM.
6592 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6593 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6594 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6595 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6596 (sparc32_register_virtual_type): Ditto.
6597 * sh-tdep.c (sh64_frame_chain): Ditto.
6598 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6599 (sh_nofp_frame_init_saved_regs): Ditto.
6600 (sh64_nofp_frame_init_saved_regs): Ditto.
6601 (sh_fp_frame_init_saved_regs): Ditto.
6602 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6603 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6604 * procfs.c (procfs_fetch_registers): Ditto.
6605 (procfs_store_registers): Ditto.
6606 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6607 (store_inferior_registers, fetch_core_registers): Ditto.
6608 (fetch_kcore_registers, clear_regs): Ditto.
6609 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6610 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6611 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6612 * nlm/i386.c (do_status): Ditto.
6613 * mipsv4-nat.c (supply_gregset): Ditto.
6614 * mips-tdep.c: Ditto for comments.
6615 * mips-nat.c (fetch_inferior_registers): Ditto.
6616 (store_inferior_registers, fetch_core_registers): Ditto.
6617 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6618 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6619 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6620 (i386_do_pop_frame, i386_register_type): Ditto.
6621 * hppa-tdep.c (hppa_frame_chain): Ditto.
6622 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6623 (hppa_pop_frame, hppa_read_fp): Ditto.
6624 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6625 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6626 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6627 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6628 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6629 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6630 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6631 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6632 * blockframe.c: Ditto for comments.
6633 * arch-utils.h: Ditto for comments.
6634 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6635 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6636 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6637 * alpha-tdep.h: Ditto for comments.
6638 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6639 (alpha_cannot_store_register): Ditto.
6640 (alpha_push_dummy_frame): Ditto.
6641 * alpha-nat.c (supply_gregset): Ditto.
6643 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6644 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6645 * config/sparc/tm-sparc.h: Update comment.
6647 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6648 deprecated_read_fp instead of TARGET_READ_FP.
6649 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6650 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6651 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6652 deprecated_read_fp instead of read_fp.
6653 * s390-tdep.c (s390_push_arguments): Ditto.
6654 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6655 * frame.h: Ditto in comments.
6656 * frame.c (legacy_get_prev_frame): Ditto.
6657 * dummy-frame.c (dummy_frame_this_id): Ditto.
6658 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6660 2003-04-28 Andrew Cagney <cagney@redhat.com>
6662 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6663 * gdbarch.h, gdbarch.c: Re-generate.
6664 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6665 * vax-tdep.c (_initialize_vax_tdep): Update.
6666 * v850-tdep.c (_initialize_v850_tdep): Update.
6667 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6668 * s390-tdep.c (_initialize_s390_tdep): Update.
6669 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6670 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6671 * mips-tdep.c (_initialize_mips_tdep): Update.
6672 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6673 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6674 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6675 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6676 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6677 * frv-tdep.c (_initialize_frv_tdep): Update.
6678 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6679 (_initialize_cris_tdep): Update.
6680 * arch-utils.c (legacy_print_insn): Update.
6681 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6683 2003-04-26 Adam Fedor <fedor@gnu.org>
6685 * linespec.c (decode_objc): New function to decode ObjC calls
6686 (decode_line_1): Check for ObjC calls (using decode_objc)
6687 * Makefile (linespec.o): Update dependencies.
6689 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6691 * breakpoint.h (struct breakpoint_ops): New.
6692 (struct breakpoint): Add ops member.
6694 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6695 (mention): Use new breakpoint ops member.
6696 (set_raw_breakpoint): Initialize ops field to NULL.
6697 (print_exception_catchpoint, print_one_exception_catchpoint)
6698 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6699 (gnu_v3_exception_catchpoint_ops): New.
6700 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6702 2003-04-25 Adam Fedor <fedor@gnu.org>
6704 * Makefile.in (COMMON_OBS): Add objc-lang.o
6706 2003-04-25 Andrew Cagney <cagney@redhat.com>
6708 * d10v-tdep.c (print_insn): Delete function.
6709 (display_trace): Use TARGET_PRINT_INSN.
6710 (_initialize_d10v_tdep): Do not set tm_print_insn.
6711 (d10v_gdbarch_init): Set print_insn.
6713 2003-04-25 Andrew Cagney <cagney@redhat.com>
6715 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6716 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6717 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6718 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6719 (nr_dmap_regs, a0_regnum): ... new functions.
6720 (d10v_print_registers_info): Use a0_regnum, use register_size.
6721 (d10v_register_byte): Delete function.
6722 (d10v_register_raw_size): Delete function.
6723 (d10v_register_type): Use a0_regnum.
6724 (d10v_print_registers_info): Use a0_regnum.
6725 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6726 (d10v_gdbarch_init): Do not set register_byte or
6727 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6728 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6730 (trace_command): Use XCALLOC.
6731 (print_insn): Delete reference to tm_print_insn.
6732 (saved_regs_unwinder): Use store_unsigned_integer instead of
6734 * frame.h (FRAME_OBSTACK_CALLOC): Define
6736 2003-04-25 David Carlton <carlton@bactrian.org>
6738 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6740 2003-04-24 Adam Fedor <fedor@gnu.org>
6742 * objc-lang.c: Include "valprint.h"
6743 * Makefile.in (objc-lang.o): Update dependencies.
6745 2003-04-24 Adam Fedor <fedor@gnu.org>
6747 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6748 architecture dependant compilation and mark as unimplemented
6749 (until they get put in the gdbarch vector).
6751 2003-04-23 David Carlton <carlton@bactrian.org>
6753 * cp-support.c (cp_find_first_component): Accept 'operator' in
6756 2003-04-23 Andrew Cagney <cagney@redhat.com>
6758 * infcall.c (call_function_by_hand): Eliminate redundant
6759 indentation. Move "saved_async" and "old_cleanups" to where they
6762 2003-04-23 Andrew Cagney <cagney@redhat.com>
6764 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6765 and "buffer". Move the "name" code to where it is needed.
6767 2003-04-23 Andrew Cagney <cagney@redhat.com>
6769 * infcall.c (call_function_by_hand): Move variables "start_sp",
6770 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6771 code to ON_STACK switch branch.
6773 2003-04-23 Andrew Cagney <cagney@redhat.com>
6775 * infcall.c (call_function_by_hand): Make declaration of "i",
6776 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6779 2003-04-23 Andrew Cagney <cagney@redhat.com>
6781 * infcall.c (call_function_by_hand): Delete variable
6782 "n_method_args". Localize "param_type"'s declaration to the loop
6783 that it is used. Reinstate code assigning to said variable -
6784 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6785 Rationalize code using "param_type".
6787 2003-04-22 Andrew Cagney <cagney@redhat.com>
6789 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6790 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6791 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6792 to DEPRECATED_PUSH_RETURN_ADDRESS.
6794 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6796 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6797 on the DWARF2 register number prior to fetching a register.
6799 2003-04-22 J. Brobecker <brobecker@gnat.com>
6801 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6802 Update all the tests using SOFT_FLOAT considering the fact that
6803 this macro was always set to 0.
6804 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6805 considering the fact that this macro was always set to 0.
6806 * hppa-tdep.h (hppa_store_return_value): Likewise.
6807 (hppa_extract_return_value): Likewise.
6809 2003-04-22 J. Brobecker <brobecker@gnat.com>
6811 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6812 the hppa-pro target only.
6814 2003-04-21 J. Brobecker <brobecker@gnat.com>
6816 Ongoing multi-arch conversion effort for HP/UX:
6817 * config/pa/tm-hppa.h: Move all macro that are no longer
6818 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6819 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6821 2003-04-21 J. Brobecker <brobecker@gnat.com>
6823 * config/pa/tm-hppa.h: Obsolete a section that was only used
6826 2003-04-21 J. Brobecker <brobecker@gnat.com>
6828 Ongoing multi-arch conversion for HP/UX.
6829 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6830 if already defined (allows hppa64 to stay non-multiarched for now).
6831 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6833 2003-04-21 Andrew Cagney <cagney@redhat.com>
6835 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6837 2003-04-21 Andrew Cagney <cagney@redhat.com>
6839 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6840 "i386_num_mmx_regs".
6842 2003-04-21 Andrew Cagney <cagney@redhat.com>
6844 * infcall.c: New file.
6845 * infcall.h: New file.
6846 * valarith.c: Include "infcall.h".
6847 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6848 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6849 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6850 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6851 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6852 (SFILES): Add "infcall.c"
6853 (COMMON_OBS): Add "infcall.o".
6854 (infcall.o): Specify dependencies.
6855 * value.h (call_function_by_hand): Delete declaration.
6856 * inferior.h (run_stack_dummy): Delete declaration.
6857 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6858 (run_stack_dummy): Move to "infcall.c", merged into
6859 call_function_by_hand.
6860 * valops.c (call_function_by_hand): Moved to "infcall.c".
6861 (find_function_addr, value_arg_coerce): Ditto.
6862 (unwindonsignal_p, coerce_float_to_double): Ditto.
6863 (_initialize_valops): Move "set/show coerce-float-to-double", and
6864 "set/show unwindonsignal" commands to "infcall.c".
6865 * v850-tdep.c, target.h: Update comments.
6866 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6867 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6868 (sh64_init_extra_frame_info): Update comments.
6869 * mn10300-tdep.c: Update comments.
6870 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6871 * config/sparc/tm-sparc.h: Update comments.
6872 * breakpoint.h: Update comments.
6873 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6874 * arm-tdep.c: Update comment.
6876 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6878 * i386-tdep.c (i386_num_register_names): New variable.
6879 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6880 (MM0_REGNUM): Remove redundant parentheses in define.
6881 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6882 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6883 i386_mxcsr_regnum_p): Remove redundant parentheses.
6884 (i386_register_name): Use i386_num_register_names.
6886 * i386-tdep.c (i386_extract_return_value,
6887 i386_store_return_value): Correct check for availability of
6888 floating-point registers.
6890 * i386-tdep.c (i386_frame_num_args): Remove function.
6891 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6893 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6894 mmx_regnum_to_fp_regnum. Adjust all callers.
6896 * i386-tdep.c (i386_get_longjmp_target): Use
6897 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6898 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6901 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6903 * core-regset.c: Update comments to reflect reality. Re-order
6905 (fetch_core_registers): Use switch instead of if. Remove
6906 redundant prototype.
6908 2003-04-18 Jim Blandy <jimb@redhat.com>
6910 * s390-tdep.c (s390_frame_align): New function.
6911 (s390_gdbarch_init): Register it with the gdbarch object.
6913 2003-04-17 Richard Henderson <rth@redhat.com>
6915 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6917 2003-04-17 Michael Snyder <msnyder@redhat.com>
6918 Karen Bennet <bennet@redhat.com>
6920 Committed by Elena Zannoni <ezannoni@redhat.com>
6921 * gdb_gcore.sh: New script to create a core dump of a process.
6923 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6925 * values.c (value_being_returned): Don't fetch the return
6926 value if the return type is void.
6928 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6930 * thread-db.c: Reindented.
6932 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6934 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6935 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6962 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6964 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6965 the size of ``long double'' to 16, instead of 8.
6967 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6969 * i386-linux-nat.c: Add some whitespace to make things more
6971 (fetch_register, store_register, fetch_inferior_registers,
6972 store_inferior_registers): Get rid of assignment in if-statement.
6973 (store_register): Fix typo in error message.
6975 2003-04-16 Andrew Cagney <cagney@redhat.com>
6977 * utils.c (xmmalloc): Always allocate something, matches
6978 libiberty/xmalloc's semantics.
6979 (xmrealloc, xmcalloc): Ditto.
6981 2003-04-16 Andrew Cagney <cagney@redhat.com>
6983 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6985 (get_frame_type): Initialize unwind and type when needed.
6986 (get_frame_id, frame_register_unwind): Ditto.
6988 2003-04-16 Andrew Cagney <cagney@redhat.com>
6990 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6992 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6993 * sparcl-stub.c: Obsolete file.
6994 * config/sparc/tm-sparclet.h: Obsolete file.
6995 * sparclet-stub.c: Obsolete file.
6996 * sparclet-rom.c: Obsolete file.
6997 * sparcl-tdep.c: Obsolete file.
6998 * config/sparc/tm-sparclite.h: Obsolete file.
6999 * config/sparc/sparclite.mt: Obsolete file.
7000 * config/sparc/sparclet.mt: Obsolete file.
7001 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7002 sparc86x-*-* obsolete.
7004 2003-04-15 David Carlton <carlton@math.stanford.edu>
7006 * Makefile.in (SFILES): Add cp-namespace.c.
7007 (COMMON_OBS): Add cp-namespace.o.
7008 (block.o): Depend on gdb_obstack_h and cp_support_h.
7009 (buildsym.o): Depend on cp_support_h.
7010 (cp-namespace.o): New.
7011 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7012 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7013 (dwarf2read.o): Depend on cp_support_h.
7014 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7015 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7016 processing_current_namespace.
7017 (read_namespace): Update processing_current_namespace; check for
7018 anonymous namespaces.
7019 (dwarf2_name): New function.
7020 (dwarf2_extension): Ditto.
7021 * cp-support.h: Update copyright, contributors.
7022 Add inclusion guards.
7023 Add opaque declaration for structs obstack, block, symbol.
7024 (struct using_direct): New struct.
7025 Add declarations for cp_find_first_component,
7026 cp_entire_prefix_len, processing_has_namespace_info,
7027 processing_current_namespace, cp_is_anonymous,
7028 cp_add_using_directive, cp_initialize_namespace,
7029 cp_finalize_namespace, cp_set_block_scope,
7030 cp_scan_for_anonymous_namespaces.
7031 * cp-namespace.c: New file.
7032 * cp-support.c: Update copyright.
7033 Include ctype.h, gdb_assert.h, gdbcmd.h.
7034 New variable maint_cplus_cmd_list.
7035 (cp_find_first_component): New function.
7036 (cp_entire_prefix_len, maint_cplus_command)
7037 (first_component_command, _initialize_cp_support): Ditto.
7038 * buildsym.c: Include cp-support.h.
7039 New variable using_list.
7040 (add_symbol_to_list): Check for anonymous namespaces.
7041 (finish_block): Set block's scope.
7042 (start_symtab): Initialize C++ namespace support.
7043 (end_symtab): Finalize C++ namespace support.
7044 * block.h: Add opaque declarations for structs
7045 block_namespace_info, using_direct, and obstack.
7046 Add declarations for block_set_scope and block_set_using.
7047 (struct block): Add 'language_specific' member.
7048 (BLOCK_NAMESPACE): New macro.
7049 * block.c: Include gdb_obstack.h and cp-support.h.
7050 (struct block_namespace_info): New struct.
7051 (block_set_scope): New function.
7052 (block_set_using, block_initialize_namespace): Ditto.
7054 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7056 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7057 (locate_base): Return early if there aren't any link map offsets.
7058 (svr4_solib_create_inferior_hook): Warn if shared library support
7061 2003-04-14 David Carlton <carlton@math.stanford.edu>
7063 * symtab.c (symbol_set_names): Add prefix when storing Java names
7064 in hash table. Fix for PR java/1039.
7066 2003-04-14 David Carlton <carlton@math.stanford.edu>
7068 * symtab.c (symbol_set_names): Rename 'name' arg to
7069 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7070 * symtab.h: Change 'name' argument in declaration of
7071 symbol_set_names to 'linkage_name'.
7072 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7074 2003-04-14 Andrew Cagney <cagney@redhat.com>
7076 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7077 return the fully sign-extended register value.
7078 (get_frame_pointer): Ditto.
7079 (mips_pop_frame): Initialize "proc_desc" after checking for a
7082 2003-04-14 Andrew Cagney <cagney@redhat.com>
7084 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7085 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7086 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7087 (mips_push_register): Delete function.
7088 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7091 2003-04-14 Jim Blandy <jimb@redhat.com>
7093 * symmisc.c: #include "gdb_regex.h".
7094 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7096 * maint.c (maintenance_list_command): New function.
7097 (_initialize_maint_cmds): Register the above as commands.
7098 * symtab.h (maintenance_list_symtabs,
7099 maintenance_list_psymtabs): New declarations.
7100 * cli/cli-cmds.c (maintenancelistlist): New variable.
7101 (init_cmd_lists): Initialize it.
7102 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7103 * gdbcmd.h (maintenancelistlist): New declaration.
7104 * Makefile.in (symmisc.o): Update dependencies.
7106 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7108 * s390-nat.c: Include asm/types.h for addr_t.
7110 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7112 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7113 actually incoming type.
7115 2003-04-13 Andrew Cagney <cagney@redhat.com>
7117 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7118 get_next_frame and get_frame_saved_regs.
7120 2003-04-13 Andrew Cagney <cagney@redhat.com>
7122 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7123 of gdbarch_num_regs.
7125 2003-04-13 Andrew Cagney <cagney@redhat.com>
7127 * frame.h: Mention what replaced what in "struct frame_info".
7128 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7129 deprecated_update_frame_base_hack and
7130 deprecated_update_frame_pc_hack.
7131 * hppa-tdep.c: Ditto.
7133 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7135 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7136 to read_reg and update its comment. Remove regnum member.
7137 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7138 Don't call read_reg when setting in_reg. Call read_reg to get
7139 the frame base if it's in a register. Return the register number
7140 on the stack instead of in the context. Remove extra arguments
7142 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7143 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7144 the register number on the expression stack.
7145 (needs_frame_read_reg): Remove extra arguments.
7147 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7149 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7151 (execute_stack_op): All callers updated.
7152 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7153 * dwarf2loc.c (find_location_expression): New function.
7154 (dwarf_expr_frame_base): Call it.
7155 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7156 (dwarf2_tracepoint_var_ref): New function, broken out from
7157 locexpr_tracepoint_var_ref.
7158 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7160 (loclist_read_variable, loclist_read_needs_frame): New functions.
7161 (loclist_describe_location, loclist_tracepoint_var_ref): New
7163 (dwarf2_loclist_funcs): New struct location_funcs.
7164 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7165 (struct dwarf2_locexpr_baton): Add comments.
7166 (dwarf2_loclist_funcs): New extern.
7167 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7168 base_address and base_known.
7169 (dwarf_loc_buffer): New variable.
7170 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7171 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7172 (dwarf2_has_info): Initialize dwarf_loc_offset.
7173 (dwarf2_build_psymtabs): Read in .debug_loc.
7174 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7176 (psymtab_to_symtab_1): Likewise. Move base address calculation
7178 (dwarf2_get_pc_bounds): ... here. Use the base address from
7180 (dwarf2_symbol_mark_computed): Handle location lists.
7182 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7184 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7185 if the linkage name demangled successfully.
7187 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7189 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7190 disassmbly_flavour): Removed.
7192 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7194 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7196 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7198 2003-04-12 Andrew Cagney <cagney@redhat.com>
7200 * frame.h (struct frame_info): Move definition from here ...
7201 * frame.c (struct frame_info): ... to here.
7203 2003-04-12 Andrew Cagney <cagney@redhat.com>
7205 * gdbthread.h (save_infrun_state): Delete parameter
7207 (struct thread_info): Delete field "prev_func_start".
7208 (load_infrun_state): Ditto.
7209 * thread.c (load_infrun_state, save_infrun_state): Update.
7210 * infrun.c (prev_func_start): Delete variable.
7211 (context_switch, init_wait_for_inferior): Update.
7212 (stop_stepping, keep_going): Update.
7214 2003-04-12 Andrew Cagney <cagney@redhat.com>
7216 * gdbarch.sh: Add missing opaque declarations.
7217 * gdbarch.h: Regnerate.
7218 * symtab.h: Add missing opaque declarations.
7219 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7220 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7221 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7222 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7223 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7224 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7225 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7226 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7227 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7228 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7229 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7230 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7231 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7233 2003-04-11 Andrew Cagney <cagney@redhat.com>
7235 * frame.c (get_frame_id): Return this frame's "id".
7236 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7238 (legacy_saved_regs_this_id): Replace function body with
7240 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7241 FRAME_OBSTACK_ZALLOC.
7242 (create_new_frame): Mark the frame ID as valid.
7244 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7246 * Makefile.in (libbfd_h): Added missing setting.
7247 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7248 according to the selected ABI.
7250 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7252 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7254 2003-04-11 Andrew Cagney <cagney@redhat.com>
7256 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7257 SAVED_PC_AFTER_CALL.
7258 * gdbarch.h, gdbarch.c: Regenerate.
7259 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7260 * x86-64-tdep.c (x86_64_init_abi): Update.
7261 * vax-tdep.c (vax_gdbarch_init): Update.
7262 * v850-tdep.c (v850_gdbarch_init): Update.
7263 * sparc-tdep.c (sparc_gdbarch_init): Update.
7264 * sh-tdep.c (sh_gdbarch_init): Update.
7265 * s390-tdep.c (s390_gdbarch_init): Update.
7266 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7267 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7268 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7269 * mips-tdep.c (mips_gdbarch_init): Update.
7270 * mcore-tdep.c (mcore_gdbarch_init): Update.
7271 * m68k-tdep.c (m68k_gdbarch_init): Update.
7272 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7273 * ia64-tdep.c (ia64_gdbarch_init): Update.
7274 (ia64_saved_pc_after_call): Update declaration.
7275 * i386ly-tdep.c (i386lynx_init_abi): Update.
7276 * i386-tdep.c (i386_gdbarch_init): Update.
7277 * hppa-tdep.c (hppa_gdbarch_init): Update.
7278 * h8300-tdep.c (h8300_gdbarch_init): Update.
7279 * frv-tdep.c (frv_gdbarch_init): Update.
7280 * cris-tdep.c (cris_gdbarch_init): Update.
7281 * avr-tdep.c (avr_gdbarch_init): Update.
7282 * arm-tdep.c (arm_gdbarch_init): Update.
7283 * alpha-tdep.c (alpha_gdbarch_init): Update.
7284 * ns32knbsd-nat.c (frame_num_args): Update.
7285 * ns32k-tdep.c (umax_frame_num_args): Update.
7286 * mips-tdep.c (mips_init_frame_pc_first): Update.
7287 * infrun.c (step_over_function): Update.
7288 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7289 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7290 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7291 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7292 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7293 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7294 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7295 * arch-utils.c (init_frame_pc_default): Update.
7296 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7297 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7300 2003-04-11 Andrew Cagney <cagney@redhat.com>
7302 * i387-tdep.c: Update copyright.
7303 (i387_to_double): Delete function.
7304 (double_to_i387): Delete function.
7306 2003-04-10 Andrew Cagney <cagney@redhat.com>
7308 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7309 frame's function's address. Simplify.
7310 (d10v_frame_unwind_cache): Check that the frame's function is
7313 2003-04-10 Jim Blandy <jimb@redhat.com>
7315 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7316 call to set_gdbarch_deprecated_push_arguments.
7318 2003-04-10 Andrew Cagney <cagney@redhat.com>
7320 * frame.c (fprint_frame_id): New function.
7321 (fprint_frame_type, fprint_frame): New function.
7322 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7323 (create_sentinel_frame, get_frame_id): Ditto.
7324 (frame_id_p, frame_id_eq): Ditto.
7325 (frame_id_inner, create_new_frame): Ditto.
7326 (legacy_get_prev_frame, get_prev_frame): Ditto.
7327 (deprecated_update_frame_pc_hack): Ditto.
7328 (frame_register_unwind): Ditto.
7329 (deprecated_update_frame_base_hack): Ditto.
7331 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7333 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7334 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7335 frame_chain function.
7336 * Makefile.in: Add dependencies due to above change.
7338 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7340 * blockframe.c (legacy_frame_chain_valid): Move call to
7341 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7344 2003-04-09 Andrew Cagney <cagney@redhat.com>
7346 * frame.h (struct frame_id): Replace "pc" and "base" with
7347 "stack_addr" and "code_addr". Update comments.
7348 (frame_id_build): Update parameter names and comment.
7349 (struct frame_info): Replace "id_p" and "id" with "this_id".
7350 * dummy-frame.c (dummy_frame_this_id): Update.
7351 * breakpoint.c (print_one_breakpoint): Update.
7352 * frame.c (get_frame_id): Update.
7353 (get_frame_base, frame_id_build): Update.
7354 (create_sentinel_frame, legacy_get_prev_frame): Update.
7355 (deprecated_update_frame_base_hack): Update.
7356 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7357 (frame_id_inner): Ditto.
7359 2003-04-09 Andrew Cagney <cagney@redhat.com>
7361 * defs.h (gdb_print_host_address): Make "addr" parameter a
7363 * utils.c (gdb_print_host_address): Update.
7365 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7367 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7368 register number for R0 is 0.
7370 2003-04-09 J. Brobecker <brobecker@gnat.com>
7372 * frame.h (struct gdbarch): Add opaque structure definition
7373 to avoid a compilation warning on LynxOS 4.0.
7375 2003-04-09 Andrew Cagney <cagney@redhat.com>
7377 * frame.h (struct frame_info): Delete field "pc". Replace
7378 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7380 * frame.c (frame_pc_unwind): Update.
7381 (create_sentinel_frame): Do not set "pc".
7382 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7383 (get_frame_pc): Call frame_pc_unwind.
7384 (deprecated_update_frame_pc_hack): Update.
7385 (create_new_frame): Use "pc" not "->pc".
7387 2003-04-09 Andrew Cagney <cagney@redhat.com>
7389 * frame.c (get_frame_id): Eliminate code updating "frame".
7390 (legacy_get_prev_frame): Ditto.
7391 (get_frame_base): Return id.base directly.
7392 (deprecated_update_frame_base_hack): Update "id.base".
7393 * frame.h (struct frame_info): Delete field "frame".
7395 2003-04-09 Andrew Cagney <cagney@redhat.com>
7397 * NEWS: Mention that the "Sequent family" is obsolete.
7398 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7399 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7400 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7401 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7402 * config/i386/tm-ptx4.h: Obsolete file.
7403 * config/i386/tm-ptx.h: Obsolete file.
7404 * symm-tdep.c: Obsolete file.
7405 * config/i386/symmetry.mt: Obsolete file.
7406 * config/i386/tm-symmetry.h: Obsolete file.
7407 * symm-nat.c: Obsolete file.
7408 * config/i386/nm-symmetry.h: Obsolete file.
7409 * config/i386/xm-symmetry.h: Obsolete file.
7410 * config/i386/symmetry.mh: Obsolete file.
7411 * config/i386/nm-ptx4.h: Obsolete file.
7412 * config/i386/ptx4.mh: Obsolete file.
7413 * config/i386/ptx.mt: Obsolete file.
7414 * config/i386/ptx.mh: Obsolete file.
7415 * config/i386/xm-ptx4.h: Obsolete file.
7416 * config/i386/xm-ptx.h: Obsolete file.
7418 2003-04-09 Andrew Cagney <cagney@redhat.com>
7420 Obsolete mips*-*-mach3*.
7421 * NEWS: Mention that mips*-*-mach3* is obsolete.
7422 * m3-nat.c: Obsolete file.
7423 * config/nm-m3.h: Obsolete file.
7424 * config/mips/tm-mipsm3.h: Obsolete file.
7425 * config/mips/mipsm3.mt: Obsolete file.
7426 * config/mips/mipsm3.mh: Obsolete file.
7427 * config/mips/xm-mipsm3.h: Obsolete file.
7428 * mipsm3-nat.c: Obsolete file.
7429 * configure.host: Obsolete mips-dec-mach3*.
7430 * configure.tgt: Obsolete mips*-*-mach3*.
7432 2003-04-09 Andrew Cagney <cagney@redhat.com>
7434 * doublest.h: Update copyright.
7435 (deprecated_store_floating, deprecated_extract_floating): Rename
7436 store_floating and extract_floating. Update comments.
7437 * doublest.c: Update copyright.
7438 (extract_floating_by_length): Replace extract_floating.
7439 (store_floating_by_length): Replace store_floating.
7440 (deprecated_extract_floating): New function.
7441 (deprecated_store_floating): New function.
7442 (extract_typed_floating): Call extract_floating_by_length.
7443 (store_typed_floating): Call store_floating_by_length.
7444 * x86-64-tdep.c (x86_64_store_return_value): Update.
7445 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7446 (sh64_extract_return_value): Update.
7447 (sh_sh4_register_convert_to_virtual): Update.
7448 (sh_sh64_register_convert_to_virtual): Update.
7449 (sh_sh4_register_convert_to_raw): Update.
7450 (sh_sh64_register_convert_to_raw): Update.
7451 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7452 (rs6000_register_convert_to_raw): Update.
7453 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7454 (ia64_register_convert_to_raw): Update.
7455 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7456 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7457 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7458 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7459 (alpha_register_convert_to_raw): Update.
7461 2003-04-08 Andrew Cagney <cagney@redhat.com>
7463 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7464 * gdbarch.h, gdbarch.c: Re-generate.
7465 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7466 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7467 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7468 conditionally, use frame_pc_unwind as an alternative. Add
7470 * arch-utils.c (init_frame_pc_default): Only call
7471 SAVED_PC_AFTER_CALL when available.
7473 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7475 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7476 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7477 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7478 (start_remote): Ditto.
7479 (handle_inferior_event): Ditto.
7480 (save_inferior_status): Ditto.
7481 (restore_inferior_status): Ditto.
7482 * infcmd.c (attach_command): Ditto.
7483 * fork-child.c (startup_inferior): Ditto.
7484 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7485 * alpha-tdep.c (heuristic_proc_start): Ditto.
7486 * mips-tdep.c (heuristic_proc_start): Ditto.
7487 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7488 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7489 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7490 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7491 * remote-vx.c (vx_create_inferior): Ditto.
7493 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7495 * infrun.c (stop_soon_quietly): Make it an enum, to better
7496 override the default behavior of handle_inferior_event.
7497 (clear_proceed_status): Update uses of stop_soon_quietly to
7498 reflect that it is now an enum.
7499 (start_remote): Ditto.
7500 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7501 is set to handle the new GNU/Linux kernel behavior for
7502 attach/sigstop. Update uses of stop_soon_quietly.
7503 * inferior.h (enum stop_kind): New enum.
7504 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7505 Reset normal handle_inferior_event behavior, afterwards.
7506 * fork-child.c (startup_inferior): Update.
7507 * alpha-tdep.c (heuristic_proc_start): Update.
7508 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7509 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7510 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7511 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7512 * remote-vx.c (vx_create_inferior): Update.
7513 * mips-tdep.c (heuristic_proc_start): Update.
7515 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7517 * disasm.c (dump_insns): Move variables inside loop, or they will
7518 be freed more than once, causing wild memory corruptions.
7519 (gdb_disassembly): Look for the substring "-thread",
7520 instead of "-threads" in the target name, to make sure to find
7521 the 'multi-thread' target. Also, make sure we do the right thing
7522 with the "core" target.
7524 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7526 * mips-tdep.c (mips_print_fp_register): New function, created from
7527 do_fp_register_row(). Registers are now (also) printed as hex.
7528 Only one register is printed per row.
7529 (mips_print_register, do_fp_register_row): Print floating point
7530 registers with mips_print_fp_register().
7532 2003-04-06 Andrew Cagney <cagney@redhat.com>
7534 * valprint.h (inspect_it): Add extern declaration.
7535 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7536 (selectors_info, classes_info): Ditto.
7537 (find_objc_msgcall): Fix indentation.
7538 (objc_printstr): Delete extern declarations.
7540 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7542 2003-04-06 Andrew Cagney <cagney@redhat.com>
7544 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7546 * frame.c (legacy_saved_regs_this_id): Update.
7547 (legacy_get_prev_frame): Update.
7548 * xstormy16-tdep.c: Update comment.
7549 * sparc-tdep.c (sparc_frame_chain): Update comment.
7550 * blockframe.c (legacy_frame_chain_valid): Update.
7552 2003-04-06 Andrew Cagney <cagney@redhat.com>
7554 * valprint.c (val_print_type_code_int): Delete #ifdef
7555 PRINT_TYPELESS_INTEGER code.
7557 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7558 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7559 multi-arch definition.
7560 * gdbarch.h: Re-generate.
7562 2003-04-05 Andrew Cagney <cagney@redhat.com>
7564 Eliminate FRAME_FIND_SAVED_REGS.
7565 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7566 Change FSR parameter to a pointer.
7567 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7568 Assume FSR parameter is a pointer.
7569 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7571 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7572 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7573 saved_regs a pointer.
7574 (hppa_frame_saved_pc): Ditto.
7575 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7576 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7578 (restore_pc_queue): Make fsr a pointer.
7579 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7580 (hppa_frame_chain): Make saved_regs a pointer, call
7581 hppa_frame_init_saved_regs.
7582 * sparc-tdep.c: Include "gdb_assert.h".
7583 (sparc_frame_find_saved_regs): Replace internal_error with
7585 * remote-vxsparc.c (vx_read_register): Delete reference to
7586 FRAME_FIND_SAVED_REGS.
7587 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7588 * gdbarch.h: Regenerate.
7589 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7590 (deprecated_get_frame_saved_regs): Delete declaration.
7591 (struct frame_saved_regs): Delete definition.
7592 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7593 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7594 (hppa_frame_find_saved_regs): Delete declaration.
7595 (FRAME_FIND_SAVED_REGS): Delete macro.
7596 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7597 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7598 FRAME_FIND_SAVED_REGS in comment.
7600 2003-04-05 Andrew Cagney <cagney@redhat.com>
7602 * frame.c (frame_func_unwind, get_frame_func): New functions.
7603 * frame.h (get_frame_func, frame_func_unwind): Declare.
7604 (struct frame_info): Add field "prev_func" for caching the
7605 previous frame's function address.
7606 * arm-tdep.c (arm_frameless_function_invocation): Combine
7607 get_pc_function_start and get_frame_pc into get_frame_func.
7608 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7609 (sh64_nofp_frame_init_saved_regs): Ditto.
7610 * s390-tdep.c (s390_function_start): Ditto.
7611 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7612 (rs6000_frameless_function_invocation): Ditto.
7613 (rs6000_frame_saved_pc): Ditto.
7614 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7615 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7616 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7617 (i386_frame_init_saved_regs): Ditto.
7618 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7619 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7620 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7621 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7622 * blockframe.c (frameless_look_for_prologue): Ditto.
7624 2003-04-05 Andrew Cagney <cagney@redhat.com>
7626 * frame.c (legacy_get_prev_frame): Link prev to next at the
7627 function start. Update comments.
7629 2003-04-05 Andrew Cagney <cagney@redhat.com>
7631 * frame.c (get_frame_id): Update comment.
7632 (legacy_get_prev_frame): Update comment.
7633 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7634 * gdbarch.h: Regenerate.
7635 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7636 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7638 2003-04-05 Andrew Cagney <cagney@redhat.com>
7640 * stack.c (print_frame_info): Use get_frame_pc.
7642 2003-04-04 Andrew Cagney <cagney@redhat.com>
7644 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7645 the frame's type from the unwinder.
7646 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7647 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7648 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7649 (get_frame_base_address): Use get_frame_type.
7650 (get_frame_locals_address, get_frame_args_address): Ditto.
7651 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7652 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7653 (struct frame_info): Add comment explaining why the frame contains
7655 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7656 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7657 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7659 * frame-unwind.h: Include "frame.h".
7660 (struct frame_unwind): Add "type" field.
7661 * Makefile.in (frame_unwind_h): Add $(frame_h).
7663 2003-04-04 Andrew Cagney <cagney@redhat.com>
7665 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7666 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7667 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7669 (d10v_unwind_dummy_id): Use frame_id_build.
7670 * frame.c (find_frame_sal): Use get_frame_pc.
7671 (create_new_frame): Use deprecated_update_frame_pc_hack and
7672 deprecated_update_frame_base_hack.
7673 (create_sentinel_frame): Add comment about ->pc going away.
7674 (get_prev_frame): Add comment about ->pc going away.
7675 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7676 frame_id_build, deprecated_update_frame_pc_hack and
7677 deprecated_update_frame_base_hack.
7678 (select_frame): Use get_frame_pc.
7679 (legacy_saved_regs_this_id): Use frame_id_build.
7681 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7683 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7684 signed integer case.
7685 (classify_argument): Handle enumerations and references.
7687 2003-04-04 Andrew Cagney <cagney@redhat.com>
7689 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7692 2003-04-01 Adam Fedor <fedor@gnu.org>
7694 * gdb/objc-lang.c (selectors_info): Replace calls to
7695 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7696 SYMBOL_NATURAL_NAME.
7697 (classes_info, find_methods): Likewise.
7699 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7701 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7702 ``mach'' to the value determined by bfd_default_set_arch_mach().
7704 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7706 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7707 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7708 (mi-cmd-file.o): Update dependencies.
7710 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7712 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7713 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7715 2003-04-01 Adam Fedor <fedor@gnu.org>
7717 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7718 * language.h (struct language_defn): Add la_demangle.
7719 (language_demangle): Declare.
7720 * language.c (language_demangle): New function.
7721 (unk_lang_demangle): Likewise.
7722 (unknown_language_defn, auto_language_defn, local_language_defn):
7723 Add ukn_lang_demangle.
7724 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7725 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7726 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7727 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7728 * jv-lang.c (java_demangle): New function
7729 (java_language_defn): Use it for la_demangle element.
7730 * objc-lang.c (objc_demangle): Add options argument
7731 (objc_language_defn): Use objc_demangle for la_demangle element.
7732 * maint.c (maintenance_demangle): Replace switch with
7733 call to language_demangle.
7734 * utils.c (fprintf_symbol_filtered): Likewise.
7736 2003-04-01 Andrew Cagney <cagney@redhat.com>
7738 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7739 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7740 PRINT_TYPELESS_INTEGER.
7741 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7742 PUSH_RETURN_ADDRESS.
7744 2003-04-01 Andrew Cagney <cagney@redhat.com>
7746 * Makefile.in (d10v-tdep.o): Update dependencies.
7747 * d10v-tdep.c: Include "frame-base.h".
7748 (d10v_frame_unwind): Make constant.
7749 (d10v_frame_base_address): New function.
7750 (d10v_frame_base): New variable.
7751 (d10v_gdbarch_init): Set frame_base default.
7752 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7754 (d10v_frame_unwind_cache): Set and use "prev_sp".
7755 (d10v_frame_this_id): Use the previous frame's inner most stack
7756 address and this frame's func address for the frame ID. Use
7757 frame_id_build. Don't analyze beyond the current instruction.
7759 2003-04-01 Andrew Cagney <cagney@redhat.com>
7761 * frame.h (get_frame_locals_address, get_frame_args_address):
7762 Refer to the base address, instead of the address of the first
7765 2003-04-01 Andrew Cagney <cagney@redhat.com>
7767 Add frame debug info addresses:
7768 * frame-base.c: New file.
7769 * frame-base.h: New file.
7770 * frame.h (struct frame_base): Add opaque declaration.
7771 (get_frame_base): Update comment.
7772 (get_frame_base_address): Declare.
7773 (get_frame_locals_address): Declare.
7774 (get_frame_args_address): Declare.
7775 (struct frame_info): Add "base" and "base_cache". Update
7776 comments on the unwinder.
7777 * frame.c: Include "frame-base.h".
7778 (get_frame_locals_address): New function.
7779 (get_frame_base_address): New function.
7780 (get_frame_args_address): New function.
7781 * findvar.c (read_var_value): Use get_frame_locals_address and
7782 get_frame_args_address.
7783 * stack.c (frame_info): Use get_frame_locals_address and
7784 get_frame_args_address.
7785 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7786 moved to "frame-base.c".
7787 * printcmd.c (print_frame_nameless_args): Ditto.
7788 * symtab.h (address_class): Update comments.
7789 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7790 get_frame_base_address.
7791 * dwarf2expr.c (execute_stack_op): Ditto.
7792 * Makefile.in (frame_base_h): Define.
7793 (frame.o): Update dependencies.
7794 (frame-base.o): Add dependencies.
7795 (SFILES): Add frame-base.c.
7796 (COMMON_OBS): Add frame-base.o.
7798 2003-04-01 Andrew Cagney <cagney@redhat.com>
7800 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7801 CALL_DUMMY_LENGTH): Ditto.
7802 * gdbarch.c: Re-generate.
7803 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7804 (CALL_DUMMY_LENGTH): Delete macro.
7805 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7806 * arm-tdep.c (arm_gdbarch_init): Ditto.
7807 * avr-tdep.c (avr_gdbarch_init): Ditto.
7808 * cris-tdep.c (cris_gdbarch_init): Ditto.
7809 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7810 * frv-tdep.c (frv_gdbarch_init): Ditto.
7811 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7812 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7813 * i386-tdep.c (i386_gdbarch_init): Ditto.
7814 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7815 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7816 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7817 * mips-tdep.c (mips_gdbarch_init): Ditto.
7818 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7819 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7820 * s390-tdep.c (s390_gdbarch_init): Ditto.
7821 * sh-tdep.c (sh_gdbarch_init): Ditto.
7822 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7823 * v850-tdep.c (v850_gdbarch_init): Ditto.
7824 * vax-tdep.c (vax_gdbarch_init): Ditto.
7825 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7827 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7829 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7831 2003-04-01 Andrew Cagney <cagney@redhat.com>
7833 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7834 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7835 * gdbarch.h, gdbarch.c: Re-generate.
7836 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7837 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7838 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7839 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7840 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7841 * infcmd.c (run_stack_dummy): Simplify assuming
7842 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7843 * infrun.c (handle_inferior_event): Ditto.
7844 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7845 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7846 * arm-tdep.c (arm_gdbarch_init): Ditto.
7847 * avr-tdep.c (avr_gdbarch_init): Ditto.
7848 * cris-tdep.c (cris_gdbarch_init): Ditto.
7849 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7850 * frv-tdep.c (frv_gdbarch_init): Ditto.
7851 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7852 * i386-tdep.c (i386_gdbarch_init): Ditto.
7853 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7854 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7855 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7856 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7857 * mips-tdep.c (mips_gdbarch_init): Ditto.
7858 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7859 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7860 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7861 * s390-tdep.c (s390_gdbarch_init): Ditto.
7862 * sh-tdep.c (sh_gdbarch_init): Ditto.
7863 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7864 * v850-tdep.c (v850_gdbarch_init): Ditto.
7865 * vax-tdep.c (vax_gdbarch_init): Ditto.
7866 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7868 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7870 * symfile.c (symfile_relocate_debug_section): Update call to
7871 bfd_simple_get_relocated_section_contents.
7873 2003-03-31 Andrew Cagney <cagney@redhat.com>
7875 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7876 * gdbarch.h, gdbarch.c: Regenerate.
7877 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7878 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7880 * frame.h (generic_fix_call_dummy): Delete declaration.
7881 * dummy-frame.h: Update comment.
7882 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7883 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7885 * sh-tdep.c (sh_gdbarch_init): Ditto.
7886 * s390-tdep.c (s390_gdbarch_init): Ditto.
7887 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7888 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7889 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7890 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7891 * i386-tdep.c (i386_gdbarch_init): Ditto.
7892 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7893 * frv-tdep.c (frv_gdbarch_init): Ditto.
7894 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7895 * cris-tdep.c (cris_gdbarch_init): Ditto.
7896 * avr-tdep.c (avr_gdbarch_init): Ditto.
7897 * arm-tdep.c (arm_gdbarch_init): Ditto.
7899 2003-03-31 J. Brobecker <brobecker@gnat.com>
7901 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7902 (INIT_FRAME_AP): Likewise.
7903 (EXTRA_FRAME_INFO): Likewise.
7905 2003-03-31 Andrew Cagney <cagney@redhat.com>
7907 * gdbarch.sh: Include "symfile.h".
7908 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7909 * gdbarch.h, gdbarch.c: Re-generate.
7910 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7911 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7912 call_dummy_address, the default is at entry_point_address.
7913 * v850-tdep.c (v850_gdbarch_init): Ditto.
7914 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7915 * sh-tdep.c (sh_gdbarch_init): Ditto.
7916 * s390-tdep.c (s390_gdbarch_init): Ditto.
7917 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7918 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7919 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7920 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7921 * i386-tdep.c (i386_gdbarch_init): Ditto.
7922 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7923 * frv-tdep.c (frv_gdbarch_init): Ditto.
7924 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7925 * cris-tdep.c (cris_gdbarch_init): Ditto.
7926 * arm-tdep.c (arm_gdbarch_init): Ditto.
7928 2003-03-31 Andrew Cagney <cagney@redhat.com>
7930 * gdbarch.sh (CALL_DUMMY_P): Delete.
7931 * gdbarch.h, gdbarch.c: Re-generate.
7932 * inferior.h (CALL_DUMMY_P): Delete macro.
7933 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7934 * vax-tdep.c (vax_gdbarch_init): Update.
7935 * v850-tdep.c (v850_gdbarch_init): Update.
7936 * sparc-tdep.c (sparc_gdbarch_init): Update.
7937 * sh-tdep.c (sh_gdbarch_init): Update.
7938 * s390-tdep.c (s390_gdbarch_init): Update.
7939 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7940 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7941 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7942 * mips-tdep.c (mips_gdbarch_init): Update.
7943 * mcore-tdep.c (mcore_gdbarch_init): Update.
7944 * m68k-tdep.c (m68k_gdbarch_init): Update.
7945 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7946 * ia64-tdep.c (ia64_gdbarch_init): Update.
7947 * i386-tdep.c (i386_gdbarch_init): Update.
7948 * h8300-tdep.c (h8300_gdbarch_init): Update.
7949 * frv-tdep.c (frv_gdbarch_init): Update.
7950 * d10v-tdep.c (d10v_gdbarch_init): Update.
7951 * cris-tdep.c (cris_gdbarch_init): Update.
7952 * breakpoint.c (deprecated_frame_in_dummy): Update.
7953 * avr-tdep.c (avr_gdbarch_init): Update.
7954 * alpha-tdep.c (alpha_gdbarch_init): Update.
7955 * arm-tdep.c (arm_gdbarch_init): Update.
7956 * dummy-frame.c (dummy_frame_this_id): Update comments.
7957 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7958 * frame.c (legacy_get_prev_frame): Ditto.
7959 * valops.c (call_function_by_hand): Delete function.
7960 (hand_function_call): Rename to call_function_by_hand
7962 2003-03-30 Andrew Cagney <cagney@redhat.com>
7964 2002-11-10 Klee Dienes <kdienes@apple.com>
7965 * value.h (struct value): Update comment.
7967 2003-03-30 Andrew Cagney <cagney@redhat.com>
7969 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7971 (d10v_gdbarch_init): Do not set fp_regnum.
7973 * frame.c (get_frame_base): Force ID initialization.
7974 (get_prev_frame): Move computation of the frame ID from here ...
7975 (get_frame_id): ... to here.
7976 (legacy_get_prev_frame): Mark the frame ID as valid.
7977 * frame.h (struct frame_info): Add field "id_p".
7979 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7981 * i386-tdep.c (i386_store_struct_return): Removed.
7982 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7984 2003-03-30 Andrew Cagney <cagney@redhat.com>
7986 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7987 * gdbarch.h, gdbarch.c: Regenerate.
7988 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7989 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7990 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7991 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7992 * i386-tdep.c (i386_gdbarch_init): Ditto.
7993 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7994 * cris-tdep.c (cris_gdbarch_init): Ditto.
7995 * vax-tdep.c (vax_gdbarch_init): Ditto.
7996 * s390-tdep.c (s390_gdbarch_init): Ditto.
7997 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7998 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7999 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8000 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8001 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8002 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8003 * sparc-tdep.c (sparc_gdbarch_init): Update.
8004 * sh-tdep.c (sh_gdbarch_init): Update.
8005 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8006 * mips-tdep.c (mips_gdbarch_init): Update.
8007 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8008 * ia64-tdep.c (ia64_gdbarch_init): Update.
8009 * frv-tdep.c (frv_gdbarch_init): Update.
8010 * avr-tdep.c (avr_gdbarch_init): Update.
8011 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8012 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8013 instead of when push_dummy_call is not available.
8015 2003-03-30 Andrew Cagney <cagney@redhat.com>
8017 * infttrace.c: Include "gdbthread.h".
8018 (parent_attach_all): Fix function signature.
8019 (call_ptrace): Update call.
8020 * Makefile.in (infttrace.o): Update dependencies.
8022 2003-03-30 Andrew Cagney <cagney@redhat.com>
8024 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8025 PUSH_RETURN_ADDRESS.
8026 * gdbarch.h, gdbarch.c: Regenerate.
8027 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8028 * x86-64-tdep.c (x86_64_init_abi): Update.
8029 * v850-tdep.c (v850_gdbarch_init): Update.
8030 * sparc-tdep.c (sparc_gdbarch_init): Update.
8031 * sh-tdep.c (sh_gdbarch_init): Update.
8032 * s390-tdep.c (s390_gdbarch_init): Update.
8033 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8034 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8035 * mips-tdep.c (mips_gdbarch_init): Update.
8036 * mcore-tdep.c (mcore_gdbarch_init): Update.
8037 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8038 * ia64-tdep.c (ia64_gdbarch_init): Update.
8039 * i386-tdep.c (i386_gdbarch_init): Update.
8040 * h8300-tdep.c (h8300_gdbarch_init): Update.
8041 * frv-tdep.c (frv_gdbarch_init): Update.
8042 * cris-tdep.c (cris_gdbarch_init): Update.
8043 * avr-tdep.c (avr_gdbarch_init): Update.
8044 * arm-tdep.c (arm_gdbarch_init): Update.
8045 * valops.c (hand_function_call): Update.
8047 2003-03-29 Andrew Cagney <cagney@redhat.com>
8049 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8050 sizeof_call_dummy_words.
8051 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8053 * gdbarch.h: Regenerate.
8055 2003-03-29 Andrew Cagney <cagney@redhat.com>
8057 * infttrace.h: New file.
8058 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8059 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8060 (hpread_read_doc_function_type): Detect an initialized type1.
8061 (hpread_quick_traverse): Initialize mod_name_string.
8062 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8063 (som_solib_get_solib_by_pc): Declare.
8064 (so_lib_thread_start_addr): Declare.
8065 (no_shared_libraries): Declare.
8066 * somread.c (init_import_symbols): Make static. Add forward
8068 * config/pa/nm-hppah.h: Include "infttrace.h" for
8070 (hppa_insert_hw_watchpoint): Declare.
8071 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8072 * hppah-nat.c: Include "gdb_string.h".
8073 (parent_attach_all): Delete extern declaration, moved to
8075 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8077 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8078 * Makefile.in (infttrace_h): Define.
8079 (hpread.o): Update dependencies.
8080 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8081 * hppa-hpux-tdep.c: Include "gdb_string.h".
8082 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8083 * infrun.c (handle_inferior_event): Always initialize
8084 stepped_after_stopped_by_watchpoint. Add default and remove
8085 fallthrough in switch statement.
8086 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8088 (hppa_remove_hw_watchpoint): Ditto.
8090 2003-03-29 Andrew Cagney <cagney@redhat.com>
8092 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8095 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8097 * arm-tdep.c (arm_push_arguments): Delete.
8098 (struct stack_item): New type.
8099 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8100 (arm_store_struct_return): Delte.
8101 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8102 arm_push_arguments or arm_store_struct_return.
8104 2003-03-28 Andrew Cagney <cagney@redhat.com>
8106 * Makefile.in (d10v-tdep.o): Update dependencies.
8107 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8108 * d10v-tdep.c: Include "remote.h".
8109 (target_resume_hook): Delete extern declaration.
8110 (target_wait_loop_hook): Ditto.
8111 (tdisassemble_command): Eliminate assignment in "if" conditional.
8112 (d10v_ts2_register_sim_regno): Eliminate call to
8113 legacy_register_sim_regno.
8114 (d10v_ts3_register_sim_regno): Ditto.
8116 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8118 * thread.c: Reindented.
8120 * linux-proc.c: Ditto.
8122 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8124 * MAINTAINERS (write after approval): Add myself.
8126 2003-03-27 Theodore A. Roth <troth@openavr.org>
8128 * objc-exp.y: Add missing semi-colons.
8130 2003-03-27 Andrew Cagney <cagney@redhat.com>
8132 * regcache.c (write_sp): Delete function and references.
8133 * inferior.h (write_sp): Delete declaration.
8134 * valops.c (hand_function_call): Replace write_sp with
8136 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8137 (sparc_pop_frame): Ditto.
8139 2003-03-27 Andrew Cagney <cagney@redhat.com>
8141 * NEWS: Mention removal of support for hppa*-*-bsd* and
8142 hppa*-*-osf* natives, and hppa*-*-pro* target.
8143 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8144 * config/pa/xm-pa.h: Obsolete file.
8145 * config/pa/xm-hppab.h: Obsolete file.
8146 * config/pa/nm-hppab.h: Obsolete file.
8147 * config/pa/tm-hppab.h: Obsolete file.
8148 * config/pa/tm-hppao.h: Obsolete file.
8149 * config/pa/nm-hppao.h: Obsolete file.
8150 * config/pa/tm-pro.h: Obsolete file.
8151 * config/pa/hppaosf.mt: Obsolete file.
8152 * config/pa/hppaosf.mh: Obsolete file.
8153 * config/pa/hppapro.mt: Obsolete file.
8154 * config/pa/hppabsd.mt: Obsolete file.
8155 * config/pa/hppabsd.mh: Obsolete file.
8156 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8157 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8160 2003-03-27 Andrew Cagney <cagney@redhat.com>
8162 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8163 push_arguments. Don't set push_return_address or write_sp.
8164 (d10v_push_dummy_call): Replace d10v_push_arguments.
8165 (d10v_push_return_address, d10v_write_sp): Delete function,
8166 handled by push_dummy_call.
8168 2003-03-26 Andrew Cagney <cagney@redhat.com>
8170 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8171 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8172 regcache and dummy_addr parameters.
8173 * gdbarch.h, gdbarch.c: Re-generate.
8174 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8175 available; assume it will handle stack alignment and return
8176 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8177 legacy_push_arguments.
8178 (legacy_push_arguments): Rename default_push_arguments.
8179 * value.h (legacy_push_arguments): Rename default_push_arguments.
8180 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8181 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8182 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8183 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8184 * config/i386/tm-symmetry.h: Update.
8185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8186 * x86-64-tdep.c (x86_64_init_abi): Update.
8187 * v850-tdep.c (v850_gdbarch_init): Update.
8188 * sparc-tdep.c (sparc_gdbarch_init): Update.
8189 * sh-tdep.c (sh_gdbarch_init): Update.
8190 * s390-tdep.c (s390_gdbarch_init): Update.
8191 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8192 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8193 * mips-tdep.c (mips_gdbarch_init): Update.
8194 * mcore-tdep.c (mcore_gdbarch_init): Update.
8195 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8196 * ia64-tdep.c (ia64_gdbarch_init): Update.
8197 * i386-tdep.c (i386_gdbarch_init): Update.
8198 * hppa-tdep.c (hppa_gdbarch_init): Update.
8199 * h8300-tdep.c (h8300_gdbarch_init): Update.
8200 * frv-tdep.c (frv_gdbarch_init): Update.
8201 * d10v-tdep.c (d10v_gdbarch_init): Update.
8202 * cris-tdep.c (cris_gdbarch_init): Update.
8203 * avr-tdep.c (avr_gdbarch_init): Update.
8204 * arm-tdep.c (arm_gdbarch_init): Update.
8205 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8206 * alpha-tdep.c (alpha_gdbarch_init): Update.
8208 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8210 * signals/signals.c (do_target_signal_to_host): Correct realtime
8213 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8215 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8216 (struct sal_chain, map_catch_names): Remove.
8217 (catch_exception_command_1): Don't call
8218 handle_gnu_4_16_catch_command.
8220 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8222 From Mark Dettinger <dettinge@de.ibm.com>:
8223 * dwarf2cfi.c (read_2u): Increment pointer by two.
8225 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8227 * signals/signals.c: Fix typos in last change.
8229 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8231 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8232 not already defined. Use __SIGRTMIN if available.
8233 (target_signal_from_host): Remove SIGRTMIN block.
8234 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8235 the signal is within the realtime range.
8237 2003-03-25 Adam Fedor <fedor@gnu.org>
8239 * Makefile.in (infrun.o): Add $(language_h)
8240 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8241 for language specific trampolines.
8242 * language.h (struct language_defn): Add skip_trampoline.
8243 (skip_language_trampoline): Declare.
8244 * language.c (unk_lang_trampoline, skip_language_trampoline):
8246 (unknown_language_defn, auto_language_defn, local_language_defn):
8247 Add ukn_lang_trampoline.
8248 * ada-lang.c (ada_language_defn): Add NULL for language
8249 specific skip_trampoline.
8250 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8251 scm-lang.c: Likewise.
8252 * objc-lang.c (objc_skip_trampoline): New function.
8253 (objc_language_defn): Add objc_skip_trampoline.
8255 2003-03-25 Andrew Cagney <cagney@redhat.com>
8257 * frame.c (get_prev_frame): Delay validating a frame's ID -
8258 non-NULL, didn't go backwards - until an attempt to unwind it to
8261 2003-03-25 Andrew Cagney <cagney@redhat.com>
8263 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8264 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8265 * gdbarch.h, gdbarch.c: Re-generate.
8266 * config/sparc/tm-sparc.h
8267 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8268 * sparc-tdep.c (sparc_gdbarch_init): Set
8269 deprecated_extra_stack_alignment_needed.
8270 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8271 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8272 extra_stack_alignment_needed.
8273 * v850-tdep.c (v850_gdbarch_init): Ditto.
8274 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8275 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8276 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8277 * cris-tdep.c (cris_gdbarch_init): Ditto.
8278 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8279 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8281 2003-03-25 Andrew Cagney <cagney@redhat.com>
8283 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8284 STORE_STRUCT_RETURN.
8285 * gdbarch.h, gdbarch.c: Regenerate.
8286 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8287 (d10v_push_arguments): Set the struct return register.
8288 (d10v_gdbarch_init): Update.
8289 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8290 * x86-64-tdep.c (x86_64_init_abi): Update.
8291 * vax-tdep.c (vax_gdbarch_init): Update.
8292 * v850-tdep.c (v850_gdbarch_init): Update.
8293 * sparc-tdep.c (sparc_gdbarch_init): Update.
8294 * sh-tdep.c (sh_gdbarch_init): Update.
8295 * s390-tdep.c (s390_gdbarch_init): Update.
8296 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8297 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8298 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8299 * mips-tdep.c (mips_gdbarch_init): Update.
8300 * mcore-tdep.c (mcore_gdbarch_init): Update.
8301 * m68k-tdep.c (m68k_gdbarch_init): Update.
8302 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8303 * ia64-tdep.c (ia64_gdbarch_init): Update.
8304 * i386-tdep.c (i386_gdbarch_init): Update.
8305 * hppa-tdep.c (hppa_gdbarch_init): Update.
8306 * h8300-tdep.c (h8300_gdbarch_init): Update.
8307 * frv-tdep.c (frv_gdbarch_init): Update.
8308 * cris-tdep.c (cris_gdbarch_init): Update.
8309 * avr-tdep.c (avr_gdbarch_init): Update.
8310 * arm-tdep.c (arm_gdbarch_init): Update.
8311 * alpha-tdep.c (alpha_gdbarch_init): Update.
8313 2003-03-25 Andrew Cagney <cagney@redhat.com>
8315 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8316 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8317 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8318 * gdbarch.h, gdbarch.c: Regenerate.
8319 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8320 call_dummy_stack_adjust_p.
8321 * vax-tdep.c (vax_gdbarch_init): Ditto.
8322 * v850-tdep.c (v850_gdbarch_init): Ditto.
8323 * sh-tdep.c (sh_gdbarch_init): Ditto.
8324 * s390-tdep.c (s390_gdbarch_init): Ditto.
8325 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8326 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8327 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8328 * mips-tdep.c (mips_gdbarch_init): Ditto.
8329 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8330 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8331 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8332 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8333 * i386-tdep.c (i386_gdbarch_init): Ditto.
8334 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8335 * frv-tdep.c (frv_gdbarch_init): Ditto.
8336 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8337 * cris-tdep.c (cris_gdbarch_init): Ditto.
8338 * avr-tdep.c (avr_gdbarch_init): Ditto.
8339 * arm-tdep.c (arm_gdbarch_init): Ditto.
8340 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8341 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8342 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8343 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8344 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8345 call_dummy_stack_adjust_p.
8346 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8347 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8348 * sparc-tdep.c (sparc32_push_arguments): Update.
8349 * valops.c (hand_function_call): Update.
8351 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8353 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8354 set_gdbarch_char_signed.
8356 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8359 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8361 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8363 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8364 (_initialize_arm_tdep): Don't set tm_print_insn.
8366 2003-03-24 Adam Fedor <fedor@gnu.org>
8368 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8369 * objc-lang.h: Add multiple inclusion protection.
8370 (start_msglist, add_msglist, end_msglist): Additional declarations.
8372 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8374 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8375 value was renamed to ARM_FLOAT_SOFT_FPA.
8377 2003-03-23 Andrew Cagney <cagney@redhat.com>
8379 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8380 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8381 * gdbarch.h, gdbarch.c: Regenerate.
8382 * valops.c (hand_function_call): Update.
8383 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8384 * frame.c (legacy_saved_regs_this_id): Update.
8385 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8386 * dummy-frame.h: Update.
8387 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8388 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8389 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8390 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8391 * config/m68k/tm-sun3.h: Update.
8392 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8393 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8394 * x86-64-tdep.c (x86_64_init_abi): Update.
8395 * vax-tdep.c (vax_gdbarch_init): Update.
8396 * v850-tdep.c (v850_gdbarch_init): Update.
8397 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8398 * sh-tdep.c (sh_gdbarch_init): Update.
8399 * s390-tdep.c (s390_gdbarch_init): Update.
8400 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8401 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8402 (frame_get_saved_regs): Update.
8403 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8404 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8405 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8406 * mips-tdep.c (mips_gdbarch_init): Update.
8407 * mcore-tdep.c (mcore_gdbarch_init): Update.
8408 * m68k-tdep.c (m68k_gdbarch_init): Update.
8409 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8410 * ia64-tdep.c (ia64_gdbarch_init): Update.
8411 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8412 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8413 (i386_interix_back_one_frame): Update.
8414 * hppa-tdep.c (hppa_gdbarch_init): Update.
8415 (hppa_init_extra_frame_info): Update.
8416 * h8300-tdep.c (h8300_gdbarch_init): Update.
8417 * frv-tdep.c (frv_gdbarch_init): Update.
8418 * cris-tdep.c (cris_gdbarch_init): Update.
8419 * avr-tdep.c (avr_gdbarch_init): Update.
8420 * arm-tdep.c (arm_gdbarch_init): Update.
8421 * alpha-tdep.c (alpha_gdbarch_init): Update.
8423 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8425 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8426 (arm_get_fp_model): Declare.
8427 * arm-tdep.c (fp_model_strings): New string array.
8428 (arm_fp_model, current_fp_model): New variables.
8429 (arm_get_fp_model): New function.
8430 (arm_set_fp): New function.
8431 (set_fp_model_sfunc): New function.
8432 (show_fp_model): New function.
8433 (_initialize_arm_tdep): Add new command to set/show the FPU.
8434 (arm_extract_return_value): Use arm_get_fp_model.
8435 (arm_store_return_value): Likewise.
8436 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8437 to initialize the floating-point data types.
8438 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8441 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8443 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8444 the current setting of each value.
8445 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8446 new_set and new_show. Use add_setshow_cmd_full and
8447 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8448 commands and add new version as subcommands of "set/show arm".
8450 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8452 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8453 (set_arm_command, show_arm_command): New functions.
8454 (_initialize_arm_tdep): Add them.
8455 (num_disassembly_options): Renamed from num_flavor_options.
8456 (valid_disassembly_styles): Renamed from valid_flavors.
8457 (disassembly_style): Renamed from disassembly_flavor.
8458 (set_disassembly_style_sfunc): Renamed from
8459 set_disassembly_flavor_sfunc.
8460 (set_disassembly_style): Renamed from set_disassembly_flavor.
8461 (arm_othernames): Updated.
8462 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8463 command. Add "set/show arm disassembly" commands. Deprecate
8464 "othernames" command.
8466 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8468 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8469 (arm-tdep.o): Depend on elf_arm_h.
8471 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8473 * Makefile.in (coff_internal_h): Define.
8474 (arm-tdep.o): Update dependencies.
8476 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8478 * arm-tdep.c (prologue_cache): Delete.
8479 (check_prologue_cache, save_prologue_cache): Delete.
8480 (arm_scan_prologue): Don't check or update the prologue_cache.
8481 (arm_gdb_arch_init): Don't initialize it.
8482 (_initialize_arm_tdep): Likewise.
8484 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8486 * MAINTAINERS (tui): Maintainer of tui code.
8488 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8490 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8491 (i386-cygwin-tdep.o): Add dependencies.
8492 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8493 * i386-cygwin-tdep.c: New file.
8494 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8495 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8497 2003-03-20 Andrew Cagney <cagney@redhat.com>
8499 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8500 (handle_inferior_event): Remove code calling
8501 DYNAMIC_TRAMPOLINE_NEXTPC.
8503 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8504 already has a full path.
8506 * main.c (gdb_main): Return 1.
8507 (captured_main): Call error to report an invalid interpreter.
8509 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8510 * alpha-osf1-tdep.c: Include "gdb_string.h".
8512 2003-03-19 J. Brobecker <brobecker@gnat.com>
8514 Continuing work to convert the hppa targets to multiarch partial.
8516 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8517 method, now that hppa_push_dummy_frame has a conformant prototype.
8518 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8519 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8520 for the switch to multiarch partial.
8522 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8524 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8525 when iss is issNull.
8527 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8529 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8530 NUM_REGS bounds check.
8532 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8534 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8535 * mips-tdep.c (gdb_assert.h): Include.
8536 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8537 (mips_register_name): Handle integer registers explicitly. Add
8539 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8540 (mips_lsi33k_reg_names): Don't list integer registers; they're
8541 handled by mips_register_name() now.
8542 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8543 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8544 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8545 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8546 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8548 2003-03-18 Andrew Cagney <cagney@redhat.com>
8550 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8552 * gdbtypes.h (print_scalar_formatted): Update declaration.
8553 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8555 2003-03-18 J. Brobecker <brobecker@gnat.com>
8557 * infrun.c (observer.h): Add #include.
8558 (normal_stop): Add call to observer_notify_normal_stop.
8559 * Makefile.in (infrun.o): Add dependency on observer.h.
8561 2003-03-18 J. Brobecker <brobecker@gnat.com>
8563 Continuing work to convert the hppa targets to multiarch partial.
8564 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8565 parameter. Reformat comment.
8566 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8567 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8568 to match new profile.
8570 2003-03-18 J. Brobecker <brobecker@gnat.com>
8572 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8573 appear to be working in any case.
8575 2003-03-18 J. Brobecker <brobecker@gnat.com>
8577 * observer.c (observer_test_first_observer): New static variable.
8578 (observer_test_second_observer): Likewise.
8579 (observer_test_third_observer): Likewise.
8580 (observer_test_first_notification_function): New static function.
8581 (observer_test_second_notification_function): Likewise.
8582 (observer_test_third_notification_function): Likewise.
8584 2003-03-17 J. Brobecker <brobecker@gnat.com>
8586 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8587 * somsolib.c (gdb_assert.h): Likewise.
8588 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8589 (somsolib.o): Likewise.
8591 2003-03-17 Andrew Cagney <cagney@redhat.com>
8593 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8594 BFD. Simplify setting of di.endian.
8596 2003-03-17 Andrew Cagney <cagney@redhat.com>
8598 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8599 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8601 From Elena Zannoni <ezannoni@redhat.com>
8602 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8603 vector and floating-point parameters.
8604 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8606 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8608 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8610 * MAINTAINERS: Remove my name from several maintainership roles.
8612 2003-03-17 Andrew Cagney <cagney@redhat.com>
8614 Fix frame off-by-one bug.
8615 * frame-unwind.h (frame_this_id_ftype): Replace
8616 frame_unwind_id_ftype.
8617 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8618 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8619 with "prev_register".
8620 * frame-unwind.c (frame_unwind_find_by_pc): Return
8621 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8623 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8624 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8625 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8626 (dummy_frame_unwind): Update.
8627 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8628 sentinel_frame_register_unwind.
8629 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8630 (sentinel_frame_unwinder): Update.
8631 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8632 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8633 * frame.c (create_sentinel_frame): Update. Initialize
8634 "prologue_cache" instead of "unwind_cache".
8635 (frame_register_unwind): Call this frame's prev_register with the
8636 next frame and this frame's prologue cache.
8637 (get_prev_frame): Simplify. Always call prev frame's this_id with
8638 this frame and prev frame's prologue cache. Document that this
8639 call is shifted one to the left when compared to the
8640 frame_register_unwind call.
8641 (legacy_saved_regs_prev_register): Replace
8642 frame_saved_regs_register_unwind.
8643 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8644 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8645 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8646 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8647 (d10v_frame_unwind): Update.
8648 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8649 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8650 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8651 "saved_regs" with "this_saved_regs".
8653 2003-03-16 Andrew Cagney <cagney@redhat.com>
8655 * frame.c (frame_pop): Don't call target_store_registers. Fix
8656 problem reported by Mark Kettenis.
8658 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8660 * i386-tdep.c (i386_register_type): Renamed from
8661 i386_register_virtual_type. Adjust function signature.
8662 (i386_gdbarch_init): Set register_type instead of
8663 deprecated_max_register_raw_size,
8664 deprecated_max_register_virtual_size and register_virtual_type.
8666 2003-03-14 Andrew Cagney <cagney@redhat.com>
8668 * frame.c (get_prev_frame): When a legacy frame, always call
8669 legacy_get_prev_frame. Simplify unwind code using assumption that
8670 the unwinder is new.
8671 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8672 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8673 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8675 2003-03-14 Andrew Cagney <cagney@redhat.com>
8677 * frame.c (get_saved_register): Delete function.
8678 * frame.h (get_saved_register): Delete declaration.
8679 * xstormy16-tdep.c: Update comment.
8680 * regcache.h: Update comments.
8681 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8682 get_saved_register and extract_address, use
8683 frame_read_unsigned_register.
8684 (sparc_frame_saved_pc): Ditto.
8685 (sparc_get_saved_register): Instead of get_saved_register, use
8687 (sparc_pop_frame): Ditto.
8688 * findvar.c: Update comments.
8689 (value_of_register): Call frame_register instead of
8691 (value_from_register): Ditto.
8692 * config/sparc/tm-sparc.h: Update comment.
8693 * breakpoint.c: Update comment.
8695 2003-03-14 Andrew Cagney <cagney@redhat.com>
8697 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8699 * gdbarch.h, gdbarch.c: Re-generate.
8700 * frame.h: Update comments.
8701 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8702 * x86-64-tdep.c (x86_64_init_abi): Update.
8703 * sparc-tdep.c (sparc_gdbarch_init): Update.
8704 * sh-tdep.c (sh_gdbarch_init): Update.
8705 * mips-tdep.c (mips_gdbarch_init): Update.
8706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8707 * cris-tdep.c (cris_gdbarch_init): Update.
8708 * ia64-tdep.c (ia64_gdbarch_init): Update.
8709 * frame.c (frame_register): Update.
8710 (get_saved_register): Update.
8711 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8713 2003-03-13 Andrew Cagney <cagney@redhat.com>
8715 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8716 * gdbarch.h, gdbarch.c: Regenerate.
8717 * valops.c (hand_function_call): Update comment.
8718 * stack.c (return_command): Update comment.
8719 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8720 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8721 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8722 * x86-64-tdep.c (x86_64_init_abi): Update.
8723 * vax-tdep.c (vax_gdbarch_init): Update.
8724 * v850-tdep.c (v850_gdbarch_init): Update.
8725 * sparc-tdep.c (sparc_gdbarch_init): Update.
8726 * sh-tdep.c (sh_gdbarch_init): Update.
8727 * s390-tdep.c (s390_gdbarch_init): Update.
8728 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8729 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8730 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8731 * mips-tdep.c (mips_gdbarch_init): Update.
8732 * mcore-tdep.c (mcore_gdbarch_init): Update.
8733 * m68k-tdep.c (m68k_gdbarch_init): Update.
8734 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8735 * ia64-tdep.c (ia64_gdbarch_init): Update.
8736 * i386-tdep.c (i386_gdbarch_init): Update.
8737 * hppa-tdep.c (hppa_gdbarch_init): Update.
8738 * h8300-tdep.c (h8300_gdbarch_init): Update.
8739 * frv-tdep.c (frv_gdbarch_init): Update.
8740 * cris-tdep.c (cris_gdbarch_init): Update.
8741 * avr-tdep.c (avr_gdbarch_init): Update.
8742 * arm-tdep.c (arm_gdbarch_init): Update.
8743 * alpha-tdep.c (alpha_gdbarch_init): Update.
8745 2003-03-13 Andrew Cagney <cagney@redhat.com>
8747 * frame.c (legacy_frame_p): New function.
8748 (get_prev_frame): Use legacy_frame_p.
8749 * frame.h (legacy_frame_p): Declare.
8751 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8753 * MAINTAINERS (write after approval): Alphabetically
8756 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8758 * MAINTAINERS (write after approval): Add myself.
8760 2003-03-12 Andrew Cagney <cagney@redhat.com>
8762 * frame.c (get_prev_frame): Rename the frame parameter to
8764 (get_next_frame, legacy_get_prev_frame): Ditto.
8766 2003-03-12 Andrew Cagney <cagney@redhat.com>
8768 * frame.c (get_current_frame): Check target_has_registers before
8769 checking target_has_stack.
8770 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8771 instead of deprecated_selected_frame.
8772 * findvar.c (value_of_register): Pass "frame", not
8773 deprecated_selected_frame, to value_of_builtin_reg.
8775 2003-03-12 Andrew Cagney <cagney@redhat.com>
8777 * regcache.c (regcache_cooked_write_signed): New function.
8778 (regcache_cooked_write_unsigned): New function.
8779 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8780 (regcache_cooked_read_signed): Fix regnum in range assertion.
8781 * regcache.h (regcache_cooked_write_signed): Declare.
8782 (regcache_cooked_write_unsigned): Declare.
8784 2003-03-12 Andrew Cagney <cagney@redhat.com>
8786 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8787 * gdbarch.h, gdbarch.c: Re-generate.
8788 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8789 * x86-64-tdep.h: Update.
8790 * x86-64-tdep.c (x86_64_init_abi): Update.
8791 * v850-tdep.c (v850_gdbarch_init): Update.
8792 * sparc-tdep.c (sparc_gdbarch_init): Update.
8793 * sh-tdep.c (sh_gdbarch_init): Update.
8794 * s390-tdep.c (s390_gdbarch_init): Update.
8795 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8796 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8797 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8798 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8799 * mips-tdep.c (mips_gdbarch_init): Update.
8800 * mcore-tdep.c (mcore_gdbarch_init): Update.
8801 * m68k-tdep.c (m68k_gdbarch_init): Update.
8802 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8803 * ia64-tdep.c (ia64_gdbarch_init): Update.
8804 * i386-tdep.c (i386_gdbarch_init): Update.
8805 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8806 * hppa-tdep.c (hppa_gdbarch_init): Update.
8807 * h8300-tdep.c (h8300_gdbarch_init): Update.
8808 * frv-tdep.c (frv_gdbarch_init): Update.
8809 * cris-tdep.c (cris_gdbarch_init): Update.
8810 * avr-tdep.c (avr_gdbarch_init): Update.
8811 * arm-tdep.c (arm_gdbarch_init): Update.
8812 * alpha-tdep.c (alpha_gdbarch_init): Update.
8813 * sh-tdep.c (sh_init_extra_frame_info): Update.
8814 (sh64_init_extra_frame_info): Update.
8815 * ns32knbsd-nat.c (frame_num_args): Update.
8816 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8817 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8818 (xstormy16_frame_chain_valid): Update.
8819 * vax-tdep.c (vax_saved_pc_after_call): Update.
8820 * v850-tdep.c (v850_frame_chain): Update.
8821 (v850_pop_frame): Update.
8822 (v850_init_extra_frame_info): Update.
8823 * sparc-tdep.c (setup_arbitrary_frame): Update.
8824 * ns32k-tdep.c (umax_frame_num_args): Update.
8825 * s390-tdep.c (s390_pop_frame_regular): Update.
8826 * mn10300-tdep.c (mn10300_frame_chain): Update.
8827 (mn10300_pop_frame_regular): Update.
8828 (mn10300_init_extra_frame_info): Update.
8829 * mips-tdep.c (mips_init_frame_pc_first): Update.
8830 (mips_frame_chain): Update.
8831 (mips_pop_frame): Update.
8832 * mcore-tdep.c (mcore_frame_chain): Update.
8833 (mcore_pop_frame): Update.
8834 (mcore_init_extra_frame_info): Update.
8835 * arch-utils.c (init_frame_pc_default): Update.
8836 * m68k-tdep.c (isi_frame_num_args): Update.
8837 (delta68_frame_num_args): Update.
8838 (news_frame_num_args): Update.
8839 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8840 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8841 (alpha_frame_chain): Update.
8842 (alpha_pop_frame): Update.
8843 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8844 (hppa_init_extra_frame_info): Update.
8845 (hppa_frame_chain): Update.
8846 (hppa_frame_chain_valid): Update.
8847 * cris-tdep.c (cris_init_extra_frame_info): Update.
8848 * avr-tdep.c (avr_init_extra_frame_info): Update.
8849 * arm-tdep.c (arm_frame_chain_valid): Update.
8850 (arm_init_extra_frame_info): Update.
8851 (arm_pop_frame): Update.
8852 * frame.c (frame_pc_unwind): Update.
8853 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8854 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8855 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8856 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8857 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8858 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8860 2003-03-12 Andrew Cagney <cagney@redhat.com>
8862 Eliminate the need for POP_FRAME.
8863 * frame.c (do_frame_unwind_register): New function.
8864 (frame_pop): When no POP_FRAME, pop the frame using register
8865 unwind and a scratch regcache.
8866 (frame_saved_regs_pop): Delete function.
8867 (trad_frame_unwinder): Update.
8868 * d10v-tdep.c (d10v_frame_pop): Delete function.
8869 (d10v_frame_unwind): Update.
8870 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8871 (sentinel_frame_unwinder): Update.
8872 * dummy-frame.c (dummy_frame_pop): Delete function.
8873 (dummy_frame_unwind): Update.
8874 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8875 (struct frame_unwind): Update.
8877 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8879 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8880 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8881 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8882 Do range checks on register number obtained from debugging info.
8883 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8884 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8885 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8887 (do_fp_register_row): Fix typo which caused double type to be
8888 used when attempting to unpack a float.
8890 2003-03-11 J. Brobecker <brobecker@gnat.com>
8892 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8894 2003-03-11 Andrew Cagney <cagney@redhat.com>
8896 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8897 frame. Problem found by Corinna Vinschen.
8899 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8901 * doublest.c (floatformat_from_length): Accept also
8902 the real size of 'long double' type.
8904 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8906 From Klee Dienes <kdienes@apple.com>:
8907 * breakpoint.c (bpstat_copy): Copy the command lines as well
8908 as the old value, to match what is freed in bpstat_clear.
8910 2003-03-10 David Carlton <carlton@math.stanford.edu>
8912 * minsyms.c (add_minsym_to_hash_table): Replace
8913 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8914 (compare_minimal_symbols, compact_minimal_symbols)
8915 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8916 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8917 of DEPRECATED_SYMBOL_MATCHES_NAME.
8918 (lookup_minimal_symbol_solib_trampoline): Ditto.
8920 2003-03-10 Andrew Cagney <cagney@redhat.com>
8922 * regcache.h (regcache_cooked_read_ftype): Define.
8923 (regcache_save, regcache_restore): Add a cooked_read parameter.
8924 * regcache.c (regcache_save, regcache_restore): Update.
8925 (do_cooked_read): New function.
8926 (regcache_cpy): Pass do_cooked_read to regcache_save and
8929 2003-03-10 Andrew Cagney <cagney@redhat.com>
8931 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8932 * gdbarch.h, gdbarch.c: Re-generate.
8933 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8934 * x86-64-tdep.h: Update.
8935 * x86-64-tdep.c (x86_64_init_abi): Update.
8936 * v850-tdep.c (v850_gdbarch_init): Update.
8937 * sparc-tdep.c (sparc_gdbarch_init): Update.
8938 * sh-tdep.c (sh_gdbarch_init): Update.
8939 * s390-tdep.c (s390_gdbarch_init): Update.
8940 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8941 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8942 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8943 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8944 * mips-tdep.c (mips_gdbarch_init): Update.
8945 * mcore-tdep.c (mcore_gdbarch_init): Update.
8946 * m68k-tdep.c (m68k_gdbarch_init): Update.
8947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8948 * ia64-tdep.c (ia64_gdbarch_init): Update.
8949 * i386-tdep.c (i386_gdbarch_init): Update.
8950 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8951 * hppa-tdep.c (hppa_gdbarch_init): Update.
8952 * h8300-tdep.c (h8300_gdbarch_init): Update.
8953 * frv-tdep.c (frv_gdbarch_init): Update.
8954 * cris-tdep.c (cris_gdbarch_init): Update.
8955 * avr-tdep.c (avr_gdbarch_init): Update.
8956 * arm-tdep.c (arm_gdbarch_init): Update.
8957 * alpha-tdep.c (alpha_gdbarch_init): Update.
8958 * sh-tdep.c (sh_init_extra_frame_info): Update.
8959 (sh64_init_extra_frame_info): Update.
8960 * ns32knbsd-nat.c (frame_num_args): Update.
8961 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8962 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8963 (xstormy16_frame_chain_valid): Update.
8964 * vax-tdep.c (vax_saved_pc_after_call): Update.
8965 * v850-tdep.c (v850_frame_chain): Update.
8966 (v850_pop_frame): Update.
8967 (v850_init_extra_frame_info): Update.
8968 * sparc-tdep.c (setup_arbitrary_frame): Update.
8969 * ns32k-tdep.c (umax_frame_num_args): Update.
8970 * s390-tdep.c (s390_pop_frame_regular): Update.
8971 * mn10300-tdep.c (mn10300_frame_chain): Update.
8972 (mn10300_pop_frame_regular): Update.
8973 (mn10300_init_extra_frame_info): Update.
8974 * mips-tdep.c (mips_init_frame_pc_first): Update.
8975 (mips_frame_chain): Update.
8976 (mips_pop_frame): Update.
8977 * mcore-tdep.c (mcore_frame_chain): Update.
8978 (mcore_pop_frame): Update.
8979 (mcore_init_extra_frame_info): Update.
8980 * arch-utils.c (init_frame_pc_default): Update.
8981 * m68k-tdep.c (isi_frame_num_args): Update.
8982 (delta68_frame_num_args): Update.
8983 (news_frame_num_args): Update.
8984 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8985 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8986 (alpha_frame_chain): Update.
8987 (alpha_pop_frame): Update.
8988 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8989 (hppa_init_extra_frame_info): Update.
8990 (hppa_frame_chain): Update.
8991 (hppa_frame_chain_valid): Update.
8992 * cris-tdep.c (cris_init_extra_frame_info): Update.
8993 * avr-tdep.c (avr_init_extra_frame_info): Update.
8994 * arm-tdep.c (arm_frame_chain_valid): Update.
8995 (arm_init_extra_frame_info): Update.
8996 (arm_pop_frame): Update.
8997 * frame.c (frame_pc_unwind): Update.
8998 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8999 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9000 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9001 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9002 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9003 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9005 2003-03-10 Andrew Cagney <cagney@redhat.com>
9007 * gdbarch.sh (gdbarch_unwind_pc): New method.
9008 * gdbarch.h, gdbarch.c: Regenerate.
9009 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9010 but use read_pc and FRAME_SAVED_PC as fall backs.
9011 (frame_saved_regs_pc_unwind): Delete function.
9012 (trad_frame_unwinder): Update.
9013 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9014 (struct frame_unwind): Update.
9015 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9016 (dummy_frame_unwind): Update.
9017 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9018 (sentinel_frame_unwinder): Update.
9019 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9020 (d10v_frame_unwind): Update.
9021 (d10v_unwind_pc): New function.
9022 (d10v_gdbarch_init): Set unwind_pc.
9024 2003-03-10 Andrew Cagney <cagney@redhat.com>
9026 * gdbarch.h: Re-generate.
9028 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9030 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9033 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9035 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9037 2003-03-08 Andrew Cagney <cagney@redhat.com>
9039 * cli-out.c: Update copyright.
9040 (cli_out_data): Define typedef. Use instead of ui_out_data.
9042 2003-03-08 Andrew Cagney <cagney@redhat.com>
9044 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9047 2003-03-07 Andrew Cagney <cagney@redhat.com>
9049 * gdbarch.sh: Don't generate two macro definitions when an
9050 undefined macro taking no arguments.
9051 * gdbarch.h: Regenerate.
9053 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9055 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9056 (x86_64_unwind_dummy_id): New functions.
9057 (x86_64_init_abi): Register these two new functions.
9059 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9061 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9062 (x86_64_skip_prologue): Move prologue detection to
9064 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9066 2003-03-05 Andrew Cagney <cagney@redhat.com>
9068 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9069 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9070 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9071 to use unwind_dummy_id when a dummy frame.
9072 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9074 * gdbarch.h, gdbarch.c: Regneerate.
9076 2003-03-05 Andrew Cagney <cagney@redhat.com>
9078 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9079 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9080 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9083 2003-03-05 Andrew Cagney <cagney@redhat.com>
9085 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9086 (struct d10v_unwind_cache): Delete field "frameless". Replace
9087 "next_addr" with "sp_offset". Add "r11_offset".
9088 (d10v_frame_unwind_cache): Update.
9089 (prologue_find_regs): Update. When "mv r11, sp", save the
9090 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9091 RN was saved in r11_offset.
9093 2003-03-05 Andrew Cagney <cagney@redhat.com>
9095 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9096 cached PC value in the next frame.
9098 2003-03-05 Andrew Cagney <cagney@redhat.com>
9100 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9101 "id_unwind_cache" with "id".
9102 (frame_id_unwind): Delete declaration.
9103 * frame.c (frame_id_unwind): Delete function.
9104 (get_prev_frame): Call the frame id unwind method directly. Store
9105 the returned next frame's ID value in NEXT_FRAME. Note that there
9106 is a problem with the wrong unwind ID being called with the wrong
9109 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9111 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9113 2003-03-05 James Ingham <jingham@apple.com>
9114 Daniel Jacobowitz <drow@mvista.com>
9116 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9117 (auto_cp_abi): New variable.
9118 (current_cp_abi, num_cp_abis): Make static.
9119 (CP_ABI_MAX): Define.
9120 (cp_abis): Turn into an array.
9121 (value_virtual_fn_field): Fix formatting.
9122 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9124 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9125 (list_cp_abis, _initialize_cp_abi): New functions.
9126 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9127 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9128 switch_to_cp_abi. Update prototype for register_cp_abi.
9129 * Makefile.in (cp-abi.o): Update dependencies.
9130 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9131 instead of switch_to_cp_abi.
9132 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9134 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9136 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9138 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9140 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9141 * dwarf2loc.c: Include "regcache.h".
9142 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9144 * Makefile.in (dwarf2loc.o): Update dependencies.
9146 2003-03-04 Theodore A. Roth <troth@openavr.org>
9148 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9149 number of io registers reported by remote target is not a multiple of
9152 2003-03-04 David Carlton <carlton@math.stanford.edu>
9154 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9155 (lookup_symbol_aux_psymtabs): Update call to
9156 lookup_partial_symbol.
9157 (lookup_transparent_type, find_main_psymtab)
9158 (make_symbol_overload_list): Ditto.
9160 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9162 * MAINTAINERS (Write after approval): Update my email address.
9164 2003-03-03 Andrew Cagney <cagney@redhat.com>
9166 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9167 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9168 predicate. Replace MAX_REGISTER_RAW_SIZE.
9169 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9170 MAX_REGISTER_VIRTUAL_SIZE.
9171 * regcache.c (legacy_max_register_raw_size): New function.
9172 (legacy_max_register_virtual_size): New function.
9173 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9174 (MAX_REGISTER_RAW_SIZE): Define.
9175 (legacy_max_register_raw_size): Declare.
9176 (legacy_max_register_virtual_size): Declare.
9177 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9178 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9179 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9180 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9181 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9182 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9183 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9184 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9185 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9186 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9187 * vax-tdep.c (vax_gdbarch_init): Update.
9188 * v850-tdep.c (v850_gdbarch_init): Update.
9189 * sparc-tdep.c (sparc_gdbarch_init): Update.
9190 * sh-tdep.c (sh_gdbarch_init): Update.
9191 * s390-tdep.c (s390_gdbarch_init): Update.
9192 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9193 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9194 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9195 * mips-tdep.c (mips_gdbarch_init): Update.
9196 * mcore-tdep.c (mcore_gdbarch_init): Update.
9197 * m68k-tdep.c (m68k_gdbarch_init): Update.
9198 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9199 * ia64-tdep.c (ia64_gdbarch_init): Update.
9200 * i386-tdep.c (i386_gdbarch_init): Update.
9201 * hppa-tdep.c (hppa_gdbarch_init): Update.
9202 * h8300-tdep.c (h8300_gdbarch_init): Update.
9203 * frv-tdep.c (frv_gdbarch_init): Update.
9204 * cris-tdep.c (cris_gdbarch_init): Update.
9205 * avr-tdep.c (avr_gdbarch_init): Update.
9206 * arm-tdep.c (arm_gdbarch_init): Update.
9207 * alpha-tdep.c (alpha_gdbarch_init): Update.
9208 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9209 max_register_raw_size or max_register_virtual_size.
9211 2003-03-03 David Carlton <carlton@math.stanford.edu>
9213 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9214 SYMBOL_MATCHES_NAME, add comment.
9215 (SYMBOL_MATCHES_NATURAL_NAME): New.
9216 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9217 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9218 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9219 * symtab.c (lookup_partial_symbol): Use
9220 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9222 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9223 SYMBOL_MATCHES_NAME.
9226 2003-03-03 David Carlton <carlton@math.stanford.edu>
9228 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9229 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9230 by regexp matching against SYMBOL_NATURAL_NAME.
9232 2003-03-03 David Carlton <carlton@math.stanford.edu>
9234 * linespec.c (find_method): Extract code into collect_methods.
9235 (collect_methods): New.
9237 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9239 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9242 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9243 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9245 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9247 * arch-utils.c (generic_register_byte): Fix to use the loop index
9248 and not regnum when summing the size of all registers up to regnum.
9250 2003-03-01 Andrew Cagney <cagney@redhat.com>
9252 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9253 FRAME_INIT_SAVED_REGS.
9254 * gdbarch.h, gdbarch.c: Regenerate.
9255 * stack.c (frame_info): Update.
9256 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9257 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9258 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9259 * ns32k-tdep.c (ns32k_pop_frame): Update.
9260 * mips-tdep.c (mips_pop_frame): Update.
9261 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9262 * ia64-tdep.c (ia64_frame_chain): Update.
9263 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9264 (ia64_frameless_function_invocation): Update.
9265 (ia64_init_extra_frame_info): Update.
9266 (ia64_pop_frame_regular): Update.
9267 * frame.h (struct frame_info): Update comment.
9268 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9269 * frame.c (frame_saved_regs_register_unwind): Update.
9270 (frame_saved_regs_register_unwind): Update.
9271 (deprecated_generic_get_saved_register): Update.
9272 * cris-tdep.c: Update comment.
9273 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9275 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9276 * x86-64-tdep.c (x86_64_init_abi): Update.
9277 * vax-tdep.c (vax_gdbarch_init): Update.
9278 * v850-tdep.c (v850_gdbarch_init): Update.
9279 * sparc-tdep.c (sparc_gdbarch_init): Update.
9280 * sh-tdep.c (sh_gdbarch_init): Update.
9281 * s390-tdep.c (s390_gdbarch_init): Update.
9282 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9283 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9284 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9285 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9286 * mips-tdep.c (mips_gdbarch_init): Update.
9287 * mcore-tdep.c (mcore_gdbarch_init): Update.
9288 * m68k-tdep.c (m68k_gdbarch_init): Update.
9289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9290 * ia64-tdep.c (ia64_gdbarch_init): Update.
9291 * i386-tdep.c (i386_gdbarch_init): Update.
9292 * frv-tdep.c (frv_gdbarch_init): Update.
9293 * avr-tdep.c (avr_gdbarch_init): Update.
9294 * arm-tdep.c (arm_gdbarch_init): Update.
9295 * alpha-tdep.c (alpha_gdbarch_init): Update.
9297 2003-03-01 Andrew Cagney <cagney@redhat.com>
9299 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9300 option enum and switch. When no windows, set the interpreter to
9303 2003-03-01 Andrew Cagney <cagney@redhat.com>
9305 * main.c (captured_main): Replace magic option characters with an
9308 2003-03-01 Andrew Cagney <cagney@redhat.com>
9310 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9311 INIT_EXTRA_FRAME_INFO.
9312 * gdbarch.h, gdbarch.c: Regenerate.
9313 * arm-tdep.c: Update comments.
9314 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9315 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9316 * frame.h, avr-tdep.c: Ditto.
9317 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9318 (create_new_frame, legacy_get_prev_frame): Ditto.
9319 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9320 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9321 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9322 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9323 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9324 * v850-tdep.c (v850_gdbarch_init): Ditto.
9325 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9326 * sh-tdep.c (sh_gdbarch_init): Ditto.
9327 * s390-tdep.c (s390_gdbarch_init): Ditto.
9328 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9329 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9330 * mips-tdep.c (mips_gdbarch_init): Ditto.
9331 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9332 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9333 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9334 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9335 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9336 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9337 * frv-tdep.c (frv_gdbarch_init): Ditto.
9338 * cris-tdep.c (cris_gdbarch_init): Ditto.
9339 * avr-tdep.c (avr_gdbarch_init): Ditto.
9340 * arm-tdep.c (arm_gdbarch_init): Ditto.
9341 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9342 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9344 2003-03-01 Andrew Cagney <cagney@redhat.com>
9346 * gdbarch.sh (register_type): New function with predicate.
9347 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9348 * gdbarch.h, gdbarch.c: Re-generate.
9349 * arch-utils.c (generic_register_byte): Use generic_register_size.
9350 (generic_register_size): When available, use
9351 gdbarch_register_type.
9352 * regcache.c (init_regcache_descr): When available, initialize the
9353 register type array using gdbarch_register_type. If the
9354 architecture supplies gdbarch_register_type, do not use the legacy
9356 * d10v-tdep.c (d10v_register_type): Replace
9357 d10v_register_virtual_type.
9358 (d10v_gdbarch_init): Set register_type instead of
9359 register_virtual_type.
9361 2003-03-01 Andrew Cagney <cagney@redhat.com>
9363 * Makefile.in (ax-gdb.o): Update dependencies.
9364 * ax-gdb.c: Include "regcache.h".
9365 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9366 * findvar.c (value_of_register): Ditto.
9367 * infcmd.c (default_print_registers_info): Ditto.
9369 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9371 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9372 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9374 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9376 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9379 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9381 * Makefile.in (dwarf2loc.o): Update dependencies.
9382 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9383 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9384 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9385 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9386 (locexpr_tracepoint_var_ref): New function.
9387 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9389 2003-02-28 Andrew Cagney <cagney@redhat.com>
9391 * regcache.c (register_size): New function.
9392 * regcache.h (register_size): Declare
9393 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9394 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9396 2003-02-28 David Carlton <carlton@math.stanford.edu>
9398 * linespec.c (decode_compound): Extract code into find_method.
9401 2003-02-28 J. Brobecker <brobecker@gnat.com>
9403 * Makefile.in: Add rules to build and link in observer.o.
9405 2003-02-27 J. Brobecker <brobecker@gnat.com>
9407 * observer.c: Minor comments edits.
9409 2003-02-27 J. Brobecker <brobecker@gnat.com>
9411 * observer.h, observer.c: New file.
9413 2003-02-27 Andrew Cagney <cagney@redhat.com>
9415 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9417 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9419 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9420 (M6812_OP_STS_EXT): Likewise.
9421 (m6811_prologue): Use the above to recognize prologue.
9422 (m6812_prologue): Likewise.
9424 2003-02-27 David Carlton <carlton@math.stanford.edu>
9426 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9428 (compare_psymbols): Ditto.
9429 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9431 2003-02-27 Michael Snyder <msnyder@redhat.com>
9433 * f-lang.c (build_fortran_types): New function.
9434 (_initialize_f_language): Gdbarch-register built-in fortran types.
9435 * doublest.c (extract_floating): Fix warning text.
9437 2003-02-27 Andrew Cagney <cagney@redhat.com>
9439 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9440 predicate. Replaces PUSH_DUMMY_FRAME.
9441 * gdbarch.h, gdbarch.c: Regnerate.
9442 * valops.c (hand_function_call): Update. Call
9443 generic_push_dummy_frame directly.
9444 * vax-tdep.c (vax_gdbarch_init): Update.
9445 * sparc-tdep.c (sparc_gdbarch_init): Update.
9446 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9447 * m68k-tdep.c (m68k_gdbarch_init): Update.
9448 * hppa-tdep.c (hppa_gdbarch_init): Update.
9449 * alpha-tdep.c (alpha_gdbarch_init): Update.
9450 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9451 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9452 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9453 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9454 push_dummy_frame to generic_push_dummy_frame.
9455 * v850-tdep.c (v850_gdbarch_init): Ditto.
9456 * sh-tdep.c (sh_gdbarch_init): Ditto.
9457 * s390-tdep.c (s390_gdbarch_init): Ditto.
9458 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9459 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9460 * mips-tdep.c (mips_gdbarch_init): Ditto.
9461 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9462 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9463 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9464 * i386-tdep.c (i386_gdbarch_init): Ditto.
9465 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9466 * frv-tdep.c (frv_gdbarch_init): Ditto.
9467 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9468 * cris-tdep.c (cris_gdbarch_init): Ditto.
9469 * avr-tdep.c (avr_gdbarch_init): Ditto.
9470 * arm-tdep.c (arm_gdbarch_init): Ditto.
9472 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9474 * mips-tdep.c (show_mips_abi): New function.
9475 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9476 command ``show mips abi''.
9478 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9480 From Elena Zannoni <ezannoni@redhat.com>
9481 * dbxread.c (process_one_symbol): Only record line 0 if one or
9482 more sline entries have been seen for the function.
9484 2003-02-26 Michael Chastain <mec@shout.net>
9486 * configure: Regenerate with autoconf 000227.
9488 2003-02-26 Michael Chastain <mec@shout.net>
9491 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9492 for old libc5/glibc.
9493 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9495 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9497 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9498 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9500 2003-02-26 Michael Chastain <mec@shout.net>
9502 * configure.in: New variable HAVE_UINTPTR_T.
9503 * configure, config.in: Regenerated.
9505 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9508 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9510 2003-02-25 Andrew Cagney <cagney@redhat.com>
9512 * frame.c (get_prev_frame): Add comment on check for
9513 inside_entry_func. Only check for inside_entry_file when not a
9514 dummy and not a sentinel. Check that the new frame is not inner
9517 2003-02-25 Andrew Cagney <cagney@redhat.com>
9519 * frame.c (frame_debug): New variable.
9520 (_initialize_frame): Add "set/show debug frame" command.
9521 (get_prev_frame): When frame_debug, print reason why unwind
9524 2003-02-25 Michael Chastain <mec@shout.net>
9526 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9527 to avoid uintptr_t definition problems.
9529 2003-02-25 David Carlton <carlton@math.stanford.edu>
9531 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9532 (SYMBOL_LINKAGE_NAME): Ditto.
9533 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9534 SYMBOL_LINKAGE_NAME.
9535 (struct general_symbol_info): Expand comment.
9536 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9537 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9538 (SYMBOL_MATCHES_REGEXP): Ditto.
9539 * symtab.c (symbol_natural_name): New function.
9540 * objfiles.h: Replace all uses of SYMBOL_NAME by
9541 DEPRECATED_SYMBOL_NAME.
9542 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9543 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9544 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9545 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9546 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9547 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9548 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9549 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9550 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9551 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9553 * ada-exp.y: Update copyright.
9554 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9555 * cp-valprint.c: Ditto.
9557 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9559 * infptrace.c (detach): Do not flag error if ptrace detach fails
9560 and errno is set to ESRCH.
9562 2003-02-24 Andrew Cagney <cagney@redhat.com>
9564 * infptrace.c (udot_info): Change type of udot_off to long. Use
9565 paddr when printing udot_off's value.
9567 2003-02-24 David Carlton <carlton@math.stanford.edu>
9569 * symtab.c (make_symbol_overload_list): Only read in partial
9570 symtabs containing a matching partial symbol.
9572 2003-02-24 David Carlton <carlton@math.stanford.edu>
9574 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9575 do the comparison, not strcmp.
9576 * symfile.c (compare_psymbols): Ditto.
9577 * defs.h: Declare strcmp_iw_ordered.
9578 * utils.c (strcmp_iw_ordered): New function.
9580 2003-02-24 Jim Blandy <jimb@redhat.com>
9582 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9583 support, shared libs): Remove my name from here, to better reflect
9586 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9588 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9589 (target_ops): Add to_have_continuable_watchpoint.
9590 * target.c (update_current_target): Add INHERIT line for
9591 to_have_continuable_watchpoint.
9592 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9593 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9594 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9595 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9597 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9599 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9602 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9604 * solib.c (solib_open): Call target defined search function after
9605 failing with solib-search-path.
9606 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9607 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9609 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9611 * MAINTAINERS: Add myself to Write After section.
9613 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9615 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9617 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9619 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9620 (m68hc11_add_reggroups): New function.
9621 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9622 (m68hc11_gdbarch_init): Install the reggroups.
9623 (_initialize_m68hc11_tdep): Initialize them.
9625 2003-02-21 James E Wilson <wilson@tuliptree.org>
9627 * MAINTAINERS: Update my email address.
9629 2003-02-21 David Carlton <carlton@math.stanford.edu>
9631 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9633 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9635 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9636 * symtab.h: Add opaque declarations of struct axs_value and
9638 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9639 (struct location_funcs): New type.
9640 (struct symbol): Add "loc" to aux_value.
9641 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9642 * dwarf2read.c: Include "dwarf2expr.h".
9643 (dwarf2_symbol_mark_computed): New function.
9644 (read_func_scope): Use it.
9645 (var_decode_location): New function.
9646 (new_symbol): Use it.
9647 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9649 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9650 (dwarf2expr_h, dwarf2loc_h): New variables.
9651 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9652 (dwarf2expr.o, dwarf2loc.o): New rules.
9653 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9654 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9656 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9657 * m2-exp.y (yylex): Likewise.
9658 * printcmd.c (address_info, print_frame_args): Likewise.
9659 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9660 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9661 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9662 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9663 * symtab.c (lookup_block_symbol): Likewise.
9665 2003-02-20 Adam Fedor <fedor@gnu.org>
9667 * symtab.h: Remove objc_specific struct
9668 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9669 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9670 Have language_objc use cplus_specific struct.
9672 2003-02-20 Tom Tromey <tromey@redhat.com>
9674 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9675 TYPE_NAME, when printing a String value. PR java/1075.
9677 2003-02-20 Adam Fedor <fedor@gnu.org>
9679 * objc-lang.h (find_methods): Remove declaration.
9680 * objc-lang.c (find_methods): Make static.
9682 2003-02-20 Christopher Faylor <cgf@redhat.com>
9684 * win32-nat.c (get_image_name): Check return value from
9686 (child_xfer_memory): Ditto.
9688 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9690 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9691 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9692 '${exec_prefix}' (in addition to the expansion thereof) as
9694 * configure: Rebuilt.
9696 2003-02-20 David Carlton <carlton@math.stanford.edu>
9698 * symtab.c (search_symbols): Revert the search_symbols part of my
9699 2002-12-23 patch. Add comment.
9701 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9703 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9704 * dbxread.c (elfstab_build_psymtabs): Don't call
9705 install_minimal_symbols.
9706 (stabsect_build_psymtabs): Likewise.
9707 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9709 * somread.c (som_symfile_read): Call install_minimal_symbols
9710 and do_cleanups earlier.
9711 * nlmread.c (nlm_symfile_read): Likewise.
9712 * mdebugread.c (elfmdebug_build_psymtabs): Call
9713 install_minimal_symbols and make appropriate cleanups.
9715 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9717 * solib.c (reload_shared_libraries): New function.
9718 (_initialize_solib): Add callbacks for ``set solib-search-path''
9719 and ``set solib-absolute-prefix''.
9721 2003-02-20 David Carlton <carlton@math.stanford.edu>
9723 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9725 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9726 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9727 * ada-typeprint.c (ada_typedef_print): Ditto.
9728 * ax-gdb.c (gen_var_ref): Ditto.
9729 * breakpoint.c (print_one_breakpoint): Ditto.
9730 * buildsym.c (finish_block): Ditto.
9731 * c-valprint.c (c_val_print): Ditto.
9732 * expprint.c (print_subexp): Ditto.
9733 * findvar.c (locate_var_value): Ditto.
9734 * infcmd.c (jump_command): Ditto.
9735 * linespec.c (decode_line_2, decode_compound): Ditto.
9736 * maint.c (maintenance_translate_address): Ditto.
9737 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9738 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9740 * p-valprint.c (pascal_val_print): Ditto.
9741 * stabsread.c (define_symbol): Ditto.
9742 * stack.c (print_frame, frame_info, print_block_frame_locals)
9743 (print_frame_arg_vars, return_command): Ditto.
9744 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9745 * symmisc.c (print_symbol): Ditto.
9746 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9747 (compare_search_syms, print_symbol_info, print_msymbol_info)
9748 (rbreak_command): Ditto.
9749 * tracepoint.c (tracepoints_info): Ditto.
9750 * typeprint.c (typedef_print): Ditto.
9751 * valops.c (value_of_variable, hand_function_call): Ditto.
9752 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9753 * ada-typeprint.c: Update Copyright.
9754 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9755 * tracepoint.c, cli/cli-cmds.c: Ditto.
9757 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9759 * frame.c (generic_unwind_get_saved_register): Make non-static.
9760 * frame.h (generic_unwind_get_saved_register): Declare.
9761 * mips-tdep.c (read_next_frame_reg): Fetch register from
9762 current regcache when frame is NULL.
9763 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9765 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9766 instead of frame_register_unwind().
9768 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9770 * remote-sim.c (gdbsim_insert_breakpoint)
9771 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9774 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9776 * remote.c (_initialize_remote): Add commands "set/show remote
9777 hardware-watchpoint-limit" and "set/show remote
9778 hardware-breakpoint-limit".
9779 (remote_hw_watchpoint_limit): Initialize to -1.
9780 (remote_hw_breakpoint_limit): Ditto.
9781 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9783 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9785 * coff-pe-read.c: New file - support reading of minimal symbols from a
9786 portable executable using the export table.
9787 * coff-pe-read.h: New file.
9788 * coffread.c: Include coff-pe-read.h.
9789 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9790 debugging symbols found.
9791 * Makefile.in (SFILES): Add coff-pe-read.o.
9792 (coff_pe_read_h): Define.
9793 (COMMON_OBS): Add coff-pe-read.o.
9794 (coffread.o): Add coff_pe_read_h dependency.
9795 (coff-pe-read.o): New target.
9797 2003-02-19 David Carlton <carlton@math.stanford.edu>
9799 * Makefile.in (SFILES): Add block.c.
9801 (COMMON_OBS): Add block.o.
9803 (x86-64-tdep.o): Add $(block_h).
9804 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9805 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9806 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9807 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9808 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9809 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9810 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9811 * value.h: Add opaque declaration for struct block.
9812 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9813 * ada-lang.h: Ditto.
9814 * x86-64-tdep.c: #include "block.h"
9815 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9816 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9817 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9818 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9819 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9820 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9821 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9822 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9823 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9824 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9825 * symtab.c (block_function): Ditto.
9826 (contained_in): Ditto.
9827 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9828 block.h. Add opaque declaration for struct block.
9829 * symtab.h: Move block_function and contained_in declarations to
9830 block.h. Add opaque declarations for struct block, struct
9832 (struct block): Move to block.h.
9833 (struct blockvector): Ditto.
9834 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9835 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9836 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9837 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9838 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9840 * block.c: New file.
9841 * block.h: New file.
9843 2003-02-19 Theodore A. Roth <troth@openavr.org>
9845 * avr-tdep.c (avr_extract_return_value): Remove function.
9846 (avr_store_return_value): Remove function.
9847 (avr_extract_struct_value_address): Remove function.
9848 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9850 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9852 * rs6000-tdep.c: Include "gdb_assert.h".
9853 (registers_e500): Add "acc" and "spefscr".
9854 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9855 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9856 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9858 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9860 2003-02-18 Keith Seitz <keiths@redhat.com>
9862 * Makefile.in: Add gdbtk-interps.c.
9864 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9866 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9867 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9869 2003-02-18 Andrew Cagney <cagney@redhat.com>
9871 * symtab.h (struct objfile): Add opaque declaration.
9873 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9875 From Jim Ingham <jingham@apple.com>:
9876 * dbxread.c (process_one_symbol): Use last_function_start rather
9877 than function_start_offset to find the real beginning of the
9878 current function. The latter is just the text section offset on
9879 some systems, the former is always the real function start.
9881 2003-02-17 Andrew Cagney <cagney@redhat.com>
9883 * configure.in: Revert ${target} != ${host}.
9885 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9887 * configure.in (Makefile): Use the test ${target} != ${host},
9888 instead of the absence of the "nm.h" file, to determine of the
9889 configuration non-native.
9890 * configure: Regenerate.
9892 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9894 From Brian Ford <ford@vss.fsi.com>
9896 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9897 conditionalize tui_active test.
9898 (lookup_cmd_1): Ditto.
9900 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9902 * configure.in: Add check for _etext.
9903 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9905 * config.in, configure: regenerated.
9907 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9909 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9911 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9913 * main.c (tui_version): Delete variable.
9914 (captured_main): When --tui, set interpreter_p to "tui" instead of
9915 enabling tui_version.
9916 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9918 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9919 * cli/cli-cmds.c (disassemble_command): Ditto.
9920 * defs.h (tui_version): Delete declaration.
9921 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9922 (tui-interp.o): Add rules.
9923 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9925 2003-02-14 Christopher Faylor <cgf@redhat.com>
9927 * win32-nat.c (register_loaded_dll): Correctly set address range for
9930 2003-02-12 Jason Molenda (jmolenda@apple.com)
9932 * symmisc.c (print_objfile_statistics): Include information about
9933 the number of psymtabs and symtabs in each object file.
9935 2003-02-13 Keith R Seitz <keiths@redhat.com>
9937 * main.h (struct captured_main_args): Add interpreter_p.
9938 * main.c (captured_main): Initialize interpreter_p from context.
9939 * gdb.c (main): Set interpreter_p argument.
9940 * Makefile.in (gdb.o): Add dependency for interps.h.
9942 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9944 * event-top.c (cli_command_loop): Delete declaration.
9945 (_initialize_event_loop): Delete function setting event_loop_hook.
9946 * event-top.h (cli_command_loop): Declare. Update copyright.
9947 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9948 * interps.c (current_interp_command_loop): When event_loop_p, call
9951 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9953 * interps.h (interp_command_loop_ftype): Change return type to
9956 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9958 * x86-64-tdep.c (x86_64_extract_return_value)
9959 (x86_64_store_return_value): Use regcache instead of regbuf.
9960 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9961 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9963 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9965 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9966 * aclocal.m4: Regenerate.
9967 * configure: Regenerate.
9969 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9970 TCL_LD_SEARCH_FLAGS.
9972 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9974 * dwarf2cfi.c: Reindented.
9976 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9978 * interps.c (clear_interpreter_hooks): Convert function definition
9981 2003-02-07 David Carlton <carlton@math.stanford.edu>
9983 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9985 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9987 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9988 (struct type): ...to here.
9989 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9991 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9992 (replace_type): Set length on all type variants for a given type.
9994 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9996 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9998 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10000 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10002 * Makefile.in (symm-nat.o): Update dependencies.
10003 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10004 (lynx-nat.o, ia64-linux-nat.): Ditto.
10005 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10006 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10007 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10009 * Makefile.in (inflow_h): Define.
10010 (procfs.o, inflow.o, procfs.o): Update dependencies.
10011 * inftarg.c (child_stop): Delete extern declaration of
10012 inferior_process_group. Include "inflow.h".
10013 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10014 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10015 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10016 (our_process_group, inferior_process_group): Extern declarations.
10018 * procfs.c: Include "gdb_assert.h".
10020 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10021 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10022 * jv-typeprint.c (java_type_print_base): Ditto.
10023 * typeprint.c (typedef_print): Eliminate STREQ.
10024 * cli/cli-script.c (define_command, define_command): Ditto.
10025 * main.c (captured_main): Ditto.
10026 * values.c (lookup_internalvar): Ditto.
10027 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10028 within `if' conditional.
10029 * linespec.c (decode_line_2): Ditto.
10030 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10031 (bfd_openw_with_cleanup): Ditto.
10033 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10035 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10036 legacy_extract_return_value and store_return_value to
10037 legacy_return_value.
10039 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10041 * win32-nat.c (get_relocated_section_addrs): New function. Find
10042 section load addresses for symbol handling in relocated DLLs.
10043 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10045 2003-02-05 Fred Fish <fnf@intrinsity.com>
10047 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10049 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10051 (angel_RDI_info): Ditto.
10052 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10054 (threads_continue_all_with_signals): Ditto.
10056 2003-02-05 Jim Ingham <jingham@apple.com>
10057 Keith Seitz <keiths@redhat.com>
10058 Elena Zannoni <ezannoni@redhat.com>
10059 Andrew Cagney <ac131313@redhat.com>
10061 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10062 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10063 (SUBDIR_MI_OBS): Add "mi-interp.o".
10064 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10065 (SFILES): Add "interps.c".
10066 (COMMON_OBS): Add "interps.o".
10067 (interps_h, mi_main_h): Define.
10068 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10069 (mi-main.o, main.o, event-top.o): Update dependencies.
10070 * cli/cli-interp.c: New file.
10071 * interps.h, interps.c: New files.
10072 * top.c: (gdb_init): Don't install the default interpreter, handed
10074 * main.c: Include "interps.h".
10075 (interpreter_p): Note that it should malloc'ed.
10076 (captured_command_loop): Call current_interp_command_loop.
10077 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10078 xfree and xstrdup when updating interpreter_p. Install the
10079 default interpreter. Add hack to stop mi1's copyright notice
10081 * event-top.h (gdb_setup_readline): Declare.
10082 (gdb_disable_readline): Declare.
10083 * event-top.c: Include "interps.h".
10084 (display_gdb_prompt): Call current_interp_display_prompt_p.
10085 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10086 gdb_stdlog, and gdb_stdtarg.
10087 (_initialize_event_loop): Don't call gdb_setup_readline.
10088 * cli-out.c (cli_out_set_stream): New function.
10089 * cli-out.h (cli_out_set_stream): Declare.
10091 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10093 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10094 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10095 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10096 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10097 config/i386/i386v42mp.mt: Removed.
10099 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10101 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10104 2003-02-05 Michael Chastain <mec@shout.net>
10106 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10107 2.12.1 and earlier versions.
10109 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10111 Remove orphaned hosts, targets and files.
10112 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10113 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10114 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10115 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10116 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10117 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10118 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10119 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10120 * config/sparc/tm-sp64sim.h: Delete.
10121 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10123 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10124 mips*-dec-mach3* targets.
10126 2003-02-04 Michael Chastain <mec@shout.net>
10128 * NEWS: Fix typo: sepcifying -> specifying.
10130 2003-02-04 Michael Chastain <mec@shout.net>
10132 * dwarfread.c: Add documentation on the state of dwarf-1,
10133 looking towards obsoletion.
10135 2003-02-03 Michael Chastain <mec@shout.net>
10137 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10138 gdb/testsuite/gdb.c++/pr-1023.exp.
10140 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10142 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10143 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10145 * utils.c (init_page_info): Delete reference to MPW in comments.
10146 * main.c (captured_main): Delete #ifdef MPW.
10148 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10150 * NEWS: Note that the m32r-*-elf* is obsolete.
10151 * monitor.c (monitor_expect): Obsolete reference to m32r.
10152 * configure.tgt: Mark m32r-*-elf* as obsolete.
10153 * MAINTAINERS: Mark m32k as obsolete.
10154 * m32r-rom.c: Obsolete file.
10155 * config/m32r/m32r.mt: Obsolete file.
10156 * config/m32r/tm-m32r.h: Obsolete file.
10157 * m32r-stub.c: Obsolete file.
10158 * m32r-tdep.c: Obsolete file.
10160 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10162 * NEWS: Mention that the z8k-zilog-none is obsolete.
10163 * MAINTAINERS: Mark z8k as obsolete.
10164 * configure.tgt: Obsolete the z8k-*-coff* target.
10165 * config/z8k/z8k.mt: Obsolete file.
10166 * config/z8k/tm-z8k.h: Obsolete file.
10167 * z8k-tdep.c: Obsolete file.
10169 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10171 * NEWS: Mention that the mn10200-elf is obsolete.
10172 * configure.tgt: Obsolete mn10200-*-* target.
10173 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10174 mention that the mn10200 is obsolete.
10175 * breakpoint.h: Ditto.
10176 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10177 * config/mn10200/mn10200.mt: Obsolete file.
10178 * config/mn10200/tm-mn10200.h: Obsolete file.
10179 * mn10200-tdep.c: Obsolete file.
10181 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10183 * MAINTAINERS: Mark h8500 as obsolete.
10184 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10185 * findvar.c (value_from_register): Ditto.
10186 * h8500-tdep.c: Mark file as obsolete.
10187 * config/h8500/h8500.mt: Ditto.
10188 * config/h8500/tm-h8500.h: Ditto.
10189 * NEWS: Mention that h8500 is obsolete.
10191 2003-02-04 David Carlton <carlton@math.stanford.edu>
10193 * objfiles.c (allocate_objfile): Always set name. Add comment at
10195 * jv-lang.c (get_dynamics_objfile): Add comment.
10197 2003-02-04 David Carlton <carlton@math.stanford.edu>
10199 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10200 * printcmd.c (build_address_symbolic): Replace uses of
10201 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10202 SYMBOL_NAME, and asm_demangle.
10205 2003-02-04 David Carlton <carlton@math.stanford.edu>
10207 * linespec.c (decode_compound): Extract code into
10209 (lookup_prefix_sym): New function.
10211 2003-02-04 David Carlton <carlton@math.stanford.edu>
10213 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10214 FLOAT_COERCION_BADNESS.
10215 * gdbtypes.c (rank_one_type): Replace all uses of
10216 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10218 2003-02-04 Jim Blandy <jimb@redhat.com>
10220 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10221 section, let dwarf_macinfo_section point to it, not
10224 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10226 Pointed out by Anton Blanchard <anton@samba.org>.
10227 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10228 (ppc_linux_at_sigtramp_return_path): Use it.
10230 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10232 * defs.h (streq): Add prototype.
10233 * utils.c (streq): New function.
10235 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10236 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10237 * mdebugread.c (new_symbol): Likewise.
10238 * stabsread.c (define_symbol): Likewise.
10239 * coffread.c (process_coff_symbol): Likewise.
10240 * dwarfread.c (new_symbol): Likewise.
10242 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10243 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10245 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10246 SYMBOL_INIT_DEMANGLED_NAME.
10247 * objfiles.c: Include "hashtab.h".
10248 (allocate_objfile): Call htab_set_functions_ex for the
10249 demangled_names_hash.
10250 (free_objfile): Call htab_delete for the demangled_names_hash.
10251 * objfiles.h (struct htab): Add declaration.
10252 (struct objfile): Add demangled_names_hash.
10253 * symfile.c: Include "hashtab.h".
10254 (reread_symbols): Call htab_delete for the demangled_names_hash.
10255 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10256 SYMBOL_NAME in the bcache.
10257 * symtab.c: Include "hashtab.h". Update comments.
10258 (create_demangled_names_hash, symbol_set_names): New functions.
10259 (symbol_find_demangled_name): New function, broken out from
10260 symbol_init_demangled_names.
10261 (symbol_init_demangled_names): Use it.
10262 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10263 (SYMBOL_SET_NAMES): New macro.
10264 (symbol_set_names): Add prototype.
10266 2003-02-03 Jim Blandy <jimb@redhat.com>
10268 Use a single, consistent representation for an empty minimal
10269 symbol table in an objfile.
10270 * objfiles.c (terminate_minimal_symbol_table): New function.
10271 (allocate_objfile): Call it.
10272 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10273 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10275 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10276 objfile has minimal symbols, compare minimal_symbol_count to zero,
10277 instead of comparing msymbols with NULL.
10278 * objfiles.c (have_minimal_symbols): Same.
10279 * solib-sunos.c (solib_add_common_symbols): Call
10280 terminate_minimal_symbol_table.
10281 * symfile.c (reread_symbols): Same.
10283 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10285 * s390-tdep.c (s390_address_class_type_flags)
10286 (s390_address_class_type_flags_to_name)
10287 (s390_address_class_name_to_type_flags): New functions.
10288 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10289 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10291 2003-02-03 Michael Snyder <msnyder@redhat.com>
10293 * arm-tdep.c: Fix spell-o in comment.
10295 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10297 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10298 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10299 error messages to contain BFD filename.
10301 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10303 Fix PR gdb/742 gdb/743 gdb/877
10304 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10305 (do_mixed_source_and_assembly): Use
10306 make_cleanup_ui_out_tuple_begin_end and
10307 make_cleanup_ui_out_tuple_begin_end.
10308 (do_mixed_source_and_assembly): Ditto.
10309 * thread.c (do_captured_list_thread_ids): Ditto.
10310 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10311 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10312 ui_out_tuple_end): Delete prototypes.
10313 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10314 ui_out_list_end, ui_out_tuple_end): Delete.
10316 From Kevin Buettner <kevinb@redhat.com>:
10317 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10318 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10319 (do_cleanup_table_end): New functions.
10320 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10321 Use cleanups to invoke_ui_out_tuple_end().
10322 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10323 * cli/cli-setshow.c (cmd_show_list): Use
10324 make_cleanup_ui_out_tuple_begin_end.
10326 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10328 * frame.c (frame_unwind_register): New function.
10329 (frame_unwind_unsigned_register): Use.
10330 (frame_unwind_signed_register): Use.
10331 (frame_read_register): New function.
10332 * frame.h (frame_unwind_register): Declare.
10333 (frame_read_register): Declare.
10335 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10336 and frame_unwind_register instead of read_memory, write_register
10337 and deprecated_write_register_bytes.
10339 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10341 * frame.h: Note that namelen can be negative.
10342 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10345 * NEWS: Mention that the d10v's `regs' command is deprecated.
10346 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10347 (d10v_print_registers_info): New function.
10348 (show_regs): Call d10v_print_registers_info.
10349 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10351 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10353 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10354 lost in the previous patch.
10356 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10358 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10359 * stack.c (print_frame_info_base): Output complete FRAME tuple
10360 for synthesized frames.
10362 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10364 * mips-nat.c (zerobuf): Delete.
10365 (fetch_inferior_registers): Alloc local zerobuf.
10366 (fetch_core_registers): Alloc local zerobuf.
10367 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10368 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10369 * thread-db.c (thread_db_store_registers): Ditto.
10370 * sh-tdep.c (sh_do_register): Ditto.
10371 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10372 * remote-sim.c (gdbsim_store_register): Ditto.
10373 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10374 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10375 * monitor.c (monitor_supply_register): Ditto.
10376 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10377 * mips-nat.c (fetch_inferior_registers): Ditto.
10378 * m68klinux-nat.c (fetch_register): Ditto.
10379 * lynx-nat.c (fetch_inferior_registers): Ditto.
10380 (fetch_inferior_registers): Ditto.
10381 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10382 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10383 (hpux_thread_store_registers): Ditto.
10384 * hppah-nat.c (fetch_register): Ditto.
10385 * hppab-nat.c (fetch_register): Ditto.
10386 * hppa-tdep.c (pa_register_look_aside): Ditto.
10387 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10388 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10390 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10392 * gdbarch.sh: Explictly specify all method levels. When a
10393 variable with an empty level, provide a non-multi-arch default.
10394 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10395 * gdbarch.h: Re-generate.
10396 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10397 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10399 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10401 * defs.h (host_pointer_to_address): Delete declaration.
10402 (address_to_host_pointer): Delete declaration.
10403 * utils.c (host_pointer_to_address): Delete function.
10404 (address_to_host_pointer): Delete function.
10405 * procfs.c (procfs_address_to_host_pointer): New function.
10406 * procfs.c (proc_set_watchpoint): Use.
10407 (procfs_can_use_hw_breakpoint): Update comments.
10408 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10409 (som_solib_add): Use.
10410 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10411 * hppa-tdep.c (unwind_command): Use.
10413 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10415 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10418 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10419 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10420 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10421 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10422 (define_symbol): Update.
10423 * symfile.c (generic_load): Remove references to nindy.
10424 * symtab.c: Remove references to nindy.
10426 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10428 * infcmd.c (print_float_info): Delete code conditional on
10430 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10431 * config/m68k/nm-apollo68b.h: Ditto.
10432 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10433 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10434 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10436 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10438 * config/i386/tm-i386os9k.h: Removed.
10440 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10441 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10442 they're identical to i[3456]86-*-sysv* now.
10443 * config/i386/i386v32.mh: Removed.
10444 * config/i386/xm-i386v32.h: Removed.
10445 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10447 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10449 * config/i386/i386dgux.mh: Removed.
10450 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10452 * configure.in: Fix typo.
10453 * configure: Regenerated.
10455 2003-01-31 David Carlton <carlton@math.stanford.edu>
10457 * dwarf2read.c (dwarf2_locate_sections): Set
10458 dwarf_ranges_section.
10460 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10462 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10463 * utils.c: Update comments documenting legitimate uses of PTR.
10465 * utils.c: Re-indent.
10467 * config/djgpp/fnchange.lst: Delete nindy files.
10468 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10469 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10470 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10471 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10472 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10473 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10474 * Makefile.in (init.c): Remove nindy references.
10475 (saber_gdb): Delete rule.
10476 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10477 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10479 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10480 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10481 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10482 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10483 nindy-share/stop.h.
10484 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10485 * saber.suppress: Delete file.
10487 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10489 * dbxread.c (stabs_data): New static variable.
10490 (fill_symbuf): Support an in-memory buffer for stabs data.
10491 (stabs_seek): New function.
10492 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10493 (read_ofile_symtab): Use stabs_seek.
10494 (elfstab_build_psymtabs): Take an asection* instead of
10495 an offset and size. Relocate the stabs data if necessary.
10496 Save the section* for dbx_psymtab_to_symtab.
10497 * dwarf2read.c: Add section variables for each debug section.
10498 (dwarf2_locate_sections): Fill them in.
10499 (dwarf2_read_section): Take an asection* argument.
10500 Relocate the section contents if necessary.
10501 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10502 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10503 it to dwarf2_read_section.
10504 (dwarf2_build_frame_info): Update callers.
10505 * elfread.c (elf_symfile_read): Update call to
10506 elfstab_build_psymtabs.
10507 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10508 (DBX_STAB_SECTION): New macro.
10509 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10510 * symfile.c (symfile_dummy_outputs): New function.
10511 (symfile_relocate_debug_section): New function.
10512 * symfile.h (symfile_relocate_debug_section): Add prototype.
10514 2003-01-31 Richard Henderson <rth@redhat.com>
10516 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10517 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10518 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10519 * alpha-tdep.c (alpha_register_name): Add "unique".
10520 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10521 (ALPHA_UNIQUE_REGNUM): New.
10522 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10524 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10526 * README: Remove reference to Ericsson 1800 monitor.
10527 * Makefile.in (remote-es.o): Delete rule.
10528 (ALLDEPFILES): Delete remote-es.c.
10529 * remote-es.c: Delete file.
10530 * config/m68k/es1800.mt: Delete file.
10531 * config/djgpp/fnchange.lst: Update.
10532 * configure.tgt: Delete m68*-ericsson-* target.
10534 2003-01-31 Adam Fedor <fedor@gnu.org>
10536 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10537 Remove duplicate/shadowing variable of same name.
10539 2003-01-30 Jim Blandy <jimb@redhat.com>
10541 * symfile.c (find_separate_debug_file): Assert that the objfile's
10542 directory name we compute ends with a slash, and then assume that
10543 that's so everywhere we use it.
10545 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10547 * valops.c (value_assign): Flush frame cache after stores to memory
10550 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10552 * Makefile.in (mon960-rom.o): Delete rule.
10553 * mon960-rom.c: Delete file.
10555 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10557 * d10v-tdep.c: Include "frame-unwind.h".
10558 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10560 (next_addr, uses_frame): Delete.
10561 (struct d10v_unwind_cache): Define.
10562 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10563 Use info instead of next_addr and uses_frame globals.
10564 (d10v_frame_init_saved_regs): Delete function.
10565 (d10v_init_extra_frame_info): Delete function.
10566 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10567 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10568 init_frame_pc or frame_saved_pc.
10569 (d10v_pop_frame): Delete function.
10570 (do_d10v_pop_frame): Delete function.
10571 (d10v_frame_chain): Delete function.
10572 (d10v_frame_chain_valid): Delete function.
10573 (d10v_frame_pc_unwind): New function.
10574 (d10v_frame_id_unwind): New function.
10575 (saved_regs_unwinder): New function.
10576 (d10v_frame_register_unwind): New function.
10577 (d10v_frame_pop): New function.
10578 (d10v_frame_unwind): New variable.
10579 (d10v_frame_p): New function.
10580 (d10v_frame_saved_pc): Delete function.
10581 * Makefile.in (d10v-tdep.o): Update dependencies.
10583 2003-01-30 J. Brobecker <brobecker@gnat.com>
10585 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10586 causing some regressions due to a change in the default value
10589 2003-01-29 Richard Henderson <rth@redhat.com>
10590 Elena Zannoni <ezannoni@redhat.com>
10591 Daniel Jacobowitz <drow@mvista.com>
10594 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10596 (RANGES_SECTION): New.
10597 (dwarf_ranges_buffer): New variable.
10598 (struct comp_unit_head): Add member "die".
10599 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10600 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10601 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10602 (dwarf2_locate_sections): Likewise.
10603 (dwarf2_build_psymtabs): Read .debug_ranges.
10604 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10605 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10606 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10607 Look for DW_AT_ranges and return the bounding box.
10609 2003-01-29 Brian Ford <ford@vss.fsi.com>
10611 * win32-nat.c (cygwin_pid): Removed as unused.
10612 (child_attach): Try fall back to Cygwin pid.
10614 2003-01-29 Jim Blandy <jimb@redhat.com>
10616 * objfiles.h (struct objfile): Doc fix.
10618 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10620 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10621 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10622 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10623 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10624 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10625 (FRAME_SAVED_PC): Change to a function with predicate.
10626 * gdbarch.h, gdbarch.c: Re-generate.
10628 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10630 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10632 * complaints.c (complain): Delete function.
10633 * complaints.h (struct deprecated_complaint): Delete definition.
10634 (complain): Delete declaration.
10636 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10638 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10641 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10643 * sentinel-frame.h, sentinel-frame.c: New files.
10644 * Makefile.in (frame.o): Update dependencies.
10645 (SFILES): Add sentinel-frame.c.
10646 (sentinel_frame_h): Define.
10647 (COMMON_OBS): Add sentinel-frame.o.
10648 (sentinel-frame.o): Specify dependencies.
10649 * frame.c: Include "sentinel-frame.h".
10650 (frame_register_unwind): Rewrite assuming that there is always a a
10652 (frame_register, generic_unwind_get_saved_register): Ditto.
10653 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10654 (create_sentinel_frame, unwind_to_current_frame): New functions.
10655 (get_current_frame): Rewrite using create_sentinel_frame and
10656 unwind_to_current_frame. When possible, always create a frame.
10657 (create_new_frame): Set next to the sentinel frame.
10658 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10659 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10660 ID cache when necessary.
10661 (frame_saved_regs_id_unwind): Use frame_relative_level.
10662 (deprecated_generic_get_saved_register): Use frame_relative_level,
10663 get_frame_saved_regs, get_frame_pc, get_frame_base and
10665 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10668 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10670 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10672 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10674 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10675 (maintenance_set_profile_cmd): Use error () instead of warning ().
10677 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10679 * configure.in: Check that -pg works if using --enable-profiling.
10680 Check for monstartup and _mcleanup regardless of --enable-profiling.
10681 * maint.c: Check for monstartup and _mcleanup before using them.
10682 * config.in: Regenerated.
10683 * configure: Regenerated.
10685 2003-01-24 Nick Clifton <nickc@redhat.com>
10687 * Add sh2e support:
10689 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10691 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10692 (sh2e_show_regs): New.
10693 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10694 * config/sh/tm-sh.h: Added sh2e to comments.
10696 2003-01-23 Jim Blandy <jimb@redhat.com>
10698 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10699 symbols found)" message here; we haven't checked for a separate
10700 debug info file yet, so we don't know yet.
10701 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10702 we've looked everywhere. Also, there's no need to print a special
10703 message when we're loading the separate debug info file: the one
10704 symbol_file_add prints is fine.
10706 2003-01-23 Alexander Larsson <alexl@redhat.com>
10707 Jim Blandy <jimb@redhat.com>
10709 Add support for executables whose debug info has been separated
10710 out into a separate file, leaving only a link behind.
10711 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10712 and separate_debug_objfile_backlink.
10713 (put_objfile_before): New declaration.
10714 * symfile.c: #include "filenames.h".
10715 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10716 debug info in a separate file, read that, too. Save the addrs
10717 argument, so we can use it again to read the separated debug info;
10718 syms_from_objfile modifies the table we pass it.
10719 (reread_symbols): After re-reading an objfile, call
10720 reread_separate_symbols to refresh its separate debug info
10721 objfile, if it has one.
10722 (reread_separate_symbols, find_separate_debug_file,
10723 get_debug_link_info, separate_debug_file_exists): New functions.
10724 (debug_file_directory): New global var.
10725 (_initialize_symfile): Initialize debug_file_directory, and
10726 provide the new `set debug-file-directory' command to let the user
10728 * objfiles.c (free_objfile): If this objfile has its debug info in
10729 a separate objfile, free that one too. If this is itself a
10730 separate debug info objfile, clear our parent's backlink.
10731 (put_objfile_before): New function.
10732 * utils.c (gnu_debuglink_crc32): New function.
10733 * defs.h (gnu_debuglink_crc32): New declaration.
10734 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10735 * configure.in: Handle --with-separate-debug-dir config option.
10736 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10737 * acconfig.h (DEBUGDIR): New macro.
10738 * configure, aclocal.m4, config.in: Regenerated.
10740 2003-01-22 Jim Blandy <jimb@redhat.com>
10742 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10743 like the old symbol_file_add, but taking new arguments: you can
10744 now pass in either a `struct section_addr_info' list to say where
10745 each section is loaded, or a `struct section_offsets' table. Pass
10746 these new arguments through to syms_from_objfile as appropriate.
10747 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10748 with the appropriate quiescent values for the new arguments.
10750 * symfile.c: #include "gdb_assert.h".
10751 (syms_from_objfile): Add the ability to pass in a section offset
10752 table directly, as an alternative to the section_addr_info table.
10753 Document arguments better.
10754 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10755 * symfile.h (syms_from_objfile): Update declaration.
10756 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10758 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10760 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10762 Original patch by Tom Tromey <tromey@cygnus.com> and
10763 Jason Molenda <jmolenda@apple.com>.
10764 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10765 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10766 * NEWS: Mention profiling.
10767 * configure.in (--enable-gdbtk): Fix typo.
10768 (--enable-profiling): New. Set PROFILE_CFLAGS.
10769 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10771 (profiling_state): New variable.
10772 (mcleanup_wrapper): New function.
10773 (_initialize_maint): Remove NOTYET, fix call to
10774 add_setshow_boolean_cmd for "maint set profile".
10775 * configure: Regenerated.
10777 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10779 * Makefile.in (install-gdbtk): Install PNG images too.
10781 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10783 * exec.c (text_start): Delete global variable.
10784 (exec_file_attach): Make text_start local to the function.
10785 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10786 * valops.c (hand_function_call): Delete code that handles
10787 BEFORE_TEXT_END and AFTER_TEXT_END.
10788 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10789 of CALL_DUMMY_LOCATION.
10790 * gdbarch.c: Regenerate.
10791 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10792 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10793 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10794 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10795 (text_end): Delete extern declaration.
10797 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10799 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10800 * blockframe.c (backtrace_below_main): Move to "frame.c".
10801 (frame_chain_valid): Delete check for backtrace_below_main.
10802 (_initialize_blockframe): Delete initialization, move ``set
10803 backtrace-below-main'' command to "frame.c".
10804 (do_flush_frames_sfunc): Delete function.
10805 * frame.c: Include "command.h" and "gdbcmd.h".
10806 (frame_type_from_pc): New function.
10807 (create_new_frame): Use frame_type_from_pc.
10808 (legacy_get_prev_frame): New function.
10809 (get_prev_frame): Rewrite. When an old style frame, call
10810 legacy_get_prev_frame. Otherwize, unwind the PC first.
10811 (_initialize_frame): Add ``set backtrace-below-main'' command.
10812 * Makefile.in (frame.o): Update dependencies.
10814 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10816 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10817 DEPRECATED_REGISTERS_INFO.
10819 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10821 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10822 Maintainers'. Update `Various Maintainers'.
10824 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10826 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10827 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10828 Suppress actual parameters when `-'.
10829 * gdbarch.h, gdbarch.c: Regenerate.
10831 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10833 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10834 code handling dummy frames.
10836 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10838 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10839 (struct frame_unwind): Add field pop.
10840 * frame.h (frame_pop): Declare.
10841 * frame.c (frame_saved_regs_pop): New function.
10842 (trad_frame_unwinder): Add frame_saved_regs_pop.
10843 (frame_pop): New function.
10844 * dummy-frame.c (dummy_frame_pop): New function.
10845 (discard_innermost_dummy): New function.
10846 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10847 (dummy_frame_unwind): Add dummy_frame_pop.
10848 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10849 * valops.c (hand_function_call): Ditto.
10850 * stack.c (return_command): Ditto.
10852 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10854 * cris-tdep.c: Fix function declaration indentation.
10855 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10856 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10857 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10858 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10859 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10860 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10862 2003-01-18 Michael Chastain <mec@shout.net>
10864 * README (Unpacking and Installation -- quick overview):
10865 Warn against ".../gdb-5.3/gdb/configure".
10867 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10869 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10870 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10871 (struct frame_unwind): Declare opaque.
10872 (dummy_frame_p): Declare function.
10873 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10874 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10875 * dummy-frame.c: Include "frame-unwind.h".
10876 (dummy_frame_p): New function.
10877 (dummy_frame_unwind): New variable.
10878 * frame.c: Include "frame-unwind.h".
10879 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10880 to use the new unwind field.
10881 (set_unwind_by_pc): Delete function.
10882 (create_new_frame, get_prev_frame): Set unwind field using
10883 frame_unwind_find_by_pc.
10884 (trad_frame_unwind, trad_frame_unwinder): New variables.
10885 * frame.h (trad_frame_unwind): Declare variable.
10886 (frame_id_unwind_ftype): Delete declaration.
10887 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10888 (struct frame_unwind): Declare opaque.
10889 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10890 register_unwind with a single unwind pointer.
10891 * frame-unwind.h, frame-unwind.c: New files.
10892 * Makefile.in (SFILES): Add frame-unwind.c.
10893 (frame_unwind_h): Define.
10894 (COMMON_OBS): Add frame-unwind.o.
10895 (frame-unwind.o): Specify dependencies.
10896 (frame.o, dummy-frame.o): Update dependencies.
10898 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10900 * ada-valprint.c: Eliminate PTR.
10901 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10902 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10903 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10904 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10905 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10906 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10907 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10909 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10911 * main.c (captured_main): Don't use PTR.
10912 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10913 * gdbtypes.c (lookup_primitive_typename): Ditto.
10914 (lookup_struct_elt_type): Ditto.
10915 * f-valprint.c (info_common_command): Ditto.
10916 (list_all_visible_commons): Ditto.
10917 * jv-typeprint.c (java_type_print_base): Ditto.
10919 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10920 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10921 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10922 i386-interix-nat.c and i386-interix-tdep.c. Rename
10923 m68klinux-nat.c and m68klinux-tdep.c. Rename
10924 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10925 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10926 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10927 * main.c (captured_main): Use xfree, not free.
10929 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10931 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10932 ID back using a parameter.
10933 * frame.c (frame_id_unwind): Update call.
10934 (frame_saved_regs_id_unwind): Update.
10935 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10936 * dummy-frame.h (struct frame_id): Add opaque declaration.
10937 (dummy_frame_id_unwind): Update declaration.
10939 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10941 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10943 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10945 * MAINTAINERS (Stephen P. Smith): Updated email address.
10947 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10950 * breakpoint.c (until_break_command): Add new argument. Use it to
10951 decide whether to stop only at the current frame or not.
10952 * breakpoint.h (until_break_command): Update prototype.
10953 * infcmd.c (until_command): Add new argument to until_break_command
10955 (advance_command): New function.
10956 (_initialize_infcmd): Update help string for 'until' command.
10957 Add new 'advance' command.
10959 2003-01-14 David Carlton <carlton@math.stanford.edu>
10961 * linespec.c (decode_line_1): Normalize comments.
10962 (set_flags): Ditto.
10963 (locate_first_half): Ditto.
10964 (decode_compound): Ditto.
10965 (symtab_from_filename): Ditto.
10966 (decode_all_digits): Ditto.
10967 (decode_dollar): Ditto.
10968 (find_methods): Ditto.
10969 (find_toplevel_char): Ditto.
10971 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10973 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10974 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10975 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10976 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10977 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10978 * language.c, language.h, m32r-tdep.c: Update copyright.
10979 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10980 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10981 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10982 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10983 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10984 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10986 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10988 * stabsread.h (process_later, resolve_cfront_continuation):
10990 Update copyright years.
10991 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10992 Update copyright year.
10993 * dbxread.c(struct cont_elem): Obsolete.
10994 (process_later, process_now): Obsolete functions.
10995 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10996 Update copyright year.
10997 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10998 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10999 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11000 (parse_partial_symbols): Obsolete cfront support.
11002 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11004 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11005 read_cfront_baseclasses, read_cfront_member_functions,
11006 resolve_cfront_continuation,read_cfront_static_fields,
11007 copy_cfront_struct_fields): Obsolete functions.
11008 (define_symbol, read_one_struct_field): Obsolete cfront support.
11009 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11010 Update Copyright year.
11012 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11014 * stack.c (print_frame_info, print_stack_frame_base_stub,
11015 print_stack_frame_base, show_and_print_stack_frame_stub,
11016 show_and_print_stack_frame, print_only_stack_frame_stub,
11017 print_only_stack_frame): Delete functions.
11018 (print_stack_frame_stub): Call print_frame_info instead of
11019 print_frame_info_base.
11020 (print_frame_info_base): Rename to print_frame_info.
11021 (backtrace_command_1): Call print_frame_info, instead of
11022 print_frame_info_base.
11023 (current_frame_command): Call print_stack_frame, instead of
11024 print_only_stack_frame.
11025 (frame_command): Call print_stack_frame, instead of
11026 show_and_print_stack_frame.
11027 (up_command): Ditto.
11028 (down_command): Ditto.
11029 * frame.h (print_only_stack_frame): Delete prototype.
11030 * infrun.c (normal_stop): Call print_stack_frame, instead of
11031 show_and_print_stack_frame.
11032 * thread.c (info_threads_command): Call print_stack_frame, instead
11033 of print_only_stack_frame.
11035 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11037 * README (Graphical interface to GDB): Update URL. Point at
11040 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11043 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11045 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11048 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11050 * thread-db.c (attach_thread): Prototype.
11051 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11052 thread information (ti), and valid flags (th_valid, ti_valid).
11053 (attach_thread): Move target_pid_to_str call to after the thread
11054 is added to GDB's list. Initialize the cache.
11055 (thread_get_info_callback, thread_db_map_id2thr)
11056 (thread_db_get_info): New functions.
11057 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11058 (thread_db_store_registers, thread_db_thread_alive)
11059 (thread_db_get_thread_local_address): Use them.
11060 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11061 of calling error() for threads in unknown state.
11063 (clear_lwpid_callback): New function.
11064 (thread_db_resume): Use it to clear the cache.
11066 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11068 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11069 (resume_callback): Remove dead code.
11071 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11073 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11075 * gdbarch.h, gdbarch.c: Regenerate.
11076 * stack.c (frame_info): Only initialize the saved registers when
11077 FRAME_INIT_SAVED_REGS_P.
11078 * frame.c (frame_saved_regs_register_unwind): Assert
11079 FRAME_INIT_SAVED_REGS_P.
11080 (deprecated_generic_get_saved_register): Ditto.
11082 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11084 * source.c (openp): Squelch warning about "filename".
11086 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11088 * source.c (openp): If the file does not exist don't necessarily
11091 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11094 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11095 (integer_types_same_name_p): New function.
11096 (rank_one_type): Use it.
11097 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11099 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11101 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11103 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11104 * configure.in: Add --with-sysroot.
11105 * configure: Regenerated.
11106 * main.c (gdb_sysroot): New variable.
11107 (captured_main): Initialize gdb_sysroot.
11108 * defs.h (gdb_sysroot): New extern declaration.
11109 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11111 2003-01-12 Michael Chastain <mec@shout.net>
11113 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11115 2003-01-12 Michael Chastain <mec@shout.net>
11117 * top.c (print_gdb_version): Bump copyright year to 2003.
11119 2003-01-12 David Carlton <carlton@bactrian.org>
11121 * linespec.c (symtab_from_filename): Rename variable 's' to
11124 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11126 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11128 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11130 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11132 * d10v-tdep.c: Include "gdb_assert.h".
11133 (d10v_store_return_value): Rewrite to match current interface.
11134 (d10v_extract_struct_value_address): Ditto.
11135 (d10v_extract_return_value): Ditto.
11136 (d10v_gdbarch_init): Set store_restore_value,
11137 extract_struct_value_address and extract_return_value.
11139 2003-01-12 J. Brobecker <brobecker@gnat.com>
11141 * hpread.c (set_namestring): New procedure replacing the
11142 SET_NAMESTRING macro.
11143 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11144 by calls to set_namestring.
11146 2003-01-11 J. Brobecker <brobecker@gnat.com>
11148 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11149 a compilation warning.
11150 (hpread_process_one_debug_symbol): Likewise.
11152 2003-01-10 David Carlton <carlton@math.stanford.edu>
11154 * linespec.c (decode_line_1): Rename variable 's' to
11156 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11157 (decode_dollar): Ditto.
11158 (decode_variable): Ditto.
11159 (symbol_found): Ditto.
11161 2003-01-09 Michael Chastain <mec@shout.net>
11163 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11165 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11167 * win32-nat.c (set_process_privilege): New function.
11168 (child_attach): Call set_process_privilege() to enable the
11169 SE_DEBUG_NAME user privilege if available in process token.
11171 2003-01-10 J. Brobecker <brobecker@gnat.com>
11173 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11174 compilation error in the previous revision.
11176 2003-01-09 David Carlton <carlton@math.stanford.edu>
11178 * linespec.c: Update copyright.
11180 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11182 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11183 than inferior_ptid.
11184 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11186 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11188 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11190 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11191 (frame_saved_regs_zalloc): Update.
11192 (frame_saved_regs_register_unwind): Update.
11193 (create_new_frame): Update.
11194 (get_prev_frame): Update.
11195 (frame_extra_info_zalloc): Update.
11196 (deprecated_get_frame_saved_regs): Update.
11197 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11198 * cris-tdep.c: Update comment.
11200 * somsolib.h: Fix function indentation.
11201 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11202 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11203 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11204 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11205 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11207 * infrun.c (follow_fork): Use ISO C definition.
11208 * expprint.c (print_subexp): Use xfree instead of free.
11209 * charset.c: Include "gdb_string.h" instead of <string.h>.
11210 (register_iconv_charsets): Use ISO C definition.
11211 (host_charset, target_charset): Ditto.
11212 * Makefile.in (charset.o): Update dependencies.
11213 (mi-cmd-env.o): Update dependencies.
11215 2003-01-08 Andrew Cagney <cagney@redhat.com>
11217 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11220 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11222 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11223 build directories. Save edited gdb output in Mbuild.log. If a
11224 build fails, remove any final GDB executable.
11226 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11228 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11229 replacing hex constants with function names and stripping leading
11230 file name directory prefixes.
11232 2003-01-08 Andrew Cagney <cagney@redhat.com>
11234 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11237 2003-01-08 David Carlton <carlton@math.stanford.edu>
11239 * linespec.c (decode_line_1): Move code into decode_variable.
11240 (decode_variable): New function.
11242 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11244 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11246 2003-01-08 Andrew Cagney <cagney@redhat.com>
11248 * cris-tdep.c (cris_frame_init_saved_regs): Use
11249 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11251 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11252 (sh64_nofp_frame_init_saved_regs): Ditto.
11253 (sh_fp_frame_init_saved_regs): Ditto.
11254 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11255 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11256 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11257 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11259 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11261 * minsyms.c (lookup_minimal_symbol): Update comment.
11262 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11263 (lookup_minimal_symbol_solib_trampoline): Likewise.
11265 2003-01-08 Andrew Cagney <cagney@redhat.com>
11267 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11268 frame_relative_level.
11270 * alpha-tdep.c: Use get_frame_extra_info.
11271 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11272 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11273 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11274 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11276 * alpha-tdep.c: Use get_next_frame.
11277 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11278 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11279 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11280 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11281 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11282 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11283 * xstormy16-tdep.c: Ditto.
11285 2003-01-07 Andrew Cagney <cagney@redhat.com>
11287 * alpha-tdep.c: Use get_frame_base.
11288 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11289 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11290 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11291 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11292 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11293 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11294 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11295 * config/sparc/tm-sparc.h: Ditto.
11297 2003-01-07 Andrew Cagney <cagney@redhat.com>
11299 * frame.c (deprecated_get_frame_context): New function.
11300 (deprecated_set_frame_context): New function.
11301 * frame.h (deprecated_get_frame_context): Declare.
11302 (deprecated_set_frame_context): Declare.
11303 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11304 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11306 2003-01-07 Andrew Cagney <cagney@redhat.com>
11308 * frame.c (deprecated_set_frame_next_hack): New function.
11309 (deprecated_set_frame_prev_hack): New function.
11310 * frame.h (deprecated_set_frame_next_hack): Declare.
11311 (deprecated_set_frame_prev_hack): Declare.
11312 * mcore-tdep.c (analyze_dummy_frame): Use
11313 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11314 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11316 2003-01-07 David Carlton <carlton@math.stanford.edu>
11318 * linespec.c (decode_line_1): Move code into decode_dollar.
11319 (decode_dollar): New function.
11321 2003-01-07 Andrew Cagney <cagney@redhat.com>
11323 * arm-tdep.c (arm_init_extra_frame_info): Use
11324 deprecated_update_frame_base_hack.
11325 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11326 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11327 (fix_frame_pointer): Ditto.
11328 (mn10300_analyze_prologue): Ditto.
11330 2003-01-07 Andrew Cagney <cagney@redhat.com>
11332 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11333 extra_info using frame_extra_info_zalloc.
11334 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11335 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11336 (sh64_init_extra_frame_info): Ditto.
11337 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11338 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11339 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11340 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11341 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11342 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11343 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11344 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11345 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11346 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11347 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11348 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11350 * mn10300-tdep.c (analyze_dummy_frame): Use
11351 deprecated_set_frame_extra_info_hack.
11352 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11354 2003-01-07 J. Brobecker <brobecker@gnat.com>
11356 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11357 class is not scText. These do not define "real" procedures.
11358 (parse_partial_symbols): Likewise.
11360 2003-01-06 Michael Snyder <msnyder@redhat.com>
11362 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11364 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11366 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11367 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11368 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11369 deprecated_frame_xmalloc_with_cleanup.
11370 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11371 deprecated_frame_xmalloc.
11372 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11373 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11375 2003-01-06 Andrew Cagney <cagney@redhat.com>
11377 * x86-64-linux-tdep.c: Include "osabi.h".
11378 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11380 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11382 2003-01-06 Andrew Cagney <cagney@redhat.com>
11384 * MAINTAINERS (Target Instruction Set Architectures): Update
11385 arm-elf. Can be built with -Werror, has been multiarched.
11387 * value.h (unpack_long): Make buffer parameter constant.
11388 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11389 * scm-lang.h (scm_parse): Ditto.
11390 * defs.h (extract_typed_address, extract_address): Ditto.
11391 (extract_long_unsigned_integer): Ditto.
11392 * inferior.h (unsigned_pointer_to_address): Ditto.
11393 (signed_pointer_to_address): Ditto.
11394 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11395 * gdbarch.h, gdbarch.c: Regenerate.
11396 * findvar.c (extract_long_unsigned_integer): Update.
11397 (extract_address): Update.
11398 (extract_typed_address): Update.
11399 (unsigned_pointer_to_address): Update.
11400 * values.c (unpack_long): Update.
11401 (unpack_double): Update.
11402 (unpack_pointer): Update.
11403 (unpack_field_as_long): Update.
11404 * d10v-tdep.c (d10v_pointer_to_address): Update.
11405 * avr-tdep.c (avr_pointer_to_address): Update.
11406 * scm-lang.c (scm_unpack): Update.
11407 * findvar.c (signed_pointer_to_address): Update.
11409 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11411 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11412 since it is in i386-tdep.c.
11414 2003-01-06 J. Brobecker <brobecker@gnat.com>
11416 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11417 failure introduced in the previous change.
11419 2003-01-05 Michael Chastain <mec@shout.net>
11421 * README: Remove references to deleted remote-*.c files:
11422 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11423 remote-nrom.c, remote-os9k.c, remote-udi.c.
11425 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11427 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11428 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11429 i386_get_longjmp_target.
11431 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11433 * arm-tdep.c (prologue_cache): Change to a pointer.
11434 (_initialize_arm_tdep): Allocate prologue_cache.
11435 (check_prologue_cache): Update.
11436 (save_prologue_cache): Update.
11437 (arm_gdbarch_init): Update.
11439 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11441 * stabsread.c (update_method_name_from_physname): Call complaint()
11444 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11446 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11447 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11448 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11450 * blockframe.c: Include "gdbcmd.h" and "command.h".
11451 (backtrace_below_main): New variable.
11452 (file_frame_chain_valid, func_frame_chain_valid)
11453 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11454 (generic_func_frame_chain_valid): Remove functions.
11455 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11456 (_initialize_blockframe): New function.
11457 * Makefile.in (blockframe.o): Update dependencies.
11458 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11459 comment. Call frame_chain_valid ().
11460 * frame.h: Remove old prototypes. Add prototype for
11461 frame_chain_valid and update comments to match.
11462 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11463 Remove old comment.
11464 * gdbarch.h: Regenerated.
11465 * gdbarch.c: Regenerated.
11467 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11468 set_gdbarch_frame_chain_valid.
11469 * avr-tdep.c (avr_gdbarch_init): Likewise.
11470 * cris-tdep.c (cris_gdbarch_init): Likewise.
11471 * frv-tdep.c (frv_gdbarch_init): Likewise.
11472 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11473 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11474 (i386_nw_init_abi): Likewise.
11475 (i386_gdbarch_init): Likewise.
11476 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11477 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11478 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11479 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11480 * mips-tdep.c (mips_gdbarch_init): Likewise.
11481 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11482 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11483 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11484 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11485 * s390-tdep.c (s390_gdbarch_init): Likewise.
11486 * sh-tdep.c (sh_gdbarch_init): Likewise.
11487 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11488 * v850-tdep.c (v850_gdbarch_init): Likewise.
11489 * vax-tdep.c (vax_gdbarch_init): Likewise.
11490 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11492 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11493 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11494 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11495 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11496 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11497 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11498 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11499 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11501 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11503 * Makefile.in (acconfig_h): Remove incorrect macro.
11504 (config_h): Define.
11505 (osabi.o): Update dependencies.
11506 * configure.tgt: Set gdb_osabi based on target triplet.
11507 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11508 * configure: Regenerated.
11509 * config.in: Regenerated.
11510 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11511 (GDB_OSABI_DEFAULT): Define if not already defined.
11512 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11513 (set_osabi_string): New variables.
11514 (gdbarch_register_osabi): Add new OS ABI to
11515 gdb_osabi_available_names.
11516 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11517 (set_osabi, show_osabi): New functions.
11518 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11520 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11522 * arch-utils.c (gdbarch_info_init): Set osabi to
11523 GDB_OSABI_UNINITIALIZED.
11524 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11525 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11526 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11527 * gdbarch.c: Regenerated.
11528 * gdbarch.h: Regenerated.
11529 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11531 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11532 * osabi.h (enum gdb_osabi): Move to defs.h.
11533 (gdbarch_init_osabi): Update prototype.
11534 * defs.h (enum gdb_osabi): Moved here.
11535 * Makefile.in: Update dependencies.
11537 * alpha-tdep.h: Don't include "osabi.h".
11538 (struct gdbarch_tdep): Remove osabi member.
11539 * alpha-tdep.c: Include "osabi.h".
11540 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11541 iterate over arches. Update call to gdbarch_init_osabi.
11542 (alpha_dump_tdep): Don't dump osabi.
11543 * alpha-linux-tdep.c: Include "osabi.h".
11544 * alpha-osf1-tdep.c: Include "osabi.h".
11545 * alphafbsd-tdep.c: Include "osabi.h".
11546 * alphanbsd-tdep.c: Include "osabi.h".
11548 * arm-tdep.h: Don't include "osabi.h".
11549 (struct gdbarch_tdep): Remove osabi member.
11550 * arm-tdep.c: Include "osabi.h".
11551 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11552 iterate over arches. Update call to gdbarch_init_osabi.
11553 (arm_dump_tdep): Don't dump osabi.
11554 * arm-linux-tdep.c: Include "osabi.h".
11555 * armnbsd-tdep.c: Include "osabi.h".
11557 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11558 Update call to gdbarch_init_osabi.
11560 * i386-tdep.h: Don't include "osabi.h".
11561 (struct gdbarch_tdep): Remove osabi member.
11562 * i386-tdep.c: Include "osabi.h".
11563 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11564 iterate over arches. Update call to gdbarch_init_osabi.
11565 (i386_dump_tdep): Don't dump osabi.
11566 * i386-linux-tdep.c: Include "osabi.h".
11567 * i386-sol2-tdep.c: Include "osabi.h".
11568 * i386bsd-tdep.c: Include "osabi.h".
11569 * i386gnu-tdep.c: Include "osabi.h".
11570 * i386ly-tdep.c: Include "osabi.h".
11571 * i386nbsd-tdep.c: Include "osabi.h".
11572 * i386obsd-tdep.c: Include "osabi.h".
11574 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11575 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11576 check osabi when iterating over arches. Update call to
11577 gdbarch_init_osabi.
11578 (mips_dump_tdep): Don't dump osabi.
11580 * ns32k-tdep.h: Don't include "osabi.h".
11581 (struct gdbarch_tdep): Remove.
11582 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11583 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11584 allocate tdep. Update call to gdbarch_init_osabi.
11585 (ns32k_dump_tdep): Remove.
11586 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11587 * ns32knbsd-tdep.c: Include "osabi.h".
11589 * ppc-tdep.h: Don't include "osabi.h".
11590 (struct gdbarch_tdep): Remove osabi member.
11591 * rs6000-tdep.c: Include "osabi.h".
11592 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11593 osabi when iterating over arches. Update call to
11594 gdbarch_init_osabi.
11595 (rs6000_dump_tdep): Don't dump osabi.
11596 * ppc-linux-tdep.c: Include "osabi.h".
11597 * ppcnbsd-tdep.c: Include "osabi.h".
11599 * sh-tdep.h: Don't include "osabi.h".
11600 (struct gdbarch_tdep): Remove osabi member.
11601 * sh-tdep.c: Include "osabi.h".
11602 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11603 iterate over arches. Update call to gdbarch_init_osabi.
11604 (sh_dump_tdep): Don't dump osabi.
11605 * shnbsd-tdep.c: Include "osabi.h".
11607 * sparc-tdep.c: Include "osabi.h".
11608 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11609 iterate over arches. Update call to gdbarch_init_osabi.
11610 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11613 * vax-tdep.h: Don't include "osabi.h".
11614 (struct gdbarch_tdep): Remove.
11615 * vax-tdep.c: Include "osabi.h".
11616 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11617 iterate over arches. Don't allocate tdep. Update call
11618 to gdbarch_init_osabi.
11619 (vax_dump_tdep): Remove.
11620 (_initialize_vax_tdep): Update call to gdbarch_register.
11622 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11624 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11626 (breakpoint_re_set_one): Don't fetch the value for a disabled
11629 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11631 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11632 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11633 (COERCE_FLOAT_TO_DOUBLE): Remove.
11634 * gdbarch.c: Regenerate.
11635 * gdbarch.h: Regenerate.
11636 * Makefile.in: Remove value_h from gdbarch_h.
11637 * valops.c (coerce_float_to_double): New variable.
11638 (default_coerce_float_to_double): Remove.
11639 (standard_coerce_float_to_double): Remove.
11640 (value_arg_coerce): Use coerce_float_to_double.
11641 (_initialize_valops): Add "set coerce-float-to-double".
11642 * value.h (default_coerce_float_to_double): Remove prototype.
11643 (standard_coerce_float_to_double): Remove prototype.
11645 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11647 * mdebugread.c (parse_symbol): Likewise.
11648 * stabsread.c (define_symbol): Mark all functions as prototyped.
11650 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11651 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11652 set_gdbarch_coerce_float_to_double.
11653 * arm-tdep.c (arm_gdbarch_init): Likewise.
11654 * frv-tdep.c (frv_gdbarch_init): Likewise.
11655 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11656 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11657 * mips-tdep.c (mips_gdbarch_init): Likewise.
11658 (mips_coerce_float_to_double): Remove.
11659 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11660 (rs6000_coerce_float_to_double): Remove.
11661 * s390-tdep.c (s390_gdbarch_init): Likewise.
11662 * sh-tdep.c (sh_gdbarch_init): Likewise.
11663 (sh_coerce_float_to_double): Remove.
11664 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11665 (sparc_coerce_float_to_double): Remove.
11666 * v850-tdep.c (v850_gdbarch_init): Likewise.
11667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11668 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11669 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11670 (hppa_coerce_float_to_double): Remove prototype.
11671 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11673 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11675 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11677 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11679 Suggested by Stewart Brown <sb24@avaya.com>:
11680 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11681 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11682 (c_type_print_varspec_suffix): Likewise.
11684 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11686 * configure.in: Don't set and AC_SUBST SUBDIRS.
11687 * configure: Regenerated.
11689 * configure.in: Remove code dealing with shared libraries.
11690 * Makefile.in: Remove HLDFLAGS and HLDENV.
11691 * configure: Regenerated.
11693 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11695 * frame.c (deprecated_frame_xmalloc): New function.
11696 (deprecated_set_frame_saved_regs_hack): New function.
11697 (deprecated_set_frame_extra_info_hack): New function.
11698 * frame.h (deprecated_frame_xmalloc): Declare.
11699 (deprecated_set_frame_saved_regs_hack): Declare.
11700 (deprecated_set_frame_extra_info_hack): Declare.
11702 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11704 * configure.in: Move code that provides the --enable-gdbtk option
11705 right after the code that handles the --enable-tui option, and
11706 polish it somewhat.
11707 * configure: Regenerated.
11709 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11710 AC_CHECK_FUNCS and remove the old check for pread64.
11711 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11712 * acconfig.h (_GNU_SOURCE): Add.
11713 (HAVE_PREAD64): Remove.
11714 * configure, aclocal.m4, config.in: Regenerated.
11716 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11718 * alpha-tdep.c: Use get_frame_saved_regs.
11719 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11720 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11721 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11722 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11723 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11725 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11727 * configure.in: Remove all use of the SUBDIRS variable; add
11728 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11729 code providing the --enable-multi-ice option, and move it right in
11730 front of the code that checks whether gdbserver is supported.
11732 * configure: Regenerated.
11733 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11736 2003-01-03 Andrew Cagney <cagney@redhat.com>
11738 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11739 * avr-tdep.c, cris-tdep.c: Ditto.
11740 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11741 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11743 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11745 * configure.in: Remove --enable-netrom option.
11746 * configure: Regenerated.
11748 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11750 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11751 declaration for `struct re_pattern_buffer' instead.
11752 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11754 2003-01-03 J. Brobecker <brobecker@gnat.com>
11756 * mdebugread.c (parse_symbol): Count until the stEnd matching
11757 the structure name.
11759 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11761 * configure.in: Remove --with-cpu option.
11762 subscripts. Remove evil changequotes here.
11763 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11764 * config.in, configure: Regenerated.
11766 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11767 * configure.in: Cleanup section that sources GDB and BFD configure
11768 subscripts. Remove evil changequotes here.
11769 * config.in, configure: Regenerated.
11771 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11773 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11774 frame accessor methods.
11775 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11776 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11777 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11778 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11779 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11780 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11781 * z8k-tdep.c: Ditto.
11783 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11785 * configure.in: Remove UI_OUT configuration code.
11786 * ada-lang.c: Update assuming UI_OUT is always true.
11787 * Makefile.in (UIOUT_CFLAGS): Remove.
11788 * configure: Regenerated.
11789 * TODO: Remove blurb about elimination of -DUI_OUT.
11791 * configure.in: Move code that provides the --enable-gdbcli,
11792 --enable-gdbmi options right before the code that handles the
11793 --enable-tui option. Polish a bit.
11794 * configure: Regenerated.
11796 * configure.in: Rewrite check for GNU regex and the
11797 --without-included regex option, and move it into the "Checks for
11798 library functions" section. This makes us use the system regex
11799 again by default on systems with version 2 of the GNU C library.
11800 This was apparently broken.
11801 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11802 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11803 * config.in, configure: Regenerated.
11805 * configure.in: Move code that provides the --enable-tui option
11806 before the "Checks for libraries" section. Polish the code
11807 somewhat and set need_curses to yes if we build the TUI. Rewrite
11808 code that looks for a library providing termcap functionality to
11809 match more closely what's done in the Readline library, and move
11810 it into to the "Checks for libraries" section.
11811 * configure: Regenerated.
11812 * Makefile.in (TERMCAP): Remove variable.
11813 * config/i386/go32.mh (TERMCAP): Remove variable.
11815 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11817 * MAINTAINERS: Mention gdb_mbuild.sh.
11818 * gdb_mbuild.sh: Rewrite.
11820 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11822 * configure.in: Fix typo in last change.
11823 * config.in, configure: Regenerated.
11825 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11827 * valarith.c (value_binop): Delete obsolete code and comments.
11828 * configure.host: Ditto.
11829 * buildsym.h (make_blockvector): Ditto.
11830 * buildsym.c (make_blockvector): Ditto.
11831 * defs.h (enum language): Ditto.
11832 (chill_demangle): Ditto.
11833 * elfread.c (elf_symtab_read): Ditto.
11834 * dwarfread.c (CHILL_PRODUCER): Ditto.
11835 (set_cu_language): Ditto.
11836 (handle_producer): Ditto.
11837 * expprint.c (print_subexp): Ditto.
11838 * gdbtypes.c (chill_varying_type): Ditto.
11839 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11840 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11841 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11842 (chill_varying_type): Ditto.
11843 * language.h (_LANG_chill): Ditto.
11844 * language.c (binop_result_type, integral_type): Ditto.
11845 (character_type, string_type, structured_type): Ditto.
11846 (lang_bool_type, binop_type_check): Ditto.
11847 * stabsread.h (os9k_stabs): Ditto.
11848 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11849 (define_symbol, read_type, read_struct_fields): Ditto.
11850 (read_array_type, read_enum_type, read_huge_number): Ditto.
11851 (read_range_type, start_stabs): Ditto.
11852 * symfile.c (init_filename_language_table): Ditto.
11853 (add_psymbol_with_dem_name_to_list): Ditto.
11854 * symtab.c (symbol_init_language_specific): Ditto.
11855 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11856 * symtab.h (struct general_symbol_info): Ditto.
11857 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11858 * typeprint.c (typedef_print): Ditto.
11859 * utils.c (fprintf_symbol_filtered): Ditto.
11860 * valops.c (value_cast, search_struct_field, value_slice): Delete
11862 (varying_to_slice): Delete function.
11863 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11864 (varying_to_slice): Delete declaration.
11865 * MAINTAINERS: Update.
11867 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11869 * configure.in: Reorganize "Checks for library functions section"
11870 a bit. Remove check for `btowc' and `isascii' functions.
11871 * configure: Regenerated.
11873 * acconfig.h (_MSE_INT_H): Remove.
11874 * configure.in: Create "Checks for header files" section, and move
11875 appropriate tests there. Don't check for objlist.h, wchar.h,
11876 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11877 misdetection fix. Also add "Checks for types", "Checks for
11878 compiler characteristics" and "Checks for library functions"
11880 * config.in, configure: Regenerated.
11882 * configure.in: Create "Checks for programs" section, and move
11883 appropriate tests there.
11885 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11887 * configure.in: Create "Checks for libraries" section, and move
11888 appropriate tests there. Cleanup check for wctype in libw. Use
11889 AC_SEARCH_LIBS to see whether we need libsocket.
11890 * configure: Regenerated.
11892 For older changes see ChangeLog-2002
11898 version-control: never